[go: up one dir, main page]

CN102404199B - Multi-segment pseudo-wire establishing and recovering method and device as well as system - Google Patents

Multi-segment pseudo-wire establishing and recovering method and device as well as system Download PDF

Info

Publication number
CN102404199B
CN102404199B CN201110306702.9A CN201110306702A CN102404199B CN 102404199 B CN102404199 B CN 102404199B CN 201110306702 A CN201110306702 A CN 201110306702A CN 102404199 B CN102404199 B CN 102404199B
Authority
CN
China
Prior art keywords
message
lsp
path
node
establishing
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
Application number
CN201110306702.9A
Other languages
Chinese (zh)
Other versions
CN102404199A (en
Inventor
夏欣
林雪峰
高开林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110306702.9A priority Critical patent/CN102404199B/en
Publication of CN102404199A publication Critical patent/CN102404199A/en
Priority to PCT/CN2012/074403 priority patent/WO2013053221A1/en
Application granted granted Critical
Publication of CN102404199B publication Critical patent/CN102404199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/68Pseudowire emulation, e.g. IETF WG PWE3

Landscapes

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

Abstract

The invention provides a multi-segment pseudo-wire establishing method which comprises the following steps that by calculation, a head end node obtains a path of a MS-PW (Multi-Segment Pseudo-Wire) which reaches a destination end node through a switching node; the head end node establishes a LSP (Layered Service Provider) between the head end node and the switching node of a next hop as a service layer; the head end node issues the Path information of establishing a pseudo-wire segment of the MS-PW to the switching node of the next hop on the established LSP layer till the destination end node receives the Path information of establishing the pseudo-wire segment of the MS-PW; the destination end node obtains the resource Resv (Reserve) information of the MS-PW according to the Path information; and the switching node receiving the Resv information of the MS-PW forwards the Resv information of the MS-PW to nodes of a previous hop, and the nodes establishes the PW as a client layer according to the received Resv information of the MS-PW. The invention also discloses a multi-segment pseudo-wire recovering method and a device as well as a system, thereby realizing the reestablishment of a new MS-PW when faults occur and avoiding the establishment of the standby MS-PW when no faults occur so as to more effectively use the communication resources of the system.

Description

Method, device and system for establishing and recovering multi-segment pseudo wires
Technical Field
The present invention relates to pseudowire management in communications technologies, and in particular, to a method, an apparatus, and a system for establishing and recovering (Restoration) a Multi-segment pseudowire (MS-PW).
Background
In a single-domain and cross-domain networking environment, an MS-PW needs to be established between a head-end node (Terminating Provider Edge, T-PE) and a tail-end node via a Switching Provider Edge (S-PE), where the MS-PW includes at least two Pseudo Wire Segments (PWs).
When a certain PWs in the MS-PW fails, if no corresponding measure is taken, the connection of the MS-PW fails, and thus data transmission on a Pseudo Wire (PW) layer cannot be performed.
At present, a Label Distribution Protocol (LDP) is generally used to establish a pseudo wire. When the LDP protocol is adopted to establish the MS-PW, the standby MS-PW is immediately established after the main MS-PW is established. Thus, when a PWS of an MS-PW fails, a standby MS-PW is enabled. However, the standby MS-PW will always occupy the communication resources of the system, so that the utilization rate of the communication resources of the system is reduced.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method, an apparatus, and a system for establishing and recovering a multi-segment pseudowire, which can establish a new MS-PW when needed, avoid establishing a standby MS-PW when there is no failure, and further effectively utilize communication resources of the system.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention discloses a method for establishing a multi-segment pseudo wire, which comprises the following steps: the head end node calculates a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the multi-segment pseudo wire MS-PW, and encapsulates the related information of the Path in the Path message of the Label Switching Path (LSP);
the head-end node establishes an LSP between the head-end node and a next-hop switching node as a service layer according to the Path message, wherein the service layer is called an LSP layer;
the head end node sends a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer;
the steps that the LSP between the established LSP and the next hop switching node is used as a service layer and the Path message of establishing the MS-PW is sent to the next hop switching node on the established LSP layer are repeated in sequence until the target end node receives the Path message of establishing the MS-PW;
the target end node obtains a resource reservation Resv message of the MS-PW according to the Path message and sends the Resv message of the MS-PW to a previous hop switching node;
the switching node receiving the Resv message of the MS-PW forwards the Resv message of the MS-PW to the previous hop switching node until the head end node;
and each node establishes a PW as a client layer according to the received Resv message of the MS-PW, wherein the client layer is called as a PW layer, and the establishment of each pseudo line segment is completed in sequence.
Preferably, the Path message is divided into a Path message of an LSP carrying LSP layer Path related information and a Path message of an MS-PW carrying PW layer Path related information;
the establishment of the LSP between the head-end node and the next-hop switching node as a service layer according to the Path message is as follows:
the head-end node sends a Path message of the LSP to a switching node of a next hop in a Path through a resource reservation protocol RSVP-TE based on traffic engineering;
the switching node obtains Resv information of the LSP according to the LSP layer Path related information in the received Path information of the LSP and sends the Resv information of the LSP to a head node through an RSVP-TE protocol;
and the head-end node performs LSP resource reservation according to the received Resv message of the LSP to complete the establishment of the LSP, and the LSP is used as a service layer.
Preferably, the sending, by the head-end node, a Path message for establishing the MS-PW to the next-hop switching node on the established LSP layer is:
a head-end node sends a Path message of an MS-PW to a next-hop switching node on an established LSP layer, wherein the Path message comprises: pseudowire Type PW Type and pseudowire segment identification number PW Seg id.
The invention discloses a method for recovering a multi-segment pseudo wire, which comprises the following steps:
the switching node or the target end node which detects the fault generates a fault notification message and sends the fault notification message to the head end node, or the head end node which detects the fault generates a fault notification message, wherein the fault notification message is used for triggering a request for establishing the MS-PW;
the head end node calculates a new MS-PW Path according to the triggered request for establishing the MS-PW, and encapsulates the related information of the Path in the Path message of the LSP;
the head-end node establishes an LSP between the head-end node and a next-hop switching node as a service layer according to the Path message;
the head end node sends a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer;
the steps that the LSP between the established LSP and the next hop switching node is used as a service layer and the Path message for establishing the MS-PW is sent to the next hop switching node on the established LSP layer are repeated in sequence until the target end node receives the Path message for establishing the MS-PW;
the target end node obtains a Resv message of the MS-PW according to the Path message and sends the Resv message of the MS-PW to a previous hop switching node;
the switching node receiving the Resv message of the MS-PW forwards the Resv message of the MS-PW to the previous hop switching node until the head end node;
and each node establishes the PW as a client layer according to the received Resv message of the MS-PW and completes the establishment of each pseudo segment in sequence.
Preferably, the step of generating a failure notification message by the switching node or the target end node which detects the failure and sending the failure notification message to the head node is as follows:
the transmission unit of the switching node or the target end node which detects the fault sends out a fault warning message to the control unit of the node;
the control unit informs the PW passing through the node of the received fault alarm message;
the PW sends a fault existence notification to the control unit when judging that the fault alarm still exists by detecting a transmission unit of a node sending a fault alarm message;
and the control unit generates a failure notification Notify message according to the received notification and sends the failure notification Notify message to the head node.
Preferably, the failure Notify message includes: an Error Code field and an Error value field; wherein the Error Code field comprises a Value for indicating a pseudowire Error PW layerrer, and the Error Value field comprises a Value for indicating a pseudowire link failure PW link failure.
The invention discloses a head-end node, comprising: a Path calculation unit, a service layer establishment unit, a Path message transmission unit and a client layer establishment unit, wherein,
the Path calculation unit is used for calculating a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the MS-PW, and encapsulating the related information of the Path in a Path message of the LSP;
the service layer establishing unit is used for establishing an LSP between the service layer establishing unit and a next hop switching node as a service layer according to the Path message;
the Path message sending unit is used for sending a Path message for establishing the MS-PW to a next hop switching node on the established LSP layer;
and the client layer establishing unit is used for establishing the PW as the client layer according to the received Resv message of the MS-PW.
Preferably, the head-end node further comprises: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
the control unit is configured to generate a failure Notify message according to the received failure warning message, where the failure Notify message is used to trigger a request for establishing an MS-PW.
The invention discloses a switching node, comprising: a service layer establishing unit, a Path message sending unit, a Resv message forwarding unit and a client layer establishing unit, wherein,
the service layer establishing unit is used for establishing an LSP between the service layer establishing unit and a next hop switching node as a service layer according to the received Path message;
the Path message sending unit is used for sending a Path message for establishing the MS-PW to a next hop switching node on the established LSP layer;
the Resv message forwarding unit is used for forwarding the Resv message of the MS-PW to an upper hop;
and the client layer establishing unit is used for establishing the PW as the client layer according to the received Resv message of the MS-PW.
Preferably, the switching node further comprises: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
and the control unit is used for generating a fault Notify message according to the received fault warning message and sending the fault Notify message to the head end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW.
Preferably, the control unit is specifically configured to notify the PW passing through the node of the received fault alarm message; and generating a failure Notify message according to the failure existence notification sent by the PW, and sending the failure Notify message to the head node.
The invention discloses a target end node, comprising: a Resv message generating unit and a Resv message transmitting unit, wherein,
a Resv message generating unit, configured to generate a Resv message of the MS-PW according to the received Path message;
and a Resv message sending unit, configured to send a Resv message of the MS-PW to a previous hop switching node.
Preferably, the target end node further comprises: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
and the control unit is used for generating a fault Notify message according to the received fault warning message and sending the fault Notify message to the head end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW.
The invention discloses a system for establishing and recovering a multi-segment pseudo wire, which comprises: a head-end node, a target end node, and at least one switching node; wherein,
the head end node is used for calculating a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the MS-PW, and packaging the related information of the Path in the Path message of the LSP; establishing an LSP between the switching node and the next hop as a service layer according to the Path message; sending a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer; establishing a PW as a client layer according to the received Resv message of the MS-PW; detecting a fault, and generating a fault Notify message when the fault is detected, wherein the fault Notify message is used for triggering a request for establishing an MS-PW;
the switching node is used for establishing an LSP between the switching node and a next hop as a service layer according to the received Path message; sending a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer; forwarding the Resv message of the received MS-PW to an upper hop; establishing a PW as a client layer according to the received Resv message of the MS-PW; detecting faults, and generating fault Notify messages when the faults are detected and sending the fault Notify messages to the head node;
the target end node is used for generating a Resv message of the MS-PW according to the received Path message and sending the Resv message of the MS-PW to the last hop switching node; and detecting the fault, and generating a fault Notify message when the fault is detected and transmitting the fault Notify message to the head node.
Preferably, the Path message is divided into a Path message of an LSP carrying LSP layer Path related information and a Path message of an MS-PW carrying PW layer Path related information;
the head-end node is specifically used for sending a Path message of the LSP to a next-hop switching node in the Path by the RSVP-TE protocol; performing LSP resource reservation according to the received Resv message of the LSP to complete the establishment of the LSP, wherein the LSP is used as a service layer;
the switching node is specifically configured to obtain a Resv message of the LSP according to the LSP layer Path related information in the received Path message of the LSP, and send the Resv message of the LSP to the head node via an RSVP-TE protocol.
In summary, according to the method, the apparatus, and the system for establishing and recovering a multi-segment pseudo wire provided by the present invention, when a certain PWs of an MS-PW fails, a new MS-PW is re-established in a manner of triggering establishment of a service layer and a client layer once, so that establishment of a standby MS-PW can be avoided when there is no failure, thereby more effectively utilizing communication resources of the system.
Drawings
FIG. 1 is a schematic flow chart of a method for establishing a multi-segment pseudowire according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for establishing a multi-segment pseudowire according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating the structure of a PW _ INFO object of the present invention;
FIG. 4 is a schematic flow chart of a first embodiment of a method for recovering a multi-segment pseudowire according to the present invention;
FIG. 5 is a flow chart illustrating a second embodiment of a method for recovering a multi-segment pseudowire according to the present invention;
FIG. 6 is a schematic diagram of the structure of the ERROR _ SPEC object of the present invention.
Detailed Description
The invention discloses a method for establishing a multi-segment pseudo wire, which comprises the following steps of:
step 101, a head-end node calculates a Path of an MS-PW reaching a target end node through a switching node according to a triggered request for establishing the MS-PW, and encapsulates related information of the Path in a Path (Path) message of a Label Switched Path (LSP);
here, the Path message is divided into a Path message of an LSP carrying LSP layer Path related information and a Path message of an MS-PW carrying PW layer Path related information.
102, the head-end node establishes an LSP between the head-end node and a next-hop switching node as a service layer according to the Path message;
specifically, the head-end node sends a Path message of the LSP to a next-hop switching node in the Path through a resource reservation protocol (RSVP-TE) based on traffic engineering;
the switching node obtains the Resv message of the resource reservation of the LSP according to the LSP layer Path related information in the received Path message of the LSP, and sends the Resv message of the LSP to a head node through an RSVP-TE protocol;
the head-end node reserves LSP resources according to the received Resv message of the LSP, completes the establishment of the LSP of the section, and takes the LSP as a service layer, wherein the service layer is called an LSP layer.
103, the head end node sends a Path message for establishing the MS-PW to the next-hop switching node on the established LSP layer;
specifically, a head-end node sends a Path message of an MS-PW to a next-hop switching node on an established LSP layer, where the Path message includes: pseudowire Type (PW Type) and pseudowire segment identification number (PW Seg id).
And step 104, repeatedly executing steps 102 and 103 until the target end node receives a Path message for establishing the MS-PW.
And 105, the target end node obtains the Resv message of the MS-PW according to the Path message and sends the Resv message of the MS-PW to the last hop switching node.
And 106, the switching node receiving the Resv message of the MS-PW forwards the Resv message of the MS-PW to the next-hop switching node until the head-end node.
And step 107, each node establishes a PW as a client layer according to the received Resv message of the MS-PW, wherein the client layer is called as a PW layer, and the establishment of each pseudo line segment is completed in sequence.
The method for establishing the multi-segment pseudowire of the invention is described in detail below by taking the application of the invention to a single domain network as an example. As shown in FIG. 2, in this embodiment, the network includes a head-end node T-PE1, a target end node T-PE2, a first switching node S-PE1, and a second switching node S-PE 2. The method for establishing the multi-segment pseudo wire in the embodiment comprises the following steps:
step 201, T-PE1 calculates a path of MS-PW according to the triggered request for establishing MS-PW, and divides the path into a service layer and a client layer;
here, when initially establishing the MS-PW, the request for establishing the MS-PW may be triggered by an instruction for establishing the MS-PW sent by a network manager; when a certain pseudo wire segment of the MS-PW fails and a new MS-PW needs to be established, the request for establishing the MS-PW may be triggered by a failure notification (Notify) message.
Specifically, T-PE1 calls a routing protocol in a communication protocol to calculate a Path of an MS-PW, and encapsulates relevant information of the Path in a Path message of an LSP; the Path message is divided into a Path message of LSP carrying LSP layer Path related information and a Path message of MS-PW carrying PW layer Path related information. In this embodiment, the path of the MS-PW is a path passing through a head-end node T-PE1, a first switching node S-PE1, and a target end node T-PE2, and the MS-PW includes two pseudo line segments.
Step 202, T-PE1 sends out the first Path message of LSP carrying LSP layer Path related information to S-PE1 in the Path through RSVP-TE protocol.
Step 203, the S-PE1 obtains a first Resv message of the LSP according to the LSP layer Path related information in the received first Path message of the LSP, and sends the first Resv message of the LSP to the T-PE1 via the RSVP-TE protocol.
Step 204, the T-PE1 performs LSP resource reservation according to the received first Resv message of the LSP to complete the establishment of the LSP of the segment, and the LSP is used as a service layer;
wherein the LSP layer has an independent Session (Session).
After establishing the LSP layer, step 205, T-PE1 sends a first Path message of the MS-PW carrying information related to the PW layer Path to S-PE 1.
The Path message includes: a pseudowire information (PW _ INFO) object and a Transmit TEMPLATE (SENDER _ TEMPLATE) object, the PW _ INFO object to indicate information about the MS-PW. As shown in fig. 3, the PW _ INFO object includes: PW Type, PW set ID and a connection link identification number (AC ID), wherein the PW Type is used for indicating the service Type of MS-PW encapsulation; PW Seg id is used to indicate the identification number (id) of a pseudo-line segment in the MS-PW; the AC ID is used to indicate the ID of the AC link to which the head-end node and the target end node are connected. The SENDER _ TEMPLATE object includes a label switched path identification number (LSP id) field that is used to indicate the id number of the current MS-PW.
After receiving the Resv message of the LSP, T-PE1 sets the value of S-PE1 in the PW Seg id corresponding to the Resv message that sends the LSP to 1, which indicates that the id of the pseudowire segment between T-PE1 and S-PE1 to be currently established is 1, that is: the segment of the pseudo line segment is a first pseudo line segment.
Step 206, after receiving the first Path message of MS-PW carrying PW layer Path related information, the S-PE1 sends a second Path message of LSP carrying LSP layer Path related information to T-PE 2.
Here, the second Path message of the LSP and the first Path message of the LSP in step 203 belong to different sessions.
Step 207, the T-PE2 obtains a second Resv message of the LSP according to the LSP layer Path related information in the received second Path message of the LSP, and sends the second Resv message of the LSP2 to the S-PE1 through the RSVP-TE protocol;
wherein the second Resv message of the LSP belongs to a different Session than the first Resv message of step 204.
Step 208, the S-PE1 performs LSP resource reservation according to the received second Resv message of the LSP to complete establishment of the LSP, where the LSP serves as a service layer;
wherein the LSP layer has an independent Session.
Step 209, after establishing the LSP layer, the S-PE1 sends a second Path message of the MS-PW carrying information related to the PW layer Path to T-PE 2;
wherein, the first Path message of the MS-PW in step 205 and the second Path message of the MS-PW in step 209 belong to the same Session, except that they are respectively for different hops.
After receiving the second Resv message of the LSP, the S-PE1 sets the value of T-PE2 in the PW Seg id corresponding to the Resv message that sent the LSP to 2, which indicates that the id of the PW segment currently to be established between S-PE1 and T-PE2 is 2, that is: the segment of the pseudo line segment is a second pseudo line segment.
Step 210, the T-PE2 obtains the Resv message of the MS-PW according to the PW layer Path related information in the Path message of the received MS-PW, and sends the Resv message of the MS-PW to the S-PE 1.
Specifically, T-PE2 sends a Resv message for the MS-PW to S-PE1 via RSVP-TE protocol.
Step 211, S-PE1 performs pseudo wire segment resource reservation according to the received Resv message of MS-PW to establish PW as client layer, and completes the establishment of this segment of pseudo wire segment.
And step 212, after the pseudo line segment is established, the S-PE1 sends a Resv message of the MS-PW to the T-PE 1.
Step 213, T-PE1 performs pseudo wire segment resource reservation to establish PW as a client layer according to the received Resv message of the MS-PW, and completes the establishment of the pseudo wire segment, thereby completing the establishment of the MS-PW.
The invention also discloses a method for recovering the multi-segment pseudo wire, which comprises the following steps of:
step 401, the switching node or the transmission unit of the target end node which detects the failure sends out a failure alarm message to the control unit of the node.
Step 402, the control unit receiving the fault warning message generates a fault Notify message and sends the fault Notify message to a head-end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW;
specifically, the control unit notifies the received fault alarm message to the PW passing through the node;
the PW sends a fault existence notification to the control unit when judging that the fault alarm still exists by detecting a transmission unit of a node sending a fault alarm message;
and the control unit generates a fault notification Notify message according to the received notification and sends the fault notification Notify message to the head node.
The failure Notify message includes: an Error Code field and an Error Value field, wherein the Error Code field includes a Value for indicating a pseudowire Error (PW layer Error) and the Error Value field includes a Value for indicating a pseudowire link failure (PW link failure).
Of course, the head-end node that detects the failure may also generate the failure Notify message directly.
Step 403, the failure Notify message triggers a request of a head-end node for establishing an MS-PW, where the head-end node calculates a new Path of the MS-PW according to information in the received failure Notify message, and encapsulates relevant information of the Path in a Path message of an LSP.
And step 404, the head-end node establishes an LSP with the next-hop switching node as a service layer according to the Path message.
Step 405, the head-end node sends a Path message for establishing the MS-PW to the next-hop switching node on the established LSP layer.
And step 406, repeatedly executing steps 404 and 405 until the target end node receives a Path message for establishing the MS-PW.
Step 407, the target end node obtains the Resv message of the MS-PW according to the Path message, and sends the Resv message of the MS-PW to the last hop switching node.
Step 408, the switching node receiving the Resv message of the MS-PW forwards the Resv message of the MS-PW to the previous-hop switching node until the head-end node.
Step 409, each node establishes a PW as a client layer according to the received Resv message of the MS-PW, and the establishment of each pseudo segment is completed in sequence.
The method for recovering a multi-segment pseudowire of the present invention is described in detail below by taking the application of the present invention to a single domain network as an example. As shown in FIG. 5, in the present embodiment, the network includes T-PE1, T-PE2, S-PE1 and S-PE 2; the failed MS-PW comprises two pseudo-line segments, namely a first pseudo-line segment between T-PE1 and S-PE1 and a second pseudo-line segment between S-PE1 and T-PE 2; the first pseudo wire segment of the MS-PW fails due to a failure of S-PE 1. The method for recovering the multi-segment pseudo wire comprises the following steps:
step 501, the transmitting unit of the node which detects the fault sends out a fault warning message to the control unit of the node.
Here, the fault Alarm message may be an Alarm Indication Signal (AIS); the transmission unit may be a hardware device, and the control unit may be a communication protocol.
Step 502, the communication protocol notifies the received fault alarm message to the LSP and the PW passing through the node.
Step 503, the LSP performs recovery operation within a set time, and if the recovery is successful, sends a message that the failure alarm disappears to the PW loaded on the LSP; if not successful, no message is sent to the PW;
the PW judges whether a message of failure alarm disappearance from a service layer LSP is received within a set time, if the message of failure alarm disappearance is not received, the step 504 is entered; if the message that the fault alarm disappears is received, step 520 is entered;
here, the set time may be counted by a timer.
Step 504, the PW determines whether the fault alarm still exists by detecting the hardware device of the node sending the fault alarm message, and if the fault alarm still exists, then step 505 is performed; if the fault alert message does not exist, step 520 is entered.
And 505, the PW sends a notification of the existence of the fault to the communication protocol.
Step 506, the communication protocol sends a Notify message to T-PE1 according to the received notification;
here, the Notify message includes: a PW _ INFO object and an ERROR description (ERROR _ SPEC) object, as shown in fig. 6, the ERROR _ SPEC object including: an Error Code (Error Code) field and an Error Value (Error Value) field.
The ERROR Code field in the ERROR _ SPEC object of the RSVP-TE protocol is increased in advance by a value indicating a pseudowire ERROR (PW layer ERROR), for example, the value may be set to 24; meanwhile, the ERROR Value field in the ERROR _ SPEC object of the RSVP-TE protocol is increased by a Value used to indicate a pseudowire link failure (PW link failure), which may be set to 1, for example.
And 507, the Notify message triggers a request of the T-PE1 for establishing the MS-PW, and the T-PE1 calculates a new path of the MS-PW according to the information in the received Notify message.
In this embodiment, the new MS-PW path is a path through head-end node T-PE1, second switching node S-PE2, and target end node T-PE2, and the MS-PW includes two pseudo-wire segments.
In step 508, T-PE1 sends a Path message of the LSP carrying LSP layer Path related information to S-PE2 in the Path.
Step 509, S-PE2 obtains Resv message of LSP according to LSP layer Path related information in the received Path message of LSP, and sends Resv message of LSP to T-PE1 through RSVP-TE protocol.
Step 51O, T-PE1 performs LSP resource reservation according to the received Resv message of the LSP to complete establishment of the LSP, and the LSP is used as a service layer.
Step 511, after establishing the LSP layer, T-PE1 sends a Path message of the MS-PW carrying information related to the PW layer Path to S-PE 2;
after receiving the Resv message of the LSP, T-PE1 sets the value of S-PE2 in the PW Seg id corresponding to the Resv message that sends the LSP to 1, which indicates that the id of the current pseudowire segment to be established between T-PE1 and S-PE2 is 1, i.e., this pseudowire segment is the first pseudowire segment.
Step 512, after receiving the Path message of the MS-PW carrying the PW layer Path related information, the S-PE2 sends the Path message of the LSP carrying the LSP layer Path related information to T-PE 2.
Step 513, the T-PE2 obtains Resv message of the LSP according to the LSP layer Path related information in the received Path message of the LSP, and sends the Resv message of the LSP to the S-PE1 through RSVP-TE protocol.
Step 514, the S-PE2 performs LSP resource reservation according to the received Resv message of the LSP to complete establishment of the LSP, where the LSP serves as a service layer.
Step 515, after establishing the LSP layer, the S-PE2 sends a Path message of the MS-PW carrying information related to the PW layer Path to T-PE 2.
After receiving the Resv message of the LSP, the S-PE2 sets the value of T-PE2 in the PW Seg id corresponding to the Resv message that sent the LSP to 2, which indicates that the id of the PW segment currently to be established between S-PE2 and T-PE2 is 2, that is: the segment of the pseudo line segment is a second pseudo line segment.
And step 516, the T-PE2 obtains a Resv message of the MS-PW according to the PW layer Path related information in the received Path message of the MS-PW and sends the Resv message of the MS-PW to the S-PE 1.
Step 517, S-PE1 reserves the pseudo wire segment resource according to the received Resv message of MS-PW to establish PW as the client layer, completes the establishment of the pseudo wire segment,
and step 518, after the pseudo line segment is established, the S-PE1 sends a Resv message of the MS-PW to the T-PE 1.
Step 519, T-PE1 performs pseudo wire segment resource reservation to establish PW as a client layer according to the received Resv message of the MS-PW, and completes the establishment of the pseudo wire segment, thereby completing the establishment of the MS-PW.
And step 520, ending the processing flow.
The method for establishing the multi-segment pseudo wires and the method for recovering the multi-segment pseudo wires can also be applied to a cross-domain network, and the method for establishing the multi-segment pseudo wires and the method for recovering the multi-segment pseudo wires in the cross-domain network are similar to the method described above, and the difference is only that the number of the switching nodes is different, and the description is omitted.
In order to implement the method, the invention also discloses a head-end node, which comprises: a Path calculation unit, a service layer establishing unit, a Path message sending unit and a client layer establishing unit,
wherein,
the Path calculation unit is used for calculating a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the MS-PW, and encapsulating the related information of the Path in a Path message of the LSP;
the service layer establishing unit is used for establishing an LSP between the service layer establishing unit and a next hop switching node as a service layer according to the Path message;
the Path message sending unit is used for sending a Path message for establishing the MS-PW to a next hop switching node on the established LSP layer;
and the client layer establishing unit is used for establishing the PW as the client layer according to the received Resv message of the MS-PW.
The head-end node further comprises: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
the control unit is configured to generate a failure Notify message according to the received failure warning message, where the failure Notify message is used to trigger a request for establishing an MS-PW.
The invention also discloses a switching node, which comprises: a service layer establishing unit, a Path message sending unit, a Resv message forwarding unit and a client layer establishing unit, wherein,
the service layer establishing unit is used for establishing an LSP between the service layer establishing unit and a next hop switching node as a service layer according to the received Path message;
the Path message sending unit is used for sending a Path message for establishing the MS-PW to a next hop switching node on the established LSP layer;
the Resv message forwarding unit is used for forwarding the Resv message of the MS-PW to an upper hop;
and the client layer establishing unit is used for establishing the PW as the client layer according to the received Resv message of the MS-PW.
The switching node further comprises: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
and the control unit is used for generating a fault Notify message according to the received fault warning message and sending the fault Notify message to the head end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW.
The control unit is specifically configured to notify the PW passing through the node of the received fault alarm message; and generating a failure Notify message according to the failure existence notification sent by the PW, and sending the failure Notify message to the head node.
The invention also discloses a target end node, comprising: a Resv message generating unit and a Resv message transmitting unit, wherein
A Resv message generating unit, configured to generate a Resv message of the MS-PW according to the received Path message;
and a Resv message sending unit, configured to send a Resv message of the MS-PW to a previous hop switching node.
The target end node further comprises: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
and the control unit is used for generating a fault Notify message according to the received fault warning message and sending the fault Notify message to the head end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW.
The invention also discloses a system for establishing and recovering the multi-segment pseudo wires, which comprises: a head-end node, a target end node, and at least one switching node; wherein,
the head end node is used for calculating a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the multi-segment pseudo wire MS-PW, and packaging the related information of the Path in a Path message of the LSP; establishing an LSP between the switching node and the next hop as a service layer according to the Path message; sending a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer; establishing a PW as a client layer according to the received Resv message of the MS-PW; detecting a fault, and generating a fault Notify message when the fault is detected, wherein the fault Notify message is used for triggering a request for establishing an MS-PW;
the switching node is used for establishing an LSP between the switching node and a next hop as a service layer according to the received Path message; sending a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer; forwarding the Resv message of the received MS-PW to an upper hop; establishing a PW as a client layer according to the received Resv message of the MS-PW; detecting faults, and generating fault Notify messages when the faults are detected and sending the fault Notify messages to the head node;
the target end node is used for obtaining a Resv message of the MS-PW according to the Path message and sending the Resv message of the MS-PW to a previous hop switching node; and detecting the fault, and generating a fault Notify message when the fault is detected and transmitting the fault Notify message to the head node.
Optionally, the Path message is divided into a Path message of an LSP carrying LSP layer Path related information and a Path message of an MS-PW carrying PW layer Path related information;
the head-end node is specifically used for sending a Path message of the LSP to a next-hop switching node in the Path by the RSVP-TE protocol; performing LSP resource reservation according to the received Resv message of the LSP to complete the establishment of the LSP, wherein the LSP is used as a service layer;
the switching node is specifically configured to obtain a Resv message of the LSP according to the LSP layer Path related information in the received Path message of the LSP, and send the Resv message of the LSP to the head node via an RSVP-TE protocol.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (14)

1. A method for establishing a multi-segment pseudowire, the method comprising:
the head end node calculates a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the multi-segment pseudo wire MS-PW, and encapsulates the related information of the Path in the Path message of the Label Switching Path (LSP);
the head-end node establishes an LSP between the head-end node and a next-hop switching node as a service layer according to the Path message, wherein the service layer is called an LSP layer;
the head end node sends a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer;
the steps that the LSP between the established LSP and the next hop switching node is used as a service layer and the Path message of establishing the MS-PW is sent to the next hop switching node on the established LSP layer are repeated in sequence until the target end node receives the Path message of establishing the MS-PW;
the target end node obtains a resource reservation Resv message of the MS-PW according to the Path message and sends the Resv message of the MS-PW to a previous hop switching node;
the switching node receiving the Resv message of the MS-PW forwards the Resv message of the MS-PW to the previous hop switching node until the head end node;
and each node establishes a PW as a client layer according to the received Resv message of the MS-PW, wherein the client layer is called as a PW layer, and the establishment of each pseudo line segment is completed in sequence.
2. The method according to claim 1, wherein the Path message is divided into a Path message of an LSP carrying LSP layer Path related information and a Path message of an MS-PW carrying PW layer Path related information;
the establishment of the LSP between the head-end node and the next-hop switching node as a service layer according to the Path message is as follows:
the head-end node sends a Path message of the LSP to a switching node of a next hop in a Path through a resource reservation protocol RSVP-TE based on traffic engineering;
the switching node obtains Resv information of the LSP according to the LSP layer Path related information in the received Path information of the LSP and sends the Resv information of the LSP to a head node through an RSVP-TE protocol;
and the head-end node performs LSP resource reservation according to the received Resv message of the LSP to complete the establishment of the LSP, and the LSP is used as a service layer.
3. The method of claim 2, wherein the sending, by the head-end node, a Path message to establish the MS-PW to the next-hop switching node on the established LSP layer is:
a head-end node sends a Path message of an MS-PW to a next-hop switching node on an established LSP layer, wherein the Path message comprises: pseudowire Type PW Type and pseudowire segment identification number PW Seg id.
4. A method for recovering a multi-segment pseudowire, the method comprising:
the switching node or the target end node which detects the fault generates a fault notification message and sends the fault notification message to the head end node, or the head end node which detects the fault generates a fault notification message, wherein the fault notification message is used for triggering a request for establishing the MS-PW;
the head end node calculates a new MS-PW Path according to the triggered request for establishing the MS-PW, and encapsulates the related information of the Path in the Path message of the LSP;
the head-end node establishes an LSP between the head-end node and a next-hop switching node as a service layer according to the Path message;
the head end node sends a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer;
the steps that the LSP between the established LSP and the next hop switching node is used as a service layer and the Path message for establishing the MS-PW is sent to the next hop switching node on the established LSP layer are repeated in sequence until the target end node receives the Path message for establishing the MS-PW;
the target end node obtains a Resv message of the MS-PW according to the Path message and sends the Resv message of the MS-PW to a previous hop switching node;
the switching node receiving the Resv message of the MS-PW forwards the Resv message of the MS-PW to the previous hop switching node until the head end node;
and each node establishes the PW as a client layer according to the received Resv message of the MS-PW and completes the establishment of each pseudo segment in sequence.
5. The method according to claim 4, wherein the switch node or the target end node that detects the failure generates a failure notification message and sends the failure notification message to the head node:
the transmission unit of the switching node or the target end node which detects the fault sends out a fault warning message to the control unit of the node;
the control unit informs the PW passing through the node of the received fault alarm message;
the PW sends a fault existence notification to the control unit when judging that the fault alarm still exists by detecting a transmission unit of a node sending a fault alarm message;
and the control unit generates a failure notification Notify message according to the received notification and sends the failure notification Notify message to the head node.
6. The method of claim 4,
the failure Notify message includes: an Error Code Error field and an Error Value Error field; wherein the Error Code field comprises a Value for indicating a pseudo-wire Error PW layer Error, and the Error Value field comprises a Value for indicating a pseudo-wire link failure.
7. A head-end node of a multi-segment pseudowire, the head-end node comprising: a Path calculation unit, a service layer establishment unit, a Path message transmission unit and a client layer establishment unit, wherein,
the Path calculation unit is used for calculating a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the MS-PW, and encapsulating the related information of the Path in a Path message of the LSP;
the service layer establishing unit is used for establishing an LSP between the service layer establishing unit and a next hop switching node as a service layer according to the Path message;
the Path message sending unit is used for sending a Path message for establishing the MS-PW to a next hop switching node on the established LSP layer;
and the client layer establishing unit is used for establishing the PW as the client layer according to the received Resv message of the MS-PW.
8. The head-end node of claim 7, further comprising: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
the control unit is configured to generate a failure Notify message according to the received failure warning message, where the failure Notify message is used to trigger a request for establishing an MS-PW.
9. A switching node of a multi-segment pseudowire, the switching node comprising: a service layer establishing unit, a Path message sending unit, a Resv message forwarding unit and a client layer establishing unit, wherein,
the service layer establishing unit is used for establishing an LSP between the service layer establishing unit and a next hop switching node as a service layer according to the received Path message;
the Path message sending unit is used for sending a Path message for establishing the MS-PW to a next hop switching node on the established LSP layer;
the Resv message forwarding unit is used for forwarding the Resv message of the MS-PW to an upper hop;
and the client layer establishing unit is used for establishing the PW as the client layer according to the received Resv message of the MS-PW.
10. The switching node of claim 9, further comprising: a transmission unit and a control unit, wherein,
the transmission unit is used for detecting faults and sending fault alarm information to the control unit when the faults are detected;
and the control unit is used for generating a fault Notify message according to the received fault warning message and sending the fault Notify message to the head end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW.
11. The switching node of claim 10,
the control unit is specifically configured to notify the PW passing through the node of the received fault alarm message; and generating a failure Notify message according to the failure existence notification sent by the PW, and sending the failure Notify message to the head node.
12. A target end node of a multi-segment pseudowire, the target end node comprising: a Resv message generating unit, a Resv message transmitting unit, a transmitting unit, and a control unit, wherein,
a Resv message generating unit, configured to generate a Resv message of the MS-PW according to the received Path message;
a Resv message sending unit, configured to send a Resv message of the MS-PW to a previous hop switching node;
the transmission unit is used for testing faults and sending a fault warning message to the control unit when the faults are detected;
and the control unit is used for generating a fault Notify message according to the received fault warning message and sending the fault Notify message to the head end node, wherein the fault Notify message is used for triggering a request for establishing the MS-PW.
13. A system for establishing and restoring a multi-segment pseudowire, the system comprising: a head-end node, a target end node, and at least one switching node; wherein,
the head end node is used for calculating a Path of the MS-PW reaching the target end node through the switching node according to the triggered request for establishing the MS-PW, and packaging the related information of the Path in the Path message of the LSP; establishing an LSP between the switching node and the next hop as a service layer according to the Path message; sending a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer; establishing a PW as a client layer according to the received Resv message of the MS-PW; detecting a fault, and generating a fault Notify message when the fault is detected, wherein the fault Notify message is used for triggering a request for establishing an MS-PW;
the switching node is used for establishing an LSP between the switching node and a next hop as a service layer according to the received Path message; sending a Path message for establishing the MS-PW to a next-hop switching node on the established LSP layer; forwarding the Resv message of the received MS-PW to an upper hop; establishing a PW as a client layer according to the received Resv message of the MS-PW; detecting faults, and generating fault Notify messages when the faults are detected and sending the fault Notify messages to the head node;
the target end node is used for generating a Resv message of the MS-PW according to the received Path message and sending the Resv message of the MS-PW to the last hop switching node; and detecting the fault, and generating a fault Notify message when the fault is detected and transmitting the fault Notify message to the head node.
14. The system according to claim 13, wherein the Path message is divided into a Path message of LSP carrying LSP layer Path related information and a Path message of MS-PW carrying PW layer Path related information;
the head-end node is specifically used for sending a Path message of the LSP to a next-hop switching node in the Path by the RSVP-TE protocol; performing LSP resource reservation according to the received Resv message of the LSP to complete the establishment of the LSP, wherein the LSP is used as a service layer;
the switching node is specifically configured to obtain a Resv message of the LSP according to the LSP layer Path related information in the received Path message of the LSP, and send the Resv message of the LSP to the head node via an RSVP-TE protocol.
CN201110306702.9A 2011-10-11 2011-10-11 Multi-segment pseudo-wire establishing and recovering method and device as well as system Active CN102404199B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110306702.9A CN102404199B (en) 2011-10-11 2011-10-11 Multi-segment pseudo-wire establishing and recovering method and device as well as system
PCT/CN2012/074403 WO2013053221A1 (en) 2011-10-11 2012-04-19 Method, device and system for establishing and restoring multi-segment pseudo wire

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110306702.9A CN102404199B (en) 2011-10-11 2011-10-11 Multi-segment pseudo-wire establishing and recovering method and device as well as system

Publications (2)

Publication Number Publication Date
CN102404199A CN102404199A (en) 2012-04-04
CN102404199B true CN102404199B (en) 2014-04-30

Family

ID=45886002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110306702.9A Active CN102404199B (en) 2011-10-11 2011-10-11 Multi-segment pseudo-wire establishing and recovering method and device as well as system

Country Status (2)

Country Link
CN (1) CN102404199B (en)
WO (1) WO2013053221A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404199B (en) * 2011-10-11 2014-04-30 中兴通讯股份有限公司 Multi-segment pseudo-wire establishing and recovering method and device as well as system
CN103368842A (en) * 2012-04-10 2013-10-23 中兴通讯股份有限公司 Method and system for establishing MS-PW
CN105379197B (en) * 2013-07-05 2019-01-11 华为技术有限公司 It establishes the method in tunnel, distribute method, equipment and the network system of label

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1983071A1 (en) * 2007-04-12 2008-10-22 Shinetsu Chemical Co., Ltd. Method for manufacturing pyrolytic boron nitride composite substrate
WO2011000140A1 (en) * 2009-06-29 2011-01-06 华为技术有限公司 Method, apparatus and system for establishing pseudo wire
US20110176411A1 (en) * 2008-06-27 2011-07-21 France Telecom Method for protecting a pseudo-wire

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE479250T1 (en) * 2007-04-17 2010-09-15 Alcatel Lucent METHOD AND DEVICE FOR RESERVING NETWORK RESOURCES FOR A POINT-TO-POINT PSEUD CONNECTION
CN102130813B (en) * 2010-01-15 2016-08-03 华为技术有限公司 Pseudo line establishing method, system and equipment
CN102404199B (en) * 2011-10-11 2014-04-30 中兴通讯股份有限公司 Multi-segment pseudo-wire establishing and recovering method and device as well as system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1983071A1 (en) * 2007-04-12 2008-10-22 Shinetsu Chemical Co., Ltd. Method for manufacturing pyrolytic boron nitride composite substrate
US20110176411A1 (en) * 2008-06-27 2011-07-21 France Telecom Method for protecting a pseudo-wire
WO2011000140A1 (en) * 2009-06-29 2011-01-06 华为技术有限公司 Method, apparatus and system for establishing pseudo wire

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《多段伪线技术》;曹玉群;《通信技术》;20101010;第43卷(第10期);全文 *
曹玉群.《多段伪线技术》.《通信技术》.2010,第43卷(第10期),全文.

Also Published As

Publication number Publication date
CN102404199A (en) 2012-04-04
WO2013053221A1 (en) 2013-04-18

Similar Documents

Publication Publication Date Title
CN101316225B (en) Fault detection method, communication system and label exchange router
CN105245452B (en) Multi-protocol label switching traffic engineering tunnel establishing method and equipment
CN101945049B (en) The method for building up of multiprotocol label switching system, node device and bidirectional tunnel
CN102571601B (en) A method for ensuring the reliability of bidirectional forwarding detection and label switching path equipment
CA2600047A1 (en) A method for fault detect, report and maintenance negotiation control of multi-segment pseudo wire
EP2068506B1 (en) Method, system and provider edge router for detecting pseudo wire fault
CN104170328A (en) Protection in ring network of label switching routers
US8208469B2 (en) Communication system and apparatus
CN102769543B (en) BFD (Bidirectional Forwarding Detection) method and equipment based on LSP (Label Switching Path)
CN102055619A (en) Method and system for realize fault detection in bidirectional path segment
CN101789879B (en) Dynamic maintenance method and device for related link circuits
WO2015192518A1 (en) Error detection method, apparatus and system for potn
CN101777997A (en) Method and system for switching flow of network link
CN104852809A (en) Method and system for processing SD (signal degradation) fault
CN102404199B (en) Multi-segment pseudo-wire establishing and recovering method and device as well as system
CN101964743A (en) Multiprotocol label-switched path APS (Active Protection System) protection and management method, equipment and system
CN102308526B (en) Method, convergence device and system for realizing connected detection
CN102013990B (en) End to end notification method and system for multi-segment pseudowire fault
CN104219068B (en) The method and the network equipment of tunnel failure notice
WO2011020257A1 (en) Method and apparatus for notifying failure lsp information
CN104202184A (en) Quick service switchover method and device
CN109787797B (en) Link fault detection method, device and system
WO2014008651A1 (en) Method and routing device for bfd session establishment
CN105703967A (en) Method and apparatus for detecting label switching path connectivity
CN106161232A (en) A kind of method and apparatus of protecting tunnel switching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant