CN109768925A - A kind of active/standby pseudo wires switching method and device - Google Patents

A kind of active/standby pseudo wires switching method and device Download PDF

Info

Publication number
CN109768925A
CN109768925A CN201910239747.5A CN201910239747A CN109768925A CN 109768925 A CN109768925 A CN 109768925A CN 201910239747 A CN201910239747 A CN 201910239747A CN 109768925 A CN109768925 A CN 109768925A
Authority
CN
China
Prior art keywords
standby
hop
management
value
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910239747.5A
Other languages
Chinese (zh)
Other versions
CN109768925B (en
Inventor
张帝民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910239747.5A priority Critical patent/CN109768925B/en
Publication of CN109768925A publication Critical patent/CN109768925A/en
Application granted granted Critical
Publication of CN109768925B publication Critical patent/CN109768925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of active/standby pseudo wires switching method and device, which comprises the standby PW of the first object PW, the management PW, the standby management PW and first object PW are associated with the first virtual next-hop VN;First VN includes main next-hop, slave next-hop and the first label F lag, and the main next-hop is the corresponding next-hop of the first object PW, and the slave next-hop is the corresponding next-hop of standby PW of the first object PW;When detecting the management PW failure based on BFD session, the value of the first Flag in the first VN is updated to second value by the first value.The time-consuming that active and standby PW switching can be reduced using the embodiment of the present invention, reduces the probability of packet loss in active and standby PW handoff procedure.

Description

A kind of active/standby pseudo wires switching method and device
Technical field
The present invention relates to network communication technology field more particularly to a kind of active/standby pseudo wires switching methods and device.
Background technique
In the networking (being properly termed as active and standby PW networking) of pseudo-wire (English: Pseudowire, abbreviation: PW) 1:1 redundancy protecting In, main PW and standby PW are mutually redundant protection.Under normal circumstances, main PW is with that is, by main PW converting flow;Standby PW is as redundancy Protection is then switched to when main PW breaks down through standby PW converting flow.
As the business PW of two service provider network edge (English: Provider Edge, abbreviation PE) equipment in networking When quantity more (these PW each other homologous chummage PW), to reduce two-way converting detection (English: Bidirectional Forwarding Detection, referred to as: BFD) number of sessions, it will usually (PE at both ends is set with the homologous chummage of business PW for configuration It is standby identical, and tunnel strategy is identical (selecting the tunnel of same type)) management PW, and by the industry with the management homologous chummage of PW Business PW and management PW is bound.By BFD session detection management PW, quick sensing failure, then all bindings are noticed by management PW Business PW carry out active-standby switch, the flow of final service PW is switched to standby path from main path.
However realize discovery, in above-mentioned PW active-standby switch scheme, when business PW specification is larger, management PW notices all industry Business PW, which carries out active-standby switch, will appear more serious packet loss than relatively time-consuming, in handoff procedure.
Summary of the invention
In view of this, the present invention provides a kind of active/standby pseudo wires switching method and device, to solve existing active/standby pseudo wires switching The problem of being taken a long time in scheme, be easy to causeing packet loss.
In a first aspect, the present invention provides a kind of active/standby pseudo wires switching method, set applied to the first PE in active and standby PW networking Standby, business PW between the first PE equipment and the 2nd PE equipment is main PW, the first PE equipment and the 3rd PE equipment it Between business PW be standby PW, the first object PW between the first PE equipment and the 2nd PE equipment binds same management PW, the first object PW are the identical a plurality of PW of tunnel strategy, and establishing on the management PW has BFD session, the management PW Configured with corresponding standby management PW, the standby PW of the standby management PW and first object PW homologous chummage PW each other, the side Method includes:
By the standby PW association of the first object PW, the management PW, the standby management PW and first object PW To the first VN;First VN includes main next-hop, slave next-hop and the first Flag, and the main next-hop is the first object The corresponding next-hop of PW, the slave next-hop are the corresponding next-hop of standby PW of the first object PW;
When detecting the management PW failure based on BFD session, by the value of the first Flag in the first VN Second value is updated to by the first value;
Wherein, when the value of the first Flag is first value, the first PE equipment passes through the main next-hop Carry out flow forwarding;When the value of the first Flag is the second value, the first PE equipment passes through the slave next-hop Carry out flow forwarding.
Second aspect, the present invention provide a kind of active/standby pseudo wires switching device, set applied to the first PE in active and standby PW networking Standby, business PW between the first PE equipment and the 2nd PE equipment is main PW, the first PE equipment and the 3rd PE equipment it Between business PW be standby PW, the first object PW between the first PE equipment and the 2nd PE equipment binds same management PW, the first object PW are the identical a plurality of PW of tunnel strategy, and establishing on the management PW has BFD session, the management PW Configured with corresponding standby management PW, the standby PW of the standby management PW and first object PW homologous chummage PW each other, the dress It sets and includes:
Associative cell is used for the first object PW, the management PW, the standby management PW and the first object The standby PW of PW is associated with the first virtual next-hop VN;First VN includes main next-hop, slave next-hop and the first Flag, described Main next-hop is the corresponding next-hop of the first object PW, and the slave next-hop is that the standby PW of the first object PW is corresponding Next-hop;
Detection unit, for based on BFD session detection management PW whether failure;
Updating unit, for when based on BFD session detect the management PW failure when, described in the first VN The value of first Flag is updated to second value by the first value;
Wherein, when the detection unit detects that the value of the first Flag is first value, the first PE is set It is standby that flow forwarding is carried out by the main next-hop;When the value of the first Flag is the second value, the first PE is set It is standby that flow forwarding is carried out by the slave next-hop.
Using technical solution disclosed by the invention, by configuring corresponding standby management PW for management PW, and management PW is tied up Fixed main PW, management PW, standby management PW and main PW standby PW be associated with including the corresponding main next-hop of main PW, be corresponding for PW Slave next-hop and VN for identifying the Flag by main next-hop or slave next-hop converting flow in turn can be by more The value of Flag realizes the switching of active and standby PW in the new VN, reduces the time-consuming of active and standby PW switching, reduces active and standby PW handoff procedure The probability of middle packet loss.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of active and standby PW switching method provided in an embodiment of the present invention;
Fig. 2 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 3, which is a kind of PW provided in an embodiment of the present invention, is associated with schematic diagram with VN;
Fig. 4 is a kind of structural schematic diagram of active and standby PW switching device provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware structural diagram of active and standby PW switching device provided in an embodiment of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention Case is described in further detail.
It referring to Figure 1, is a kind of flow diagram of active and standby PW switching method provided in an embodiment of the present invention, such as Fig. 1 institute Show, which may comprise steps of:
It should be noted that active and standby PW switching method provided in an embodiment of the present invention can be applied in active and standby PW networking divide Do not pass through the PE equipment of active and standby PW and different other PE equipment connections (referred to herein as the first PE equipment, and by the first PE equipment It is known as the 2nd PE equipment by other PE equipment that main PW is connected, the first PE equipment is claimed by other PE equipment of standby PW connection For the 3rd PE equipment);Use same tunnel strategy between first PE equipment and the 2nd PE equipment (selects the tunnel of same type Road) a plurality of PW (referred to herein as first object PW) bind same management PW, establishing on management PW has BFD session.
The standby PW of first object PW, management PW, standby management PW and first object PW are associated with the first VN by step 101; First VN includes main next-hop, slave next-hop and the first Flag.The main next-hop is the corresponding next-hop of first object PW, standby Next-hop is the corresponding next-hop of standby PW of first object PW.
Wherein, main next-hop and slave next-hop can reach same remote equipment.
Can be management PW with purchase PW (referred to herein as standby management PW) in the embodiment of the present invention so that management PW with The first object PW for binding management PW equally forms redundancy protecting.
Wherein, (the standby PW of first object PW includes a plurality of PW to the standby PW of standby management PW and first object PW, in this plurality of PW Each PW be respectively each PW in first object PW standby PW) homologous chummage PW each other.
It, can be based on the public affairs for carrying first object PW in order to reduce the time-consuming of active and standby PW switching in the embodiment of the present invention The corresponding next-hop in net tunnel (i.e. main path) and carry first object PW standby PW public network tunnel (i.e. for path) it is right The next-hop answered creates a virtual next-hop (English: Virtual Nexthop, abbreviation VN) (referred to herein as the first VN), First VN may include that the corresponding next-hop of first object PW (i.e. referred to herein as lead next by the corresponding next-hop of main path Jump), the corresponding next-hop of standby PW (i.e. for the corresponding next-hop in path, referred to herein as slave next-hop) of first object PW and The label (Flag, referred to herein as the first Flag) in path used for identifying flow forwarding, and by first object PW, management PW, the standby standby PW for managing PW and first object PW are associated with the first VN.
In the embodiment of the present invention, when the first PE equipment is needed through main PW or standby PW converting flow, can according to this The value of the first Flag in one VN determine by main next-hop carry out flow forwarding (passing through main path progress flow forwarding) or Flow forwarding (flow forwarding is carried out by standby path) is carried out by slave next-hop.
In the embodiment of the present invention, the first PE equipment will be identified and pass through the value of the first Flag of main next-hop progress flow forwarding The value for identifying the first Flag that the first PE equipment carries out flow forwarding by slave next-hop is known as second value by referred to as the first value.
For example, the first value can be Main (master), second value can be Backup (standby).
Wherein, the value of the first Flag can be the first value.
Step 102, when detecting management PW failure based on BFD session, by the value of the first Flag in the first VN by the One value is updated to second value.
In the embodiment of the present invention, the first PE equipment can based on BFD session detection management PW whether failure.When the first PE is set BFD message standby to detect when managing PW failure, that such as the first PE equipment does not receive the transmission of the 2nd PE equipment in preset duration (such as BFD control message), the first PE equipment can determine main path failure, at this point, the first PE equipment can will be in the first VN The value of first Flag is updated to second value by the first value, in turn, when the first PE equipment needs to carry out flow (by first object PW Or first object PW standby PW forwarding flow) forwarding when, the first PE equipment can according to the value of the first Flag in the first VN, Flow is passed through standby path to forward.
As it can be seen that by configuring corresponding standby management PW for management PW, and management PW is tied up in method flow shown in Fig. 1 Fixed main PW, management PW, standby management PW and first object PW standby PW be associated with including the corresponding main next-hop of main PW, for PW Corresponding slave next-hop and VN for identifying the Flag by main next-hop or slave next-hop converting flow in turn can be with Value by updating Flag in the VN realizes the switching of active and standby PW, reduces the time-consuming of active and standby PW switching, reduces active and standby PW and cut The probability of packet loss during changing.
Optionally, the present invention in one embodiment, the above-mentioned value by the first Flag in the first VN is by the first value It is updated to after second value, can also include:
When detecting management PW fault recovery based on BFD session, by the value of the first Flag in the first VN by second value It is updated to first value.
In this embodiment, when the first PE equipment, which is based on BFD session, detects management PW fault recovery, such as the first PE is set The standby BFD message for receiving the transmission of the 2nd PE equipment, the first PE equipment can determine main path fault recovery, at this point, the first PE The value of the first Flag in first VN can be updated to the first value by second value by equipment, in turn, when the first PE equipment need into When row flow (passing through the flow of the standby PW of first object PW or first object PW forwarding) forwarding, the first PE equipment can be according to the The value of the first Flag in one VN is again forwarded flow by main path.
Optionally, the present invention in one embodiment, above-mentioned active and standby PW switching method can also include:
When detecting the 3rd PE equipment fault, first object PW is associated with the 2nd VN, the 2nd VN is main next-hop.
In this embodiment, it is contemplated that when the 3rd PE equipment fault, standby PW meeting Down (closing), at this point, only main PW Can converting flow, i.e., cannot form PW redundancy protecting, at this time, it may be necessary to re-create one only including main next-hop void it is next It jumps (referred to herein as the 2nd VN), and main PW is associated with the 2nd VN, in turn, when the first PE equipment needs to carry out flow forwarding When, flow forwarding can be carried out by main path.
Correspondingly, in this embodiment, when the first PE equipment detects the 3rd PE equipment fault, such as the first PE equipment is logical It crosses public network Routing Protocol or tag distribution protocol (English: Label Distribution Protocol, abbreviation LDP) perceives First object PW can be associated with the 2nd VN by the 3rd PE equipment fault, the first PE equipment, in turn, when the first PE equipment need into When row flow (flow forwarded by the standby PW of first object PW or first object PW) forwarding, it can be forwarded by main path.
Optionally, in another embodiment, above-mentioned active and standby PW switching method can also include:
When detecting the 2nd PE equipment fault, the standby PW of first object PW is associated with the 3rd VN, the 3rd VN is standby Next-hop.
In this embodiment, it is contemplated that when the 2nd PE equipment fault, main PW meeting Down, at this point, only standby PW can turn Flow is sent out, i.e., cannot form PW redundancy protecting, at this time, it may be necessary to re-create only (this of the empty next-hop including slave next-hop Referred to herein as the 3rd VN), and first object PW is associated with the 3rd VN, in turn, (lead to when the first PE equipment needs to carry out flow Cross the flow of the standby PW forwarding of first object PW or first object PW) forwarding when, standby path can be passed through and carry out flow forwarding.
Correspondingly, in this embodiment, when the first PE equipment detects the 2nd PE equipment fault, such as the first PE equipment is logical Public network Routing Protocol or LDP (English: Label Distribution Protocol, abbreviation: LDP) protocol aware are crossed to second First object PW can be associated with the 3rd VN by PE equipment fault, the first PE equipment, in turn, when the first PE equipment is flowed When amount (flow forwarded by the standby PW of first object PW or first object PW) forwarding, it can be forwarded by standby path.
Further, in one example, when the first PE equipment detects the 2nd PE equipment (or the 3rd PE equipment) failure When recovery, such as the first PE equipment passes through public network Routing Protocol or LDP protocol aware to the 2nd PE equipment (or the 3rd PE equipment) event Barrier restores, and the standby PW of first object PW, management PW, standby management PW and first object PW can be associated with by the first PE equipment again To the first VN.
It should be noted that in embodiments of the present invention, (being such as updated to second by the first VN when updating the associated VN of PW When VN), associated VN before update can be deleted, and PW is associated with to new VN;Alternatively, can increase in the incidence relation of record One is added to be used to identify the whether available label of incidence relation, it, will be in the incidence relation before update as the associated VN of update PW The value of label be set to the mark not available value of the incidence relation (such as Down), and by the label in updated incidence relation Value is set to the mark available value of the incidence relation (such as UP).
For example, when needing incidence relation being associated with the 2nd VN by first object PW, first object PW, pipe are updated to When reason PW, the standby standby PW for managing PW and first object PW are associated with a VN, it can delete first object PW's and the 2nd VN Incidence relation, and the standby PW of first object PW, management PW, standby management PW and first object PW are associated with the first VN.
Again for example, when needing incidence relation by first object PW, management PW, standby management PW and first object PW Standby PW be associated with the first VN, can be by first object PW, management PW, standby when being updated to first object PW and being associated with two VN The value for managing the standby PW label corresponding with the incidence relation of the first VN of PW and first object PW is set to Down, and establishes first The value of the corresponding label of the incidence relation is set to UP by the incidence relation of target PW and the 2nd VN;When need by incidence relation by First object PW is associated with the 2nd VN, is updated to the pass standby PW of first object PW, management PW, standby management PW and first object PW When being linked to a VN, the value of first object PW label corresponding with the incidence relation of the 2nd VN can be set to Down, and by The value of the standby PW label corresponding with the incidence relation of the first VN of one target PW, management PW, standby management PW and first object PW It is set to UP.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, below with reference to specific Application scenarios are illustrated technical solution provided in an embodiment of the present invention.
Fig. 2 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, as shown in Fig. 2, In the application scenarios, the business PW between PE1 and PE2 and the business PW between PE1 and PE3 form 1:1 redundancy protecting, Business PW between PE1 and PE2 is main PW, the business PW between PE1 and PE3 be standby PW (i.e. PE1 is above-mentioned first PE equipment, PE2 is above-mentioned 2nd PE equipment, and PE3 is above-mentioned 3rd PE equipment), the tunnel strategy of the business PW between PE1 and PE2 is homogeneous Together, and binding management PW (i.e. business PW between PE1 and PE2 is above-mentioned first object PW), the business between PE1 and PE3 The tunnel strategy of PW is also all the same, and customer network edge (English: Customer Edge, abbreviation: CE) equipment 1 passes through PE1 and accesses Public network, CE2 access public network by PE2 and PE3.
Based on application scenarios shown in Fig. 2, active and standby PW handover scheme provided in an embodiment of the present invention is accomplished by
1, a pair of active and standby PW (business PW) is mutually redundant protection, forms one group of PW redundancy protecting;
2, being abstracted virtual next-hop a VN1, VN1 includes the corresponding next-hop of main PW (i.e. main next-hop), standby PW correspondence Next-hop (i.e. slave next-hop) and a Flag;When the value of Flag is Main, PE1 uses main next-hop converting flow (i.e. to PE2 converting flow);When the value of Flag is Backup, PE1 is using slave next-hop converting flow (i.e. to PE3 forwarding flow Amount);
3, in networking shown in Fig. 2, a plurality of (can be big specification, such as 32K) business PW forms PW redundancy protecting, due to master The opposite end PE equipment (PE2) and tunnel strategy of PW is all the same, and therefore, the public network tunnel that main PW chooses is identical, i.e. main path phase Together;Similarly, since the opposite end PE equipment (PE3) and tunnel strategy of standby PW are all the same, the public network tunnel phase that standby PW chooses Together, i.e., identical for path, therefore, these PW redundancy protecting groups (including main business PW and standby business PW) are associated with VN1;
4, management PW configures a standby PW (i.e. standby management PW), and management PW and standby management PW are mutually redundant protection, form one Group PW redundancy protecting;Since the opposite end PE equipment of management PW is PE2, the opposite end PE equipment of main PW is also PE2, that is, manages pair of PW Hold PE equipment identical as the opposite end PE equipment of main PW, the opposite end PE equipment PE3 of the opposite end PE equipment PE3 and standby PW of standby management PW For identical equipment, therefore, the redundancy protecting group of management PW and standby management PW can also be associated with VN1;
5, the BFD session for management PW is established;
6, when PE1, which is based on BFD session, detects management PW failure, PE1 updates the value of the Flag of VN1, by it by Main It is updated to Backup, i.e. the flow of all business PW is switched to standby path forwarding (forwarding by PE1 → PE3) on PE1;
7, when PE1 be based on BFD session detect management PW fault recovery when, PE1 update VN1 Flag value, by its by Backup reverts to Main, i.e. the equal switchback main path forwarding (being forwarded by PE1 → PE2) of the flow of all business PW on PE1;
8, standby such as by public network Routing Protocol or LDP protocol detection to PE3 failure when PE1 detects PE3 failure Public network tunnel on path is deleted, and standby PW is due to that can not choose public network tunnel and Down, at this point, only main PW (i.e. main business PW) energy converting flow, i.e., cannot form PW redundancy protecting.At this point, PE1 can be abstracted virtual next-hop a VN2, VN2 again For main next-hop (i.e. PE2), main PW is associated with the VN2;
9, main such as by public network Routing Protocol or LDP protocol detection to PE2 failure when PE1 detects PE2 failure Public network tunnel on path is deleted, and main PW is due to that can not choose public network tunnel and Down, at this point, only standby PW is (i.e. for business PW) energy converting flow, i.e., cannot form PW redundancy protecting.At this point, PE1 can be abstracted virtual next-hop a VN3, VN3 again For slave next-hop (i.e. PE3), standby PW is associated with the VN3;
Wherein, in this embodiment, PW can be as shown in Figure 3 with the schematic diagram that is associated with of VN.
10, when PE1 detects PE2 (or PE3) fault recovery, active and standby PW energy converting flow forms PW redundancy again Protection, at this point it is possible to which main PW, management PW and corresponding standby PW are associated with VN1 again, the value of the Flag of VN1 is set as Main, the flow of all business PW are forwarded by main path.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, by being configured for management PW Corresponding standby management PW, and the standby PW of the main PW for managing PW binding, management PW, standby management PW and main PW are associated with including master The corresponding main next-hop of PW passes through main next-hop or slave next-hop converting flow for the corresponding slave next-hop of PW and for identifying The VN of Flag the switching of active and standby PW can be realized by updating the value of Flag in the VN in turn, reduce active and standby PW switching Time-consuming reduces the probability of packet loss in active and standby PW handoff procedure.
Fig. 4 is referred to, provides a kind of structural schematic diagram of active and standby PW switching device for the embodiment of the present invention, wherein the dress The first PE equipment that can be applied in above method embodiment is set, as shown in figure 4, the active and standby PW switching device may include:
Associative cell 410 is used for the first object PW, the management PW, the standby management PW and described first The standby PW of target PW is associated with the first virtual next-hop VN;First VN includes main next-hop, slave next-hop and the first Flag, The main next-hop is the corresponding next-hop of the first object PW, and the slave next-hop is standby PW pair of the first object PW The next-hop answered;
Detection unit 420, for based on BFD session detection management PW whether failure;
Updating unit 430, for when based on BFD session detect the management PW failure when, will be in the first VN The value of first Flag is updated to second value by the first value;
Wherein, when the detection unit detects that the value of the first Flag is first value, the first PE is set It is standby that flow forwarding is carried out by the main next-hop;When the value of the first Flag is the second value, the first PE is set It is standby that flow forwarding is carried out by the slave next-hop.
In an alternative embodiment, the updating unit 430 is also used to detect when the detection unit is based on BFD session When the management PW fault recovery, the value of the first Flag in the first VN is updated to described by the second value One value.
In an alternative embodiment, the associative cell 410 is also used to detect that the 3rd PE is set when the detection unit When standby failure, the first object PW is associated with the 2nd VN, the 2nd VN is the main next-hop.
In an alternative embodiment, the associative cell 410 is also used to detect that the 2nd PE is set when the detection unit When standby failure, the standby PW of the first object PW is associated with the 3rd VN, the 3rd VN is the slave next-hop.
In an alternative embodiment, the associative cell 410 is also used to detect that the 2nd PE is set when the detection unit When standby fault recovery, or, when the 3rd PE equipment fault restores, by the first object PW, the management PW, the standby pipe The standby PW of the reason PW and first object PW is associated with the first VN again.
Fig. 5 is referred to, is a kind of hardware structural diagram of active and standby PW switching device provided in an embodiment of the present invention.The master Standby PW switching device may include processor 501, the machine readable storage medium 502 for being stored with machine-executable instruction.Processing Device 501 can be communicated with machine readable storage medium 502 via system bus 503.Also, by reading and executing machine readable deposit Machine-executable instruction corresponding with active and standby PW switch logic in storage media 502, processor 501 can be performed above-described active and standby PW switching method.
Machine readable storage medium 502 referred to herein can be any electronics, magnetism, optics or other physical stores Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be easily Lose memory, nonvolatile memory or similar storage medium.Specifically, machine readable storage medium 502 can be RAM (Radom Access Memory, random access memory), flash memory, memory driver (such as hard disk drive), solid state hard disk, Any kind of storage dish (such as CD, DVD) perhaps similar storage medium or their combination.
The embodiment of the invention also provides a kind of machine readable storage mediums including machine-executable instruction, such as Fig. 5 In machine readable storage medium 502, the machine-executable instruction can execute by the processor 501 in active and standby PW switching device To realize active and standby PW switching method described above.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, by configuring corresponding standby management PW for management PW, and by manage PW binding main PW, Management PW, the standby standby PW for managing PW and main PW are associated with including the corresponding main next-hop of main PW, the standby corresponding slave next-hop of PW And the VN for identifying the Flag by main next-hop or slave next-hop converting flow in turn can be by updating in the VN The value of Flag realizes the switching of active and standby PW, reduces the time-consuming of active and standby PW switching, reduces packet loss in active and standby PW handoff procedure Probability.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of active/standby pseudo wires switching method is set applied to the first service provider network edge PE in active/standby pseudo wires PW networking Standby, business PW between the first PE equipment and the 2nd PE equipment is main PW, the first PE equipment and the 3rd PE equipment it Between business PW be standby PW, the first object PW between the first PE equipment and the 2nd PE equipment binds same management PW, the first object PW are the identical a plurality of PW of tunnel strategy, and establishing on the management PW has two-way converting to detect BFD meeting Words, which is characterized in that for the management PW configured with corresponding standby management PW, the standby management PW and first object PW's is standby PW homologous chummage PW each other, which comprises
The standby PW of the first object PW, the management PW, the standby management PW and first object PW are associated with the One virtual next-hop VN;First VN includes main next-hop, slave next-hop and the first label F lag, and the main next-hop is institute The corresponding next-hop of first object PW is stated, the slave next-hop is the corresponding next-hop of standby PW of the first object PW;
When detecting the management PW failure based on BFD session, by the value of the first Flag in the first VN by the One value is updated to second value;
Wherein, when the value of the first Flag is first value, the first PE equipment is carried out by the main next-hop Flow forwarding;When the value of the first Flag is the second value, the first PE equipment is carried out by the slave next-hop Flow forwarding.
2. the method according to claim 1, wherein the value by the first Flag in the first VN It is updated to after second value by the first value, further includes:
When detecting the management PW fault recovery based on BFD session, by the value of the first Flag in the first VN First value is updated to by the second value.
3. the method according to claim 1, wherein the method also includes:
When detecting the 3rd PE equipment fault, the first object PW is associated with the 2nd VN, the 2nd VN is institute State main next-hop.
4. according to the method described in claim 1, be wherein, the method also includes:
When detecting the 2nd PE equipment fault, the standby PW of the first object PW is associated with the 3rd VN, the third VN is the slave next-hop.
5. the method according to claim 3 or 4, which is characterized in that the method also includes:
When detecting that the 2nd PE equipment fault restores, or, when the 3rd PE equipment fault restores, by first mesh Mark PW, the management PW, the standby standby PW for managing the PW and first object PW are associated with the first VN again.
6. a kind of active/standby pseudo wires switching device is set applied to the first service provider network edge PE in active/standby pseudo wires PW networking Standby, business PW between the first PE equipment and the 2nd PE equipment is main PW, the first PE equipment and the 3rd PE equipment it Between business PW be standby PW, the first object PW between the first PE equipment and the 2nd PE equipment binds same management PW, the first object PW are the identical a plurality of PW of tunnel strategy, and establishing on the management PW has two-way converting to detect BFD meeting Words, which is characterized in that for the management PW configured with corresponding standby management PW, the standby management PW and first object PW's is standby Homologous chummage PW, described device include: PW each other
Associative cell, for by the first object PW, the management PW, the standby management PW and first object PW Standby PW is associated with the first virtual next-hop VN;First VN includes main next-hop, slave next-hop and the first label F lag, described Main next-hop is the corresponding next-hop of the first object PW, and the slave next-hop is that the standby PW of the first object PW is corresponding Next-hop;
Detection unit, for based on BFD session detection management PW whether failure;
Updating unit, for when based on BFD session detect the management PW failure when, by described first in the first VN The value of Flag is updated to second value by the first value;
Wherein, when the detection unit detects that the value of the first Flag is first value, the first PE equipment is logical It crosses the main next-hop and carries out flow forwarding;When the value of the first Flag is the second value, the first PE equipment is logical It crosses the slave next-hop and carries out flow forwarding.
7. device according to claim 6, which is characterized in that
The updating unit is also used to when the detection unit detects the management PW fault recovery based on BFD session, will The value of the first Flag in first VN is updated to first value by the second value.
8. device according to claim 6, which is characterized in that
The associative cell is also used to when the detection unit detects the 3rd PE equipment fault, by first mesh Mark PW is associated with the 2nd VN, and the 2nd VN is the main next-hop.
9. device according to claim 6, which is characterized in that
The associative cell is also used to when the detection unit detects the 2nd PE equipment fault, by first mesh The standby PW of mark PW is associated with the 3rd VN, and the 3rd VN is the slave next-hop.
10. device according to claim 8 or claim 9, which is characterized in that
The associative cell is also used to when the detection unit detects that the 2nd PE equipment fault restores, or, described the When three PE equipment faults restore, by the first object PW, the management PW, the standby management PW and first object PW Standby PW be associated with the first VN again.
CN201910239747.5A 2019-03-27 2019-03-27 Method and device for switching active/standby pseudo wires Active CN109768925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910239747.5A CN109768925B (en) 2019-03-27 2019-03-27 Method and device for switching active/standby pseudo wires

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910239747.5A CN109768925B (en) 2019-03-27 2019-03-27 Method and device for switching active/standby pseudo wires

Publications (2)

Publication Number Publication Date
CN109768925A true CN109768925A (en) 2019-05-17
CN109768925B CN109768925B (en) 2021-05-25

Family

ID=66459949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910239747.5A Active CN109768925B (en) 2019-03-27 2019-03-27 Method and device for switching active/standby pseudo wires

Country Status (1)

Country Link
CN (1) CN109768925B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740094A (en) * 2019-10-28 2020-01-31 新华三信息安全技术有限公司 network equipment, BFD message transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1361570A2 (en) * 2002-05-10 2003-11-12 Ricoh Company, Ltd. Information recording method information recording apparatus and optical information recording medium
CN101141330A (en) * 2007-10-23 2008-03-12 华为技术有限公司 Method, system and equipment to establish BFD detection for LSP tunnel
CN101710875A (en) * 2009-12-22 2010-05-19 中兴通讯股份有限公司 Method and device for realizing rapid re-routing
CN102035681A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Link protection method and system for virtual private network
CN103138957A (en) * 2011-11-22 2013-06-05 中国移动通信集团上海有限公司 Method, device and system for business path failback

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1361570A2 (en) * 2002-05-10 2003-11-12 Ricoh Company, Ltd. Information recording method information recording apparatus and optical information recording medium
CN101141330A (en) * 2007-10-23 2008-03-12 华为技术有限公司 Method, system and equipment to establish BFD detection for LSP tunnel
CN101710875A (en) * 2009-12-22 2010-05-19 中兴通讯股份有限公司 Method and device for realizing rapid re-routing
CN102035681A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Link protection method and system for virtual private network
CN103138957A (en) * 2011-11-22 2013-06-05 中国移动通信集团上海有限公司 Method, device and system for business path failback

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740094A (en) * 2019-10-28 2020-01-31 新华三信息安全技术有限公司 network equipment, BFD message transmission method and device
CN110740094B (en) * 2019-10-28 2021-09-21 新华三信息安全技术有限公司 Network equipment, BFD message transmission method and device

Also Published As

Publication number Publication date
CN109768925B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US9698994B2 (en) Loop detection and repair in a multicast tree
US8755266B2 (en) Duplicate traffic avoidance in a point to multi-point network
CN101999224B (en) Redundant Ethernet automatic protection switching access to virtual private lan services
CN101667970B (en) Protection switching method and equipment thereof
US8855124B2 (en) Forwarding inter-switch connection (ISC) frames in a network-to-network interconnect topology
CN102291455B (en) Distributed cluster processing system and message processing method thereof
CN101217470B (en) Method and device for forwarding message
CN105122730A (en) System and method for rapid link failure handling
CN105610710A (en) Methods and apparatus for standard protocol validation mechanisms deployed over switch fabric system
US7924705B2 (en) Method and system for span-based connection aggregation
CN102333028A (en) Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN101710877A (en) Method, device and system for processing traffic flow based on pseudowire
CN102377607A (en) Data transmission method and data transmission device for special two-layer virtual network
CN104618189B (en) Link failure detection method and device
EP3213441B1 (en) Redundancy for port extender chains
CN110535761A (en) Message forwarding method and device
CN104468389B (en) Processing method, server and the server system of message
CN101499960A (en) Method and apparatus for flow path switching
CN105337856B (en) Cross-domain service processing method, apparatus and system
CN106713130A (en) Routing table updating method, EVPN control equipment and EVPN system
CN101964743A (en) Multiprotocol label-switched path APS (Active Protection System) protection and management method, equipment and system
CN109768925A (en) A kind of active/standby pseudo wires switching method and device
CN110430131A (en) A kind of message forwarding method and device
CN106572012A (en) VPN FRR implementation method and PE equipment
CN108023800A (en) A kind of guard method of LTE bearer networks and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant