CN101540724A - Retransmitting method of supporting policy routing and device thereof - Google Patents

Retransmitting method of supporting policy routing and device thereof Download PDF

Info

Publication number
CN101540724A
CN101540724A CN200910082740A CN200910082740A CN101540724A CN 101540724 A CN101540724 A CN 101540724A CN 200910082740 A CN200910082740 A CN 200910082740A CN 200910082740 A CN200910082740 A CN 200910082740A CN 101540724 A CN101540724 A CN 101540724A
Authority
CN
China
Prior art keywords
hop information
next hop
route
processing unit
corresponding relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910082740A
Other languages
Chinese (zh)
Other versions
CN101540724B (en
Inventor
卢胜文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009100827403A priority Critical patent/CN101540724B/en
Publication of CN101540724A publication Critical patent/CN101540724A/en
Application granted granted Critical
Publication of CN101540724B publication Critical patent/CN101540724B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a retransmitting method of supporting policy routing and a device thereof. The method comprises the following steps: a next hop ID is distributed to the next information of the policy routing, the corresponding relationship between the next information and the next hop ID is synchronized on an interface plate and a business plate; the interface plate carries out the policy routing on a retransmitting message so as to obtain next hop information; the next ID which is corresponding to the next information is transmitted to the business plate, wherein, the next ID is carried in the message; the business plate resumes the next information which is corresponding to the next hop ID according to the corresponding relationship so as to retransmit according to the resumed next information. The invention can support policy routing descend hierarchy business without configuring and reexecuting the policy routing function on the business plate.

Description

A kind of retransmission method of support policy route and device
Technical field
The present invention relates to the route technology of the communications field, be specifically related to a kind of retransmission method and device of support policy route.
Background technology
The strategy route technology is based on the technology that strategy carries out routing.Common routing is all undertaken by purpose IP, and tactful route then can be passed through collocation strategy, carries out routing with other features of packet, for example carries out routing by source IP, so that realize Route Selection more flexibly.
The packet of common high-end network routing device is transmitted and is adopted NP (Network Processor, network processing unit) and ASIC (application-specific integrated circuit (ASIC), Application Specific Integrated Circuit) hardware to realize.NP can programme, and realizes more flexibly, but its performance will be lower than asic chip usually, and its cost is higher much than asic chip simultaneously.But ASIC is non-programmable, so its function fixes, and can only realize limited variation by configuration.
At present a lot of equipment all adopt frame structure, and the interface board in the equipment is responsible for carrying out flow and is transmitted.In order to save cost, improve forwarding performance, adopt ASIC hardware to realize interface board usually, because ASIC is non-programmable, make the also relative fixed of function of interface board.When certain outlet of the interface board that adopts ASIC to realize is wanted to dispose complicated business, if ASIC does not support this business, NAT (Net Address Translation for example, the networking address transition) business, the Service Processing Unit that then needs a responsible Business Processing, this Service Processing Unit can employing equipment in CPU on the existing veneer carry out the corresponding service processing capacity and realize that the veneer that is specifically designed to Business Processing that also can adopt extra setting is that business board is realized.
With the NAT business is example, need be NAT to flow in certain outlet of interface board, then forwards the traffic to NAT business board or CPU in this outlet configuration, finish the NAT conversion by NAT business board or CPU after, forward again.During flow after business is done in forwarding, normal condition can be searched with purpose IP and be transmitted, and carries out routing forwarding according to lookup result.If but flow had carried out tactful route in interface board before doing business, carry out routing and do professional back according to purpose IP, doing the selected route in professional front and back so may be inconsistent, can occur to be sent to interface 2 from the message that interface 1 is gone out, this can bring the forwarding mistake, even causes network obstructed.
Fig. 1 shows a kind of forwarding scheme of existing support policy route, can address the above problem, referring to Fig. 1, this scheme is while collocation strategy route on interface board and business board, interface board is done professional flow to needs and is carried out tactful route, from 3 layer retransmitting tables of interface board, obtain the next hop information of next-hop IP correspondence according to the next-hop device IP address (abbreviation next-hop IP) of tactful route, next hop information is used to indicate flow from which outlet of which chip (for example NAT business board) to forward, and next hop information generally includes the purpose chip, outbound port, go out VLAN etc.Interface board is sent to business board with flow by the NAT outlet according to the content of next hop information.After business board carries out the NAT Business Processing to the reception flow, carry out tactful route again and transmit, make that like this to do the selected route in professional front and back identical doing flow after the business.But there are some defectives in this solution:
At first, this method must be on NAT business board or CPU the implementation strategy route, this has increased workload at least, because tactful route is normally by ACL (Access Control List, Access Control List (ACL)) technology realizes, in general realize that with software ACL relatively consumes cpu resource, so can have a strong impact on the traffic handing capacity of business board.
Secondly, collocation strategy route simultaneously on interface board and business board has also increased the workload of maintenance strategy route.
In addition, because the matching relationship more complicated of ACL may also can there are differences in realization on the interface board and the realization on business board, this inconsistent situation of some routings also can occur.
Summary of the invention
In view of this, the invention provides a kind of retransmission method of support policy route, can do business after the support policy route, but need on Service Processing Unit, not dispose and re-execute tactful routing function.
This method is applied to adopt the hard-wired interface board implementation strategy of application-specific integrated circuit ASIC route, adopts Service Processing Unit to realize that this method comprises in the equipment of Business Processing:
Jump ID for the next hop information of tactful route distributes next, next hop information and corresponding relation between next jumping ID are synchronized to interface board and Service Processing Unit;
At the tactful route that flow mated that needs Business Processing, revise the next hop information that interface board should strategy route correspondence in transmitting; Described being revised as: with the content modification of purpose chip field in the next hop information is corresponding service processing unit sign, according to the corresponding relation that is synchronized to interface board the content that can use field in the next hop information is replaced with predetermined strategy route indication and next jumping ID corresponding with this next hop information; Describedly use the condition that field satisfies and be: can use content before the replacement of field and be not that Service Processing Unit carries out Business Processing and the information of required use when transmitting;
When treating that converting flow hits tactful route, next hop information is forwarded to the corresponding service processing unit with this flow after the modification of the tactful route correspondence that the interface board basis is hit, and the flow that is forwarded carries tactful route indication and next jumps ID;
After Service Processing Unit carries out Business Processing to the flow that receives, at the flow that carries tactful route indication, next the jumping ID that carries according to this flow searches corresponding next hop information in being synchronized to the corresponding relation of self, transmit processing according to the next hop information that finds.
Preferably, the described field of using is to go out virtual LAN VLAN field and/or the outbound port field in the next hop information in the next hop information.
Preferably, for next hop information distribute described next jump ID since 0 sequential encoding.
Wherein, describedly next hop information and next are jumped corresponding relation between the ID is synchronized to interface board and Service Processing Unit is: next hop information and corresponding relation between next jumping ID are synchronized to all veneers in the described equipment; Perhaps, the next hop information place corresponding relation of tactful route is issued to the interface board of this strategy route sending-down, described corresponding relation is issued to the corresponding service processing unit.
Preferably, describedly be: be that next jumps ID corresponding to the next-hop device IP address assignment of next hop information for the next hop information of tactful route distributes next to jump ID;
Describedly next hop information and next are jumped corresponding relation between the ID is synchronized to interface board and Service Processing Unit is: next-hop device IP address and corresponding relation between next jumping ID are synchronized to interface board and Service Processing Unit;
Describedly the content that can use field in the next hop information is replaced with predetermined strategy route indication and next corresponding with this next hop information jump ID and be: the next-hop device IP address corresponding according to this next hop information, from described corresponding relation, extract corresponding next and jump ID, the content that can use field in this next hop information is replaced with next jumping ID of predetermined strategy route indication and extraction;
Described next jumping ID that carries according to this flow searches corresponding next hop information in being synchronized to the corresponding relation of self, transmit according to the next hop information that finds and to be treated to: next of carrying according to this flow jumped ID and search corresponding next-hop IP in being synchronized to the corresponding relation of self, with transmitting in the next-hop IP inquiry business processing unit that finds, and transmit processing.
The present invention also provides a kind of retransmission unit of support policy route, can do business after the support policy route, but need not dispose and re-execute tactful routing function on Service Processing Unit.
This device comprises that at least one Service Processing Unit and at least one adopt the hard-wired interface board of ASIC; This device also comprises tactful routing configuration unit and list item modification unit;
Described tactful routing configuration unit is used to the next hop information of tactful route to distribute next to jump ID, and the corresponding relation between next hop information and next the jumping ID is synchronized to described interface board and described Service Processing Unit;
Described list item is revised the unit, is used at the tactful route that flow mated that needs Business Processing, revises the next hop information that interface board should strategy route correspondence in transmitting; Described being revised as: with the content modification of purpose chip field in the next hop information is corresponding service processing unit sign, according to the corresponding relation that is synchronized to interface board the content that can use field in the next hop information is replaced with predetermined strategy route indication and next jumping ID corresponding with this next hop information; Describedly use the condition that field satisfies and be: can use content before the replacement of field and be not that Service Processing Unit carries out Business Processing and the information of required use when transmitting;
Described interface board is used for when treating that converting flow hits tactful route, according to next hop information after the modification of the tactful route correspondence of hitting this flow is forwarded to the corresponding service processing unit, and the flow that is forwarded carries tactful route indication and next jumps ID;
Described Service Processing Unit, after being used for the flow that receives carried out Business Processing, at the flow that carries tactful route indication, next the jumping ID that carries according to this flow searches corresponding next hop information in being synchronized to the corresponding relation of self, transmit processing according to the next hop information that finds.
Preferably, described list item is revised the used field used the unit as going out VLAN field and/or the outbound port field in the next hop information in the next hop information.
Preferably, described tactful routing configuration unit be next hop information distribute described next jump ID since 0 sequential encoding.
Wherein, described tactful routing configuration unit is jumped corresponding relation between the ID with next hop information and next and is synchronized to all veneers in the described device when synchronous; Perhaps, the next hop information place corresponding relation of tactful route is issued to the interface board of this strategy route sending-down, simultaneously described corresponding relation is issued to the corresponding service processing unit.
Preferably, described tactful routing configuration unit is that next hop information is when distributing next to jump ID, be next jumping ID of next-hop device IP address assignment, the corresponding relation between next-hop device IP address and next the jumping ID is synchronized to interface board and Service Processing Unit corresponding to next hop information;
Described list item is revised the unit when modification can be used field, next-hop device IP address according to the next hop information correspondence, from the corresponding relation that is synchronized to interface board, extract corresponding next and jump ID, the content that can use field in the next hop information is replaced with next jumping ID of predetermined strategy route indication and extraction;
When described Service Processing Unit is transmitted at the flow that carries tactful route indication, next the jumping ID that carries according to this flow searches corresponding next-hop IP in being synchronized to the corresponding relation of self, with transmitting in the next-hop IP inquiry business processing unit that finds, and transmit processing.
According to above technical scheme as seen, the embodiment of the invention adopts the used field of message to carry next hop information, be not enough to carry original next hop information in view of using field length, therefore the present invention jumps ID for next hop information distributes next, adopt shorter ID to represent the long information content, make next hop information can be contained in the confined space that to use field.Simultaneously, the corresponding relation of the two is synchronized to interface board and Service Processing Unit, make interface board and Service Processing Unit know this corresponding relation, interface board can be carried in the message that sends to Service Processing Unit according to corresponding relation next jumping ID with the next hop information correspondence so, Service Processing Unit also can find real next hop information according to corresponding relation, thereby transmits.As seen, the present invention not only can do business after the support policy route, and need not simplify realization disposing on the business board or on the CPU and re-executing tactful routing function.
When realizing, in order to reduce the storage burden of Service Processing Unit, preferably, directly do not dispose the corresponding relation of next hop information and next jumping ID, but configuration is corresponding to the next-hop device IP address of next hop information and the corresponding relation of next jumping ID, and the corresponding relation of IP and ID is synchronized in the Service Processing Unit, Service Processing Unit all only needs to preserve the IP address like this, need not to preserve long next hop information, after Service Processing Unit is done business to message, search according to corresponding next-hop IP and to transmit, can obtain next hop information, thereby realize transmitting.
Simultaneously, owing to need not maintenance strategy route on interface board and Service Processing Unit, thus reduce maintenance workload, and simplified user's configuration, do not need the user repeatedly to dispose.
In addition, Service Processing Unit has saved tactful route querying, only need jump ID according to next searches next hop information, this search procedure only needs once coupling, and because next jumping ID is shorter, make matching process simplify, thereby saved execution resource limited in the business board, thereby improve the service process performance of Service Processing Unit.
Once more, adopt this method to keep doing the tactful route unanimity of professional front and back, avoid the inconsistent of ASIC realization and software/business board implementation strategy route.
Description of drawings
Fig. 1 is the schematic diagram of tactful routing plan in the prior art.
Fig. 2 is the retransmission method flow chart of support policy route in the embodiment of the invention one.
Fig. 3 is the retransmission method flow chart of support policy route in the embodiment of the invention two.
Fig. 4 is the retransmission unit structural representation of support policy route in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing embodiment that develops simultaneously, describe the present invention.
The invention provides a kind of forwarding scheme of support policy route, be applied to adopt the hard-wired interface board implementation strategy of ASIC route, adopt Service Processing Unit to realize in the equipment of Business Processing, its basic thought is: bring Service Processing Unit with the result of tactful route, just the next hop information with tactful route brings Service Processing Unit, make Service Processing Unit need not to re-execute tactful route, avoid on Service Processing Unit, disposing and re-executing tactful routing function.
Service Processing Unit is a functional module of being responsible for Business Processing, can be business board, also can be for carrying out the CPU of Business Processing operation.Easy in order to describe, all be example in below describing with the business board.
One or more fields of using that the embodiment of the invention is used in the next hop information are carried next hop information.Can use the condition that field must satisfy is: can use content before the replacement of field, promptly can use the content that field is carried in the prior art, be not that business board carries out professional and transmits the information of required use when handling.
The embodiment of the invention is selected to go out VLAN field or outbound port field as using field in the next hop information, because after business board is done business and is finished, can redefine final go out VLAN and outbound port, no matter do found before and after professional whether go out VLAN identical with outbound port, all with do that professional back determines go out VLAN and outbound port is as the criterion, therefore to do professional and do in the repeating process at business board be not the information of required use for determined VLAN of going out of interface board and outbound port, can be used as and can use field.
Because variety of protocol all has the outbound port field, it is the most extensive therefore to adopt the outbound port field to carry the scope of application of next hop information.The agreement of the overwhelming majority also has the VLAN of going out field at present, and therefore the scope of application that adopts out the VLAN field to carry next hop information also can satisfy the needs of most occasions.In practice, according to the difference of agreement that flow adopts, can also select other field as using field, as long as selecting for use of this field satisfied aforementioned condition of using field.
Below in conjunction with accompanying drawing flow process of the present invention is described in detail.For convenience of description, the following examples adopt is that NAT is professional to be example after the tactful route, supposes that simultaneously NAT finishes by special NAT business board, and adopts out VLAN to carry next hop information.
Embodiment one
Fig. 2 is the flow chart of the retransmission method of support policy route in the embodiment of the invention one.As shown in Figure 2, this flow process may further comprise the steps:
Step 201: during the collocation strategy route, be that next jumps ID for the next hop information of tactful route distributes next to jump coding.
Owing to go out VLAN only less than 2 bytes, hold next hop information inadequately, so present embodiment is that next hop information distributes ID, adopt shorter ID to represent the information content of growing, make next hop information can be contained in out in the confined space of VLAN field.
Step 202: the corresponding relation between next hop information and next the jumping ID is synchronized to relevant interface plate and NAT business board.
This step is specially: the interface board that the next hop information place corresponding relation of tactful route is issued to this strategy route sending-down.For example, the next hop information of tactful route PR1 is F1, and the ID1 that distributes for F1 is 0, so the corresponding relation of F1 and ID1 is issued in the interface board that tactful route PR1 issues.For business board, present embodiment is that corresponding relation is synchronized to the related service plate, i.e. the NAT business board of present embodiment.
For simply, also can be synchronized to all veneers in the equipment.
Step 203: when configuration NAT is professional, do the tactful route of the flow matches of NAT at needs, revise the next hop information that interface board should strategy route correspondence in transmitting; Retouching operation specifically comprises: with the content modification of purpose chip field in the next hop information is the sign of NAT business board, for example inserts the chip number of NAT business board in purpose chip field; According to the corresponding relation that is synchronized to interface board, the content that can use field in the next hop information is replaced with next jumping ID of a tactful route indication and this next hop information correspondence.
Wherein, can using the purpose of inserting tactful route indication in the field be, the flow that this strategy route indication is carried in indication is the flow of handling through tactful route, and can use the information of carrying in the field is to revise back information, and business board need adopt the present invention to handle.
Preferably, next jumps ID since 0 sequential encoding, and a byte just can be supported 256 next hop informations so.Because direct-connected next jumping of network equipment can be not a lot, therefore can distribute a byte to represent next jumping ID, then another byte can the storage policy route indication.
Certainly, support more next jumping if desired, can distribute more byte, for example, adopt out next jumping of whole byte representations of VLAN field, adopt outbound port field store one tactful route indication; Perhaps, adopt out whole bytes of VLAN field to add that the partial bytes of outbound port field represents that next jumps, adopt the remainder bytes storage policy route indication of outbound port field.In fact, tactful route indication is minimum can only adopt a bit on the precalculated position to be 0 or to be 1 expression.
Step 204: after flow enters interface board, interface board implementation strategy route.When treating that converting flow hits tactful route, next hop information is transmitted after the modification of the tactful route correspondence that the interface board basis is hit, because the content of purpose chip field has been modified to the sign of NAT business board, therefore flow is forwarded to the NAT business board and handles, and next is jumped ID and tactful route indication and also is carried at out and enters the NAT business board in the VLAN field simultaneously.
Step 205:NAT business board carries out the NAT Business Processing to the flow that is received, then at the flow that carries tactful route indication, next jumping ID entrained according to this flow, be synchronized to and search corresponding next hop information in self the corresponding relation, adopt the next hop information that finds to transmit processing.
For the flow that does not carry tactful route indication, carry out the NAT Business Processing after, according to existing processing mode, look into to transmit with purpose IP and carry out routing forwarding.
So far, this flow process finishes.
From flow process shown in Figure 2 as can be seen, the embodiment of the invention adopts in finishing the message of tactful route carries next jumping ID, and in business board, jump ID and recover true next hop information according to next, not only can do business after the support policy route, and need not simplify realization disposing on the business board or on the CPU and re-executing tactful routing function.
Simultaneously, the present invention only need revise the configuration of transmitting of interface board, and need not increases new execution in step, has satisfied the non-programmable restriction of interface board that ASIC realizes.
Owing to need not maintenance strategy route on interface board and business board, thereby reduce maintenance workload, and simplified user's configuration, do not need the user repeatedly to dispose.
In addition, business board has saved tactful route querying, only need jump ID according to next searches next hop information, this search procedure only needs once coupling, and because next jumping ID is shorter, make matching process simplify, saved execution resource limited in the business board, thereby improve the service process performance of business board.Once more, adopt this method to keep doing the tactful route unanimity of professional front and back, avoid the inconsistent of ASIC realization and software/business board implementation strategy route.
Embodiment two
In the foregoing description one, business board need be stored corresponding relation, because complete next hop information is long, thereby has increased the storage burden of business board.Preferably, in order to reduce the storage burden of business board, can directly not dispose the corresponding relation of next hop information and next jumping ID, but configuration is corresponding to the next-hop IP of next hop information and the corresponding relation of next jumping ID, and the corresponding relation of IP and ID is synchronized in the business board, business board only need be preserved the IP address like this, need not to preserve long next hop information, after business board is done business to message, search according to corresponding next-hop IP and to transmit, can obtain next hop information, thereby realize transmitting.
Fig. 3 is the flow chart of the retransmission method of support policy route in the embodiment of the invention two.As shown in Figure 3, this flow process may further comprise the steps:
Step 301: during the collocation strategy route, jump ID for the next-hop IP of tactful route distributes next.
Step 302: the corresponding relation between next-hop IP and next the jumping ID is synchronized to relevant interface plate and NAT business board.For simply, also can be synchronized to all veneers in the equipment.
Step 303: when configuration NAT is professional, do the tactful route of the flow matches of NAT at needs, revise the next hop information that interface board should strategy route correspondence in transmitting.Retouching operation comprises: with the content modification of purpose chip field is the sign of NAT business board; According to the next-hop IP of this next hop information correspondence, from the corresponding relation that is synchronized to interface board, extract corresponding next jump ID, next that can use that content in the field replaces with a tactful route indication and extraction jumped ID.
Step 304: after flow enters interface board, interface board implementation strategy route.When treating that converting flow hits tactful route, next hop information is forwarded to the NAT business board with this flow after the modification of the tactful route correspondence that the interface board basis is hit, and next jumping ID and tactful route indication also are carried at out and enter the NAT business board in the VLAN field.
Step 305:NAT business board carries out the NAT Business Processing to the flow that is received, then at the flow that carries tactful route indication, next jumping ID entrained according to this flow, in being synchronized to the corresponding relation of self, search corresponding next-hop IP, transmit with the next-hop IP inquiry NAT business board that finds, and transmit processing.
For the flow that does not carry tactful route indication, carry out the NAT Business Processing after, according to existing processing mode, look into to transmit with purpose IP and carry out routing forwarding.
Wherein, the route forwarding table in the NAT business board need not to revise, and can prolong with existing and transmit.
So far, this flow process finishes.
For the ease of understanding, be the scheme that an example illustrates the embodiment of the invention two to surf the Internet below by NAT.
Suppose that network egress has 2, connect an ISP (service provider) respectively, one of them connects ISP1, and its next jumping is IP1, and another connects ISP2, and its next jumping is IP2, and these 2 interfaces all dispose NAT respectively.
Come dispense flow rate according to source IP in this example, suppose that the user of the configuration 10.0.0.1/16 network segment surfs the Net by ISP1, the user of the 10.1.0.1/16 network segment surfs the Net by ISP2, and default route is pointed to ISP2.
During the collocation strategy route, be the flow collocation strategy route PR1 of 10.0.0.1/16 for coupling source IP at first, the next-hop IP of PR1 correspondence is IP1.During the strategy route sending-down, for IP1 distributes an ID=0, the corresponding relation with ID=0 and IP1 is synchronized to interface board and the NAT business board that tactful route PR1 issues simultaneously, for simple process also can be synchronized to all veneers.
Source IP is the flow collocation strategy route PR2 of 10.1.0.1/16 for coupling, the next-hop IP of PR2 is IP2, during the strategy route sending-down, the ID=1 of distributing IP 2 correspondences, the corresponding relation with ID=1 and IP2 is synchronized to interface board and the NAT business board that tactful route PR2 issues simultaneously.Also can be synchronized to all veneers for simple process equally.
When configuration NAT is professional, the NAT outlet of configuration ISP1, to next-hop device is that the next hop information of the tactful route PR1 correspondence of ISP1 is made amendment: with the content modification of purpose chip field is the chip number of NAT business board, goes out the VLAN field at it simultaneously and preserves ID=0 and tactful route indication.
When the NAT of configuration ISP2 exports, to next-hop device is that the next hop information of the tactful route PR2 correspondence of ISP2 is made amendment: with the content modification of purpose chip field is the chip number of NAT business board, goes out the VLAN field at it simultaneously and preserves ID=1 and tactful route indication.
When the user of the 10.0.0.1 network segment initiates externally to visit, can hit tactful route PR1, the inquiry next hop information is transmitted, because at this moment the purpose chip has been revised as the NAT business board, so message is forwarded to the NAT business board, go out vlan information simultaneously and also be carried at the NAT business board, the NAT business board is from going out VLAN field acquisition strategy route indication and ID=0.
After the NAT business board is finished NAT and handled, know by the tactful route indication that carries in the message and to do to forward after the tactful route, inquire next-hop IP 1 with ID=0 then, go inquiry to transmit, obtain next hop information, and transmit processing with IP1.If adopt embodiment one scheme, directly inquire next hop information, and transmit processing according to ID=0.
If message does not carry tactful route indication, then to go inquiry to transmit and carry out normal routing forwarding processing with purpose IP, the outlet of so real outlet and original configuration can be accomplished in full accord.If hit default route with purpose IP table of query and routing, then message can be gone out from ISP2.
In order to realize above-mentioned retransmission method, the embodiment of the invention also provides a kind of retransmission unit of support policy route.Fig. 4 is the retransmission unit structural representation of support policy route in the embodiment of the invention.As shown in Figure 4, this device comprises: tactful routing configuration unit, list item are revised the unit, at least one adopts the hard-wired interface board of ASIC and at least one Service Processing Unit.Having used two interface boards among Fig. 4 adopts a Service Processing Unit to carry out the situation of Business Processing.Wherein,
Strategy routing configuration unit is used to the next hop information of tactful route to distribute next to jump ID, and the corresponding relation between next hop information and next the jumping ID is synchronized to interface board and Service Processing Unit.In the time of synchronously, corresponding relation can be synchronized to all veneers in this retransmission unit; Perhaps, the next-hop IP place corresponding relation of tactful route is issued to the interface board of this strategy route sending-down, simultaneously described corresponding relation is issued to the corresponding service processing unit.
In order to reduce the storage burden of Service Processing Unit, can distribute next to jump ID for next-hop IP corresponding to next hop information, the corresponding relation between next-hop IP and next the jumping ID is synchronized to interface board and Service Processing Unit.
List item is revised the unit, is used for carrying out at needs the tactful route that flow mated of Business Processing, revises the next hop information that interface board should strategy route correspondence in transmitting; Described being revised as: be and professional corresponding service processing unit marks the content that can use field in the next hop information to be replaced with predetermined strategy route indication and next jumping ID corresponding with this next hop information with the content modification of purpose chip field in the next hop information according to the corresponding relation that is synchronized to interface board.Wherein, can use condition that field satisfies is that content was not that Service Processing Unit carries out Business Processing and the information of required use when transmitting before it was replaced.Can select to go out the VLAN field in the next hop information, or the outbound port field in the next hop information, perhaps these two fields are used in combination.
If the corresponding relation of tactful routing configuration configuration of cells is the corresponding relation of next-hop IP and next jumping ID, this list item is revised the unit when modification can be used field so, next-hop IP according to the next hop information correspondence, extract corresponding next jumping ID from the corresponding relation that is synchronized to interface board, the content that can use field replaces with: next of tactful route indication and extraction jumped ID.
Interface board, be used to treat converting flow and carry out tactful route, when treating that converting flow hits amended tactful route, according to next hop information after the modification of the tactful route correspondence of hitting this flow is forwarded to the corresponding service processing unit, the flow that is forwarded carries next and jumps ID and tactful route indication.
Service Processing Unit, it can be business board, also can be CPU, this Service Processing Unit is used for the flow that receives is carried out Business Processing, at the flow that carries tactful route indication, jump the corresponding next hop information of ID inquiry according to entrained next of this flow, transmit processing according to the next hop information that finds.At the flow that does not carry route indication,, and transmit processing according to transmitting of purpose IP inquiry self storage.
If the corresponding relation of tactful routing configuration configuration of cells is the corresponding relation of next-hop IP and next jumping ID, Service Processing Unit is at the flow that carries tactful route indication so, jump ID according to entrained next of this flow and in being synchronized to the corresponding relation of self, search corresponding next-hop IP, with transmitting in the next-hop IP inquiry business processing unit that finds, and transmit processing.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of retransmission method of support policy route is applied to adopt the hard-wired interface board implementation strategy of application-specific integrated circuit ASIC route, adopts Service Processing Unit to realize it is characterized in that this method comprises in the equipment of Business Processing:
Jump ID for the next hop information of tactful route distributes next, next hop information and corresponding relation between next jumping ID are synchronized to interface board and Service Processing Unit;
At the tactful route that flow mated that needs Business Processing, revise the next hop information that interface board should strategy route correspondence in transmitting; Described being revised as: with the content modification of purpose chip field in the next hop information is corresponding service processing unit sign, according to the corresponding relation that is synchronized to interface board the content that can use field in the next hop information is replaced with predetermined strategy route indication and next jumping ID corresponding with this next hop information; Describedly use the condition that field satisfies and be: can use content before the replacement of field and be not that Service Processing Unit carries out Business Processing and the information of required use when transmitting;
When treating that converting flow hits tactful route, next hop information is forwarded to the corresponding service processing unit with this flow after the modification of the tactful route correspondence that the interface board basis is hit, and the flow that is forwarded carries tactful route indication and next jumps ID;
After Service Processing Unit carries out Business Processing to the flow that receives, at the flow that carries tactful route indication, next the jumping ID that carries according to this flow searches corresponding next hop information in being synchronized to the corresponding relation of self, transmit processing according to the next hop information that finds.
2, the method for claim 1 is characterized in that, the described field of using is to go out virtual LAN VLAN field and/or the outbound port field in the next hop information in the next hop information.
3, the method for claim 1 is characterized in that, for next hop information distribute described next jump ID since 0 sequential encoding.
4, the method for claim 1, it is characterized in that, describedly next hop information and next are jumped corresponding relation between the ID is synchronized to interface board and Service Processing Unit is: next hop information and corresponding relation between next jumping ID are synchronized to all veneers in the described equipment; Perhaps, the next hop information place corresponding relation of tactful route is issued to the interface board of this strategy route sending-down, described corresponding relation is issued to the corresponding service processing unit.
5, as any described method of claim 1 to 4, it is characterized in that, describedly be: be that next jumps ID corresponding to the next-hop device IP address assignment of next hop information for the next hop information of tactful route distributes next to jump ID;
Describedly next hop information and next are jumped corresponding relation between the ID is synchronized to interface board and Service Processing Unit is: next-hop device IP address and corresponding relation between next jumping ID are synchronized to interface board and Service Processing Unit;
Describedly the content that can use field in the next hop information is replaced with predetermined strategy route indication and next corresponding with this next hop information jump ID and be: the next-hop device IP address corresponding according to this next hop information, from described corresponding relation, extract corresponding next and jump ID, the content that can use field in this next hop information is replaced with next jumping ID of predetermined strategy route indication and extraction;
Described next jumping ID that carries according to this flow searches corresponding next hop information in being synchronized to the corresponding relation of self, transmit according to the next hop information that finds and to be treated to: next of carrying according to this flow jumped ID and search corresponding next-hop IP in being synchronized to the corresponding relation of self, with transmitting in the next-hop IP inquiry business processing unit that finds, and transmit processing.
6, a kind of retransmission unit of support policy route, this device comprises: at least one Service Processing Unit and at least one adopt the hard-wired interface board of ASIC; It is characterized in that this device also comprises tactful routing configuration unit and list item modification unit;
Described tactful routing configuration unit is used to the next hop information of tactful route to distribute next to jump ID, and the corresponding relation between next hop information and next the jumping ID is synchronized to described interface board and described Service Processing Unit;
Described list item is revised the unit, is used at the tactful route that flow mated that needs Business Processing, revises the next hop information that interface board should strategy route correspondence in transmitting; Described being revised as: with the content modification of purpose chip field in the next hop information is corresponding service processing unit sign, according to the corresponding relation that is synchronized to interface board the content that can use field in the next hop information is replaced with predetermined strategy route indication and next jumping ID corresponding with this next hop information; Describedly use the condition that field satisfies and be: can use content before the replacement of field and be not that Service Processing Unit carries out Business Processing and the information of required use when transmitting;
Described interface board is used for when treating that converting flow hits tactful route, according to next hop information after the modification of the tactful route correspondence of hitting this flow is forwarded to the corresponding service processing unit, and the flow that is forwarded carries tactful route indication and next jumps ID;
Described Service Processing Unit, after being used for the flow that receives carried out Business Processing, at the flow that carries tactful route indication, next the jumping ID that carries according to this flow searches corresponding next hop information in being synchronized to the corresponding relation of self, transmit processing according to the next hop information that finds.
7, device as claimed in claim 6 is characterized in that, described list item is revised the used field used the unit as going out VLAN field and/or the outbound port field in the next hop information in the next hop information.
8, device as claimed in claim 6 is characterized in that, described tactful routing configuration unit be next hop information distribute described next jump ID since 0 sequential encoding.
9, device as claimed in claim 6 is characterized in that, described tactful routing configuration unit is jumped corresponding relation between the ID with next hop information and next and is synchronized to all veneers in the described device when synchronous; Perhaps, the next hop information place corresponding relation of tactful route is issued to the interface board of this strategy route sending-down, simultaneously described corresponding relation is issued to the corresponding service processing unit.
10, as any described device of claim 6 to 9, it is characterized in that, described tactful routing configuration unit is that next hop information is when distributing next to jump ID, be next jumping ID of next-hop device IP address assignment, the corresponding relation between next-hop device IP address and next the jumping ID is synchronized to interface board and Service Processing Unit corresponding to next hop information;
Described list item is revised the unit when modification can be used field, next-hop device IP address according to the next hop information correspondence, from the corresponding relation that is synchronized to interface board, extract corresponding next and jump ID, the content that can use field in the next hop information is replaced with next jumping ID of predetermined strategy route indication and extraction;
When described Service Processing Unit is transmitted at the flow that carries tactful route indication, next the jumping ID that carries according to this flow searches corresponding next-hop IP in being synchronized to the corresponding relation of self, with transmitting in the next-hop IP inquiry business processing unit that finds, and transmit processing.
CN2009100827403A 2009-04-28 2009-04-28 Retransmitting method of supporting policy routing and device thereof Expired - Fee Related CN101540724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100827403A CN101540724B (en) 2009-04-28 2009-04-28 Retransmitting method of supporting policy routing and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100827403A CN101540724B (en) 2009-04-28 2009-04-28 Retransmitting method of supporting policy routing and device thereof

Publications (2)

Publication Number Publication Date
CN101540724A true CN101540724A (en) 2009-09-23
CN101540724B CN101540724B (en) 2011-04-20

Family

ID=41123720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100827403A Expired - Fee Related CN101540724B (en) 2009-04-28 2009-04-28 Retransmitting method of supporting policy routing and device thereof

Country Status (1)

Country Link
CN (1) CN101540724B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533882A (en) * 2016-11-18 2017-03-22 杭州迪普科技股份有限公司 Message processing method and device
CN115150317A (en) * 2022-06-22 2022-10-04 杭州迪普科技股份有限公司 Routing table item issuing method and device, electronic equipment and computer readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100359885C (en) * 2002-06-24 2008-01-02 武汉烽火网络有限责任公司 Method for forwarding data by strategic stream mode and data forwarding equipment
CN100561978C (en) * 2006-04-26 2009-11-18 华为技术有限公司 A kind of strategy route device and method
CN101005500A (en) * 2006-12-31 2007-07-25 中国科学院计算技术研究所 Method for verifying houndary gateway protocol route strategy based on autonomous system recation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533882A (en) * 2016-11-18 2017-03-22 杭州迪普科技股份有限公司 Message processing method and device
CN106533882B (en) * 2016-11-18 2019-12-06 杭州迪普科技股份有限公司 Message processing method and device
CN115150317A (en) * 2022-06-22 2022-10-04 杭州迪普科技股份有限公司 Routing table item issuing method and device, electronic equipment and computer readable medium
CN115150317B (en) * 2022-06-22 2023-09-12 杭州迪普科技股份有限公司 Routing table entry issuing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN101540724B (en) 2011-04-20

Similar Documents

Publication Publication Date Title
US9923812B2 (en) Triple-tier anycast addressing
US10277508B2 (en) Service routing packet processing method and apparatus, and network system
US6453357B1 (en) Method and system for processing fragments and their out-of-order delivery during address translation
CN101047714B (en) Apparatus and method for processing network data
CN104270475B (en) The system and method for IPv4 networks and IPv6 network interworkings is realized based on NAT64
CN102957619B (en) Virtual route system and method
US20130110987A1 (en) Apparatus and method for providing content location information using ospf opaque lsa
JP6122971B2 (en) Ethernet packet forwarding
CN101356783A (en) Method and system for protocol offload and direct I/O with I/O sharing in a virtualized network environment
CN101707569B (en) Method and device for processing NAT service message
CN102255932A (en) Load balancing method and load equalizer
CA2968964A1 (en) Source ip address transparency systems and methods
EP2721779B1 (en) Communication mechanism for multiple interface network nodes
US9525628B2 (en) Packet forwarding method and system
CA2467346A1 (en) Active networks
US20100085984A1 (en) Method and ip translator for translating protocol to support compatibility between networks each employing different types of protocols
JP2014093550A (en) Management server, virtual machine system, program and connection method
CN105991438B (en) Treating method and apparatus based on data packet in virtual double layer network
CN110932890A (en) Data transmission method, server and computer readable storage medium
CN103503421A (en) SCTP association endpoint relocation in a load balancing system
CN101540724B (en) Retransmitting method of supporting policy routing and device thereof
WO2009146615A1 (en) A processing method, a system and a processor for network address translation service
CN102394828A (en) Message transmission method and device during cross-VPN (virtual private network) visit
CN105515995A (en) Message processing method and apparatus, and flow table generation method and apparatus
CN102821055B (en) Method for inter-board communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110420

Termination date: 20200428

CF01 Termination of patent right due to non-payment of annual fee