WO2016180144A1 - 一种多段伪线拆除方法和装置 - Google Patents

一种多段伪线拆除方法和装置 Download PDF

Info

Publication number
WO2016180144A1
WO2016180144A1 PCT/CN2016/079198 CN2016079198W WO2016180144A1 WO 2016180144 A1 WO2016180144 A1 WO 2016180144A1 CN 2016079198 W CN2016079198 W CN 2016079198W WO 2016180144 A1 WO2016180144 A1 WO 2016180144A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
mapping relationship
message
active
release message
Prior art date
Application number
PCT/CN2016/079198
Other languages
English (en)
French (fr)
Inventor
王华园
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016180144A1 publication Critical patent/WO2016180144A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present application relates to, but is not limited to, the field of data network communication, and more particularly to a multi-segment pseudowire removal method and apparatus.
  • IP IP data networks
  • the IP network itself is very scalable, scalable, and compatible.
  • the traditional communication network such as FR (Frame Relay) network, ATM (Asynchronous Transfer Mode) network
  • FR Framework Relay
  • ATM Asynchronous Transfer Mode
  • the Pseudo-Wire Emulation Edge-to-Edge (PWE3) technology is used to deploy Pseudo-Wire (PW) between the Provider Edge (PE).
  • PW Provider Edge
  • a service for transmitting Layer 2 packets such as Ethernet, Frame Relay, and Asynchronous Transfer Mode of a user on a packet switched network is provided.
  • the original access mode can be integrated with the IP backbone network of related technologies, thereby reducing network duplication and saving operating costs.
  • the IP backbone network can be connected to a variety of access networks to transform and enhance the original data network. Therefore, the above advantages of PWE3 technology have made it more and more widely used in various needs and networking of operators.
  • Multi-Segment Pseudowires can be divided into single-segment pseudowires and multi-segment pseudowires.
  • a single-segment pseudowire refers to the establishment of a PW directly between two PEs without passing through other switching nodes.
  • Multi-Segment Pseudowires refers to a PW created between two Terminating Provider Edges (T-PEs) that need to pass through one or more intermediate nodes (called an exchange PE). That is, Switching PE (S-PE), as shown in Figure 1, establishes an MS-PW between PE1 and PE4, and passes through two intermediate nodes PE2 and PE3. The two intermediate nodes are called switching nodes S-PE, and PE1 and PE4 are called terminal nodes T-PE.
  • Multi-segment pseudowires can improve the utilization of PSN (Packet Switched Network) and solve the cross-domain problem of pseudowires.
  • PSN Packet Switched Network
  • multi-segment pseudowires There are two ways to establish multi-segment pseudowires, one is static multi-segment pseudowire, and the other is dynamic multi-segment pseudo- line.
  • static multi-segment pseudowire you need to configure and bind the full path on the T-PE and S-PE.
  • S-PE S-PE is dynamically determined by the BGP (Border Gateway Protocol) protocol and the LDP (Label Distribution Protocol) protocol. The burden of configuration and management.
  • the process of establishing a dynamic multi-segment pseudowire is described in "Dynamic Placement of Multi-Segment Pseudo wires" (RFC7267), which is usually initiated by an active party among two T-PEs (the active party can be managed by the network or the address size of the T-PE). It is determined that the label mapping message is forwarded to the passive party T-PE one by one through the dynamic protocol, and then the passive party sends the label mapping message back to the active party one after another to complete the establishment process.
  • This path from the active side to the passive side is called the forward path; otherwise, it is called the reverse path.
  • the reverse path must be exactly the same as the forward path and depend on the forward path.
  • the forward label revocation message is forwarded to the passive side one after another, and then the passive side
  • the reverse label revocation message is sent back to the active party one after another, and the S-PE or the T-PE receives the label revocation message (the forward label revocation message or the reverse label revocation message) and responds to the sender.
  • the corresponding label releases the message.
  • the dismantling process ends, and the local resources occupied by the multi-segment pseudowires are completely released.
  • the demolition process of the entire multi-segment pseudowire has large signaling overhead, slow speed, and long resource occupation time, which is not conducive to rapid convergence of network changes.
  • the embodiment of the invention provides a multi-segment pseudowire removal method and device, which can reduce the signaling overhead in the process of multi-segment pseudowire removal, improve the removal speed, and reduce the occupation time of resources, which facilitates the rapid convergence of network changes.
  • the embodiment of the invention provides a multi-segment pseudowire removal method, and the multi-segment pseudowire removal method package include:
  • the first PE sends a first label revocation message and a first active label release message to the second PE, and clears the label mapping relationship corresponding to the first PW; wherein the first PW is the first PE and the second Pseudowire connection between PEs;
  • the first PE After receiving the corresponding label release message, the first PE recovers the local resource occupied by the first PW.
  • the label mapping relationship corresponding to the first PW includes: a label mapping relationship between the first PE and the second PE, and a label mapping relationship between the second PE and the first PE;
  • the first PE sends the first label revocation message and the first active label release message to the second PE, and clears the label mapping relationship corresponding to the first PW, including:
  • the first PE sends a label revocation message to the second PE, and the label mapping relationship between the first PE and the second PE is cleared.
  • the first PE sends an active label release message to the second PE to clear the label mapping relationship between the second PE and the first PE.
  • the multi-segment pseudowire removal method further includes:
  • the first PE receives the second label revocation message and the second active label release message sent by the third PE, and clears the label mapping relationship corresponding to the second PW according to the second label revocation message and the second active label release message;
  • the second PW is a pseudowire connection between the first PE and the third PE;
  • the first PE sends a corresponding label release message to the third PE according to the second label revocation message sent by the third PE;
  • the first PE recovers the local resources occupied by the second PW.
  • the label mapping relationship corresponding to the second PW includes: a label mapping relationship between the first PE and the third PE, and a label mapping relationship between the third PE and the first PE;
  • the clearing according to the second label revocation message and the second active label release message includes:
  • the first PE clears the label mapping relationship of the third PE to the first PE according to the second label revocation message
  • the first PE clears the label mapping relationship of the first PE to the third PE according to the second active label release message.
  • the first PE performs the step of sending the first label revocation message and the first active label release message to the second PE when the start condition is met;
  • the start condition includes any one or more of the following:
  • the first PE is an active T-PE, and the active T-PE is required to remove a certain multi-segment pseudowire according to the configuration;
  • the second PE is an S-PE connected to the first PE in the multi-segment pseudowire. ;
  • the first PE is an S-PE, and the first PE learns that a link between adjacent PEs in a plurality of pseudowires is broken; and the second PE is between the plurality of pseudowires and the first PE. Another adjacent PE that has not been disconnected; or
  • the first PE is an S-PE, and the first PE receives a third label revocation message and a third active label release message sent by neighboring PEs in a plurality of pieces of pseudowires, and has been according to the third label.
  • the revocation message and the third active label release message clear the label mapping relationship with the neighboring PE;
  • the second PE is another PE of the multi-segment pseudowire adjacent to the first PE.
  • the multi-segment pseudowire removal method further includes:
  • the first PE When the first PE is a T-PE, the first PE clears the label mapping corresponding to the third PW when the first PE learns that the link between the adjacent PEs is disconnected in a certain multi-segment pseudowire. Relationship, and clearing the local resource occupied by the third PW; wherein, the third PW is a pseudowire connection between the first PE and the adjacent PE.
  • the embodiment of the present invention further provides a multi-segment pseudowire removal method, where the multi-segment pseudowire removal method includes:
  • the first PE receives the label revocation message and the active label release message sent by the third PE, and clears the label mapping relationship corresponding to the second PW according to the label revocation message and the active label release message.
  • the second PW is the first PE. a pseudowire connection with the third PE;
  • the first PE sends a corresponding message to the third PE according to the label revocation message sent by the third PE.
  • Label release message
  • the first PE recovers the local resources occupied by the second PW.
  • the embodiment of the present invention further provides a multi-segment pseudo-wire removal device, which is disposed on the first PE, and includes at least:
  • the first processing unit is configured to send the first label revocation message and the first active label release message to the second PE, and clear the label mapping relationship corresponding to the first PW; wherein the first PW is the first PE and the second PE Pseudowire connection
  • a first receiving unit configured to receive a label release message corresponding to the label revocation message sent by the second PE
  • the recovery unit is configured to recover the local resource occupied by the first PW after receiving the corresponding label release message.
  • the label mapping relationship corresponding to the first PW includes: a label mapping relationship between the first PE and the second PE, and a label mapping relationship between the second PE and the first PE;
  • the first processing unit includes:
  • the first processing module is configured to send a label revocation message to the second PE, and clear the label mapping relationship between the first PE and the second PE;
  • the second processing module is configured to send an active label release message to the second PE, and clear the label mapping relationship between the second PE and the first PE.
  • the multi-segment pseudowire removal device further includes:
  • the second processing unit is configured to receive the second label revocation message and the second active label release message sent by the third PE, and clear the label corresponding to the second PW according to the second label revocation message and the second active label release message a mapping relationship; wherein, the second PW is a pseudowire connection between the first PE and the third PE;
  • the first sending unit is configured to send a corresponding label release message to the third PE according to the second label revocation message sent by the third PE;
  • the second recycling unit is configured to recover the local resources occupied by the second PW.
  • the label mapping relationship corresponding to the second PW includes: the first PE to the third PE a label mapping relationship and a label mapping relationship between the third PE and the first PE;
  • the second processing unit includes:
  • the third processing module is configured to: clear the label mapping relationship of the third PE to the first PE according to the second label revocation message;
  • the fourth processing module is configured to clear the label mapping relationship of the first PE to the third PE according to the second active label release message.
  • a startup unit is further included;
  • the step of the first processing unit sending the first label revocation message and the first active label release message to the second PE when the first processing unit meets the startup condition set by the startup unit;
  • the startup unit includes any one or more of the following modules:
  • the first startup module is configured to set the startup condition that the first PE is an active T-PE, and the active T-PE removes a certain multi-segment pseudowire according to the configuration; the second PE is the multi-segment pseudowire The S-PE connected to the first PE;
  • the second startup module is configured to set the activation condition that the first PE is an S-PE, and when the first PE learns that the link between adjacent PEs in a certain multi-segment pseudowire is disconnected; the second PE is Another adjacent PE of the plurality of segments of the pseudowire that is not disconnected from the first PE;
  • the third startup module is configured to set the activation condition that the first PE is an S-PE, and when the first PE receives a third label revocation message and a third active label sent by neighboring PEs in a certain multi-segment pseudowire And releasing the message, and clearing the label mapping relationship between the neighboring PEs according to the third label revocation message and the third active label release message; the second PE is the first one of the multi-segment pseudo-lines Another PE adjacent to the PE.
  • the multi-segment pseudowire removal device further includes:
  • the third processing unit is configured to: when the first PE is a T-PE, clear the label mapping relationship corresponding to the third PW when the link between the adjacent PEs is disconnected in a certain multi-segment pseudowire And clearing the local resource occupied by the third PW; wherein, the third PW is a pseudowire connection between the first PE and the adjacent PE.
  • the embodiment of the present invention further provides a multi-segment pseudo-wire removal device, which is disposed on the first PE, and the multi-segment pseudo-wire removal device further includes:
  • the second processing unit is configured to receive the label revocation message and the active label release message sent by the third PE, and clear the label mapping relationship corresponding to the second PW according to the label revocation message and the active label release message; wherein, the second PW a pseudowire connection between the first PE and the third PE;
  • the first sending unit is configured to send a corresponding label release message to the third PE according to the label revocation message sent by the third PE;
  • the second recycling unit is configured to recover the local resources occupied by the second PW.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for implementing the multi-segment pseudowire removal method described above when the computer executable instructions are executed.
  • the technical solution provided by the embodiment of the present invention includes: the first PE sends a label revocation message and an active label release message to the second PE, and clears the label mapping relationship corresponding to the first PW; wherein, the first PW is the first a pseudowire connection between the PE and the second PE; the first PE receives a label release message corresponding to the label revocation message sent by the second PE; after receiving the corresponding label release message, the first PE recovers the A local resource occupied by a PW.
  • the PE after receiving the label release message sent by the neighboring PE, the PE can complete the removal of the local resource occupied by the PW, and the active T-PE needs to receive the reverse direction in the related art.
  • the dismantling process can be completed.
  • the solution provided by the embodiment of the invention can reduce the signaling overhead in the multi-segment pseudo-wire removal process, the removal speed is fast, and the resource occupation time is reduced, which facilitates rapid convergence of network changes. .
  • FIG. 1 is a schematic diagram of establishing an associated MS-PW
  • FIG. 2 is a schematic diagram of a process of removing a dynamic multi-segment pseudowire
  • FIG. 3 is a flowchart of a multi-segment pseudowire removal method according to an embodiment of the present invention
  • FIG. 4A, FIG. 4B and FIG. 4C are respectively a flowchart of a multi-segment pseudowire removal process according to an embodiment of the present invention
  • FIG. 5A and FIG. 5B are respectively schematic structural diagrams of a multi-segment pseudowire removal device according to an embodiment of the present invention.
  • an embodiment of the present invention provides a multi-segment pseudowire removal method, where the multi-segment pseudowire removal method includes:
  • Step 110 The first PE sends a label revocation message and an active label release message to the second PE, and clears the label mapping relationship corresponding to the first PW.
  • the first PW is a pseudowire connection between the first PE and the second PE. .
  • the first PE when the start condition is met, performs the step in step 110;
  • the start condition includes any one or more of the following:
  • the first PE is an active T-PE, and the active T-PE is required to remove a certain number of pseudowires according to the configuration; the second PE is connected to the first PE in the multi-segment pseudowire. S-PE; or
  • the start condition 2 the first PE is an S-PE, and the first PE learns that the link between adjacent PEs in a plurality of pseudo-lines is disconnected; the second PE is the multi-segment pseudo-line Another adjacent PE that is not disconnected between one PE; or
  • the start condition 3 the first PE is an S-PE, and when the first PE receives a label revocation message and an active label release message sent by neighboring PEs in a certain multi-segment pseudowire, and the message is revocation according to the label And after the active label release message clears the label mapping relationship with the neighboring PE; the second PE is another PE of the multi-segment pseudowire adjacent to the first PE.
  • Step 120 The first PE receives a label release message corresponding to the label revocation message sent by the second PE.
  • Step 130 After receiving the corresponding label release message, the first PE recovers the first PW. Local resources occupied.
  • the label mapping relationship corresponding to the first PW includes: a label mapping relationship between the first PE and the second PE, and a label mapping relationship between the second PE and the first PE;
  • the first PE sends a label revocation message and an active label release message to the second PE, and clears the label mapping relationship corresponding to the first PW, including:
  • Step 111 The first PE sends a label revocation message to the second PE.
  • Step 112 The first PE clears the label mapping relationship between the first PE and the second PE.
  • step 111 and step 112 can be replaced.
  • Step 113 The first PE sends an active label release message to the second PE.
  • Step 114 The first PE clears the label mapping relationship between the second PE and the first PE.
  • step 113 The order between step 113 and step 114 can be replaced.
  • the multi-segment pseudowire removal method further includes:
  • Step 210 The first PE receives the label revocation message and the active label release message sent by the third PE, and clears the label mapping relationship corresponding to the second PW according to the label revocation message and the active label release message.
  • the second PW is a pseudowire connection between the first PE and the third PE;
  • Step 220 The first PE sends a corresponding label release message to the third PE according to the label revocation message sent by the third PE.
  • Step 230 The first PE recovers the local resources occupied by the second PW.
  • the label mapping relationship corresponding to the second PW includes: a label mapping relationship between the first PE and the third PE, and a label mapping relationship between the third PE and the first PE;
  • step 210 the clearing of the label mapping relationship corresponding to the second PW according to the label revocation message and the active label release message includes:
  • Step 211 The first PE clears the label mapping relationship between the third PE and the first PE according to the label revocation message.
  • Step 212 The first PE clears the label mapping relationship of the first PE to the third PE according to the active label release message.
  • the multi-segment pseudowire removal method further includes:
  • the first PE When the first PE is a T-PE, the first PE clears the label mapping corresponding to the third PW when the first PE learns that the link between the adjacent PEs is disconnected in a certain multi-segment pseudowire. Relationship, and clearing the local resource occupied by the third PW; wherein, the third PW is a pseudowire connection between the first PE and the adjacent PE.
  • an embodiment of the present invention provides a schematic diagram of a process of removing a multi-segment pseudowire.
  • the multi-segment pseudo-wire in this example includes four PEs, which are PE1, PE2, PE3, and PE4.
  • PE1 and PE4 are T-PEs, and PE2 and PE3 are S-PEs.
  • PE1 is the active-side PE.
  • the multi-segment pseudowire removal method includes:
  • PE1 sends a label revocation message to PE2.
  • PE1 When a multi-segment pseudowire is established, for the link PW1 between PE1 and PE2, PE1 stores the label mapping relationship (that is, the label mapping relationship between PE1 and PE2) sent by PE1 to PE2 and the label mapping relationship that PE2 sends to PE1. The label mapping relationship between PE2 and PE1. Similarly, PE2 also stores the label mapping relationship (that is, the label mapping relationship between PE1 and PE2) that PE1 sends to PE2 and the label mapping relationship that PE2 sends to PE1 (that is, PE2 to PE1). Label mapping relationship).
  • the label mapping relationship between PE1 and PE2 is a forward label mapping relationship
  • the label mapping relationship between PE2 and PE1 is a reverse label mapping relationship
  • the label mapping relationship between PE2 and PE1 is In the forward label mapping relationship
  • the label mapping relationship between PE1 and PE2 is a reverse label mapping relationship.
  • the label revocation message sent by the PE1 is used to notify the PE2 to clear the label mapping relationship sent by PE1 to PE2 when the multi-segment pseudowire is established.
  • the PE1 clears the label mapping relationship (that is, the label mapping relationship sent by the PE1 to the PE2), and deletes the local forwarding entry, thereby completing the forward signaling. tear down;
  • Step 312 PE1 sends an active label release message to PE2.
  • the active label release message is used to inform the PE2 that the PE1 has cleared the label mapping relationship (the reverse label mapping relationship) sent by the PE2 to the PE1, and the PE1 clears the forward label mapping record information. Then, since the reverse label mapping relationship is dependent on the forward label mapping relationship, PE1 also clears the reverse label mapping relationship record information to complete the reverse signaling removal.
  • Step 313 The PE2 sends a label release message corresponding to the label revocation message to the PE1.
  • the PE After receiving the label revocation message, the PE will respond to the corresponding label release message.
  • PE2 After receiving the label revocation message sent by PE1, PE2 will reply the corresponding label release message and clear the label mapping relationship sent by PE1 to PE2.
  • the PE2 After receiving the active label release message sent by the PE1, the PE2 will clear the label mapping relationship sent by the PE2 to the PE1 according to the active label release message.
  • Step 314 After receiving the label release message corresponding to the label revocation message sent by the PE2, the PE1 will reclaim the local resource occupied by the PW1, and the PE1 locally completes the removal of the MS-PW.
  • PE2 After clearing the label mapping relationship of PW1, PE2 continues to clear the label mapping relationship corresponding to PW2.
  • PE2 is a passive party and PE1 is the active party.
  • PE2 is the active party.
  • PE2 is the active party and PE3 is the passive party.
  • PE3 performs PW2 on PE3 according to the notification of PE2. After the removal of the PW2 by PE3, the PW3 will continue to be removed.
  • step 321 the PE2 sends a label revocation message to the PE3.
  • the PE2 clears the label mapping relationship sent by the PE2 to the PE3.
  • step 322 PE2 sends an active label release message to PE3.
  • the PE2 clears the label mapping relationship sent by the PE3 to the PE2.
  • Step 323 The PE3 receives the label revocation message sent by the PE2, and sends a corresponding label release message.
  • Step 324 PE2 receives the corresponding label release message sent by the PE3, and reclaims the local resource occupied by the PW2, and the PE2 locally completes the removal of the MS-PW.
  • step 330 the PE3 performs the removal process of the PW3.
  • the process of removing the PW3 from PE3 is similar to the process of removing PW2 from PE2.
  • step 331 the PE3 sends a label revocation message to the PE4.
  • step 332 the PE3 sends an active label release message to the PE4.
  • step 333 the PE4 receives the label revocation message sent by the PE3, and sends a corresponding label release message to the PE3.
  • step 334 the PE3 receives the corresponding label release message sent by the PE4, and recovers the local resource occupied by the PW3. PE3 has completed the removal of the MS-PW locally.
  • the PE4 is a passive T-PE.
  • the packet is released to the PE3, and the label mapping record of the PE3 to the PE4 is deleted, and the local forwarding entry is deleted.
  • the label mapping record of the PE4 to the PE3 is cleared, and all the local resources occupied by the PW3 are recovered, and the removal of the MS-PW is completed locally by the PE4.
  • FIG. 4B is a schematic diagram of a disassembly process of another multi-segment pseudowire removal according to an embodiment of the present invention.
  • the multi-segment pseudo-wire in this example includes four PEs, which are PE1, PE2, PE3, and PE4.
  • PE1 and PE4 are T-PEs, and PE2 and PE3 are S-PEs.
  • PE1 is the active-side PE.
  • the multi-segment pseudowire removal method includes:
  • step 411 PE1 learns that the PW1 link has been disconnected.
  • Step 412 PE1 locally completes the removal of the MS-PW.
  • step 421 PE2 learns that the PW1 link has been disconnected.
  • PE2 sends a label revocation message to PE3.
  • PE2 sends an active label release message to PE3.
  • Step 424 The PE3 sends a label release message corresponding to the label revocation message to the PE2.
  • Step 425 After the PE2 receives the corresponding label release message sent by the PE3, the PE2 locally completes the removal of the MS-PW.
  • step 431 the PE3 sends a label revocation message to the PE4.
  • step 432 the PE3 sends an active label release message to the PE4.
  • Step 433 The PE4 sends a label release message corresponding to the label revocation message to the PE3.
  • Step 434 after the PE3 receives the corresponding label release message sent by the PE4, the PE3 locally completes the removal of the MS-PW.
  • step 435 the PE4 sends the label cancellation message and the active label release message according to the PE3, and the removal of the MS-PW is completed locally.
  • FIG. 4C is a schematic diagram of another process of removing a multi-segment pseudowire according to an embodiment of the present invention.
  • the multi-segment pseudo-wire in this example includes four PEs, which are PE1, PE2, PE3, and PE4.
  • PE1 and PE4 are T-PEs, and PE2 and PE3 are S-PEs.
  • PE1 is the active-side PE.
  • the multi-segment pseudowire removal method includes:
  • step 511 PE2 learns that the PW2 link has been disconnected.
  • PE2 sends a label revocation message to PE1.
  • Step 513 PE2 sends an active label release message to PE1.
  • Step 514 PE1 sends a label release message corresponding to the label revocation message to PE2.
  • PE2 After PE2 receives the corresponding label release message sent by PE1, PE2 completes the removal of the MS-PW locally.
  • the PE1 sends the label revocation message and the active label release message according to the PE2, and the removal of the MS-PW is completed locally.
  • the active label release message is sent to the PE of the upper node, where the active label release message carries the error code and is carried by the active label release message.
  • the error code is such that the active label release message is distinguished from the normal label release message, wherein the normal label release message is a message for responding to the label revocation message sent by other PEs.
  • the active label release message may carry the error code or may not carry the error code. That is, the active label release message and the label release message in the embodiment of the present invention may be messages in the same format, just because the message The timing and the purpose of the sending are different.
  • the label release message is a message for responding to the label revocation message sent by other PEs, and the active label release message is not a message for responding to the label revocation message sent by other PEs.
  • the active label release message can also be considered as a special label release message.
  • step 521 PE3 learns that the PW2 link has been disconnected.
  • PE3 sends a label revocation message to PE4.
  • step 523 the PE3 sends an active label release message to the PE4.
  • Step 524 The PE4 sends a label release message corresponding to the label revocation message to the PE3.
  • the PE3 After the PE3 receives the corresponding label release message sent by the PE4, the PE3 locally completes the removal of the MS-PW.
  • the PE4 sends the label revocation message and the active label release message according to the PE3, and the removal of the MS-PW is completed locally.
  • the embodiment of the present invention further provides a multi-segment pseudo-wire removal device, which is disposed on the first PE.
  • the multi-segment pseudo-wire removal device includes:
  • the first processing unit 11 is configured to send a label revocation message and an active label release message to the second PE, and clear the label mapping relationship corresponding to the first PW.
  • the first PW is a pseudo between the first PE and the second PE. Line connection
  • the first receiving unit 12 is configured to receive a label release message corresponding to the label revocation message sent by the second PE;
  • the reclaiming unit 13 is configured to recover the local resource occupied by the first PW after receiving the corresponding label release message.
  • the label mapping relationship corresponding to the first PW comprises: a label mapping relationship between the first PE and the second PE, and a second PE to the first Label mapping relationship of the PE;
  • the first processing unit includes:
  • the first processing module is configured to send a label revocation message to the second PE, and clear the label mapping relationship between the first PE and the second PE;
  • the second processing module is configured to send an active label release message to the second PE, and clear the label mapping relationship between the second PE and the first PE.
  • the multi-segment pseudowire removal device further includes:
  • the second processing unit 14 is configured to receive the label revocation message and the active label sent by the third PE. And releasing the message, and clearing the label mapping relationship corresponding to the second PW according to the label revocation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and the third PE;
  • the first sending unit 15 is configured to send a corresponding label release message to the third PE according to the label revocation message sent by the third PE;
  • the second recycling unit 16 is configured to recover the local resources occupied by the second PW.
  • the label mapping relationship corresponding to the second PW includes: a label mapping relationship between the first PE and the third PE, and a label mapping relationship between the third PE and the first PE;
  • the second processing unit includes:
  • the third processing module is configured to: according to the label revocation message, clear a label mapping relationship between the third PE and the first PE;
  • the fourth processing module is configured to clear the label mapping relationship of the first PE to the third PE according to the active label release message.
  • the startup unit 17 includes any one or more of the following modules:
  • the first startup module is configured to set the startup condition that the first PE is an active T-PE, and the active T-PE removes a certain multi-segment pseudowire according to the configuration; the second PE is the multi-segment pseudowire The S-PE connected to the first PE;
  • the second startup module is configured to set the activation condition that the first PE is an S-PE, and when the first PE learns that the link between adjacent PEs in a certain multi-segment pseudowire is disconnected; the second PE is Another adjacent PE of the plurality of segments of the pseudowire that is not disconnected from the first PE;
  • a third startup module configured to set a startup condition that the first PE is an S-PE, and when the first PE receives a label revocation message and an active label release message sent by neighboring PEs in a certain multi-segment pseudowire, The label mapping relationship between the adjacent PEs is cleared according to the label revocation message and the active label release message.
  • the second PE is another PE of the multi-segment pseudo-line adjacent to the first PE.
  • the multi-segment pseudowire removal device further includes:
  • the third processing unit 18 is configured to: when the first PE is a T-PE, clear the label mapping corresponding to the third PW when it is learned that the link between the adjacent PEs is disconnected in a certain multi-segment pseudowire Relationship, and clearing the local resource occupied by the third PW; wherein, the third PW is a pseudowire connection between the first PE and the adjacent PE.
  • the embodiment of the present invention further provides another multi-segment pseudo-wire removal device, which is disposed on the first PE.
  • the multi-segment pseudo-wire removal device includes:
  • the second processing unit 21 is configured to receive the label revocation message and the active label release message sent by the third PE, and clear the label mapping relationship corresponding to the second PW according to the label revocation message and the active label release message; wherein, the second PW is a pseudowire connection between the first PE and the third PE;
  • the first sending unit 22 is configured to send a corresponding label release message to the third PE according to the label revocation message sent by the third PE;
  • the second recycling unit 23 is configured to recover the local resources occupied by the second PW.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the multi-segment pseudowire removal method being implemented when the computer executable instructions are executed.
  • the technical solution of the present application can reduce the signaling overhead in the process of multi-segment pseudowire removal, improve the removal speed, and reduce the occupation time of resources, which is conducive to rapid convergence of network changes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种多段伪线拆除方法,包括:第一PE向第二PE发送标签撤销消息和主动标签释放消息,并清除第一PW对应的标签映射关系;其中,第一PW为第一PE和第二PE之间的伪线连接;第一PE接收第二PE发送的与所述标签撤销消息对应的标签释放消息;第一PE在接收到所对应的标签释放消息之后,回收第一PW占用的本地资源。通过本申请的方案,PE在收到相邻的PE发送的标签释放消息之后,便可以完成PW占用的本地资源的拆除,相对于相关技术,本申请提供的拆除过程中信令开销更小,拆除速度较快,并减少了对资源的占用时间,利于网络变化的快速收敛。

Description

一种多段伪线拆除方法和装置 技术领域
本申请涉及但不限于数据网络通信领域,尤指一种多段伪线拆除方法和装置。
背景技术
随着IP数据网的发展,IP网络本身的可拓展、可升级以及兼容互通能力非常强。但是传统的通信网络(如FR(Frame Relay,帧中继)网络、ATM(Asynchronous Transfer Mode,异步传输模式)网络)的升级、扩展、互通的灵活性则相对比较差;受限于传输的方式和业务的类型,因此,新建的网络共用性也比较差,不宜于互通管理。端到端的伪线仿真(Pseudo-Wire Emulation Edge-to-Edge,简称PWE3)技术,通过在运营商的边缘设备(Provider Edge,简称PE)之间,部署伪线(Pseudo-Wire,简称PW),提供了在分组交换网络上传送用户的以太、帧中继、异步传输模式等二层报文的服务。由于PWE3技术能够让运营商的不同服务在同一个网络中进行传输,因此,可以将原有的接入方式与相关技术的IP骨干网融合在一起,从而减少了网络的重复建设,节约运营成本。同时,使得IP骨干网可以连接多样化的接入网络,实现对原有数据网络的改造及增强。因此,PWE3技术的上述优势使其在运营商的各种需求和组网中得到了越来越广泛的应用。
伪线可以分为单段伪线和多段伪线。单段伪线,是指在两个PE之间直接建立PW,中间不通过其他的交换节点。多段伪线(Multi-Segment Pseudowires,简称MS-PW),是指两个终结PE(Terminating Provider Edge,简称T-PE)之间创建的PW需要经过一个或多个中间节点(称为交换PE,即Switching PE,简称S-PE),如图1中所示PE1和PE4之间建立一条MS-PW,经过两个中间节点PE2、PE3。两个中间节点称为交换节点S-PE,PE1和PE4称为终端节点T-PE。多段伪线能提高PSN(Packet Switched Network,分组交换网络)利用率,并解决伪线的跨域问题。
多段伪线有两种建立方式,一种是静态多段伪线,一种是动态多段伪 线。建立静态多段伪线时,需要在T-PE、S-PE上进行全路径配置与绑定。而建立动态多段伪线,只需要在T-PE上进行配置,S-PE通过BGP(Border Gateway Protocol,边界网关协议)协议、LDP(Label Distribution Protocol,标签分发协议)协议动态确定,减轻了网络配置与管理的负担。《Dynamic Placement of Multi-Segment Pseudo wires》(RFC7267)中描述了动态多段伪线的建立过程,通常由两个T-PE当中的主动方发起(主动方可由网络管理策略或T-PE的地址大小决定),标签映射消息通过动态协议确定的S-PE一段接一段地转发至被动方T-PE,然后被动方再将标签映射消息一段接一段地回送至主动方,从而完成建立过程。从主动方到被动方的这条路径,称为正向路径;反之,称为反向路径。反向路径必须与正向路径完全一致,并且依赖于正向路径而存在。当T-PE或者S-PE需要改变网络配置或发现故障时,则需要拆除动态多段伪线。
如图2所示,为拆除动态多段伪线的示意图,其中,主动方T-PE(PE1)发起拆除过程时,正向的标签撤销消息被一段接一段地转发至被动方,再由被动方将反向的标签撤销消息一段接一段地回送至主动方,而且其中S-PE或者T-PE收到标签撤销消息(正向的标签撤销消息或反向的标签撤销消息)都会向发送方回应对应的标签释放消息。主动方T-PE收到反向的标签撤销消息,并回应了对应的标签释放消息后,拆除过程结束,多段伪线所占用的本地资源才能完全释放。整个多段伪线的拆除过程信令开销大、速度慢、占用资源时间长,不利于网络变化的快速收敛。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出了一种多段伪线拆除方法和装置,能够减少多段伪线拆除过程中的信令开销,提高拆除速度,并减少对资源的占用时间,利于网络变化的快速收敛。
本发明实施例提出了一种多段伪线拆除方法,所述多段伪线拆除方法包 括:
第一PE向第二PE发送第一标签撤销消息和第一主动标签释放消息,并清除第一PW对应的标签映射关系;其中,所述第一PW为所述第一PE和所述第二PE之间的伪线连接;
第一PE接收第二PE发送的与所述第一标签撤销消息对应的标签释放消息;
第一PE在接收到所述对应的标签释放消息之后,回收第一PW占用的本地资源。
可选地,所述第一PW对应的标签映射关系包括:第一PE至第二PE的标签映射关系、和第二PE至第一PE的标签映射关系;
所述第一PE向第二PE发送所述第一标签撤销消息和所述第一主动标签释放消息,并清除第一PW对应的标签映射关系包括:
第一PE向第二PE发送标签撤销消息,清除第一PE至第二PE的标签映射关系;
第一PE向第二PE发送主动标签释放消息,清除第二PE至第一PE的标签映射关系。
可选地,所述多段伪线拆除方法还包括:
第一PE接收第三PE发送的第二标签撤销消息和第二主动标签释放消息,并根据所述第二标签撤销消息和第二主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
根据所述第三PE发送的第二标签撤销消息,第一PE向第三PE发送对应的标签释放消息;
第一PE回收第二PW占用的本地资源。
可选地,所述第二PW对应的标签映射关系包括:第一PE至第三PE的标签映射关系、和第三PE至第一PE的标签映射关系;
所述根据所述第二标签撤销消息和所述第二主动标签释放消息,清除第 二PW对应的标签映射关系包括:
第一PE根据所述第二标签撤销消息,清除第三PE至第一PE的标签映射关系;
第一PE根据所述第二主动标签释放消息,清除第一PE至第三PE的标签映射关系。
可选地,在满足启动条件时,第一PE执行所述向第二PE发送所述第一标签撤销消息和所述第一主动标签释放消息的步骤;
所述启动条件包括如下情况中的任意一种或多种:
所述第一PE为主动方T-PE,所述主动方T-PE根据配置需要拆除某多段伪线;所述第二PE为所述多段伪线中与第一PE相连接的S-PE;或
所述第一PE为S-PE,当所述第一PE获知到某多段伪线中相邻的PE之间的链接断开;第二PE为所述多段伪线中与第一PE之间没有断开的另一个相邻的PE;或
所述第一PE为S-PE,当所述第一PE接收到某多段伪线中相邻的PE发送的第三标签撤销消息和第三主动标签释放消息,并已根据所述第三标签撤销消息和所述第三主动标签释放消息清除与所述相邻的PE之间的标签映射关系;第二PE为所述多段伪线中与第一PE相邻的另一个PE。
可选地,所述多段伪线拆除方法还包括:
当所述第一PE为T-PE时,在所述第一PE获知到在某多段伪线中与相邻的PE之间的链接断开时,第一PE清除第三PW对应的标签映射关系,并清除第三PW占用的本地资源;其中,第三PW为第一PE与所述相邻的PE之间的伪线连接。
本发明实施例还提出了一种多段伪线拆除方法,所述多段伪线拆除方法包括:
第一PE接收第三PE发送的标签撤销消息和主动标签释放消息,并根据所述标签撤销消息和主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
根据所述第三PE发送的标签撤销消息,第一PE向第三PE发送对应的 标签释放消息;
第一PE回收第二PW占用的本地资源。
本发明实施例还提出了一种多段伪线拆除装置,设置在第一PE上,至少包括:
第一处理单元,设置为向第二PE发送第一标签撤销消息和第一主动标签释放消息,并清除第一PW对应的标签映射关系;其中,第一PW为第一PE和第二PE之间的伪线连接;
第一接收单元,设置为接收第二PE发送的与所述标签撤销消息对应的标签释放消息;
回收单元,设置为在接收到所述对应的述标签释放消息之后,回收第一PW占用的本地资源。
可选地,所述第一PW对应的标签映射关系包括:第一PE至第二PE的标签映射关系、和第二PE至第一PE的标签映射关系;
所述第一处理单元包括:
第一处理模块,设置为向第二PE发送标签撤销消息,清除第一PE至第二PE的标签映射关系;
第二处理模块,设置为向第二PE发送主动标签释放消息,清除第二PE至第一PE的标签映射关系。
可选地,所述多段伪线拆除装置还包括:
第二处理单元,设置为接收第三PE发送的第二标签撤销消息和第二主动标签释放消息,并根据所述第二标签撤销消息和第二主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
第一发送单元,设置为根据所述第三PE发送的所述第二标签撤销消息,向第三PE发送对应的标签释放消息;
第二回收单元,设置为回收第二PW占用的本地资源。
可选地,所述第二PW对应的标签映射关系包括:第一PE至第三PE的 标签映射关系、和第三PE至第一PE的标签映射关系;
所述第二处理单元包括:
第三处理模块,设置为根据所述第二标签撤销消息,清除第三PE至第一PE的标签映射关系;
第四处理模块,设置为根据所述第二主动标签释放消息,清除第一PE至第三PE的标签映射关系。
可选地,还包括启动单元;
所述第一处理单元在满足启动单元设置的启动条件时,执行所述向第二PE发送所述第一标签撤销消息和所述第一主动标签释放消息的步骤;
所述启动单元包括如下模块中的任意一个或多个:
第一启动模块,设置为设置启动条件为所述第一PE为主动方T-PE,所述主动方T-PE根据配置需要拆除某多段伪线;所述第二PE为所述多段伪线中与第一PE相连接的S-PE;
第二启动模块,设置为设置启动条件为所述第一PE为S-PE,当所述第一PE获知到某多段伪线中相邻的PE之间的链接断开;第二PE为所述多段伪线中与第一PE之间没有断开的另一个相邻的PE;
第三启动模块,设置为设置启动条件为所述第一PE为S-PE,当所述第一PE接收到某多段伪线中相邻的PE发送的第三标签撤销消息和第三主动标签释放消息,并已根据所述第三标签撤销消息和所述第三主动标签释放消息清除与所述相邻的PE之间的标签映射关系;第二PE为所述多段伪线中与第一PE相邻的另一个PE。
可选地,所述多段伪线拆除装置还包括:
第三处理单元,设置为当所述第一PE为T-PE时,在获知到在某多段伪线中与相邻的PE之间的链接断开时,清除第三PW对应的标签映射关系,并清除第三PW占用的本地资源;其中,第三PW为第一PE与所述相邻的PE之间的伪线连接。
本发明实施例还提出了一种多段伪线拆除装置,设置在第一PE上,所述多段伪线拆除装置还包括:
第二处理单元,设置为接收第三PE发送的标签撤销消息和主动标签释放消息,并根据所述标签撤销消息和主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
第一发送单元,设置为根据所述第三PE发送的标签撤销消息,向第三PE发送对应的标签释放消息;
第二回收单元,设置为回收第二PW占用的本地资源。
本发明实施例还提供了一种计算机可读存储介质,其存储有计算机可执行指令,当所述计算机可执行指令被执行时实现上文所述的多段伪线拆除方法。
与相关技术相比,本发明实施例提供的技术方案包括第一PE向第二PE发送标签撤销消息和主动标签释放消息,并清除第一PW对应的标签映射关系;其中,第一PW为第一PE和第二PE之间的伪线连接;第一PE接收第二PE发送的与所述标签撤销消息对应的标签释放消息;第一PE在接收到所对应的标签释放消息之后,回收第一PW占用的本地资源。通过本发明实施例的方案,PE在收到相邻的PE发送的标签释放消息之后,便可以完成PW占用的本地资源的拆除,相对于相关技术中主动方T-PE需要收到反向的标签撤销消息之后才能完成拆除过程,本发明实施例提供的方案能够减少多段伪线拆除过程中信令开销更小,拆除速度较快,并减少了对资源的占用时间,利于网络变化的快速收敛。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为相关MS-PW的建立示意图;
图2为相关动态多段伪线的拆除过程的示意图;
图3本发明实施例提出的一种多段伪线拆除方法的流程图;
图4A、图4B和图4C分别为本发明实施例提出的一种多段伪线拆除过程的流程图;
图5A和图5B分别为本发明实施例提出的一种多段伪线拆除装置的结构组成示意图。
本发明的实施方式
下面结合附图对本发明实施例作进一步的描述,并不能用来限制本申请的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。
参见图3,本发明实施例提出了一种多段伪线拆除方法,所述多段伪线拆除方法包括:
步骤110,第一PE向第二PE发送标签撤销消息和主动标签释放消息,并清除第一PW对应的标签映射关系;其中,第一PW为第一PE和第二PE之间的伪线连接。
本发明实施例中,在满足启动条件时,第一PE执行步骤110中的步骤;
所述启动条件包括如下情况中的任意一种或多种:
启动条件1、所述第一PE为主动方T-PE,所述主动方T-PE根据配置需要拆除某多段伪线;所述第二PE为所述多段伪线中与第一PE相连接的S-PE;或
启动条件2、所述第一PE为S-PE,当所述第一PE获知到某多段伪线中相邻的PE之间的链接断开;第二PE为所述多段伪线中与第一PE之间没有断开的另一个相邻的PE;或
启动条件3、所述第一PE为S-PE,当所述第一PE接收到某多段伪线中相邻的PE发送的标签撤销消息和主动标签释放消息,并已根据所述标签撤销消息和主动标签释放消息清除与所述相邻的PE之间的标签映射关系之后;第二PE为所述多段伪线中与第一PE相邻的另一个PE。
步骤120,第一PE接收第二PE发送的与所述标签撤销消息对应的标签释放消息;
步骤130,第一PE在接收到对应的述标签释放消息之后,回收第一PW 占用的本地资源。
本发明实施例中,所述第一PW对应的标签映射关系包括:第一PE至第二PE的标签映射关系、和第二PE至第一PE的标签映射关系;
步骤110中,所述第一PE向第二PE发送标签撤销消息和主动标签释放消息,并清除第一PW对应的标签映射关系包括:
步骤111,第一PE向第二PE发送标签撤销消息,
步骤112,第一PE清除第一PE至第二PE的标签映射关系。
其中,步骤111和步骤112之间的顺序可以更换。
步骤113,第一PE向第二PE发送主动标签释放消息,
步骤114,第一PE清除第二PE至第一PE的标签映射关系。
其中,步骤113和步骤114之间的顺序可以更换。
本发明实施例中,所述多段伪线拆除方法还包括:
步骤210,第一PE接收第三PE发送的标签撤销消息和主动标签释放消息,并根据所述标签撤销消息和主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
步骤220,根据所述第三PE发送的标签撤销消息,第一PE向第三PE发送对应的标签释放消息;
步骤230,第一PE回收第二PW占用的本地资源。
本发明实施例中,所述第二PW对应的标签映射关系包括:第一PE至第三PE的标签映射关系、和第三PE至第一PE的标签映射关系;
步骤210中,所述根据所述标签撤销消息和主动标签释放消息,清除第二PW对应的标签映射关系包括:
步骤211,第一PE根据所述标签撤销消息,清除第三PE至第一PE的标签映射关系;
步骤212,第一PE根据所述主动标签释放消息,清除第一PE至第三PE的标签映射关系。
本发明实施例中,所述多段伪线拆除方法还包括:
当所述第一PE为T-PE时,在所述第一PE获知到在某多段伪线中与相邻的PE之间的链接断开时,第一PE清除第三PW对应的标签映射关系,并清除第三PW占用的本地资源;其中,第三PW为第一PE与所述相邻的PE之间的伪线连接。
下面结合应用场景进行详细说明。
参见图4A,本发明实施例提出了一种多段伪线拆除的拆除过程示意图。该示例中的多段伪线包括4个PE,分别为PE1、PE2、PE3、和PE4,其中,PE1和PE4为T-PE,PE2和PE3为S-PE,其中,PE1为主动方PE。
结合图4A所示,所述多段伪线拆除方法包括:
步骤311,PE1向PE2发送标签撤销消息。
在建立多段伪线时,针对PE1和PE2之间的链接PW1,PE1上会存储PE1发送给PE2的标签映射关系(即PE1至PE2的标签映射关系)以及PE2发送给PE1的标签映射关系(即PE2至PE1的标签映射关系),同样地,PE2上也会存储PE1发送给PE2的标签映射关系(即PE1至PE2的标签映射关系)以及PE2发送给PE1的标签映射关系(即PE2至PE1的标签映射关系)。
其中,对于PE1来说,PE1至PE2的标签映射关系为正向的标签映射关系,PE2至PE1的标签映射关系为反向的标签映射关系;对于PE2来说,PE2至PE1的标签映射关系为正向的标签映射关系,PE1至PE2的标签映射关系为反向的标签映射关系。
PE1发送的标签撤销消息用于通知PE2清除之前多段伪线建立时,PE1发送给PE2的标签映射关系。
PE1在向PE2发送标签撤销消息之后,会清除多段伪线对应的正向的标签映射关系(即PE1发送给PE2的标签映射关系)记录信息,删除本地转发表项,从而完成正向信令的拆除;
通过标签撤销消息的发送,PE1和PE2之间的PW1将处于失效状态。
步骤312,PE1向PE2发送主动标签释放消息;
所述主动标签释放消息用于告知PE2,PE1已经清除PE2发送给PE1的标签映射关系(反向标签映射关系),PE1在清除正向的标签映射记录信息 之后,由于反向的标签映射关系是依赖于正向的标签映射关系而存在的,因此PE1也会清除反向的标签映射关系记录信息,以完成反向信令的拆除。
步骤313,PE2向PE1发送与上述标签撤销消息对应的标签释放消息;
PE在收到标签撤销消息之后,均会回应对应的标签释放消息。
PE2在接收到PE1发送的标签撤销消息之后,将回复对应的标签释放消息,并清除PE1发送给PE2的标签映射关系。
PE2在接收到PE1发送的主动标签释放消息之后,将根据所述主动标签释放消息,清除PE2发送给PE1的标签映射关系。
步骤314,PE1接收到PE2发送的与标签撤销消息对应的标签释放消息之后,将回收PW1占用的本地资源,PE1本地完成该MS-PW的拆除。
PE2在清除PW1对应的标签映射关系之后,继续清除PW2对应的标签映射关系。在PE2清理PW1的过程中,PE2算是被动方,PE1为主动方,在PE2清理PW2的过程中,PE2算是主动方,PE3为被动方,也就是说,PE3根据PE2的通知,进行PE3上PW2的拆除,在PE3拆除PW2之后,将继续拆除PW3。
步骤321,PE2向PE3发送标签撤销消息。
在向PE3发送标签撤销消息之后,PE2清除PE2发送给PE3的标签映射关系。
步骤322,PE2向PE3发送主动标签释放消息。
在向PE3发送主动标签释放消息之后,PE2清除PE3发送给PE2的标签映射关系。
步骤323,PE3接收PE2发送标签撤销消息,并发送对应的标签释放消息。
步骤324,PE2接收PE3发送的对应的标签释放消息,并回收PW2占用的本地资源,PE2本地完成该MS-PW的拆除。
至此,PE2上的PW1和PW2占用的资源已全部拆除,PE2本地完成了该MS-PW的拆除。
步骤330,PE3执行PW3的拆除过程。
PE3执行PW3的拆除过程和PE2执行PW2的拆除过程类似。
其中:步骤331,PE3向PE4发送标签撤销消息。
步骤332,PE3向PE4发送主动标签释放消息。
步骤333,PE4接收PE3发送的标签撤销消息,并向PE3发送对应的标签释放消息。
步骤334,PE3接收PE4发送的对应的标签释放消息,并回收PW3占用的本地资源。PE3本地完成了该MS-PW的拆除。
步骤341,PE4为被动方T-PE,对于PE3发送的标签撤销系,向PE3回应标签释放消息,清除PE3给PE4的标签映射记录,删除本地转发表项。然后,对于PE3发送的标签释放消息,清除PE4给PE3的标签映射记录,回收所有被PW3占用的本地资源,PE4本地完成了该MS-PW的拆除。
参见图4B,为本发明实施例提出的另一个多段伪线拆除的拆除过程示意图。该示例中的多段伪线包括4个PE,分别为PE1、PE2、PE3、和PE4,其中,PE1和PE4为T-PE,PE2和PE3为S-PE,其中,PE1为主动方PE。
结合图4B所示,所述多段伪线拆除方法包括:
步骤411,PE1获知到PW1链路已断开。
步骤412、PE1本地完成该MS-PW的拆除。
步骤421,PE2获知到PW1链路已断开。
步骤422,PE2向PE3发送标签撤销消息。
步骤423,PE2向PE3发送主动标签释放消息。
步骤424,PE3向PE2发送与上述标签撤销消息对应的标签释放消息。
步骤425,在PE2接收到PE3发送的对应的标签释放消息之后,PE2本地完成了该MS-PW的拆除。
步骤431,PE3向PE4发送标签撤销消息。
步骤432,PE3向PE4发送主动标签释放消息。
步骤433,PE4向PE3发送与上述标签撤销消息对应的标签释放消息。
步骤434,在PE3接收到PE4发送的对应的标签释放消息之后,PE3本地完成了该MS-PW的拆除。
步骤435,PE4根据PE3发送标的签撤销消息和主动标签释放消息,本地完成了该MS-PW的拆除。
参见图4C,为本发明实施例提出的另一个多段伪线拆除的拆除过程示意图。该示例中的多段伪线包括4个PE,分别为PE1、PE2、PE3、和PE4,其中,PE1和PE4为T-PE,PE2和PE3为S-PE,其中,PE1为主动方PE。
结合图4C所示,所述多段伪线拆除方法包括:
步骤511,PE2获知到PW2链路已断开。
步骤512,PE2向PE1发送标签撤销消息。
步骤513,PE2向PE1发送主动标签释放消息;
步骤514,PE1向PE2发送与上述标签撤销消息对应的标签释放消息;
在PE2接收到PE1发送的对应的标签释放消息之后,PE2本地完成了该MS-PW的拆除。
PE1根据PE2发送标的签撤销消息和主动标签释放消息,本地完成了该MS-PW的拆除。
相关技术中,在某S-PE获知到与上一节点之间的链路断开时,会向上一节点的PE发送主动标签释放消息,其中,主动标签释放消息中携带有错误码,通过携带错误码,使得主动标签释放消息区分于普通的标签释放消息,其中,普通的标签释放消息是用于对其他PE发送的标签撤销消息进行回应的消息。
本发明实施例中,主动标签释放消息可以携带错误码,也可以不携带错误码,也就是说,本发明实施例中的主动标签释放消息和标签释放消息可以是相同格式的消息,只是因为消息发送的时机和用途不同,其中,标签释放消息是用于对其他PE发送的标签撤销消息进行回应的消息,而主动标签释放消息不是用于对其他PE发送的标签撤销消息进行回应的消息。也可以认为主动标签释放消息是一种特殊的标签释放消息。
步骤521,PE3获知到PW2链路已断开。
步骤522,PE3向PE4发送标签撤销消息。
步骤523,PE3向PE4发送主动标签释放消息。
步骤524,PE4向PE3发送与上述标签撤销消息对应的标签释放消息。
在PE3接收到PE4发送的对应的标签释放消息之后,PE3本地完成了该MS-PW的拆除。
PE4根据PE3发送标的签撤销消息和主动标签释放消息,本地完成了该MS-PW的拆除。
本发明实施例还提供一种多段伪线拆除装置,设置在第一PE上,参见图5A,本发明实施例提出的多段伪线拆除装置包括:
第一处理单元11,设置为向第二PE发送标签撤销消息和主动标签释放消息,并清除第一PW对应的标签映射关系;其中,第一PW为第一PE和第二PE之间的伪线连接;
第一接收单元12,设置为接收第二PE发送的与所述标签撤销消息对应的标签释放消息;
回收单元13,设置为在接收到所述对应的述标签释放消息之后,回收第一PW占用的本地资源。
9、根据权利要求8所述的多段伪线拆除装置,其特征在于,所述第一PW对应的标签映射关系包括:第一PE至第二PE的标签映射关系、和第二PE至第一PE的标签映射关系;
所述第一处理单元包括:
第一处理模块,设置为向第二PE发送标签撤销消息,清除第一PE至第二PE的标签映射关系;
第二处理模块,设置为向第二PE发送主动标签释放消息,清除第二PE至第一PE的标签映射关系。
本发明实施例中,所述多段伪线拆除装置还包括:
第二处理单元14,设置为接收第三PE发送的标签撤销消息和主动标签 释放消息,并根据所述标签撤销消息和主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
第一发送单元15,设置为根据所述第三PE发送的标签撤销消息,向第三PE发送对应的标签释放消息;
第二回收单元16,设置为回收第二PW占用的本地资源。
本发明实施例中,所述第二PW对应的标签映射关系包括:第一PE至第三PE的标签映射关系、和第三PE至第一PE的标签映射关系;
所述第二处理单元包括:
第三处理模块,设置为根据所述标签撤销消息,清除第三PE至第一PE的标签映射关系;
第四处理模块,设置为根据所述主动标签释放消息,清除第一PE至第三PE的标签映射关系。
本发明实施例中,还包括启动单元17;
所述第一处理单元在满足启动单元设置的启动条件时,执行所述向第二PE发送标签撤销消息和主动标签释放消息的步骤;
所述启动单元17包括如下模块中的任意一个或多个:
第一启动模块,设置为设置启动条件为所述第一PE为主动方T-PE,所述主动方T-PE根据配置需要拆除某多段伪线;所述第二PE为所述多段伪线中与第一PE相连接的S-PE;
第二启动模块,设置为设置启动条件为所述第一PE为S-PE,当所述第一PE获知到某多段伪线中相邻的PE之间的链接断开;第二PE为所述多段伪线中与第一PE之间没有断开的另一个相邻的PE;
第三启动模块,设置为设置启动条件为所述第一PE为S-PE,当所述第一PE接收到某多段伪线中相邻的PE发送的标签撤销消息和主动标签释放消息,并已根据所述标签撤销消息和主动标签释放消息清除与所述相邻的PE之间的标签映射关系;第二PE为所述多段伪线中与第一PE相邻的另一个PE。
本发明实施例中,其特征在于,所述多段伪线拆除装置还包括:
第三处理单元18,设置为当所述第一PE为T-PE时,在获知到在某多段伪线中与相邻的PE之间的链接断开时,清除第三PW对应的标签映射关系,并清除第三PW占用的本地资源;其中,第三PW为第一PE与所述相邻的PE之间的伪线连接。
基于与上述实施例相同或相似的构思,本发明实施例还提供另一种多段伪线拆除装置,设置在第一PE上,参见图5B,本发明实施例提出的多段伪线拆除装置包括:
第二处理单元21,设置为接收第三PE发送的标签撤销消息和主动标签释放消息,并根据所述标签撤销消息和主动标签释放消息,清除第二PW对应的标签映射关系;其中,第二PW为第一PE和第三PE之间的伪线连接;
第一发送单元22,设置为根据所述第三PE发送的标签撤销消息,向第三PE发送对应的标签释放消息;
第二回收单元23,设置为回收第二PW占用的本地资源。
本发明实施例还提供了一种计算机可读存储介质,其存储有计算机可执行指令,所述计算机可执行指令被执行时实现所述多段伪线拆除方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人 员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
本申请技术方案能够减少多段伪线拆除过程中的信令开销,提高拆除速度,并减少对资源的占用时间,利于网络变化的快速收敛。

Claims (14)

  1. 一种多段伪线拆除方法,包括:
    第一边缘设备PE向第二PE发送第一标签撤销消息和第一主动标签释放消息,并清除第一伪线PW对应的标签映射关系;其中,所述第一PW为所述第一PE和所述第二PE之间的伪线连接;
    所述第一PE接收所述第二PE发送的与所述第一标签撤销消息对应的标签释放消息;
    所述第一PE在接收到所述对应的标签释放消息之后,回收所述第一PW占用的本地资源。
  2. 根据权利要求1所述的多段伪线拆除方法,其中,所述第一PW对应的标签映射关系包括:所述第一PE至所述第二PE的标签映射关系、和所述第二PE至所述第一PE的标签映射关系;
    所述第一PE向所述第二PE发送所述第一标签撤销消息和所述第一主动标签释放消息,并清除所述第一PW对应的标签映射关系包括:
    所述第一PE向所述第二PE发送所述标签撤销消息,清除所述第一PE至所述第二PE的标签映射关系;
    所述第一PE向所述第二PE发送所述主动标签释放消息,清除所述第二PE至第一PE的标签映射关系。
  3. 根据权利要求1所述的多段伪线拆除方法,还包括:
    所述第一PE接收第三PE发送的第二标签撤销消息和第二主动标签释放消息,并根据所述第二标签撤销消息和所述第二主动标签释放消息,清除所述第二PW对应的标签映射关系;其中,所述第二PW为所述第一PE和所述第三PE之间的伪线连接;
    根据所述第三PE发送的所述第二标签撤销消息,所述第一PE向所述第三PE发送对应的标签释放消息;
    所述第一PE回收所述第二PW占用的本地资源。
  4. 根据权利要求3所述的多段伪线拆除方法,其中,所述第二PW对应 的标签映射关系包括:所述第一PE至所述第三PE的标签映射关系、和所述第三PE至所述第一PE的标签映射关系;
    所述根据所述第二标签撤销消息和所述第二主动标签释放消息,清除所述第二PW对应的标签映射关系包括:
    所述第一PE根据所述第二标签撤销消息,清除所述第三PE至所述第一PE的标签映射关系;
    所述第一PE根据所述第二主动标签释放消息,清除所述第一PE至所述第三PE的标签映射关系。
  5. 根据权利要求1所述的多段伪线拆除方法,其中,在满足启动条件时,所述第一PE执行所述向所述第二PE发送所述第一标签撤销消息和所述第一主动标签释放消息的步骤;
    所述启动条件包括如下情况中的任意一种或多种:
    所述第一PE为主动方T-PE,所述主动方T-PE根据配置需要拆除某多段伪线;所述第二PE为所述多段伪线中与所述第一PE相连接的S-PE;或
    所述第一PE为S-PE,当所述第一PE获知到某多段伪线中相邻的PE之间的链接断开;所述第二PE为所述多段伪线中与所述第一PE之间没有断开的另一个相邻的PE;或
    所述第一PE为S-PE,当所述第一PE接收到某多段伪线中相邻的PE发送的第三标签撤销消息和第三主动标签释放消息,并已根据所述第三标签撤销消息和所述第三主动标签释放消息清除与所述相邻的PE之间的标签映射关系;所述第二PE为所述多段伪线中与所述第一PE相邻的另一个PE。
  6. 根据权利要求1~5中任一项所述的多段伪线拆除方法,还包括:
    当所述第一PE为T-PE时,在所述第一PE获知到在某多段伪线中与相邻的PE之间的链接断开时,所述第一PE清除第三PW对应的标签映射关系,并清除所述第三PW占用的本地资源;其中,所述第三PW为所述第一PE与所述相邻的PE之间的伪线连接。
  7. 一种多段伪线拆除方法,包括:
    第一边缘设备PE接收第三PE发送的标签撤销消息和主动标签释放消 息,并根据所述标签撤销消息和所述主动标签释放消息,清除第二伪线PW对应的标签映射关系;其中,所述第二PW为所述第一PE和所述第三PE之间的伪线连接;
    根据所述第三PE发送的标签撤销消息,所述第一PE向所述第三PE发送对应的标签释放消息;
    所述第一PE回收所述第二PW占用的本地资源。
  8. 一种多段伪线拆除装置,设置在第一边缘设备PE上,包括:
    第一处理单元,设置为向第二PE发送第一标签撤销消息和第一主动标签释放消息,并清除第一伪线PW对应的标签映射关系;其中,所述第一PW为所述第一PE和所述第二PE之间的伪线连接;
    第一接收单元,设置为接收所述第二PE发送的与所述标签撤销消息对应的标签释放消息;
    回收单元,设置为在接收到所述对应的述标签释放消息之后,回收所述第一PW占用的本地资源。
  9. 根据权利要求8所述的多段伪线拆除装置,其中,所述第一PW对应的标签映射关系包括:所述第一PE至所述第二PE的标签映射关系、和所述第二PE至所述第一PE的标签映射关系;
    所述第一处理单元包括:
    第一处理模块,设置为向所述第二PE发送所述第一标签撤销消息,清除所述第一PE至所述第二PE的标签映射关系;
    第二处理模块,设置为向所述第二PE发送所述第一主动标签释放消息,清除所述第二PE至所述第一PE的标签映射关系。
  10. 根据权利要求8所述的多段伪线拆除装置,还包括:
    第二处理单元,设置为接收第三PE发送的第二标签撤销消息和第二主动标签释放消息,并根据所述第二标签撤销消息和第二主动标签释放消息,清除所述第二PW对应的标签映射关系;其中,所述第二PW为所述第一PE和所述第三PE之间的伪线连接;
    第一发送单元,设置为根据所述第三PE发送的所述第二标签撤销消息,向所述第三PE发送对应的标签释放消息;
    第二回收单元,设置为回收所述第二PW占用的本地资源。
  11. 根据权利要求10所述的多段伪线拆除装置,其中,所述第二PW对应的标签映射关系包括:所述第一PE至所述第三PE的标签映射关系、和所述第三PE至所述第一PE的标签映射关系;
    所述第二处理单元包括:
    第三处理模块,设置为根据所述第二标签撤销消息,清除所述第三PE至所述第一PE的标签映射关系;
    第四处理模块,设置为根据所述第二主动标签释放消息,清除所述第一PE至所述第三PE的标签映射关系。
  12. 根据权利要求8所述的多段伪线拆除装置,还包括启动单元;
    所述第一处理单元在满足所述启动单元设置的启动条件时,执行所述向所述第二PE发送所述第一标签撤销消息和所述第一主动标签释放消息的步骤;
    所述启动单元包括如下模块中的任意一个或多个:
    第一启动模块,设置为设置启动条件为所述第一PE为主动方T-PE,所述主动方T-PE根据配置需要拆除某多段伪线;所述第二PE为所述多段伪线中与所述第一PE相连接的S-PE;
    第二启动模块,设置为设置启动条件为所述第一PE为S-PE,当所述第一PE获知到某多段伪线中相邻的PE之间的链接断开;所述第二PE为所述多段伪线中与所述第一PE之间没有断开的另一个相邻的PE;
    第三启动模块,设置为设置启动条件为所述第一PE为S-PE,当所述第一PE接收到某多段伪线中相邻的PE发送的第三标签撤销消息和第三主动标签释放消息,并已根据所述第三标签撤销消息和所述第三主动标签释放消息清除与所述相邻的PE之间的标签映射关系;所述第二PE为所述多段伪线中与所述第一PE相邻的另一个PE。
  13. 根据权利要求8~12任一项所述的多段伪线拆除装置,还包括:
    第三处理单元,设置为当所述第一PE为T-PE时,在获知到在某多段伪线中与相邻的PE之间的链接断开时,清除第三PW对应的标签映射关系,并清除所述第三PW占用的本地资源;其中,所述第三PW为所述第一PE与所述相邻的PE之间的伪线连接。
  14. 一种多段伪线拆除装置,设置在第一边缘设备PE上,所述多段伪线拆除装置包括:
    第二处理单元,设置为接收第三PE发送的标签撤销消息和主动标签释放消息,并根据所述标签撤销消息和所述主动标签释放消息,清除第二伪线PW对应的标签映射关系;其中,所述第二PW为所述第一PE和所述第三PE之间的伪线连接;
    第一发送单元,设置为根据所述第三PE发送的标签撤销消息,向所述第三PE发送对应的标签释放消息;
    第二回收单元,设置为回收所述第二PW占用的本地资源。
PCT/CN2016/079198 2015-07-27 2016-04-13 一种多段伪线拆除方法和装置 WO2016180144A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510447955.6 2015-07-27
CN201510447955.6A CN106411543B (zh) 2015-07-27 2015-07-27 一种多段伪线拆除方法和装置

Publications (1)

Publication Number Publication Date
WO2016180144A1 true WO2016180144A1 (zh) 2016-11-17

Family

ID=57248569

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079198 WO2016180144A1 (zh) 2015-07-27 2016-04-13 一种多段伪线拆除方法和装置

Country Status (2)

Country Link
CN (1) CN106411543B (zh)
WO (1) WO2016180144A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123563A (zh) * 2006-08-07 2008-02-13 中兴通讯股份有限公司 一种用于多跳伪线下平稳重启的方法、装置及网络
US20090245263A1 (en) * 2008-03-27 2009-10-01 Fujitsu Limited Apparatus and method for transmitting packets in a packet switched network
CN102457348A (zh) * 2010-10-22 2012-05-16 中兴通讯股份有限公司 一种实现伪线控制字能力协商的方法及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100499589C (zh) * 2006-02-27 2009-06-10 华为技术有限公司 一种建立端到端伪线仿真的多跳伪线的方法
CN101047624B (zh) * 2006-04-27 2010-06-09 华为技术有限公司 标签分配方法以及标签出让方法
US7899044B2 (en) * 2006-06-08 2011-03-01 Alcatel Lucent Method and system for optimizing resources for establishing pseudo-wires in a multiprotocol label switching network
CN101515897B (zh) * 2009-03-31 2011-08-24 华为技术有限公司 基于标签分发协议的消息发送、接收方法及装置
CN101656666B (zh) * 2009-09-24 2012-08-15 福建星网锐捷网络有限公司 标签分发协议会话处理方法与装置、标签交换路由器
CN102447611B (zh) * 2010-09-30 2015-06-10 中兴通讯股份有限公司 一种建立和拆除双向点到多点标签转发路径的方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123563A (zh) * 2006-08-07 2008-02-13 中兴通讯股份有限公司 一种用于多跳伪线下平稳重启的方法、装置及网络
US20090245263A1 (en) * 2008-03-27 2009-10-01 Fujitsu Limited Apparatus and method for transmitting packets in a packet switched network
CN102457348A (zh) * 2010-10-22 2012-05-16 中兴通讯股份有限公司 一种实现伪线控制字能力协商的方法及系统

Also Published As

Publication number Publication date
CN106411543A (zh) 2017-02-15
CN106411543B (zh) 2020-06-05

Similar Documents

Publication Publication Date Title
US8654632B2 (en) Method for fast switching traffic in H-VPLS
EP3065342B1 (en) Update of mac routes in evpn single-active topology
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
EP3148127A1 (en) Egress protection for bum traffic with link failures in evpn
CN101999224B (zh) 对虚拟专用lan业务的冗余的以太网自动保护切换接入
CN102025541B (zh) 一种实现组播保护的方法及系统
WO2016015497A1 (zh) 一种报文转发的方法、设备及系统
WO2012028029A1 (zh) 一种切换方法及系统
WO2020135395A1 (zh) 一种跨内部网关协议的前缀标识通告方法和装置
JP5692553B2 (ja) リング型ネットワークにおけるノード装置およびその経路切替制御方法
US20120099426A1 (en) Method, system, and device for forwarding data frames
WO2012130034A1 (zh) 一种vpls快速重路由方法和设备
CN106789635B (zh) 一种报文转发方法及装置
CN102025646A (zh) 链路倒换方法及其装置
WO2015024524A1 (zh) 转发邻接链路的发布方法
MX2011012651A (es) Metodo, aparato y sistema para respaldo caliente de agrupamiento de dos nodos.
CN110932895B (zh) 一种网络切片的报文转发方法和装置
CN103297338B (zh) 一种vpn路由通告方法和设备
WO2013010422A1 (zh) 基于共享路径的环网隧道配置方法、环网保护方法及系统
WO2011140923A1 (zh) 一种建立标签交换路径的方法和装置
EP2717519B1 (en) Method and apparatus for transferring bootstrap message
WO2008095360A1 (fr) Méthode et système de commutation rapide en cas de défaillance d'une liaison d'un réseau privé virtuel
CN104702498A (zh) 一种通过协调保护减少设备间光连接数量的方法及装置
US20120269056A1 (en) Method, device, and system for protecting semi-ring network
CN106789523B (zh) 一种逻辑隧道的创建方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16791994

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16791994

Country of ref document: EP

Kind code of ref document: A1