MPLS L3VPN private virtual net fast rerouting methods and system
Technical field
The present invention relates to MPLS (Multi-Protocol Label Switching, multiprotocol label switching) technology neck
Domain, more particularly, to a kind of MPLS L3VPN (Lay3 Virtual Private Network, three layer virtual private network)
Quick heavy-route (Fast Reroute, the FRR) method of private virtual net (Virtual Private Network, VPN) and it is
System.
Background technology
MPLS L3VPN are a kind of based on service in service provider (Service Provider, SP) vpn solution
The L3VPN technologies of provider edge (Provider Edge, PE) equipment, it uses BGP (Border Gateway
Protocol, Border Gateway Protocol) VPN routes are issued on service provider backbone, using MPLS in service provider's bone
Dry online forwarding VPN messages.
MPLS L3VPN networking modes are flexible, scalability is good, and can easily support MPLS QoS (Quality of
Service, service quality) and MPLS TE (Traffic Engineering, traffic engineering), therefore obtain more and more should
With.
MPLS L3VPN models are made up of following three part:
CE (Customer Edge) equipment:User network boundary device, have interface directly with SP (Service
Provider, service provider) it is connected;CE can be equipment or interchanger or a main frame.CE " perception " less than
VPN presence, it is not required that MPLS must be supported;
PE (Provider Edge) equipment:Service provider edge devices, are the edge devices of service provider network,
It is joined directly together with the CE of user.In an mpls network, all processing to VPN all occur on PE;
P (Provider) equipment:Backbone equipment in service provider network, is not joined directly together with CE.P equipment is only needed to
Possess basic MPLS transfer capabilitys.
Wherein, CE and PE division is mainly according to SP and user range of management, and CE and PE are both range of managements
Border.CE equipment is typically a router, after the CE and PE being joined directly together sets up syntople, VPNs of the CE this website
Route is distributed to PE, and acquires from PE distal end VPN route.Routing iinformation is exchanged using BGP/IGP between CE and PE, can also
Use static routing.
PE is acquired after the local VPN routing iinformations of CE from CE, passes through BGP and other PE switched vpcs N routing iinformations.PE is route
Device only safeguards the routing iinformation for the VPN being joined directly together with it, and all VPN routes in service provider network are not safeguarded.
P routers are only maintained into PE route, it is not necessary to understand any VPN routing iinformations.
When in MPLS key transfers on network VPN flows, entry PE is used as Ingress (entrance) LSR (Label Switch
Router, LSR), it is Transit (forwarding) that outlet PE is then used as Egress (outlet) LSR, P router
LSR。
Forwarding reliability based on MPLS L3VPN service messages considers, can be all superimposed in general networking using VPN FRR
(tunnel FRR may be TE FRR or LDP (Label Distribution Protocol, tag distribution protocol) to tunnel FRR
FRR mode) carries out networking.As shown in figure 1, being classical MPLS L3VPN VPN FRR superpositions tunnel FRR networking signal
Figure, including 2 CE equipment, respectively CE1, CE2, respectively 4 P equipment, P1, P2, P3, P4, and 3 PE equipment, respectively
For PE1, PE2, PE3;Wherein, CE1, which goes to CE2 path, four, is respectively:PE1- > P1- > PE2, PE1- > P2- >
PE2, PE1- > P3- > PE3, PE1- > P4- > PE3;PE1- > PE2 path and PE1- > PE3 path constitute VPN
Based on FRR, wherein PE1- > PE2 path, PE1- > P1- > PE2 and PE1- > P2- > PE2 constitute tunnel FRR, PE1- >
PE3 path is standby, and PE1- > P3- > PE3 and PE1- > P4- > PE3 also constitute tunnel FRR.
The service message come in from CE equipment needs to reach PE2 by PE1, there is two paths:Operating path PE1- > P1-
> PE2 and Protection path PE1- > P2- > PE2, when detect operating path it is problematic when, PE1 needs to switch service message
It is transmitted to Protection path.
Fig. 2 is the up handling process schematic diagram for entering the message of PE1 equipment in Fig. 1, describes ASIC
The L3VPN of (Application Specific Integrated Circuit, application specific integrated circuit) chip handling process,
Enter the message of PE1 equipment from CE equipment, it is necessary to carry out 3 layers of VPN forwardings, by route querying, obtain next-hop forwarding letter
Breath is forwarded.
Fig. 3 is the refinement diagram of next-hop forwarding information, and next-hop forwarding information mainly includes two parts:Part I is
Exit port information;Part II includes DMAC (Destination Media Access Control, purpose media interviews control
System) information, by DMAC information indexs, the DMAC of next-hop device can be found;Pseudo line tag information, it is often marked often to route
Label or every label per VPN instance, can be searched by pseudo line tag information index and obtained;And three layer interface information, including
SMAC (source MAC), VLAN (Virtual Local Area Network, VLAN) ID (identity number) and outer layer
MPLS label, can be searched by three layer interface information indexs and obtained.
Fig. 4 shows existing MPLS L3VPN VPN FRR schematic diagrames, first during traditional MPLS L3VPN VPN FRR switchings
All possible next-hop forward table (may at most there are 4) is first created, when switching is needed, further according to protecting tunnel group
The next-hop that state and VPN protection group Determines are finally forwarded, when VPN protection group states change or protecting tunnel group
When state changes, it is required for progress to judge whether to need switching, so that while substantial amounts of next-hop resource is consumed,
So that the complexity of flow is also larger.
The content of the invention
It is an object of the present invention to provide a kind of VPN FRR method and devices of MPLS L3VPN systems, to optimize existing skill
Flow is complicated when VPN FRR switch in art, the problem of resource cost is big.
The invention provides a kind of VPN FRR methods of MPLS L3VPN systems, the above method is for being superimposed with tunnel FRR
VPN FRR, the exit port information of the next-hop routing forwarding information in its active and standby path is disposed as internal trunk ID,
And make above-mentioned trunk ID consistent with the ID of the protecting tunnel group of respective path;
When the protecting tunnel group switching in above-mentioned VPN FRR active/standby path, then the next-hop forwarding of respective paths is updated
Trunk ID (identity number), DMAC information and three layer interface information in information.
Preferably, during the protecting tunnel group switching in above-mentioned VPN FRR active/standby path, then the next of respective paths is updated
Redirect trunk ID, DMAC information in photos and sending messages and three layer interface information Steps are specifically included:
When the protecting tunnel group of above-mentioned VPN FRR main path is switched to main tunnel FRR, then above-mentioned VPN FRR are updated
Main path next-hop forwarding information in trunk ID, DMAC information and three layer interface information;
When the protecting tunnel group of above-mentioned VPN FRR main path is switched to standby tunnel FRR, then above-mentioned VPN FRR are updated
Main path next-hop forwarding information in trunk ID, DMAC information and three layer interface information;
When the protecting tunnel group in above-mentioned VPN FRR standby path is switched to main tunnel FRR, then above-mentioned VPN FRR are updated
Standby path next-hop forwarding information in trunk ID, DMAC information and three layer interface information;
When the protecting tunnel group in above-mentioned VPN FRR standby path is switched to standby tunnel FRR, then above-mentioned VPN FRR are updated
Standby path next-hop forwarding information in trunk ID, DMAC information and three layer interface information.
Preferably, when the protecting tunnel group of above-mentioned VPN FRR main path is switched to main tunnel FRR, above-mentioned renewal VPN
Trunk ID, DMAC information and three layer interface information Steps in the next-hop forwarding information of FRR main path are specially:
Trunk ID in the next-hop forwarding information of above-mentioned main path are changed to above-mentioned main tunnel FRR exit port
Number, the P equipment that the DMAC information in above-mentioned main next-hop forwarding information is changed to be connected with above-mentioned main tunnel FRR exit port
DMAC;And three layer interface information in the above-mentioned main next-hop forwarding information of renewal, make all VPN FRR main next-hop all
Point to three layer interface index.
Preferably, when the protecting tunnel group of above-mentioned VPN FRR main path is switched to standby tunnel FRR, above-mentioned renewal VPN
Trunk ID, DMAC information and three layer interface information in the next-hop forwarding information of FRR main path are specially:
Trunk ID in the next-hop forwarding information of above-mentioned main path are changed to above-mentioned standby tunnel FRR exit port
Number, the P equipment that the DMAC information in above-mentioned main next-hop forwarding information is changed to be connected with above-mentioned standby tunnel FRR exit port
DMAC;And three layer interface information in the above-mentioned main next-hop forwarding information of renewal, make all VPN FRR main next-hop all
Point to three layer interface index.
Preferably, when the protecting tunnel group in above-mentioned VPN FRR standby path is switched to main tunnel FRR, above-mentioned renewal VPN
Trunk ID, DMAC information and three layer interface information in the next-hop forwarding information in FRR standby path are specially:
Trunk ID in the next-hop forwarding information in above-mentioned standby path are changed to above-mentioned main tunnel FRR exit port
Number, the P equipment that the DMAC information in above-mentioned slave next-hop forwarding information is changed to be connected with above-mentioned main tunnel FRR exit port
DMAC;And three layer interface information in the above-mentioned slave next-hop forwarding information of renewal, make all VPN FRR slave next-hop all
Point to three layer interface index.
Preferably, when the protecting tunnel group in above-mentioned VPN FRR standby path is switched to standby tunnel FRR, above-mentioned renewal VPN
Trunk ID, DMAC information and three layer interface information in the next-hop forwarding information in FRR standby path are specially:
Trunk ID in the next-hop forwarding information in above-mentioned standby path are changed to above-mentioned standby tunnel FRR exit port
Number, the P equipment that the DMAC information in above-mentioned slave next-hop forwarding information is changed to be connected with above-mentioned standby tunnel FRR exit port
DMAC;And three layer interface information in the above-mentioned slave next-hop forwarding information of renewal, make all VPN FRR slave next-hop all
Point to three layer interface index.
Preferably, in the above method,
When above-mentioned VPN FRR are switched to main path, then corresponding route is directly switch to main next-hop;
When above-mentioned VPN FRR are switched to standby path, then corresponding route is directly switch to slave next-hop.
Invention further provides a kind of VPN FRR devices of MPLS L3VPN systems, said apparatus includes setting mould
Block and handover module,
Above-mentioned setup module, the next-hop routing forwarding for the active and standby path of the VPN FRR by tunnel FRR is superimposed with
The exit port information of information is arranged to internal trunk ID, and makes above-mentioned trunk ID and above-mentioned active and standby path protecting tunnel
The ID of group is consistent;
Above-mentioned handover module, for when the protecting tunnel group in VPN FRR active/standby path switches, updating respective paths
Next-hop forwarding information in trunk ID, DMAC information and three layer interface information.
Preferably, above-mentioned handover module includes judging submodule, updates submodule and path switching submodule,
Above-mentioned judging submodule, for judging currently to switch to the active and standby path switchings of VPN FRR, or protecting tunnel group
Switching;When currently switching to the active and standby paths of VPN FRR to switch, it is that main path switches to determine whether current switching, or standby
Path switches, and will determine that result is sent to above-mentioned path switching submodule;When currently switching to protecting tunnel group to switch, enter one
Step judgement is the protecting tunnel group switching of main path, or for the protecting tunnel group switching in path, and in the tunnel for being main path
When protection group switches, judgement is to switch to main tunnel FRR, is also to switch to standby tunnel FRR;It is being the protecting tunnel group in standby path
During switching, judgement is to switch to main tunnel FRR, is also to switch to standby tunnel FRR, will determine that result is sent to above-mentioned renewal submodule
Block;
Above-mentioned renewal submodule, for according to the judged result received, the next-hop route for updating above-mentioned respective paths to turn
Trunk ID, DMAC information and three layer interface information in the next-hop forwarding information of photos and sending messages;
Above-mentioned path switching submodule, for according to the judged result received, by corresponding route handoff to main next-hop,
Or slave next-hop.
Preferably, above-mentioned renewal submodule, is additionally operable to the protecting tunnel for VPN FRR main path in above-mentioned judged result
When group is switched to main tunnel FRR, the trunk ID in the next-hop forwarding information of above-mentioned main path are changed to above-mentioned main tunnel
FRR go out port numbers, the exit port with above-mentioned main tunnel FRR is changed to by the DMAC information in above-mentioned main next-hop forwarding information
The DMAC of the P equipment of connection;And three layer interface information in the above-mentioned main next-hop forwarding information of renewal, make all VPN FRR
Main next-hop all point to three layer interface index;
When above-mentioned judged result is switched to standby tunnel FRR for the protecting tunnel group of VPN FRR main path, by above-mentioned master
Trunk ID in the next-hop forwarding information in path are changed to above-mentioned standby tunnel FRR go out port numbers, by above-mentioned main next-hop
DMAC information in forwarding information is changed to the DMAC for the P equipment being connected with above-mentioned standby tunnel FRR exit port;And on updating
Three layer interface information in main next-hop forwarding information are stated, all VPN FRR main next-hop is all pointed to the three layer interfaces rope
Draw;
, will be above-mentioned standby when above-mentioned judged result is switched to main tunnel FRR for the protecting tunnel group in VPN FRR standby path
Trunk ID in the next-hop forwarding information in path are changed to above-mentioned main tunnel FRR go out port numbers, by above-mentioned slave next-hop
DMAC information in forwarding information is changed to the DMAC for the P equipment being connected with above-mentioned main tunnel FRR exit port;And on updating
Three layer interface information in slave next-hop forwarding information are stated, all VPN FRR slave next-hop is all pointed to the three layer interfaces rope
Draw;
, will be above-mentioned standby when above-mentioned judged result is switched to standby tunnel FRR for the protecting tunnel group in VPN FRR standby path
Trunk ID in the next-hop forwarding information in path are changed to above-mentioned standby tunnel FRR go out port numbers, by above-mentioned slave next-hop
DMAC information in forwarding information is changed to the DMAC for the P equipment being connected with above-mentioned standby tunnel FRR exit port;And on updating
Three layer interface information in slave next-hop forwarding information are stated, all VPN FRR slave next-hop is all pointed to the three layer interfaces rope
Draw.
The invention enables the quantity of tunnel FRR switching times and L3VPN business are unrelated, while realizing tunnel FRR switchings
The separation switched with VPN FRR, greatly reduces switching time, reduces system complexity, while having saved substantial amounts of hard
Part resource, so as to save cost.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the present invention, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the networking schematic diagram that classical MPLS L3VPN VPN FRR are superimposed tunnel FRR;
Fig. 2 is the up handling process schematic diagram for entering the message of PE1 equipment in Fig. 1
Fig. 3 is the refinement diagram of next-hop forwarding information;
Fig. 4 is existing MPLS L3VPN VPN FRR schematic diagrames;
Fig. 5 is the flow chart of the VPN FRR method preferred embodiments of MPLS L3VPN systems of the present invention;
Fig. 6 is the theory diagram of the VPN FRR device preferred embodiments of MPLS L3VPN systems of the present invention.
Embodiment
In order that technical problems, technical solutions and advantages to be solved are clearer, clear, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
With reference to Fig. 3, after tunnel FRR, forwarding next-hop list item only has 3 places to need to change in fact, is respectively:Physics goes out
Port information, three layer interface information and DMAC information.
Wherein, DMAC information and three layer interface information are the corresponding forwarding next-hop indexes of all above business of three layer interfaces
To same multiplexing list item, can directly it change, and it is unrelated with number of routes;But the exit port information of each next-hop needs
Each next-hop is changed one by one.
Based on features above, the present invention realizes all related route correspondence next-hops in tunnel using inside trunk methods
Port switching, corresponding next-hop is inside protecting tunnel group, and protecting tunnel group and trunkID are corresponded, when need into
, just can be with as long as carrying out corresponding internal trunk ports switching when row protecting tunnel group switches.
As shown in figure 5, being the VPN FRR method flow diagrams of MPLS L3VPN systems of the present invention, present embodiment assumes that superposition
The exit port information for having tunnel FRR VPN FRR active and standby next-hop forwarding information has been arranged to internal trunk ID, and
Above-mentioned trunk ID are consistent with the ID of the protecting tunnel group of respective path;Such as, the ID of the protection path group of main path is 1, then
The trunk ID of the next-hop forwarding information of main path are trunk 1.Assuming that system need switching, the present embodiment specifically include with
Lower step:
Step S001:Current switching type is judged, if the active and standby path switchings of VPN FRR, then perform step S009;If
For the protecting tunnel group switching in VPN FRR active/standby path, then step S002 is performed;
Step S002:It is the protecting tunnel group switching of VPN FRR main path to judge above-mentioned protecting tunnel group switching, still
The protecting tunnel group in standby path switches, if the protecting tunnel group switching of main path, then perform step S003, if standby path
Protecting tunnel group switches, then performs step S006;
Step S003:Judge that the protecting tunnel group of above-mentioned VPN FRR main path is to switch to main tunnel FRR, still cut
Standby tunnel FRR is changed to, if being to switch to main tunnel FRR, step S004 is performed, if being to switch to standby tunnel FRR, step is performed
Rapid S005;
Step S004:Trunk ID, the purpose media access control DMAC changed in the next-hop forwarding information of main path
Information and three layer interface information, be specially:By the trunk ID in the next-hop forwarding information of above-mentioned VPN FRR main path
Be changed to above-mentioned main tunnel FRR go out port numbers, by the DMAC information in above-mentioned main next-hop forwarding information be changed to it is above-mentioned
The DMAC of the P equipment of main tunnel FRR exit port connection;And three layer interfaces updated in above-mentioned main next-hop forwarding information are believed
Breath, makes all VPN FRR main next-hop all point to three layer interface index, terminates;
Step S005:Trunk ID, the purpose media access control DMAC changed in the next-hop forwarding information of main path
Information and three layer interface information, be specially:By the trunk ID in the next-hop forwarding information of above-mentioned VPN FRR main path
Be changed to above-mentioned standby tunnel FRR go out port numbers, by the DMAC information in above-mentioned main next-hop forwarding information be changed to it is above-mentioned
The DMAC for the P equipment that standby tunnel FRR exit port is connected;And three layer interfaces updated in above-mentioned main next-hop forwarding information are believed
Breath, makes all VPN FRR main next-hop all point to three layer interface index, terminates;
Step S006:Judge that the protecting tunnel group in above-mentioned VPN FRR standby path is to switch to main tunnel FRR, still cut
Standby tunnel FRR is changed to, if being to switch to main tunnel FRR, step S007 is performed, if being to switch to standby tunnel FRR, step is performed
Rapid S008;
Step S007:Trunk ID in the next-hop forwarding information in above-mentioned standby path are changed to above-mentioned main tunnel FRR
Go out port numbers, the DMAC information in above-mentioned slave next-hop forwarding information is changed to and above-mentioned main tunnel FRR exit port company
The DMAC of the P equipment connect;And three layer interface information in the above-mentioned slave next-hop forwarding information of renewal, make all VPN FRR's
Slave next-hop all points to three layer interface index, terminates;
Step S008:Trunk ID in the next-hop forwarding information in above-mentioned standby path are changed to above-mentioned standby tunnel FRR
Go out port numbers, the DMAC information in above-mentioned slave next-hop forwarding information is changed to and above-mentioned standby tunnel FRR exit port connects
The DMAC of the P equipment connect;And three layer interface information in the above-mentioned slave next-hop forwarding information of renewal, make all VPN FRR's
Slave next-hop all points to three layer interface index, terminates;
Step S009:Judge that VPN FRR are to switch to main path and are also to switch to standby path, if being to switch to main path,
Then perform step S010;If being to switch to standby path, step S011 is performed;
Step S010:Main next-hop is switched to, is terminated;
Step S011:Slave next-hop is switched to, is terminated.
As shown in figure 1, the path that CE1 goes to CE2 has four, it is respectively:PE1- > P1- > PE2, PE1- > P2- >
PE2, PE1- > P3- > PE3, PE1- > P4- > PE3, it is assumed that this four paths correspondence PE1 exit port is respectively 1,2,3,4.
In figure, PE1- > PE2, PE1- > PE3 path constitute VPN FRR, PE1- > P1- > PE2, PE1- > P2- > PE2, PE1-
> P3- > PE3, PE1- > P4- > PE3 constitute tunnel FRR, it is assumed that PE1- > PE2 are main path, based on PE1- > P1- > PE2
Tunnel FRR, PE1- > P2- > PE2 are standby tunnel FRR, and protecting tunnel group ID be 1, PE1- > PE3 be for path,
PE1- > P3- > PE3 are main tunnel FRR, and PE1- > P4- > PE3 are standby tunnel FRR, and the ID of protecting tunnel group is 2,
Because VPN FRR have been superimposed tunnel FRR simultaneously, therefore end will be gone out in VPN FRR main next-hop forwarding information
Message breath is set to trunk 1 (correspondence protecting tunnel group 1), and the exit port in VPN FRR slave next-hop forwarding information is believed
Breath is set to trunk 2 (correspondence protecting tunnel group 2), according to the method for the present invention,
If the 1, protecting tunnel group 1 is switched to main tunnel FRR, only trunk 1 port need to be changed to 1, by main path
The DMAC information of next-hop forwarding information be changed to P1 DMAC, while changing three layers of the next-hop forwarding information of main path
Interface message, makes all VPN FRR main next-hop all point to this three layer interface index;
If the 2, protecting tunnel group 1 is switched to standby tunnel FRR, only trunk 1 port need to be changed to 2, by main path
The DMAC information of next-hop forwarding information be changed to P2 DMAC, while changing three layers of the next-hop forwarding information of main path
Interface message, makes all VPN FRR main next-hop all point to this three layer interface index;
If the 3, protecting tunnel group 2 is switched to main tunnel FRR, only trunk 2 port need to be changed to 3, will standby path
The DMAC information of next-hop forwarding information be changed to P3 DMAC, while three layers of the next-hop forwarding information in the standby path of change
Interface message, makes all VPN FRR slave next-hop all point to this three layer interface index;
If the 4, protecting tunnel group 2 is switched to standby tunnel FRR, only trunk 2 port need to be changed to 4, will standby path
The DMAC information of next-hop forwarding information be changed to P4 DMAC, while three layers of the next-hop forwarding information in the standby path of change
Interface message, makes all VPN FRR slave next-hop all point to this three layer interface index;
If the 5, the VPN FRR of certain route are switched to main path, by this route handoff to corresponding main next-hop;
If the 6, the VPN FRR of certain route are switched to standby path, by the corresponding slave next-hop of this route handoff.
Above-mentioned 1-4 scene belongs to the switching of protecting tunnel group, it is only necessary to switch 3 table entries, with switching time and route
Entry is unrelated;5-6 scene belongs to the active and standby path switching of route, and after the present invention, a route only needs switching once, nothing
The protecting tunnel group state of association need to be concerned about, switching flow is simple.
As shown in fig. 6, being the theory diagram of the VPN FRR devices of MPLS L3VPN systems of the present invention, the present embodiment includes
Setup module 01 and handover module 02, handover module 02 include judging submodule 21, update submodule 22 and path switching
Module 23,
Setup module 01, the next-hop routing forwarding letter for the active and standby path of the VPN FRR by tunnel FRR is superimposed with
The exit port information of breath is arranged to internal trunk ID, and makes above-mentioned trunk ID and above-mentioned active and standby path protecting tunnel group
ID it is consistent;
Handover module 02, for when the protecting tunnel group in VPN FRR active/standby path switches, updating respective paths
Trunk ID, DMAC information and three layer interface information in next-hop forwarding information;Specifically:
Judging submodule 21, for judging that current switching is the active and standby path switchings of VPN FRR, or VPN FRR master/
The protecting tunnel group in standby path switches;When currently switching to the active and standby paths of VPN FRR to switch, current switching is determined whether
It is main path switching, or for path switching, will determine that result is sent to path switching submodule 23;VPN is switched to currently
FRR active/standby path protecting tunnel group switching when, determine whether be VPN FRR main path protecting tunnel group switching,
Or the protecting tunnel group switching in VPN FRR standby path, and when being the protecting tunnel group switching of VPN FRR main path,
Judgement is to switch to main tunnel FRR, is also to switch to standby tunnel FRR;It is being the protecting tunnel group switching in VPN FRR standby path
When, judgement is to switch to main tunnel FRR, is also to switch to standby tunnel FRR, will determine that result is sent to renewal submodule 22;
Submodule 22 is updated, for according to the judged result received, updating the next-hop routing forwarding of above-mentioned respective paths
Trunk ID, DMAC information and three layer interface information in the next-hop forwarding information of information, be specially:In above-mentioned judgement knot
When fruit is switched to main tunnel FRR for the protecting tunnel group of VPN FRR main path, by the next-hop forwarding information of above-mentioned main path
In trunk ID be changed to above-mentioned main tunnel FRR go out port numbers, by the DMAC information in above-mentioned main next-hop forwarding information
It is changed to the DMAC of P equipment being connected with above-mentioned main tunnel FRR exit port;And update in above-mentioned main next-hop forwarding information
Three layer interface information, make all VPN FRR main next-hop all point to three layer interface index;It is in above-mentioned judged result
When the protecting tunnel group of VPN FRR main path is switched to standby tunnel FRR, by the next-hop forwarding information of above-mentioned main path
Trunk ID are changed to above-mentioned standby tunnel FRR go out port numbers, and the DMAC information in above-mentioned main next-hop forwarding information is changed
The DMAC for the P equipment being connected for the exit port with above-mentioned standby tunnel FRR;And three in the above-mentioned main next-hop forwarding information of renewal
Layer interface information, makes all VPN FRR main next-hop all point to three layer interface index;It is VPN in above-mentioned judged result
When the protecting tunnel group in FRR standby path is switched to main tunnel FRR, by the next-hop forwarding information in above-mentioned standby path
Trunk ID are changed to above-mentioned main tunnel FRR go out port numbers, and the DMAC information in above-mentioned slave next-hop forwarding information is changed
The DMAC for the P equipment being connected for the exit port with above-mentioned main tunnel FRR;And three in the above-mentioned slave next-hop forwarding information of renewal
Layer interface information, makes all VPN FRR slave next-hop all point to three layer interface index;It is VPN in above-mentioned judged result
When the protecting tunnel group in FRR standby path is switched to standby tunnel FRR, by the next-hop forwarding information in above-mentioned standby path
Trunk ID are changed to above-mentioned standby tunnel FRR go out port numbers, and the DMAC information in above-mentioned slave next-hop forwarding information is changed
The DMAC for the P equipment being connected for the exit port with above-mentioned standby tunnel FRR;And three in the above-mentioned slave next-hop forwarding information of renewal
Layer interface information, makes all VPN FRR slave next-hop all point to three layer interface index;
Path switching submodule 23, for according to the judged result received, by corresponding route handoff to main next-hop, or
Person's slave next-hop.
The preferred embodiments of the present invention have shown and described in described above, but as previously described, it should be understood that the present invention is not
Form disclosed herein is confined to, the exclusion to other embodiment is not to be taken as, and available for various other combinations, modification
And environment, and can be carried out in invention contemplated scope described herein by the technology or knowledge of above-mentioned teaching or association area
Change., then all should be in institute of the present invention and the change and change that those skilled in the art are carried out do not depart from the spirit and scope of the present invention
In attached scope of the claims.