Summary of the invention
The objective of the invention is to the dual-homed implementation method of a kind of subscriber equipment based on multiprotocol label switching, so that in the dual-homed networking of subscriber equipment, article one, after the link down of bearer service, the business between the subscriber equipment can take over seamlessly on the backup link in dual-homed.
Technical scheme of the present invention:
The dual-homed implementation method of a kind of subscriber equipment based on multiprotocol label switching, carry out following step when having at least one to interrupt for the service link between the dual-homed subscriber equipment of subscriber equipment:
Label switched path (LSP) the administration module notification interface of A, device of service provider (PE) is deleted former route;
B, label switched path administration module are judged the type of former route, jump mark forwarding entry (FTN) route to next then carry out step D if belong to forwarding equivalence class, if belong to subscriber equipment-device of service provider-subscriber equipment (CPC) route then carry out step C;
C, label switched path administration module are searched subscriber equipment-device of service provider-subscriber equipment (CPC) routing table, if subscriber equipment-device of service provider-subscriber equipment (CPC) route identical with the destination address of former route arranged, then issues this route to interface; Otherwise continue step D;
Obtain the forwarding equivalence class identical D, label switched path administration module mapping (FTN) routing table and jump mark forwarding entry (FTN) route, and issue this route to interface to next with former route destination address from forwarding equivalence class to next jumping mark forwarding entry.
According to technique scheme:
When the label switched path administration module is searched the identical route of destination address with former route in subscriber equipment-device of service provider-subscriber equipment (CPC) table, preferentially select the little subscriber equipment-device of service provider of jumping figure-subscriber equipment (CPC) route.
When described label switched path administration module obtains a forwarding equivalence class (FEC) route, next jumps into the row judgement to its far-end, if to jump in mark forwarding entry (FTN) routing table existing forwarding equivalence class to next different to next next jumping of far-end of jumping mark forwarding entry (FTN) route with forwarding equivalence class, then newly-built this forwarding equivalence class also joins in the described routing table.
Jump in mark forwarding entry (FTN) table to next at forwarding equivalence class, if a certain forwarding equivalence class is jumped subscriber equipment-device of service provider-subscriber equipment (CPC) route that mark forwarding entry (FTN) route does not arrive identical destination address to next, then this forwarding equivalence class is jumped mark forwarding entry (FTN) route to next and is marked as " issuing ", only has this route that is labeled just to be issued to interface synchronously.
Jump in mark forwarding entry (FTN) table to next at forwarding equivalence class, the forwarding equivalence class of parity price is labeled as " choosing " to next prepreerence clauses and subclauses of jumping in mark forwarding entry (FTN) route, and this route that is labeled is selected when subscriber equipment-device of service provider-subscriber equipment (CPC) route switches to forwarding equivalence class to next jumping mark forwarding entry (FTN) route.
The present invention has realized primary demand, the i.e. Ye Wu problem that takes over seamlessly of CE dual-homing networking by the less change of label switched path (LSP) administration module.Particularly routing management module can't carry out showing the superiority of this technical scheme more under the preferred situation at different far-end routes in multipurpose route platform software architecture.
Embodiment
The definition of CPC, FTN and distributed system among the present invention:
CPC: the abbreviation that is subscriber equipment (being called for short CE)-device of service provider (hereinafter to be referred as PE equipment)-subscriber equipment (being CE-PE-CE) type route, be that client's the data message forwarding of a certain Virtual Private Network (hereinafter to be referred as VPN) website is during to device of service provider, this data message of PE device discovery just is forwarded to the another one website under this PE equipment, therefore PE equipment just can not send it to other equipment of backbone network when transmitting this client's data message, realization be that transmit this locality of CE-PE-CE.In label switched path (hereinafter to be referred as LSP) administration module, safeguarded a such CPC routing table.
FTN: be the abbreviation that be mapped to of forwarding equivalence class (being called for short FEC) to next road sign note forwarding entry (being called for short NHLFE), in the network of common multiprotocol label switching (hereinafter to be referred as MPLS), if a certain equipment is as the inlet of a LSP, need promptly to realize that the IP message goes into, during forwarding that the MPLS message goes out, to search what hit when transmitting be so a kind of mapping relations to this equipment so, if the client's of a certain VPN website data message forwarding is to PE equipment, this data message of PE device discovery is to send to a website crossing over the provider backbone far-end, this moment PE equipment to search what hit when transmitting be FTN.Promptly by the forwarding equivalence class (FEC) of the purpose IP network segment search in VPN client's the IP datagram literary composition to correspondence, and then be mapped to next the jumping mark forwarding entry (NHLFE) that closes, message is sent to the outgoing interface of PE equipment, and presses the label stack of depositing among the NHLFE, forwards.Such mapping relations in the LSP administration module, have been safeguarded.
Distributed system: refer to a kind of structure of big capacity three-tier switch, its control and data separating.Master control borad software is responsible for functions such as agreement control, list item maintenance; Microprogram in the network processing unit on the interface board is commonly referred to as microcode, mainly is responsible for the functions such as forwarding of data message.Main control software need be issued to interface board by the list item that dynamic protocol control produces, and as the data source of the microcode in the interface board, uses when searching coupling when transmitting data message for it.
Method of the present invention is to be implemented on the backup link that takes over seamlessly when one of them interrupts for the former route (link) between dual-homed two subscriber equipmenies of subscriber equipment in dual-homed.
Consult Fig. 6, method of the present invention comprises step:
Step 10: label switched path (LSP) the administration module notification interface of device of service provider (PE) is deleted former route.
Step 20: the label switched path administration module judges that it still is that forwarding equivalence class is jumped mapping (FTN) route of mark forwarding entry to next that former route belongs to subscriber equipment-device of service provider-subscriber equipment (CPC) route, jump mark forwarding entry (FTN) route to next then carry out step 50 if former route belongs to forwarding equivalence class, if former route belongs to subscriber equipment-device of service provider-subscriber equipment (CPC) route then carry out step 30.
Step 30: the label switched path administration module is searched subscriber equipment-device of service provider-subscriber equipment (CPC) table, if subscriber equipment-device of service provider-subscriber equipment (CPC) route identical with the destination address of former route arranged, then carry out step 40, otherwise continue step 50.
Step 40: issue the CPC route to interface.
Step 50: obtain the forwarding equivalence class identical mapping (FTN) table of label switched path administration module from forwarding equivalence class to next jumping mark forwarding entry and jump mark forwarding entry (FTN) route, and issue this route to interface to next with former route destination address.
Below in conjunction with accompanying drawing said method is elaborated:
For the switching between CPC route and the FTN route: consult Fig. 2, the networking situation of dotted line right half part in the analysis chart first, under this networking situation, suppose device of service provider PE2, move rip routing protocol respectively between PE3 and the subscriber equipment E2, thereby guarantee that destination address is that the route of the loop-back address 172.0.0.1 of subscriber equipment CE2 can pass on device of service provider PE2 and the PE3 equipment smoothly, move bgp protocol between device of service provider PE2 and the PE3, and device of service provider PE2, the route target community of VRF on the PE3 guarantees to introduce mutually.At this moment can obtain the VPN route of two 172.0.0.1 from the device of service provider PE2, article one, be the CPC route that obtains by subscriber equipment CE2, article one, be the FTN route that obtains from device of service provider PE3, transmit under the situation that holding load is not all carried on a shoulder pole at present MPLS, all the time all has only a forwarding-table item in the microcode, therefore the LSP administration module must be born the routing function of a part, the basic principle of routing:
1, local CPC route is more preferential than far-end FTN route, and promptly PE equipment is thought when transmitting VPN client's message, when having CPC route and FTN list item simultaneously to identical destination address, preferentially adopts the CPC routing forwarding;
2, big preferential of the ratio jumping figure that jumping figure is little in the local CPC route.According to such principle, the path that subscriber equipment CE3 calling party equipment CE2 walks, as above Figure 2 shows that CE3---PE3---CE2, exist the CPC route of subscriber equipment CE2 in the microcode list item on device of service provider PE3, if device of service provider PE3 is to the link down of subscriber equipment CE2 at this moment, then according to situation about envisioning, subscriber equipment CE3 calling party equipment CE2 should walk path shown in Figure 3 (CE3---PE3---PE2---CE2): the last LSP administration module of device of service provider PE3 this moment can the perception destination address be the CPC route inefficacy of subscriber equipment CE2, the microcode of meeting notification interface plate is the CPC route deletion of subscriber equipment CE2 with original destination address, the data message that arrives device of service provider PE3 this moment is dropped owing to matching list item when transmitting, for the data message that guarantees the client still is sent to subscriber equipment CE2, so just need the LSP administration module will arrive the FTN route notification interface plate of identical destination again, form the list item of new destination address to the FTN type of subscriber equipment CE2 in microcode, so the data message that transmits from CE3 just can arrive subscriber equipment CE2 smoothly by the route of CE3->PE3->PE2->CE2.
The LSP administration module adopts following scheme to realize mentioned above principle:
1, when the notification interface plate issues FTN, can go to search the CPC routing table, exist, then not notify interface board to issue the FTN list item if having to the CPC route of identical destination address; To guarantee CPC route principle of priority.
2, when the PE-CE link down, after the LSP administration module perceives the inefficacy of CPC route, when deletion CPC, can go to search the CPC route that whether has jumping figure littler, issue if having then notify; If do not have then in the FTN table, search the FTN that whether has to identical destination to exist, issue this FTN list item if having then notify; After guaranteeing that original preferential CPC route lost efficacy, can there be other CPC, FTN list item to be issued to identical destination address.
More than set forth the changing method of FTN, introduced below to CPC, CPC to FTN.Routing between the FTN is switched.Consult Fig. 4, can receive two VPN routes to 172.0.0.1 for device of service provider PE1, only far-end next jump different, as following table:
Destination address | Next jumping of far-end |
????172.0.0.1 | ????70.1.1.1 |
????172.0.0.1 | ????80.1.1.1 |
Next jumps different FEC to require the LSP administration module can distinguish the identical but far-end of destination address like this, and adopt a simple routing policy: promptly the LSP administration module thinks that the FTN that the back generates has precedence over the FTN that receives earlier, as above show: suppose to receive earlier that next jumping of far-end is the route of 80.1.1.1, the notification interface plate was issued to microcode after the LSP administration module generated corresponding FTN list item so.This moment, forward-path was CE1->PE1->PE3->CE2; Receive again after this one to identical destination address but next jumping of far-end is the route of 70.1.1.1, the LSP administration module can generate corresponding FTN list item again so, and the notification interface plate is issued to microcode.This moment, forward-path was CE1-->PE1-->PE2-->CE2 just.The FTN list item that can see below the route generation of receiving is more preferential.
What suppose that the previous calling party equipment of subscriber equipment CE1 CE2 walks is the path of arrow logo among Fig. 4, the FTN that choose on the device of service provider PE1 this moment is that next jumping of far-end is the list item of 70.1.1.1, a certain section link down on forward-path, then vpn service can be diffused in the path of arrow logo of Fig. 5 smoothly: for the implementation that satisfies above demand LSP administration module as follows:
1, when obtaining a FEC, need to increase judgement to next jumping of far-end, if next jumps far-end different then thinks a new FEC, need newly-built this FEC in addition, and it is joined in FTN table that the LSP administration module safeguards, having guaranteed so can not be mistaken as from the FEC of equal value that different far-end PE obtains is identical FEC.
2, the LSP administration module needs to increase the judgement of parity price FTN in corresponding the processing, if exist effective FTN of equal value just need have no progeny in deletion FTN or public network tunnel, notification interface issues this FTN list item of equal value.
For the reliability of enhanced system, the LSP administration module also has a list item synchronizing function, is used for guaranteeing that the list item of main control software maintenance is consistent with the list item in the interface board microcode.The support of list item synchronizing function refreshes at preferential CPC route or FTN route.Therefore when list item is synchronous, should be noted that the situation of CPC route of equal value, FTN route, go in order to avoid non-preferential list item is issued in the interface synchronously the time, thereby cause the situation of running counter to LSP administration module routing principle.
Choose and the non-relation of choosing between each FTN route of equal value, all FTN routes and CPC route are chosen and the non-relation of choosing, because the CPC route is always preferential than FTN route, so the CPC route need not marker bit,, the FTN route writes down whether the CPC route identical with it is arranged and needing marker bit.So on logical perspective, the FTN route just should have two marker bits to come these two kinds of relations of mark.Examination claims be labeled as " choosing " of concerning between the mark FTN route of equal value, and the relation between flag F TN route and the CPC route is called " issuing ".
Only there is the FTN route table items of stamping " issuing " mark just can be issued to interface synchronously.
Under the situation of the FTN route that many equivalences are arranged, have only prepreerence FTN route just can stamp " choosing " mark.Guaranteed when the CPC route switches to the FTN route, can correctly choose a certain preferential FTN route sending-down to interface.