CN101667970B - Protection switching method and equipment thereof - Google Patents
Protection switching method and equipment thereof Download PDFInfo
- Publication number
- CN101667970B CN101667970B CN200910180033A CN200910180033A CN101667970B CN 101667970 B CN101667970 B CN 101667970B CN 200910180033 A CN200910180033 A CN 200910180033A CN 200910180033 A CN200910180033 A CN 200910180033A CN 101667970 B CN101667970 B CN 101667970B
- Authority
- CN
- China
- Prior art keywords
- path
- lsp tunnel
- label
- switching
- vpn
- 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.)
- Active
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a protection switching method and equipment thereof. The method is used for PE in MPLS L3VPN, the PE is provided with a primary path and a standby path about a called route, and a forwarding table of the PE is previously memorized with a primary inner layer mark corresponding to the primary path and a standby inner layer mark corresponding to the standby path. The method comprises the steps of: when occurring path switching, obtaining the switched path attribute and a corresponding outer layer mark, wherein the path attribute comprises the primary path or the standby path; obtaining the corresponding inner layer mark according to the switched path attribute in the forwarding table; and enveloping and transmitting a report with the obtained outer layer mark and the inner network mark. The invention realizes the fast switching of the inner layer mark and an outer network mark of the path when switching the primary path with the standby path.
Description
Technical field
The present invention relates to communication field, relate in particular to a kind of protection reverse method and equipment.
Background technology
MPLS (Multi-Protocol Label Switch; Multiprotocol label switching) VPN (VirtualPrivate Network; Virtual Private Network) it is a kind of based on PE (ProviderEdge in the vpn solution to provide the merchant; Service provider edge router) L3VPN (Layer3 VPN, three-layer VPN) technology, it uses BGP (Border Gateway Protocol; Border Gateway Protocol) issue VPN route in service provider backbone network uses MPLS on service provider backbone, to transmit the VPN message.BGP/MPLS VPN networking mode is flexible, extensibility good, and can support MPLS QoS (Quality of Service, service quality) and MPLS TE (Traffic Engineering, traffic engineering) easily, therefore obtains increasing application.
A sketch map of typical B GP/MPLS VPN networking plan is as shown in Figure 1 in the prior art, comprising:
Site (VPN user site): the isolated IP network as among the VPN does not then have connectedness when not connecting through backbone network between the in general different Site.
CE (Customer Edge Router, Customer Edge router): CE is a router normally, when CE with after the PE that directly links to each other sets up neighborhood, CE is distributed to PE to the VPN route of this node, and acquires the route of far-end VPN from PE.Use the BGP/IGP exchanging routing information between CE and the PE, also can use static routing.
P (Provider Router, service provider's router):, be responsible for MPLS and transmit as the backbone network core router.
PE (Provider Edge Router, service provider edge router): as the backbone network edge router, storage VPN Instance (VPN instance) handles the VPN route, is the main implementor of MPLS three-layer VPN; After PE learns the local VPN route of CE from CE, through BGP and other PE switched vpc N route.Information in the VPN instance comprises: Label Forwarding Information Base, IP route table, the interface of binding with VPN instance and the management information of VPN instance.The management information of VPN instance comprises RD (Route Distinguisher, Route Distinguisher), route filtering strategy, member interface tabulation etc.On PE equipment, belong to physical port or the corresponding VPN instance of logic port of same VPN, VPN instance can dispose through order line or webmaster instrument.When transmission VPN flow on the MPLS backbone network, entry PE is as Ingress (inlet) LSR (Label Switching Router, LSR), and outlet PE is as Egress (outlet) LSR, and the P router is then as Transit LSR.
In basic L3VPN used, message was transmitted the two-layer label mode that adopts:
Ground floor (Layer 1, skin) label exchanges in backbone network inside, and indication is from a LSP (Label Switch Path, the label switched path) tunnel of PE PE to the opposite end.Message from an end PE sends through carrying this outer layer label, can be forwarded to through the lsp tunnel corresponding with this outer layer label and arrive opposite end PE;
PE uses when purpose CE transmits the second layer (Layer 2, internal layer) label from the opposite end at message, also can be called private network tags, and which Site the indication message should be sent to, and promptly arrives which CE.Opposite end PE can get access to the outgoing interface of message to be transmitted according to vpn label, through this outgoing interface message is forwarded to purpose CE.
In particular cases, two Site that belong to same VPN are connected to same PE through different CE, in this case for the message that sends from an end CE wherein, only need know that how it being forwarded to opposite end CE gets final product.
Based on above-mentioned schematic network structure shown in Figure 1, Site1 comprises to the flow process that Site2 sends message in the prior art:
(1) Site 1 sends the IP message that destination address is 1.1.1.2, by CE 1 message is sent to PE 1.
(2) PE 1 adds vpn label and outer layer label according to receiving the interface of message and the destination address of message is searched VPN instance according to the VPN instance that matches on message, afterwards message is transmitted through the MPLS network.
(3) P in the MPLS network is sent to PE 2 according to the outer layer label of message with message; Wherein message utilizes PHP (Penultimate Hop Popping, the last two jump is ejected) characteristic when arriving the previous dive of PE 2, and outer layer label is stripped from, and message only comprises vpn label.
(4) PE 2 searches VPN instance according to the vpn label and the destination address of message, confirms the outgoing interface of message, and message is forwarded to CE 2.
(5) CE 2 sends to destination address according to normal IP repeating process with message.
In order to improve the reliability of network, the method based on the path redundancy protection is provided in the prior art, be example with networking scene shown in Figure 2, the concrete realization of the redundancy protecting of flow from CE3 to CE1 has been described.
Among Fig. 2, the route among the CE1 is published to PE3 through two paths, and a paths is CE1->PE1->PE3, as main path; Another is CE1->PE2->PE3, as being equipped with the path.When the collapse of PE1 equipment, when perhaps the path connectivity between PE1 and the PE3 is out of order, launch path fully, be equipped with converting flow on the path.
For PE equipment, be vpn label of each bar route assignment of learning from CE, perhaps be vpn labels of all route assignment (private network tags) that come from a CE.Because each PE goes up the independent label that divides, therefore in the same VPN, for same route or same CE, the vpn label that distributes so also generally is inequality.With networking scene shown in Figure 2 is example, all learns the route that purpose is CE1 from CE1 for PE1 and PE2., and the two distributes a vpn label respectively to the route of learning, and in general is different.
When message is transmitted, need add vpn label (private network tags) earlier on the path, add outer layer label (lsp tunnel label).And outer layer label main path be equipped with the path on be respectively to distribute by different PE, in general be different.On the PE3 equipment as shown in Figure 2, main path corresponding outer layer label is distributed to PE3 by PE1, and being equipped with path corresponding outer layer label is that PE2 distributes to PE3.When therefore if main path breaks down, then PE3 need carry out the path switching, need the vpn label and the outer layer label of current use all be replaced simultaneously.For example PE3 switches preceding use main path and carries out the message forwarding, and then PE3 need use vpn label and the outer layer label that PE1 distributes, and then after switching generation, PE3 need use the vpn label and the outer layer label of PE2 distribution.
The problem that exists in the prior art is: every route or each CE have a main vpn label and one to be equipped with vpn label; Like this under the situation of numerous VP N and a large amount of CE websites, under the situation such as several thousand CE websites, when main path when being equipped with the path and switching, need to switch the vpn label and the outer net label of several thousand paths.Therefore be difficult to satisfy the requirement of the fast quick-recovery of fault of some application.
Summary of the invention
The invention provides a kind of protection reverse method and equipment, be used at main path when being equipped with the path and switching the quick switching of the vpn label of realizing route and outer net label.
The invention provides a kind of protection reverse method; Be applied to the Provider Edge routing device PE among the multiprotocol label switching MPLS Layer3 Virtual Private Network L3VPN; Dispose on the said PE about being visited the primary path and the backup path of route; Store the corresponding main subsequent use vpn label with vpn label and said backup path correspondence of said primary path in the transmitting of said PE in advance, said method comprises:
When the path switching takes place, obtain switched path attribute and corresponding outer layer label, said path attribute comprises primary path or backup path;
In said transmitting, obtain corresponding inner layer mark according to switched path attribute;
Said outer layer label that use is obtained and vpn label carry out the encapsulation and the forwarding of message.
Wherein, when switch in said generation path, obtain switched path attribute and comprise:
When the path switching takes place, obtain the label switching path LSP Tunnel Identifier that carries in transmitting;
Obtain lsp tunnel according to the lsp tunnel sign, when said lsp tunnel was primary path, then switched path attribute was a primary path; When said lsp tunnel was backup path, then switched path attribute was a backup path.
Wherein, Saidly obtain lsp tunnel according to lsp tunnel sign and comprise: search the lsp tunnel list item according to the lsp tunnel sign, comprise the lsp tunnel sign of the lsp tunnel of having set up, active and standby mark, label stack information and the outgoing interface of lsp tunnel in the said lsp tunnel list item;
Saidly obtain corresponding outer layer label and comprise:, obtain the outer layer label of said lsp tunnel according to said label stack information.
Wherein, Also comprise: when finding that current path breaks down; Before generation is switched in the path; In said lsp tunnel list item, use the lsp tunnel sign of switching the corresponding lsp tunnel of rear path, active and standby mark, label stack information and the outgoing interface of lsp tunnel, the lsp tunnel sign of the corresponding lsp tunnel in preceding path, active and standby mark, label stack information and the outgoing interface of lsp tunnel are switched in replacement.
Wherein, when switch in said generation path, obtain switched path attribute and corresponding outer layer label before, also comprise:
Obtain the corresponding main subsequent use vpn label of said primary path, and store into and transmit with vpn label and said backup path correspondence.
The present invention also provides a kind of Provider Edge routing device PE, is applied among the MPLS Layer3 Virtual Private Network L3VPN, disposes on the said PE about being visited the primary path and the backup path of route, and said PE comprises:
Transmit memory cell, be used to store the corresponding main subsequent use vpn label of said primary path with vpn label and said backup path correspondence;
Switch rear path attribute acquiring unit, be used for when the path switching takes place, obtain switched path attribute and corresponding outer layer label, said path attribute comprises primary path or backup path;
The vpn label acquiring unit is used for the switched path attribute obtained according to said switching rear path attribute acquiring unit, obtains corresponding inner layer mark said transmitting in the transmitting of cell stores;
The message encapsulation unit, the vpn label that is used to use said outer layer label that said switching rear path attribute acquiring unit obtains and said vpn label acquiring unit to obtain carries out the encapsulation and the forwarding of message.
Wherein, said switching rear path attribute acquiring unit specifically is used for:
The path taking place when switching, obtains the said label switching path LSP Tunnel Identifier that carries in the transmitting of cell stores of transmitting; Obtain lsp tunnel according to the lsp tunnel sign, when said lsp tunnel was primary path, then switched path attribute was a primary path; When said lsp tunnel was backup path, then switched path attribute was a backup path.
Wherein, also comprise lsp tunnel list item memory cell, be used to store the lsp tunnel sign of the lsp tunnel of having set up, active and standby mark, label stack information and the outgoing interface of lsp tunnel;
Said switching rear path attribute acquiring unit specifically is used for, and is identified at according to lsp tunnel in the content of said lsp tunnel list item cell stores and searches the lsp tunnel list item; And, obtain the outer layer label of said lsp tunnel according to the label stack information of said lsp tunnel list item cell stores.
Wherein, Also comprise: lsp tunnel entry updating unit; Be used to find when current path breaks down the path switch take place before; In the lsp tunnel list item of said lsp tunnel list item cell stores, use the lsp tunnel sign of switching the corresponding lsp tunnel of rear path, active and standby mark, label stack information and the outgoing interface of lsp tunnel, the lsp tunnel sign of the corresponding lsp tunnel in preceding path, active and standby mark, label stack information and the outgoing interface in LSP tunnel are switched in replacement.
Wherein, also comprise: transmit updating block, be used to obtain the corresponding main subsequent use vpn label of said primary path, and send to the said memory cell of transmitting with vpn label and said backup path correspondence.
Compared with prior art, the present invention has the following advantages:
Stored the corresponding main subsequent use vpn label of primary path in the transmitting on PE in advance with vpn label and backup path correspondence; Path after basis is switched when path switching takes place is that primary path still is that backup path is selected corresponding inner layer mark and outer layer label; Avoided when path switching takes place, refreshing a large amount of forwarding-table items again, improved path switching speed.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the sketch map of BGP/MPLS VPN networking plan in the prior art;
Fig. 2 is the network diagram based on the path redundancy protection of MPLS VPN in the prior art;
Fig. 3 is the flow chart of the protection reverse method that provides among the present invention;
Fig. 4 is the structural representation of transmitting of providing among the present invention and lsp tunnel list item;
Fig. 5 is the structural representation of one group of networking scene providing among the present invention;
Fig. 6 is the structural representation of the PE that provides among the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The invention provides a kind of protection reverse method; Be applied to the PE among the MPLS L3VPN; Dispose on this PE about being visited the primary path and the backup path of route; Store the corresponding main subsequent use vpn label with vpn label and backup path correspondence of primary path in the transmitting of PE in advance, this method is as shown in Figure 3, comprising:
When step s301, the switching of generation path, obtain switched path attribute and corresponding outer layer label, path attribute comprises primary path or backup path;
Step s302, in transmitting, obtain corresponding inner layer mark according to switched path attribute;
Encapsulation and forwarding that outer layer label that step s303, use are obtained and Intranet label carry out message.
In MPLS L3VPN scene, to carry out in the process of active-standby path switching, the information that need change comprises: vpn label (being private network tags) and corresponding lsp tunnel.According to the realization in the prior art scheme; Carry out the switching of primary path and backup path if desired; Need refresh transmitting and the lsp tunnel list item among the PE so one by one, this refresh process will be very slow under the bigger situation of list item quantity, thereby influence the speed that switch in the path.
In the protection reverse method provided by the invention,, transmitting with the lsp tunnel list item among the PE revised in order to support to switch fast.Wherein, in transmitting, increase subsequent use private network tags, in the lsp tunnel list item, increasing current lsp tunnel is main path or the sign that is equipped with the path.After increasing foregoing, as shown in Figure 4:
Content in transmitting comprises:
◆ the master uses vpn label, is used to identify the corresponding main vpn label of using of primary path;
◆ subsequent use vpn label is used to identify the corresponding subsequent use vpn label of backup path;
◆ the index of lsp tunnel or pointer, as the lsp tunnel sign, be used to indicate employed lsp tunnel, according to the index or the pointer of this lsp tunnel, can know corresponding lsp tunnel list item.
Content comprises in the lsp tunnel list item:
◆ lsp tunnel index/pointer:, be used to identify lsp tunnel as the lsp tunnel sign;
◆ Flag (active and standby mark): being used to identify this lsp tunnel is primary path or backup path, for example representes primary path with Main, and Backup representes backup path;
◆ LSP Label Stack (LSP label stack): be used to deposit outer layer label (being the public network label);
◆ Out Interface (outgoing interface): the outgoing interface that is used to identify lsp tunnel.
According to above-mentioned transmitting (being generally the FTN list item) and lsp tunnel list item, can transmit and handle and the path switching processing.
When carrying out the message forwarding, PE at first through the VPN ID and the purpose IP of message, searches FTN (FEC To NHLFE map, the mapping of FEC to NHLFE) and transmits, and gets access to corresponding master with vpn label and subsequent use vpn label.Wherein, FEC is (Forwarding Equivalence Class) forwarding equivalence class, and NHLFE (Next Hop Label forwarding Entry) is next redirect clockwork spring order.Simultaneously index or the pointer according to lsp tunnel in the FTN list item finds lsp tunnel, obtains the active and standby mark in the lsp tunnel, if mark is Main, then from FTN transmits, obtains and mainly uses vpn label, otherwise obtain the subsequent use vpn label of FTN in transmitting.
PE is message encapsulate inner layer label and public network label according to the label stack information acquisition public network label information in the lsp tunnel information afterwards, according to 2 layers of link header of outgoing interface information encapsulation, forwards the port of message appointment from the lsp tunnel list item again.
When finding that current path breaks down; Judgement need be carried out the switching of primary path and backup path; Owing to when primary path is effective, just all added to during FTN transmits with vpn label and subsequent use vpn label main, thus the path when switching the FTN table do not need renewal.Only need with the tunnel information on the lsp tunnel information replacement main path that is equipped with on the path, the lsp tunnel pointer in replacement process, transmitting is constant; Be changed to Backup to the active and standby sign in the lsp tunnel list item then.Concrete; Before generation is switched in the path; In the lsp tunnel list item; Use the lsp tunnel sign of switching the corresponding lsp tunnel of rear path, active and standby mark, label stack information and the outgoing interface of lsp tunnel, the lsp tunnel sign of the corresponding lsp tunnel in preceding path, active and standby mark, label stack information and the outgoing interface of lsp tunnel are switched in replacement.Directly switch in the laggard walking along the street that finishes of lsp tunnel entry updating, can obtain switched path attribute and corresponding outer layer label, and then in transmitting, obtain corresponding inner layer mark according to switched path attribute according to the lsp tunnel list item after this renewal; And encapsulation and the forwarding of using the outer layer label obtain and Intranet label to carry out message.
The embodiment of protection reverse method among the present invention is described below in conjunction with a concrete application scenarios:
Having set up two VPN in the application scenarios of the present invention, is respectively VPN1 and VPN2, and FEC and the label information of VPN1 identify with grey font, and FEC and the label information of VPN2 identify with black font.
Wherein, CE1 and CE3 belong to VPN1, and CE2 and CE4 belong to VPN2, and CE1 is connected to PE1 simultaneously and PE2 formation CE is dual-homed; CE2 is connected to PE1 simultaneously and PE2 formation CE is dual-homed.For VPN1, CE3-PE3-PE1-CE1 is a main path, and CE3-PE3-PE2-CE1 is a backup path; For VPN2, CE4-PE3-PE1-CE2 is a main path, and CE4-PE3-PE2-CE2 is a backup path.Promptly for PE3, PE3 is last to be disposed about by primary path and the backup path of visit route CE1 and CE2, also is that CE is dual-homed.
The information of lsp tunnel is following in this networking scene: the lsp tunnel label 1024 that PE1 distributes to PE3 is main tunnel labels; The tunnel label 1025 that PE2 distributes to PE3 is backup tunnel labels; Before not switching, what the current reality of PE3 was used is main tunnel, supposes that the lsp tunnel index is 0, and the form of lsp tunnel list item can be as shown in table 1:
The content of table 1.LSP tunnel list item
Lsp tunnel information | ? |
Lsp tunnel | 0 |
Flag (active and standby mark) | Main (main using) |
LSP?Label? |
1024 |
Out?Interface | The interface that connects PE1 |
The master that VPN1 private network tags information: PE1 distributes to PE3 is 4096 with private network tags, and the subsequent use private network tags that PE2 distributes to PE3 is 8192; The FTN forwarding-table item content of the last VPN1 of PE3 is as shown in table 2:
The content of table 2.FTN forwarding-table item
1.1.1.1/24 FTN information | ? |
The main private network tags of using | 4096 |
Subsequent use |
8192 |
The lsp tunnel index | 0 |
The master that VPN2 private network tags information: PE1 distributes to PE3 is 4097 with private network tags, and the subsequent use private network tags that PE2 distributes to PE3 is 8193; The FTN forwarding-table item content of the last VPN2 of PE3 is as shown in table 3:
The content of table 3.FTN forwarding-table item
1.1.1.1/24 FTN information | ? |
The main private network tags of using | 4097 |
Subsequent use |
8193 |
The lsp tunnel index | 0 |
But when the main path PE3-PE1 time spent; On PE3; (message for VPN1 uses 4096 with vpn label for all get the master from the message of VPN1 and VPN2; Use 4097 for the message of VPN2) with main with lsp tunnel label 1024 composition label stacks, for being forwarded to PE1 behind the message interpolation vpn label that receives from CE and the outer layer label.In case main path PE3-PE1 interrupts, launch when being equipped with path P E3-PE2, the FTN of VPN1 and VPN2 transmits all and need not refresh, and only needs the list item of lsp tunnel shown in the table 1 is revised as lsp tunnel list item as shown in table 4:
The content of table 4.LSP tunnel list item
Lsp tunnel information | ? |
Self lsp tunnel index | 0 |
Flag (active and standby mark) | Backup (subsequent use) |
LSP? |
1025 |
Out?Interface | The interface that connects PE2 |
At this moment; After completion is switched in the path; On PE3; Form label stacks for all get subsequent use vpn label (use 8192 for the message of VPN1, use 8293) from the message of VPN1 and VPN2 with lsp tunnel label 1025, for being forwarded to PE1 behind the message interpolation vpn label that receives from CE and the outer layer label for the message of VPN2.
Through said method provided by the invention; Stored the corresponding main subsequent use vpn label of primary path in the transmitting on PE in advance with vpn label and backup path correspondence; Path after basis is switched when path switching takes place is that primary path still is that backup path is selected corresponding inner layer mark and outer layer label; Avoided when path switching takes place, refreshing a large amount of forwarding-table items again, improved path switching speed.No matter in each VPN how many bar VPN routes are arranged, only need to carry out the switching of a tunnel list item, than being easier to realize that 50 milliseconds of carrier-class protections switch requirement.
The present invention also provides a kind of PE, is applied among the MPLS Layer3 Virtual Private Network L3VPN, and PE is last to be disposed about being visited the primary path and the backup path of route, and as shown in Figure 6, this PE comprises:
Transmit memory cell 10, be used to store the corresponding main subsequent use vpn label of primary path with vpn label and backup path correspondence;
Switch rear path attribute acquiring unit 20, be used for when the path switching takes place, obtain switched path attribute and corresponding outer layer label, path attribute comprises primary path or backup path;
Vpn label acquiring unit 30 is used for according to switching the switched path attribute that rear path attribute acquiring unit 20 obtains, and in transmitting the transmitting of memory cell 10 storages, obtains corresponding inner layer mark;
Concrete, this PE can also comprise:
Lsp tunnel list item memory cell 50 is used to store the lsp tunnel sign of the lsp tunnel of having set up, active and standby mark, label stack information and the outgoing interface of lsp tunnel; According to the content of this unit storage, when the path switching takes place, switch rear path attribute acquiring unit 20 and specifically be used for: obtain and transmit the lsp tunnel sign that transmitting of memory cell 10 storages carried; Be identified at according to lsp tunnel in the content of lsp tunnel list item memory cell 40 storage and search the lsp tunnel list item; When lsp tunnel was primary path, then switched path attribute was a primary path; When lsp tunnel was backup path, then switched path attribute was a backup path.In addition, switch the label stack information of rear path attribute acquiring unit 20, obtain the outer layer label of lsp tunnel according to the lsp tunnel list item of lsp tunnel list item memory cell 40 storages.
Lsp tunnel entry updating unit 60; When being used to find that current path breaks down; Before generation is switched in the path; In the lsp tunnel list item of lsp tunnel list item memory cell 40 storages, use the lsp tunnel sign of switching the corresponding lsp tunnel of rear path, active and standby mark, label stack information and the outgoing interface of lsp tunnel, the lsp tunnel sign of the corresponding lsp tunnel in preceding path, active and standby mark, label stack information and the outgoing interface of lsp tunnel are switched in replacement.
Transmit updating block 70, be used to obtain the corresponding main subsequent use vpn label of primary path, and send to and transmit memory cell 10 with vpn label and backup path correspondence.
Through the said equipment provided by the invention; Stored the corresponding main subsequent use vpn label of primary path in the transmitting on PE in advance with vpn label and backup path correspondence; Path after basis is switched when path switching takes place is that primary path still is that backup path is selected corresponding inner layer mark and outer layer label; Avoided when path switching takes place, refreshing a large amount of forwarding-table items again, improved path switching speed.No matter in each VPN how many bar VPN routes are arranged, only need to carry out the switching of a tunnel list item, than being easier to realize that 50 milliseconds of carrier-class protections switch requirement.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, unit in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the unit in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.A unit can be merged in the unit of the foregoing description, also can further split into a plurality of subelements.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Claims (7)
1. protect reverse method for one kind; It is characterized in that; Be applied to the Provider Edge routing device PE among the multiprotocol label switching MPLS Layer3 Virtual Private Network L3VPN; Dispose on the said PE about by the primary path and the backup path of visit route, store the corresponding main subsequent use vpn label with vpn label and said backup path correspondence of said primary path in the transmitting of said PE in advance, said method comprises:
When finding that current path breaks down; Before generation is switched in the path; In the lsp tunnel list item; Use the lsp tunnel sign of switching the corresponding lsp tunnel of rear path, active and standby mark, label stack information and the outgoing interface of lsp tunnel, the lsp tunnel sign of the corresponding lsp tunnel in preceding path, active and standby mark, label stack information and the outgoing interface of lsp tunnel are switched in replacement;
When the path switching takes place, obtain switched path attribute and corresponding outer layer label, said path attribute comprises primary path or backup path;
In said transmitting, obtain corresponding inner layer mark according to switched path attribute;
Said outer layer label that use is obtained and vpn label carry out the encapsulation and the forwarding of message.
2. the method for claim 1 is characterized in that, when switch in said generation path, obtains switched path attribute and comprises:
When the path switching takes place, obtain the label switching path LSP Tunnel Identifier that carries in transmitting;
Obtain lsp tunnel according to the lsp tunnel sign, when said lsp tunnel was primary path, then switched path attribute was a primary path; When said lsp tunnel was backup path, then switched path attribute was a backup path.
3. method as claimed in claim 2; It is characterized in that; Saidly obtain lsp tunnel according to lsp tunnel sign and comprise: search the lsp tunnel list item according to the lsp tunnel sign, comprise the lsp tunnel sign of the lsp tunnel of having set up, active and standby mark, label stack information and the outgoing interface of lsp tunnel in the said lsp tunnel list item;
Saidly obtain corresponding outer layer label and comprise:, obtain the outer layer label of said lsp tunnel according to said label stack information.
4. like each described method in the claim 1 to 3, it is characterized in that, when switch in said generation path, obtain switched path attribute and corresponding outer layer label before, also comprise:
Obtain the corresponding main subsequent use vpn label of said primary path, and store into and transmit with vpn label and said backup path correspondence.
5. a Provider Edge routing device PE is characterized in that, is applied among the MPLS Layer3 Virtual Private Network L3VPN, disposes on the said PE about being visited the primary path and the backup path of route, and said PE comprises:
Transmit memory cell, be used to store the corresponding main subsequent use vpn label of said primary path with vpn label and said backup path correspondence;
Switch rear path attribute acquiring unit, be used for when the path switching takes place, obtain switched path attribute and corresponding outer layer label, said path attribute comprises primary path or backup path;
The vpn label acquiring unit is used for the switched path attribute obtained according to said switching rear path attribute acquiring unit, obtains corresponding inner layer mark said transmitting in the transmitting of cell stores;
The message encapsulation unit, the vpn label that is used to use said outer layer label that said switching rear path attribute acquiring unit obtains and said vpn label acquiring unit to obtain carries out the encapsulation and the forwarding of message;
Lsp tunnel list item memory cell is used to store the lsp tunnel sign of the lsp tunnel of having set up, active and standby mark, label stack information and the outgoing interface of lsp tunnel;
Said switching rear path attribute acquiring unit specifically is used for, and is identified at according to lsp tunnel in the content of said lsp tunnel list item cell stores and searches the lsp tunnel list item; And, obtain the outer layer label of said lsp tunnel according to the label stack information of said lsp tunnel list item cell stores;
Lsp tunnel entry updating unit; When being used to find that current path breaks down; Before generation is switched in the path; In the lsp tunnel list item of said lsp tunnel list item cell stores, use the lsp tunnel sign of switching the corresponding lsp tunnel of rear path, active and standby mark, label stack information and the outgoing interface of lsp tunnel, the lsp tunnel sign of the corresponding lsp tunnel in preceding path, active and standby mark, label stack information and the outgoing interface of lsp tunnel are switched in replacement.
6. PE as claimed in claim 5 is characterized in that, said switching rear path attribute acquiring unit specifically is used for:
The path taking place when switching, obtains the said label switching path LSP Tunnel Identifier that carries in the transmitting of cell stores of transmitting; Obtain lsp tunnel according to the lsp tunnel sign, when said lsp tunnel was primary path, then switched path attribute was a primary path; When said lsp tunnel was backup path, then switched path attribute was a backup path.
7. like each described PE in the claim 5 to 6, it is characterized in that, also comprise:
Transmit updating block, be used to obtain the corresponding main subsequent use vpn label of said primary path, and send to the said memory cell of transmitting with vpn label and said backup path correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910180033A CN101667970B (en) | 2009-10-23 | 2009-10-23 | Protection switching method and equipment thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910180033A CN101667970B (en) | 2009-10-23 | 2009-10-23 | Protection switching method and equipment thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101667970A CN101667970A (en) | 2010-03-10 |
CN101667970B true CN101667970B (en) | 2012-09-26 |
Family
ID=41804415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910180033A Active CN101667970B (en) | 2009-10-23 | 2009-10-23 | Protection switching method and equipment thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101667970B (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820395B (en) * | 2010-05-19 | 2012-11-28 | 杭州华三通信技术有限公司 | Routing information configuration and private network label addition method and device based on MPLS (Multiple Protocol Label Switching) |
CN101860482B (en) * | 2010-05-25 | 2014-12-17 | 中兴通讯股份有限公司 | Two-layer virtual private network fast re-route method and device |
CN102064961B (en) * | 2010-12-02 | 2014-04-30 | 中兴通讯股份有限公司 | Multilayer protection method and device |
CN102035681B (en) * | 2010-12-17 | 2015-07-22 | 中兴通讯股份有限公司 | Link protection method and system for virtual private network |
CN102123097B (en) * | 2011-03-14 | 2015-05-20 | 杭州华三通信技术有限公司 | Method and device for protecting router |
CN102377601B (en) * | 2011-10-14 | 2014-03-26 | 杭州华三通信技术有限公司 | LSP (Local Switched Path) fault notification method and LSP fault notification device |
CN102315972B (en) * | 2011-10-14 | 2013-12-25 | 杭州华三通信技术有限公司 | Method for realizing label switching path (LSP) switching and device |
CN103326943B (en) * | 2012-03-23 | 2017-03-01 | 日电(中国)有限公司 | Data flow heavy route method and controller |
CN102638413B (en) * | 2012-05-14 | 2015-06-10 | 杭州华三通信技术有限公司 | Route issuing method and provider edge device |
CN102870432B (en) * | 2012-06-20 | 2015-04-08 | 华为技术有限公司 | Method, system and node device for recovery path establishment |
CN103166846B (en) * | 2013-03-27 | 2016-11-09 | 杭州华三通信技术有限公司 | A kind of message forwarding method and equipment |
CN103259721B (en) * | 2013-04-16 | 2016-08-17 | 杭州华三通信技术有限公司 | Message forwarding method in SPBM network and device |
CN104426763B (en) | 2013-08-21 | 2018-10-26 | 南京中兴新软件有限责任公司 | Tunnel switching method, device and interchanger |
CN104954248B (en) * | 2014-03-27 | 2018-04-20 | 华为技术有限公司 | Message transmission pretection switch method, equipment and system |
CN107332696B (en) * | 2017-06-15 | 2019-10-25 | 烽火通信科技股份有限公司 | Solve the system and method for relaying configuration random ordering |
CN108494474A (en) * | 2018-03-23 | 2018-09-04 | 烽火通信科技股份有限公司 | Realize that business is superimposed the method and system of pretection switch using OAM message |
CN109547269B (en) * | 2019-01-04 | 2021-12-14 | 烽火通信科技股份有限公司 | Method and device for realizing LSP protection of IP RAN equipment |
CN109873766B (en) * | 2019-03-29 | 2020-01-03 | 北京华三通信技术有限公司 | Message transmission method and device |
CN110572317B (en) * | 2019-07-16 | 2022-04-08 | 烽火通信科技股份有限公司 | Method and system for realizing dynamic ARP hot backup in telecommunication network |
CN115037677A (en) * | 2022-04-02 | 2022-09-09 | 烽火通信科技股份有限公司 | Method and device for protecting frr scene |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658569A (en) * | 2004-02-21 | 2005-08-24 | 华为技术有限公司 | Method for supressing oscillation of multi-protocol tag exchange tunnel in virtual private netwrok |
CN1909501A (en) * | 2005-08-05 | 2007-02-07 | 华为技术有限公司 | Method for end to end service rapid convergence and route device |
WO2008037918A1 (en) * | 2006-09-25 | 2008-04-03 | France Telecom | System for securing the access to a destination in a virtual private network |
-
2009
- 2009-10-23 CN CN200910180033A patent/CN101667970B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658569A (en) * | 2004-02-21 | 2005-08-24 | 华为技术有限公司 | Method for supressing oscillation of multi-protocol tag exchange tunnel in virtual private netwrok |
CN1909501A (en) * | 2005-08-05 | 2007-02-07 | 华为技术有限公司 | Method for end to end service rapid convergence and route device |
WO2008037918A1 (en) * | 2006-09-25 | 2008-04-03 | France Telecom | System for securing the access to a destination in a virtual private network |
Also Published As
Publication number | Publication date |
---|---|
CN101667970A (en) | 2010-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101667970B (en) | Protection switching method and equipment thereof | |
JP7152533B2 (en) | Method, apparatus, and system for handling transmission path failures | |
CN101820395B (en) | Routing information configuration and private network label addition method and device based on MPLS (Multiple Protocol Label Switching) | |
CN105453491B (en) | Long-range LFA is extended quickly to re-route | |
CN101651630A (en) | Switching method and switching device based on link fault | |
CN100450039C (en) | Fast convergence method and device of the end-to-end service | |
CN103475581B (en) | A kind of network tab distribution, equipment and system | |
CN107040462A (en) | Method for routing and intermediate router | |
CN109873760A (en) | Handle the method and apparatus of routing and the method and apparatus of data transmission | |
CN101137974A (en) | Enhanced switchover for mpls fast reroute | |
CN101217470B (en) | Method and device for forwarding message | |
CN102187628B (en) | Route update method and router | |
CN102075419B (en) | Method for generating and transmitting three-layer virtual special network equative routing and edge router | |
CN105594167A (en) | Method, controller, forwarding device, and network system for forwarding packets | |
CN103475578B (en) | A kind of routing resource and device | |
CN101753464A (en) | Routing convergence method, provider edge devices and virtual private network system | |
CN102064995A (en) | Method and device for link protection in virtual private local area network | |
CN104396197A (en) | Selecting between equal cost shortest paths in a 802.1aq network using split tiebreakers | |
CN101355486A (en) | Method, equipment and system for switching route | |
CN104426763A (en) | Channel switching method and apparatus, and switch | |
CN101299723B (en) | Method and apparatus for managing label switching route tunnel information | |
CN105637807A (en) | Method, controller, forwarding device, and network system for forwarding packets | |
CN103326915A (en) | Method, device and system for achieving three-layer VPN | |
CN106572012A (en) | VPN FRR implementation method and PE equipment | |
CN102368726A (en) | Forwarding method and device applied to L2VPN (layer 2 virtual private network) |
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 | ||
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. |