CN106411543B - Method and device for removing multi-segment pseudo wires - Google Patents
Method and device for removing multi-segment pseudo wires Download PDFInfo
- Publication number
- CN106411543B CN106411543B CN201510447955.6A CN201510447955A CN106411543B CN 106411543 B CN106411543 B CN 106411543B CN 201510447955 A CN201510447955 A CN 201510447955A CN 106411543 B CN106411543 B CN 106411543B
- Authority
- CN
- China
- Prior art keywords
- label
- message
- active
- segment
- label mapping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
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
The invention discloses a method and a device for removing a multi-segment pseudo wire, wherein a first PE sends a label canceling message and an active label releasing message to a second PE, and the label mapping relation corresponding to a first PW is eliminated; wherein the first PW is a pseudo-wire connection between the first PE and the second PE; the first PE receives a label release message which is sent by the second PE and corresponds to the label canceling message; and after receiving the corresponding label release message, the first PE recovers the local resources occupied by the first PW. Through the scheme of the invention, the PE can complete the removal of the local resources occupied by the PW after receiving the label release message sent by the adjacent PE, compared with the prior art, the invention has the advantages of smaller signaling overhead and higher removal speed in the removal process, reduces the occupied time of the resources and is beneficial to the rapid convergence of network change.
Description
Technical Field
The present invention relates to the field of data network communications, and in particular, to a method and an apparatus for removing a multi-segment pseudowire.
Background
With the development of the IP data network, the IP network itself is very expandable, upgradable, and compatible with the interworking capability. However, the flexibility of upgrading, expanding and communicating the traditional communication network (such as FR network and ATM network) is relatively poor; the method is limited by the transmission mode and the type of service, so the newly-built network has poor commonality and is not suitable for intercommunication management. An end-to-end Pseudo Wire Emulation (PWE3, Pseudo-Wire Emulation Edge-to-Edge) technology provides services for transmitting two-layer messages of users such as ethernet, frame relay, asynchronous transmission mode and the like on a packet switching network by deploying Pseudo Wires (PW) between Edge devices (PE, Provider Edge) of an operator. The PWE3 technology enables different services of an operator to be transmitted in the same network, so that the original access mode can be fused with the existing IP backbone network, thereby reducing the repeated construction of the network and saving the operation cost. Meanwhile, the IP backbone network can be connected with diversified access networks, and the original data network is improved and enhanced. Thus, the above-described advantages of PWE3 technology have made it increasingly popular for use in various needs and networking of operators.
Pseudowires can be divided into single-segment pseudowires and multi-segment pseudowires. A single segment pseudowire refers to a PW established directly between two PEs without passing through other switching nodes in between. A Multi-Segment pseudowire (MS-PW) means that a PW created between two Terminating PEs (T-PEs, Terminating Provider edges) needs to pass through one or more intermediate nodes (called Switching PEs, i.e., S-PEs, Switching PEs), as shown in fig. 1, an MS-PW is established between PE1 and PE4, and passes through two intermediate nodes PE2 and PE 3. The two intermediate nodes are referred to as switching nodes S-PE, and PE1 and PE4 are referred to as end nodes T-PE. The multi-segment pseudo wires can improve the utilization rate of the PSN and solve the cross-domain problem of the pseudo wires.
There are two ways of establishing a multi-segment pseudowire, one is a static multi-segment pseudowire and the other is a dynamic multi-segment pseudowire. When a static multi-segment pseudo wire is established, full path configuration and binding are required to be carried out on T-PE and S-PE. The dynamic multi-segment pseudo wires are established only by configuring on the T-PE, and the S-PE is dynamically determined through a BGP protocol and an LDP protocol, so that the burden of network configuration and management is reduced. Dynamic Placement of Multi-Segment Pseudowires (RFC7267) describes a Dynamic Multi-Segment pseudowire establishment process, which is usually initiated by an active party of two T-PEs (the active party can be determined by a network management policy or the address size of the T-PE), a label mapping message is forwarded to a passive party T-PE one by one through S-PE determined by a Dynamic protocol, and then the passive party returns the label mapping message to the active party one by one, thereby completing the establishment process. This path from the active to the passive is called the forward path; otherwise, it is called reverse path. The reverse path must be identical to the forward path and exists depending on the forward path. When a T-PE or S-PE needs to change the network configuration or discover a failure, the dynamic multi-segment pseudowire needs to be removed.
As shown in fig. 2, a schematic diagram of tearing down a dynamic multi-segment pseudowire is shown, wherein when a T-PE (PE1) on an active side initiates a tear-down process, a forward label cancellation message is forwarded to a passive side segment by segment, and then the passive side returns a backward label cancellation message to the active side segment by segment, and wherein the S-PE or the T-PE, upon receiving the label cancellation message (the forward label cancellation message or the backward label cancellation message), responds to a corresponding label release message from a sending side. The T-PE of the active side receives the reverse label canceling message and responds to the corresponding label releasing message, the dismantling process is finished, and the local resources occupied by the multi-segment pseudo wires can be completely released. The whole dismantling process of the multi-segment pseudo wire has large signaling overhead, low speed and long resource occupation time, and is not beneficial to the rapid convergence of network change.
Disclosure of Invention
In order to solve the problems, the invention provides a method and a device for removing a multi-segment pseudo wire, which can reduce signaling overhead in the process of removing the multi-segment pseudo wire, improve the removing speed, reduce the occupied time of resources and facilitate the rapid convergence of network change.
In order to achieve the above object, the present invention provides a method for removing a multi-segment pseudo wire, including:
the first PE sends a label canceling message and an active label releasing message to the second PE, and clears the label mapping relation corresponding to the first PW; wherein the first PW is a pseudo-wire connection between the first PE and the second PE;
the first PE receives a label release message which is sent by the second PE and corresponds to the label canceling message;
and after receiving the corresponding label release message, the first PE recovers the local resources occupied by the first PW.
Preferably, the label mapping relationship corresponding to the first PW includes: a label mapping relation from the first PE to the second PE and a label mapping relation from the second PE to the first PE;
the first PE sends a label canceling message and an active label releasing message to a second PE, and clearing the label mapping relation corresponding to the first PW comprises the following steps:
the first PE sends a label canceling message to the second PE, and the label mapping relation from the first PE to the second PE is cleared;
the first PE sends an active label release message to the second PE, and the label mapping relation from the second PE to the first PE is cleared.
Preferably, the multi-segment pseudowire removal method further comprises:
the first PE receives a label canceling message and an active label releasing message sent by the third PE, and clears a label mapping relation corresponding to the second PW according to the label canceling message and the active label releasing message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
according to the label canceling message sent by the third PE, the first PE sends a corresponding label releasing message to the third PE;
and the first PE recovers the local resources occupied by the second PW.
Preferably, the label mapping relationship corresponding to the second PW includes: a label mapping relationship from the first PE to the third PE, and a label mapping relationship from the third PE to the first PE;
the clearing of the label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message includes:
the first PE clears the label mapping relation from the third PE to the first PE according to the label canceling message;
and the first PE clears the label mapping relation from the first PE to the third PE according to the active label release message.
Preferably, when the starting condition is satisfied, the first PE performs the step of sending the label canceling message and the active label releasing message to the second PE;
the starting conditions comprise one or more of the following conditions:
the first PE is an active party T-PE, and the active party T-PE removes a certain multi-segment pseudo wire according to configuration requirements; the second PE is an S-PE connected with the first PE in the multi-segment pseudo wire; or
The first PE is an S-PE, and when the first PE knows that the links between adjacent PEs in a multi-segment pseudo wire are disconnected; the second PE is another adjacent PE which is not disconnected with the first PE in the multi-segment pseudo wire; or
The first PE is an S-PE, when the first PE receives a label canceling message and an active label releasing message sent by an adjacent PE in a multi-segment pseudo wire, and a label mapping relation between the first PE and the adjacent PE is cleared according to the label canceling message and the active label releasing message; the second PE is another PE in the multi-segment pseudowire that is adjacent to the first PE.
Preferably, the multi-segment pseudowire removal method further comprises:
when the first PE is a T-PE, the first PE clears a label mapping relation corresponding to a third PW and clears local resources occupied by the third PW when the first PE learns that a link between a certain multi-segment pseudo wire and an adjacent PE is disconnected; wherein the third PW is a pseudowire connection between the first PE and the adjacent PE.
In order to achieve the above object, the present invention further provides a method for removing a multi-segment pseudo wire, including:
the first PE receives a label canceling message and an active label releasing message sent by the third PE, and clears a label mapping relation corresponding to the second PW according to the label canceling message and the active label releasing message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
according to the label canceling message sent by the third PE, the first PE sends a corresponding label releasing message to the third PE;
and the first PE recovers the local resources occupied by the second PW.
In order to achieve the above object, the present invention further provides a multi-segment pseudowire removal device, disposed on a first PE, including at least:
the first processing unit is used for sending a label canceling message and an active label releasing message to the second PE and clearing a label mapping relation corresponding to the first PW; wherein the first PW is a pseudo-wire connection between the first PE and the second PE;
a first receiving unit, configured to receive a tag release message corresponding to the tag revocation message sent by the second PE;
and the recovery unit is used for recovering the local resources occupied by the first PW after receiving the corresponding label release message.
Preferably, the label mapping relationship corresponding to the first PW includes: a label mapping relation from the first PE to the second PE and a label mapping relation from the second PE to the first PE;
the first processing unit includes:
the first processing module is used for sending a label canceling message to the second PE and clearing a label mapping relation from the first PE to the second PE;
and the second processing module is used for sending an active label release message to the second PE and clearing the label mapping relation from the second PE to the first PE.
Preferably, the multi-segment pseudowire removal device further comprises:
the second processing unit is configured to receive a label cancellation message and an active label release message sent by the third PE, and clear a label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
a first sending unit, configured to send a corresponding tag release message to the third PE according to the tag revocation message sent by the third PE;
and the second recovery unit is used for recovering the local resources occupied by the second PW.
Preferably, the label mapping relationship corresponding to the second PW includes: a label mapping relationship from the first PE to the third PE, and a label mapping relationship from the third PE to the first PE;
the second processing unit includes:
a third processing module, configured to clear a label mapping relationship from a third PE to the first PE according to the label revocation message;
and the fourth processing module is used for clearing the label mapping relation from the first PE to the third PE according to the active label release message.
Preferably, the device further comprises a starting unit;
the first processing unit executes the steps of sending a label canceling message and an active label releasing message to the second PE when the first processing unit meets the starting condition set by the starting unit;
the starting unit comprises one or more of the following modules:
the first starting module is used for setting a starting condition that the first PE is an active party T-PE, and the active party T-PE removes a certain multi-segment pseudo wire according to configuration requirements; the second PE is an S-PE connected with the first PE in the multi-segment pseudo wire;
the second starting module is used for setting the starting condition that the first PE is an S-PE, and when the first PE knows that the link between the adjacent PEs in a certain multi-segment pseudo wire is disconnected; the second PE is another adjacent PE which is not disconnected with the first PE in the multi-segment pseudo wire;
a third starting module, configured to set a starting condition that the first PE is an S-PE, and when the first PE receives a label cancellation message and an active label release message sent by an adjacent PE in a multi-segment pseudo wire, clear a label mapping relationship between the first PE and the adjacent PE according to the label cancellation message and the active label release message; the second PE is another PE in the multi-segment pseudowire that is adjacent to the first PE.
Preferably, the multi-segment pseudowire removal device further comprises:
a third processing unit, configured to, when the first PE is a T-PE and a link between an adjacent PE and a multi-segment pseudowire is disconnected, clear a label mapping relationship corresponding to a third PW and clear a local resource occupied by the third PW; wherein the third PW is a pseudowire connection between the first PE and the adjacent PE.
In order to achieve the above object, the present invention further provides a multi-segment pseudowire removal device, disposed on a first PE, the multi-segment pseudowire removal device further comprising:
the second processing unit is configured to receive a label cancellation message and an active label release message sent by the third PE, and clear a label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
a first sending unit, configured to send a corresponding tag release message to the third PE according to the tag revocation message sent by the third PE;
and the second recovery unit is used for recovering the local resources occupied by the second PW.
Compared with the prior art, the technical scheme provided by the invention comprises the steps that a first PE sends a label canceling message and an active label releasing message to a second PE, and the label mapping relation corresponding to a first PW is eliminated; wherein the first PW is a pseudo-wire connection between the first PE and the second PE; the first PE receives a label release message which is sent by the second PE and corresponds to the label canceling message; and after receiving the corresponding label release message, the first PE recovers the local resources occupied by the first PW. Through the scheme of the invention, the PE can complete the removal of the local resources occupied by the PW after receiving the label release message sent by the adjacent PE, and compared with the prior art that the active T-PE can complete the removal process after receiving the reverse label cancellation message, the invention has the advantages of smaller signaling overhead and higher removal speed in the removal process, reduces the occupied time of the resources and is beneficial to the rapid convergence of network change.
Drawings
The accompanying drawings in the embodiments of the present invention are described below, and the drawings in the embodiments are provided for further understanding of the present invention, and together with the description serve to explain the present invention without limiting the scope of the present invention.
FIG. 1 is a diagram illustrating an existing MS-PW setup;
fig. 2 is a schematic diagram of a prior art dynamic multi-segment pseudowire teardown process;
FIG. 3 is a flow chart of a method for multi-segment pseudowire removal in accordance with the present invention;
fig. 4A, fig. 4B, and fig. 4C are flow charts of a multi-segment pseudowire removal process according to the present invention;
fig. 5A and 5B are schematic structural diagrams of a multi-segment pseudowire removal device according to the present invention.
Detailed Description
The following further description of the present invention, in order to facilitate understanding of those skilled in the art, is provided in conjunction with the accompanying drawings and is not intended to limit the scope of the present invention. In the present application, the embodiments and various aspects of the embodiments may be combined with each other without conflict.
Referring to fig. 3, the present invention provides a multi-segment pseudowire removal method, including:
In the embodiment of the present invention, when the start condition is satisfied, the first PE performs the step in step 110;
the starting conditions comprise one or more or several of the following conditions:
starting a condition 1, wherein the first PE is an active T-PE, and the active T-PE removes a certain multi-segment pseudo wire according to configuration requirements; the second PE is an S-PE connected with the first PE in the multi-segment pseudo wire; or
Starting a condition 2, wherein the first PE is an S-PE, and when the first PE knows that the link between adjacent PEs in a multi-segment pseudo wire is disconnected; the second PE is another adjacent PE which is not disconnected with the first PE in the multi-segment pseudo wire; or
Starting a condition 3, wherein the first PE is an S-PE, and when the first PE receives a label canceling message and an active label releasing message sent by an adjacent PE in a multi-segment pseudo wire, and a label mapping relation between the first PE and the adjacent PE is cleared according to the label canceling message and the active label releasing message; the second PE is another PE in the multi-segment pseudowire that is adjacent to the first PE.
In this embodiment of the present invention, the label mapping relationship corresponding to the first PW includes: a label mapping relation from the first PE to the second PE and a label mapping relation from the second PE to the first PE;
in step 110, the sending, by the first PE, a label revocation message and an active label release message to the second PE, and clearing the label mapping relationship corresponding to the first PW includes:
step 111, the first PE sends a label revocation message to the second PE,
in step 112, the first PE clears the label mapping relationship from the first PE to the second PE.
Wherein the order between step 111 and step 112 may be changed.
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 from the second PE to the first PE.
Wherein the order between step 113 and step 114 may be changed.
In the embodiment of the present invention, the method for removing a multi-segment pseudo wire further includes:
step 210, the first PE receives a label cancellation message and an active label release message sent by the third PE, and clears the label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
step 220, according to the label canceling message sent by the third PE, the first PE sends a corresponding label releasing message to the third PE;
in step 230, the first PE recovers the local resources occupied by the second PW.
In this embodiment of the present invention, the label mapping relationship corresponding to the second PW includes: a label mapping relationship from the first PE to the third PE, and a label mapping relationship from the third PE to the first PE;
in step 210, the clearing the label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message includes:
step 211, the first PE clears the label mapping relationship from the third PE to the first PE according to the label revocation message;
step 212, the first PE clears the label mapping relationship from the first PE to the third PE according to the active label release message.
In the embodiment of the present invention, the method for removing a multi-segment pseudo wire further includes:
when the first PE is a T-PE, the first PE clears a label mapping relation corresponding to a third PW and clears local resources occupied by the third PW when the first PE learns that a link between a certain multi-segment pseudo wire and an adjacent PE is disconnected; wherein the third PW is a pseudowire connection between the first PE and the adjacent PE.
The following is a detailed description with reference to specific application scenarios.
Referring to fig. 4A, the present invention provides a process diagram for the removal of a multi-segment pseudowire. The multi-segment pseudowire in this example includes 4 PEs, PE1, PE2, PE3, and PE4, respectively, where PE1 and PE4 are T-PEs and PE2 and PE3 are S-PEs, where PE1 is an active PE.
As shown in fig. 4A, the method for removing a multi-segment pseudowire includes:
at step 311, PE1 sends a tag revocation message to PE 2.
When a multi-segment pseudowire is established, for link PW1 between PE1 and PE2, a label mapping relationship sent by PE1 to PE2 (i.e., a label mapping relationship from PE1 to PE 2) and a label mapping relationship sent by PE2 to PE1 (i.e., a label mapping relationship from PE2 to PE1) are stored in PE1, and similarly, a label mapping relationship sent by PE1 to PE2 (i.e., a label mapping relationship from PE1 to PE 2) and a label mapping relationship sent by PE2 to PE1 (i.e., a label mapping relationship from PE2 to PE1) are also stored in PE 2.
For PE1, the label mapping relationship from PE1 to PE2 is a forward label mapping relationship, and the label mapping relationship from PE2 to PE1 is a reverse label mapping relationship; for PE2, the label mapping relationship from PE2 to PE1 is a forward label mapping relationship, and the label mapping relationship from PE1 to PE2 is a reverse label mapping relationship.
The label revocation message sent by PE1 is used to notify PE2 of the label mapping relationship sent by PE1 to PE2 when the multi-segment pseudowire is established before being cleared.
After sending the label cancellation message to PE2, PE1 clears the record information of the forward label mapping relationship corresponding to the multi-segment pseudowire (i.e., the label mapping relationship sent by PE1 to PE 2), and deletes the local forwarding table entry, thereby completing the removal of the forward signaling;
PW1 between PE1 and PE2 will be in a disabled state by the sending of a tag withdrawal message.
Step 312, PE1 sends an active tag release message to PE 2;
the active tag release message is used to inform PE2 that PE1 has cleared the tag mapping relationship (reverse tag mapping relationship) sent by PE2 to PE1, and after PE1 clears the forward tag mapping record information, PE1 will also clear the reverse tag mapping record information to complete the removal of the reverse signaling since the reverse tag mapping relationship exists depending on the forward tag mapping relationship.
Step 313, PE2 sends a tag release message corresponding to the tag revocation message to PE 1;
after receiving the tag revocation message, the PE responds to the corresponding tag release message.
After receiving the tag revocation message sent by PE1, PE2 replies with a corresponding tag release message, and clears the tag mapping relationship sent by PE1 to PE 2.
After receiving the active tag release message sent by PE1, PE2 clears the tag mapping relationship sent by PE2 to PE1 according to the active tag release message.
In step 314, after PE1 receives the tag release message corresponding to the tag revocation message sent by PE2, it will reclaim the local resources occupied by PW 1.
After removing the label mapping relation corresponding to PW1, PE2 continues to remove the label mapping relation corresponding to PW 2. In the process of cleaning PW1 by PE2, PE2 is a passive side and PE1 is an active side, in the process of cleaning PW2 by PE2, PE2 is an active side and PE3 is a passive side, that is, PE3 performs removal of PW2 on PE3 according to notification of PE2, and PW3 is continuously removed after PE3 removes PW 2.
At step 321, PE2 sends a tag revocation message to PE 3.
After sending a tag revocation message to PE3, PE2 clears the tag mapping relationship that PE2 sent to PE 3.
At step 322, PE2 sends an active tag release message to PE 3.
After sending the active tag release message to PE3, PE2 clears the tag mapping sent by PE3 to PE 2.
In step 323, PE3 receives the tag revocation message sent by PE2 and sends a corresponding tag release message.
In step 324, PE2 receives the corresponding tag release message sent by PE3, and recycles the local resources occupied by PW 2.
To this end, the resources occupied by PW1 and PW2 on PE2 have all been torn down, and PE2 has completed the tear down of the MS-PW locally.
At step 330, PE3 performs a teardown process for PW 3.
The removal process for PE3 performing PW3 is similar to the removal process for PE2 performing PW 2.
Specifically, the method comprises the following steps: at step 331, PE3 sends a tag revocation message to PE 4.
At step 332, PE3 sends an active tag release message to PE 4.
In step 333, PE4 receives the tag revocation message sent by PE3 and sends a corresponding tag release message to PE 3.
In step 334, PE3 receives the corresponding tag release message sent by PE4, and recycles the local resources occupied by PW 3. PE3 completes the tear down of the MS-PW locally.
PE4 is a passive T-PE, and responds to PE3 with a tag release message for a tag revocation system sent by PE3, removes the tag mapping record from PE3 to PE4, and deletes the local forwarding entry. Then, for the tag release message sent by PE3, the tag mapping record of PE4 to PE3 is cleared, all local resources occupied by PW3 are recovered, and PE4 completes the tear-down of the MS-PW locally.
Referring to fig. 4B, a schematic diagram of another proposed demolition procedure for multi-segment pseudowire demolition is shown. The multi-segment pseudowire in this example includes 4 PEs, PE1, PE2, PE3, and PE4, respectively, where PE1 and PE4 are T-PEs and PE2 and PE3 are S-PEs, where PE1 is an active PE.
As shown in fig. 4B, the method for removing a multi-segment pseudowire includes:
at step 411, PE1 knows that the link to PW1 has been broken.
At step 421, PE2 knows that the link to PW1 has been broken.
At step 422, PE2 sends a tag revocation message to PE 3.
Step 423, PE2 sends an active tag release message to PE 3;
step 424, PE3 sends a tag release message corresponding to the tag revocation message to PE 2;
in step 425, PE2 locally completes the tear down of the MS-PW after PE2 receives the corresponding tag release message sent by PE 3.
At step 431, PE3 sends a tag revocation message to PE 4.
Step 432, PE3 sends an active tag release message to PE 4;
step 433, PE4 sends a tag release message corresponding to the tag revocation message to PE 3;
at step 4334, PE3 locally completes the tear down of the MS-PW after PE3 receives the corresponding tag release message sent by PE 4.
In step 435, PE4 sends tag withdrawal message and active tag release message according to PE3, and completes the tear down of the MS-PW locally.
Referring to fig. 4C, a schematic diagram of another proposed demolition procedure for multi-segment pseudowire demolition is shown. The multi-segment pseudowire in this example includes 4 PEs, PE1, PE2, PE3, and PE4, respectively, where PE1 and PE4 are T-PEs and PE2 and PE3 are S-PEs, where PE1 is an active PE.
As shown in fig. 4C, the method for removing a multi-segment pseudowire includes:
at step 511, PE2 learns that the link to PW2 has been broken.
At step 512, PE2 sends a tag revocation message to PE 1.
Step 513, PE2 sends an active tag release message to PE 1;
step 514, PE1 sends a tag release message corresponding to the tag revocation message to PE 2;
PE2 completes the tear down of the MS-PW locally after PE2 receives the corresponding tag release message sent by PE 1.
PE1 locally completes the tear down of the MS-PW in accordance with PE2 sending tag revocation messages and active tag release messages.
In the prior art, when an S-PE learns that a link with a previous node is disconnected, an active tag release message is sent to the PE of the previous node, where the active tag release message carries an error code, and the active tag release message is distinguished from a general tag release message by carrying the error code, where the general tag release message is a message used for responding to a tag revocation message sent by another PE.
In the embodiment of the present invention, the active tag release message may or may not carry an error code, that is, the active tag release message and the tag release message in the embodiment of the present invention may be messages in the same format, only because the sending timings and the uses of the messages are different, where the tag release message is a message for responding to a tag revocation message sent by another PE, and the active tag release message is not a message for responding to a tag revocation message sent by another PE. The active tag release message may also be considered a special tag release message.
At step 521, PE3 knows that the link to PW2 has been broken.
At step 522, PE3 sends a tag revocation message to PE 4.
Step 523, PE3 sends an active tag release message to PE 4;
step 524, PE4 sends a tag release message corresponding to the tag revocation message to PE 3;
PE3 completes the tear down of the MS-PW locally after PE3 receives the corresponding tag release message sent by PE 4.
PE4 locally completes the tear down of the MS-PW in accordance with PE3 sending tag revocation messages and active tag release messages.
Based on the same or similar concept as the above embodiments, an embodiment of the present invention further provides a multi-segment pseudowire removal device, which is disposed on the first PE, and referring to fig. 5A, the multi-segment pseudowire removal device provided by the present invention 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 a label mapping relationship corresponding to the first PW; wherein the first PW is a pseudo-wire connection between the first PE and the second PE;
a first receiving unit 12, configured to receive a tag release message sent by the second PE and corresponding to the tag revocation message;
a recycling unit 13, configured to recycle the local resource occupied by the first PW after receiving the corresponding tag release message.
9. The multi-segment pseudowire removal device of claim 8, wherein the label mapping corresponding to the first PW comprises: a label mapping relation from the first PE to the second PE and a label mapping relation from the second PE to the first PE;
the first processing unit includes:
the first processing module is used for sending a label canceling message to the second PE and clearing a label mapping relation from the first PE to the second PE;
and the second processing module is used for sending an active label release message to the second PE and clearing the label mapping relation from the second PE to the first PE.
In the embodiment of the present invention, the multi-segment pseudowire removing device further includes:
a second processing unit 14, configured to receive a label cancellation message and an active label release message sent by the third PE, and clear a label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
a first sending unit 15, configured to send a corresponding tag release message to the third PE according to the tag revocation message sent by the third PE;
and a second recovery unit 16, configured to recover a local resource occupied by the second PW.
In this embodiment of the present invention, the label mapping relationship corresponding to the second PW includes: a label mapping relationship from the first PE to the third PE, and a label mapping relationship from the third PE to the first PE;
the second processing unit includes:
a third processing module, configured to clear a label mapping relationship from a third PE to the first PE according to the label revocation message;
and the fourth processing module is used for clearing the label mapping relation from the first PE to the third PE according to the active label release message.
In the embodiment of the present invention, the present invention further includes a starting unit 17;
the first processing unit executes the steps of sending a label canceling message and an active label releasing message to the second PE when the first processing unit meets the starting condition set by the starting unit;
the activation unit 17 comprises one or more of the following modules:
the first starting module is used for setting a starting condition that the first PE is an active party T-PE, and the active party T-PE removes a certain multi-segment pseudo wire according to configuration requirements; the second PE is an S-PE connected with the first PE in the multi-segment pseudo wire;
the second starting module is used for setting the starting condition that the first PE is an S-PE, and when the first PE knows that the link between the adjacent PEs in a certain multi-segment pseudo wire is disconnected; the second PE is another adjacent PE which is not disconnected with the first PE in the multi-segment pseudo wire;
a third starting module, configured to set a starting condition that the first PE is an S-PE, and when the first PE receives a label cancellation message and an active label release message sent by an adjacent PE in a multi-segment pseudo wire, clear a label mapping relationship between the first PE and the adjacent PE according to the label cancellation message and the active label release message; the second PE is another PE in the multi-segment pseudowire that is adjacent to the first PE.
In the embodiment of the present invention, the device for removing a multi-segment pseudo wire further comprises:
a third processing unit 18, configured to, when the first PE is a T-PE and it is known that a link between a certain multi-segment pseudowire and an adjacent PE is broken, clear a label mapping relationship corresponding to a third PW, and clear a local resource occupied by the third PW; wherein the third PW is a pseudowire connection between the first PE and the adjacent PE.
Based on the same or similar concept as the above embodiments, an embodiment of the present invention further provides another multi-segment pseudowire removal device, which is disposed on the first PE, and referring to fig. 5B, the multi-segment pseudowire removal device provided by the present invention includes:
a second processing unit 21, configured to receive a label cancellation message and an active label release message sent by a third PE, and clear a label mapping relationship corresponding to a second PW according to the label cancellation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
a first sending unit 22, configured to send a corresponding tag release message to the third PE according to the tag revocation message sent by the third PE;
and a second recovery unit 23, configured to recover a local resource occupied by the second PW.
It should be noted that the above-mentioned embodiments are only for facilitating the understanding of those skilled in the art, and are not intended to limit the scope of the present invention, and any obvious substitutions, modifications, etc. made by those skilled in the art without departing from the inventive concept of the present invention are within the scope of the present invention.
Claims (10)
1. A multi-segment pseudowire removal method, comprising:
the first edge device PE sends a label canceling message and an active label releasing message to the second PE, and clears the label mapping relation corresponding to the first pseudo wire PW; the first PW is a pseudo wire connection between the first PE and the second PE, the active label release message is used for informing the second PE that the first PE has cleared a label mapping relation sent to the first PE by the second PE;
the first PE receives a label release message which is sent by the second PE and corresponds to the label canceling message;
after receiving the corresponding label release message, the first PE recovers the local resources occupied by the first PW;
the multi-segment pseudo wire comprises two T-PEs and one or more S-PEs arranged between the two T-PEs; when the starting condition is met, the first PE executes the steps of sending a label canceling message and an active label releasing message to the second PE;
the starting conditions comprise one or more of the following conditions:
the first PE is an active party T-PE, and the active party T-PE removes a certain multi-segment pseudo wire according to configuration requirements; the second PE is an S-PE connected with the first PE in the multi-segment pseudo wire; or
The first PE is an S-PE, and when the first PE knows that the links between adjacent PEs in a multi-segment pseudo wire are disconnected; the second PE is another adjacent PE which is not disconnected with the first PE in the multi-segment pseudo wire; or
The first PE is an S-PE, when the first PE receives a label canceling message and an active label releasing message sent by an adjacent PE in a multi-segment pseudo wire, and a label mapping relation between the first PE and the adjacent PE is cleared according to the label canceling message and the active label releasing message; the second PE is another PE in the multi-segment pseudowire that is adjacent to the first PE.
2. The method of claim 1, wherein the label mapping relationship corresponding to the first PW comprises: a label mapping relation from the first PE to the second PE and a label mapping relation from the second PE to the first PE;
the first PE sends a label canceling message and an active label releasing message to a second PE, and clearing the label mapping relation corresponding to the first PW comprises the following steps:
the first PE sends a label canceling message to the second PE, and the label mapping relation from the first PE to the second PE is cleared;
the first PE sends an active label release message to the second PE, and the label mapping relation from the second PE to the first PE is cleared.
3. The multi-segment pseudowire removal method of claim 1, further comprising:
the first PE receives a label canceling message and an active label releasing message sent by the third PE, and clears a label mapping relation corresponding to the second PW according to the label canceling message and the active label releasing message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
according to the label canceling message sent by the third PE, the first PE sends a corresponding label releasing message to the third PE;
and the first PE recovers the local resources occupied by the second PW.
4. The method of claim 3, wherein the label mapping relationship corresponding to the second PW comprises: a label mapping relationship from the first PE to the third PE, and a label mapping relationship from the third PE to the first PE;
the clearing of the label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message includes:
the first PE clears the label mapping relation from the third PE to the first PE according to the label canceling message;
and the first PE clears the label mapping relation from the first PE to the third PE according to the active label release message.
5. The multi-segment pseudowire removal method of any of claims 1-4, further comprising:
when the first PE is a T-PE, the first PE clears a label mapping relation corresponding to a third PW and clears local resources occupied by the third PW when the first PE learns that a link between a certain multi-segment pseudo wire and an adjacent PE is disconnected; wherein the third PW is a pseudowire connection between the first PE and the adjacent PE.
6. A multi-segment pseudowire removal device is arranged on a first edge device (PE), and is characterized by at least comprising:
the first processing unit is used for sending a label canceling message and an active label releasing message to the second PE and clearing a label mapping relation corresponding to the first pseudo wire PW; the first PW is a pseudo wire connection between the first PE and the second PE, the active label release message is used for informing the second PE that the first PE has cleared a label mapping relation sent to the first PE by the second PE;
a first receiving unit, configured to receive a tag release message corresponding to the tag revocation message sent by the second PE;
a recovery unit, configured to recover, after receiving the corresponding tag release message, a local resource occupied by the first PW;
the multi-segment pseudo wire comprises two T-PEs and one or more S-PEs arranged between the two T-PEs; the device also comprises a starting unit; the first processing unit executes the steps of sending a label canceling message and an active label releasing message to the second PE when the first processing unit meets the starting condition set by the starting unit;
the starting unit comprises one or more of the following modules:
the first starting module is used for setting a starting condition that the first PE is an active party T-PE, and the active party T-PE removes a certain multi-segment pseudo wire according to configuration requirements; the second PE is an S-PE connected with the first PE in the multi-segment pseudo wire;
the second starting module is used for setting the starting condition that the first PE is an S-PE, and when the first PE knows that the link between the adjacent PEs in a certain multi-segment pseudo wire is disconnected; the second PE is another adjacent PE which is not disconnected with the first PE in the multi-segment pseudo wire;
a third starting module, configured to set a starting condition that the first PE is an S-PE, and when the first PE receives a label cancellation message and an active label release message sent by an adjacent PE in a multi-segment pseudo wire, clear a label mapping relationship between the first PE and the adjacent PE according to the label cancellation message and the active label release message; the second PE is another PE in the multi-segment pseudowire that is adjacent to the first PE.
7. The multi-segment pseudowire removal device of claim 6, wherein the label mapping corresponding to the first PW comprises: a label mapping relation from the first PE to the second PE and a label mapping relation from the second PE to the first PE;
the first processing unit includes:
the first processing module is used for sending a label canceling message to the second PE and clearing a label mapping relation from the first PE to the second PE;
and the second processing module is used for sending an active label release message to the second PE and clearing the label mapping relation from the second PE to the first PE.
8. The multi-segment pseudowire removal device of claim 6, further comprising:
the second processing unit is configured to receive a label cancellation message and an active label release message sent by the third PE, and clear a label mapping relationship corresponding to the second PW according to the label cancellation message and the active label release message; wherein the second PW is a pseudowire connection between the first PE and a third PE;
a first sending unit, configured to send a corresponding tag release message to the third PE according to the tag revocation message sent by the third PE;
and the second recovery unit is used for recovering the local resources occupied by the second PW.
9. The multi-segment pseudowire removal device of claim 8, wherein the label mapping corresponding to the second PW comprises: a label mapping relationship from the first PE to the third PE, and a label mapping relationship from the third PE to the first PE;
the second processing unit includes:
a third processing module, configured to clear a label mapping relationship from a third PE to the first PE according to the label revocation message;
and the fourth processing module is used for clearing the label mapping relation from the first PE to the third PE according to the active label release message.
10. A multi-segment pseudowire removal device according to any of claims 6-9, further comprising:
a third processing unit, configured to, when the first PE is a T-PE and a link between an adjacent PE and a multi-segment pseudowire is disconnected, clear a label mapping relationship corresponding to a third PW and clear a local resource occupied by the third PW; wherein the third PW is a pseudowire connection between the first PE and the adjacent PE.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510447955.6A CN106411543B (en) | 2015-07-27 | 2015-07-27 | Method and device for removing multi-segment pseudo wires |
PCT/CN2016/079198 WO2016180144A1 (en) | 2015-07-27 | 2016-04-13 | Method and device for dismantling multi-segment pseudowires |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510447955.6A CN106411543B (en) | 2015-07-27 | 2015-07-27 | Method and device for removing multi-segment pseudo wires |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106411543A CN106411543A (en) | 2017-02-15 |
CN106411543B true CN106411543B (en) | 2020-06-05 |
Family
ID=57248569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510447955.6A Active CN106411543B (en) | 2015-07-27 | 2015-07-27 | Method and device for removing multi-segment pseudo wires |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106411543B (en) |
WO (1) | WO2016180144A1 (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874302A (en) * | 2006-02-27 | 2006-12-06 | 华为技术有限公司 | Method of phantom lines in multiple hops for building simulation of phantom line from end to end |
CN101047624A (en) * | 2006-04-27 | 2007-10-03 | 华为技术有限公司 | Tag distribution method and tag selling method |
CN101123563A (en) * | 2006-08-07 | 2008-02-13 | 中兴通讯股份有限公司 | A method, device and network for stable restart of multi-hop counterfeit wire |
CN101485163A (en) * | 2006-06-08 | 2009-07-15 | 阿尔卡特朗讯公司 | A method and system for optimizing resources for establishing pseudo-wires in a multiprotocol label switching network |
CN101515897A (en) * | 2009-03-31 | 2009-08-26 | 华为技术有限公司 | Message sending and receiving method and device based on label distribution protocol |
CN101656666A (en) * | 2009-09-24 | 2010-02-24 | 福建星网锐捷网络有限公司 | Method and apparatus for processing label distribution protocol conversation, label switching router |
CN102332987A (en) * | 2010-07-12 | 2012-01-25 | 中兴通讯股份有限公司 | Method and system for configuration of OAM attribute of pseudowire |
CN102377637A (en) * | 2010-08-05 | 2012-03-14 | 中兴通讯股份有限公司 | Multi-segment pseudo wire shared bandwidth method, system thereof and provider edge node |
CN102447611A (en) * | 2010-09-30 | 2012-05-09 | 中兴通讯股份有限公司 | Method and system for establishing and removing bidirectional point-to-multipoint label forwarding path |
CN102457348A (en) * | 2010-10-22 | 2012-05-16 | 中兴通讯股份有限公司 | Method and system for realizing negotiation of control word abilities of pseudo wires |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5050957B2 (en) * | 2008-03-27 | 2012-10-17 | 富士通株式会社 | Network device, node device, and packet communication method |
-
2015
- 2015-07-27 CN CN201510447955.6A patent/CN106411543B/en active Active
-
2016
- 2016-04-13 WO PCT/CN2016/079198 patent/WO2016180144A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874302A (en) * | 2006-02-27 | 2006-12-06 | 华为技术有限公司 | Method of phantom lines in multiple hops for building simulation of phantom line from end to end |
CN101047624A (en) * | 2006-04-27 | 2007-10-03 | 华为技术有限公司 | Tag distribution method and tag selling method |
CN101485163A (en) * | 2006-06-08 | 2009-07-15 | 阿尔卡特朗讯公司 | A method and system for optimizing resources for establishing pseudo-wires in a multiprotocol label switching network |
CN101123563A (en) * | 2006-08-07 | 2008-02-13 | 中兴通讯股份有限公司 | A method, device and network for stable restart of multi-hop counterfeit wire |
CN101515897A (en) * | 2009-03-31 | 2009-08-26 | 华为技术有限公司 | Message sending and receiving method and device based on label distribution protocol |
CN101656666A (en) * | 2009-09-24 | 2010-02-24 | 福建星网锐捷网络有限公司 | Method and apparatus for processing label distribution protocol conversation, label switching router |
CN102332987A (en) * | 2010-07-12 | 2012-01-25 | 中兴通讯股份有限公司 | Method and system for configuration of OAM attribute of pseudowire |
CN102377637A (en) * | 2010-08-05 | 2012-03-14 | 中兴通讯股份有限公司 | Multi-segment pseudo wire shared bandwidth method, system thereof and provider edge node |
CN102447611A (en) * | 2010-09-30 | 2012-05-09 | 中兴通讯股份有限公司 | Method and system for establishing and removing bidirectional point-to-multipoint label forwarding path |
CN102457348A (en) * | 2010-10-22 | 2012-05-16 | 中兴通讯股份有限公司 | Method and system for realizing negotiation of control word abilities of pseudo wires |
Also Published As
Publication number | Publication date |
---|---|
WO2016180144A1 (en) | 2016-11-17 |
CN106411543A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102025646B (en) | Link switching method and device thereof | |
CN101212400B (en) | Method and system for negotiating bidirectional forwarding detection session identifier for pseudo wire | |
EP2314022B1 (en) | Establishing pseudowires in packet switching networks | |
US9106566B2 (en) | Method, apparatus and system for two-node cluster hot backup | |
CN101924654B (en) | Point-to-multipoint service-based path switching method and system | |
CN104144122A (en) | Method, device and system for establishing label switched path | |
CN103297338B (en) | A kind of VPN route advertising method and equipment | |
CN103209125B (en) | A kind of transmission method of label information and equipment | |
CN102469010B (en) | A kind of method and network equipment distributing MPLS label | |
CN102013990B (en) | End to end notification method and system for multi-segment pseudowire fault | |
CN106411543B (en) | Method and device for removing multi-segment pseudo wires | |
EP3065364B1 (en) | Synchronization method and apparatus for interface parameters | |
CN102104529B (en) | Method and equipment for realizing message transmission in provider bridge transfer (PBT) network | |
CN104883300A (en) | Message transmission method and device | |
CN105207792A (en) | Non-linkage pseudo wire gateway protection system and pseudo wire gateway protection method thereof | |
CN106559234B (en) | Control message sending method and device | |
CN112910771B (en) | Connection establishment method, device, equipment and storage medium | |
WO2015165033A1 (en) | Processing method for supporting resource sharing by services with mixed granularities, and nodes | |
CN103647709A (en) | ARP form item establishing method and device | |
CN104253752B (en) | The method and system that LSP takes over seamlessly are realized in LDP agreements | |
WO2015154583A1 (en) | Method, device and system for updating protocol state of control channel | |
CN101640619A (en) | Virtual leased line network service protection method and operator edge device | |
CN102136945B (en) | Method for establishing label switch path (LSP) protection and node | |
CN102170391A (en) | Associated bidirectional label switched path creation method and system | |
CN106301867B (en) | A kind of static state pseudo-wire condition detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |