WO2010043149A1 - Method, network node and communication system for virtual circuit connectivity verification - Google Patents
Method, network node and communication system for virtual circuit connectivity verification Download PDFInfo
- Publication number
- WO2010043149A1 WO2010043149A1 PCT/CN2009/074250 CN2009074250W WO2010043149A1 WO 2010043149 A1 WO2010043149 A1 WO 2010043149A1 CN 2009074250 W CN2009074250 W CN 2009074250W WO 2010043149 A1 WO2010043149 A1 WO 2010043149A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- virtual circuit
- virtual
- circuit connectivity
- detection
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a method, a network node, and a communication system for checking a virtual circuit connectivity.
- PW Pseudo Wire
- Single Segment Pseudo Single Segment Pseudo
- T-PE Terminating Provider Edge
- VCCV PW Switching Provider
- T-PE1 sends a virtual circuit connectivity check ping request (VCCV Ping Request) message according to the selected VCCV type; T-PE1 will be compliant according to the protocol according to the selected VCCV type.
- the method sends the VCCV Ping Request message to the S-PE; the S-PE receives the message, and will survive in order to maintain the check (Time To Live)
- TTL TTL
- TTL value is set to a large value, such as 255; TTL value is not zero, S-PE forwards the received packet, T-PE1 is the end point of PW, and the packet is successfully sent to T-PE1 Processing on.
- T-PE1 checks the connectivity of T-PE2 through VCCV as follows: T-PE1 sends a VCCV Ping Request message; T-PE1 pings the VCCV through the protocol.
- the packet is sent to the T-PE2.
- the T-PE2 receives the packet and sets the TTL value to a large value.
- the T-PE2 sends the packet to the S-PE according to the transmission path.
- the TTL value is not zero.
- S-PE determines that it is not based on the value of TTL. It is the endpoint.
- T-PE1 may eventually receive the returned packet.
- the S-PE wants to actively check the pseudowire status of other devices (such as T-PE1 or T-PE2) by VCCV, the S-PE can receive the T-PE1 because it cannot accurately set the TTL value. After the VCCV ping reply message sent by the T-PE2, the S-PE forwards the packet as long as the TTL value is not zero. The result of the check is not determined to be between the S-PE and other devices. The state of the pseudowire, so in the multi-hop virtual pseudowire virtual circuit connectivity check process, the S-PE actively checks the pseudowire state of other devices through the VCCV mode.
- Embodiments of the present invention provide a method, network node, and system for checking virtual circuit connectivity, which solves the connectivity problem in MS-PW.
- An embodiment of the present invention provides a method for checking a virtual circuit connectivity, including:
- the embodiment of the present invention further provides a method for checking a virtual circuit connectivity, including:
- An embodiment of the present invention provides a network node, including:
- the sending module 302 is configured to send a virtual circuit connectivity check request packet, where the virtual circuit connectivity check request packet carries a hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node, so that The detecting termination node sets a survival time value of the response packet according to the hop count of the virtual pseudowire between the detection initiation node and the detection termination node;
- the receiving module 303 is configured to receive a response message.
- the connectivity check module 304 is configured to perform a virtual circuit connectivity check according to the survival time value in the response message.
- the embodiment of the present invention further provides a network node, including:
- the receiving module 401 is configured to receive a virtual circuit connectivity check request packet, where the request carries a hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node;
- the response message generating module 402 is configured to determine that the virtual circuit connectivity check request message is after its termination.
- the sending module 403 is configured to send the response message.
- the embodiment of the present invention further provides a network node, including:
- the request packet sending and receiving module 501 is configured to receive and forward the virtual circuit connectivity check request packet, and determine that the virtual circuit connectivity request packet is not terminated at the local node, and the virtual circuit connectivity check is forwarded.
- a request packet where the virtual circuit connectivity request packet carries a hop count of the virtual pseudowire between the detection initiation node and the detection termination node, so as to detect that the termination node is based on the virtual pseudo between the detection initiation node and the detection termination node.
- the hop count of the line sets the lifetime value of the response message;
- the response message sending and receiving module 502 is configured to receive the response message, determine that the received response message is not terminated by the node, modify the survival time value in the response message, and forward the modified response message.
- An embodiment of the present invention provides a communication system, including: a detection initiation node and a detection termination node:
- the detection initiation node sends a virtual circuit connectivity check request message to the detection termination node, where the virtual circuit connectivity check request message carries a hop of the virtual pseudowire between the detection initiation node and the detection termination node. And receiving the response message sent by the detection termination node, and performing virtual circuit connectivity check according to the survival time value in the response message;
- the detection termination node receives the virtual circuit connectivity check request message sent by the detection initiation node, and determines whether the received virtual circuit connectivity check request message is terminated at the local node; if the received virtual The circuit connectivity check request message is terminated at the local node, and generates and sends a response message to the detection initiator node, where the survival time value in the response message is set to the hop count of the virtual pseudowire.
- the embodiment of the present invention carries the survival time value required to be filled in the response packet of the detection termination node in the virtual circuit connectivity check request message.
- the detection termination node can accurately set the survival time, and solves the problem that the S-PE cannot actively detect the connectivity with other devices through the VCCV in the prior art, and uses the technical solution provided by the present invention to make the existing In the technology, T-PE actively detects the connectivity of other devices. By setting the TTL value accurately, the inspection process is more convenient and efficient.
- FIG. 1 is a schematic diagram of an application scenario of a virtual circuit connectivity check in the prior art
- 2A is a flowchart of a method for checking connectivity of a virtual circuit according to an embodiment of the present invention
- 2B is a flowchart of a method for checking connectivity of a virtual circuit according to another embodiment of the present invention.
- FIG. 3 is a simplified structural diagram of a network node according to an embodiment of the present invention.
- FIG. 4 is a simplified structural diagram of a network node according to another embodiment of the present invention.
- FIG. 5 is a simplified structural diagram of a network node according to another embodiment of the present invention.
- FIG. 6 is a simplified structural diagram of a communication system according to an embodiment of the present invention.
- the detecting initiating node sends a virtual circuit connectivity check request (VCCV Ping).
- VCCV Ping virtual circuit connectivity check request
- the VCCV ping request After the packet is received, the VCCV ping request carries the TTL value that the termination node needs to set in the VCCV ping reply packet to detect that the termination node can be based on The TTL value of the VCCV ping reply packet is set in the VCCV ping reply packet, and the TTL value in the VCCV ping reply packet sent by the detecting termination node is between the detection initiator node and the detection initiator node. The exact number of hops, the response message will be accurately and quickly sent to the intended device to complete the connectivity detection.
- the embodiment of the present invention solves the problem that the S-PE cannot actively check the connectivity of the virtual pseudowire virtual circuit with other devices through the VCCV mode in the prior art, and the technical solution described in the embodiment of the present invention is also used.
- the T-PE actively checks the connectivity with other devices through the VC CV more quickly and conveniently.
- a method for checking a virtual circuit connectivity in a communication system taking a communication system including two nodes as an example, as shown in FIG. 2A, a detection initiation node and a detection termination node, detecting an initiation node and The detection termination node does not include a detection intermediate node, where the detection initiation node represents the node that initiates the detection request, the detection termination node represents the node that terminates the detection request, and the detection intermediate node represents the node of the transit detection request, and the virtual circuit connectivity check method include: [42] Step S202: The detecting initiating node generates a virtual circuit connectivity check request message.
- the virtual circuit connectivity check request packet carries the hop count of the virtual pseudowire between the detection initiation node and the detection termination node; the virtual circuit connectivity check request packet further carries the destination IP address and the virtual Pseudo line identifier
- the destination IP address is the IP address of the detection termination node.
- the hop count of the virtual pseudowire between the detecting initiator node and the detecting terminal node may be determined by a network structure or other parameters, or may be determined by user configuration.
- Step S204 Detect the virtual circuit connectivity check request message sent by the initiating node.
- Step S206 The detecting termination node receives the virtual circuit connectivity check request packet, and determines that the virtual circuit connectivity check request packet is terminated at the local node, and generates a response packet, where the TTL value in the response packet is Detect the number of hops of the virtual pseudowire between the initiating node and the detecting end node.
- the method for determining whether the virtual circuit connectivity check request message is terminated at the local node may include: parsing the virtual circuit connectivity check request packet to obtain the destination IP address, and matching the destination IP address with the IP address of the local node, If the matching is performed, it is determined that the virtual circuit connectivity check request packet is terminated at the local node. If the matching is not performed, the virtual circuit connectivity check request packet is not terminated at the local node; or, the virtual circuit connectivity check is parsed.
- the request packet obtains the destination IP address and the virtual pseudowire identifier, and the destination IP address and the virtual pseudowire identifier are respectively matched with the IP address of the local node and the virtual pseudowire identifier. If yes, the virtual circuit connectivity check request packet is determined. It is terminated at the local node. If it does not match, it is determined that the virtual circuit connectivity check request message is not terminated at the local node.
- Step S208 Detecting that the terminating node sends the generated response message.
- Step S210 After detecting the response message, the initiating node determines that the response message is terminated according to the TTL value, terminates the forwarding process of the response message, and performs corresponding processing to complete the detection process.
- the initiating node After detecting that the initiating node receives the response message, it can determine that the virtual circuit connectivity between the detecting initiating node and the detecting end node is normal.
- the TTL value carried in the response packet is parsed.
- the response message is At the end of itself, the forwarding process of the response message is terminated.
- the detection end point may be combined with the TTL value and the destination IP address in the response packet to determine whether the response message is terminated at the local node, for example, the TTL value is reduced to 1 to 0, and the central processing unit is triggered. , CPU) processing the response message, such as the CPU will
- the destination IP address in the response packet matches the IP address of the local node. If it matches, it is determined that the response packet is terminated at the local node.
- the CPU may also check whether the node has sent a virtual circuit connectivity check request packet according to the virtual pseudowire identifier in the response packet and the virtual pseudowire identifier saved by the node, so as to ensure that the connectivity check is more accurate. reliable.
- the hop count of the virtual pseudowire between the detection initiation node and the detection termination node is encapsulated into the virtual circuit connectivity check request packet according to the type-Length-Value (TLV) coding format.
- TLV type-Length-Value
- Table 1 The coding format of the TLV is shown in Table 1. The number of hops of the virtual pseudowire between the initiating node and the detecting end node is filled in the value.
- the communication system includes two nodes, a detection initiation node and a detection termination node, and the detection initiation node and the detection termination node do not include a detection intermediate node, and when the detection initiation node initiates detection, the detection is initiated.
- the number of virtual pseudowire PW hops between the node and the detection termination node is 1, and the value in the information field is filled with 1.
- the initiating node After detecting that the initiating node receives the response packet, it parses the TTL value carried in the response packet. When the TTL value is 1 or the TTL value is decreased by 1 to 0, the response message is terminated at itself, and the response is terminated. Packet forwarding process.
- the hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node is determined according to the networking structure, for example, according to one or more of network topology parameters, virtual pseudowire list, and virtual pseudowire algorithm.
- the number of hops of the virtual pseudowire between the initiating node and the detecting end node can also be determined by the user configuration.
- the step of determining the number of hops of the virtual pseudowire between the detecting initiating node and the detecting terminating node may be determined locally by the detecting initiating node, or may be determined and provided by the central control node or the serving node. Test the originating node.
- FIG. 2B shows another embodiment of a method for checking the connectivity of a virtual circuit in a communication system.
- the embodiment takes three nodes as an example.
- the detection initiation node and the detection termination node detect the initiating node.
- the detection termination node includes a detection intermediate node, and the number of virtual pseudowire hops between the detection initiation node and the detection termination node is 2, where the detection initiation node represents the node that initiates the detection request, and the detection termination node represents the termination detection request.
- a node, detecting a node in which the intermediate node represents a transit detection request the method includes:
- Step S202' The detection initiation node generates a virtual circuit connectivity check request message, where the virtual circuit connectivity check request message carries the hop count of the virtual pseudowire between the detection initiation node and the detection termination node; In this embodiment, the hop count is 2; the manner in which the hop count is carried in the virtual circuit connectivity check request packet is the same as that in FIG. 2A, and is not described.
- the virtual circuit connectivity check request message may further include detecting a destination IP address and a virtual pseudowire identifier of the terminating node.
- Step S204' Detecting the virtual circuit connectivity check request message sent by the initiating node.
- Step S205' After detecting the virtual circuit connectivity check request message, the intermediate node determines whether the virtual circuit connectivity check request message is terminated at the local node.
- the method for determining whether the virtual circuit connectivity check request message is terminated at the local node may be the same as the corresponding description in step S206 in FIG. 2A, and is not described.
- Step S204" If it is detected in step S205' that the intermediate node determines that the virtual circuit connectivity check request message is not terminated at the local node, the detecting intermediate node continues to send the virtual circuit connectivity check request message, where The detecting intermediate node does not modify the hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node in the virtual circuit connectivity check request message.
- Step S206' After detecting that the termination node receives the virtual circuit connectivity check request packet, it determines that the virtual circuit connectivity check request packet is terminated at the local node, and generates a response packet, where the detection endpoint node is based on Detecting the TTL value of the hop count of the virtual pseudowire between the initiating node and the detecting end node, and setting the TTL value to detect the hop count of the virtual pseudowire between the initiating node and the detecting end node; It may include a destination IP address and a virtual pseudowire identifier (ie, detecting an IP address of the initiating node and a virtual pseudowire identifier).
- Step S208' detecting that the terminating node sends the generated response message.
- Step S209' After detecting that the intermediate node receives the response message, it determines whether the response message is terminated at the node.
- Step S208 If it is detected in step S209 that the intermediate node determines that the response message is not terminated at the local node, the detecting intermediate node continues to send the response message, wherein the TTL value in the response message sent by the intermediate node is detected according to the protocol. Minus 1.
- Step S210' After detecting that the initiating node receives the response message sent by the intermediate node, the virtual circuit connectivity check is performed according to the TTL value in the response message.
- a network node 300 includes:
- the request message generating module 301 is configured to generate a virtual circuit connectivity check request message, where the virtual circuit connectivity check request message carries a hop of the virtual pseudowire between the detection initiation node and the detection termination node. Number, in order to detect that the terminating node sets the TTL value in the response message based on the number of hops of the virtual pseudowire between the detecting initiating node and the detecting terminating node;
- the sending module 302 is configured to send the virtual circuit connectivity check request message generated by the request message generating module 301 to the communication system;
- the receiving module 303 is configured to receive a response packet.
- the connectivity check control module 304 is configured to perform a virtual circuit connectivity check according to the TTL value in the response packet.
- the network node in the embodiment of the present invention may be a detection initiation node, and the detection termination node can accurately set the TTL value of the survival time, and the TTL is not set to be large (such as 255), as in the prior art.
- the network node of the embodiment of the invention can quickly complete the check of the virtual circuit connectivity between the devices.
- a network node 400 includes:
- the receiving module 401 is configured to receive a virtual circuit connectivity check request packet, where the request carries a hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node.
- the response message generating module 402 is configured to determine that the virtual circuit connectivity check request message is after its termination. And generating a response message, where the survival time in the generated response message is the hop count of the virtual pseudowire.
- the generated response packet may further include a destination IP address and a virtual pseudowire identifier, where the destination IP address is an IP address of the detection initiator node.
- the sending module 403 is configured to send the response message generated by the response message generating module 402.
- a network node 500 includes:
- the request packet sending and receiving module 501 is configured to receive and forward the virtual circuit connectivity check request packet, and determine that the virtual circuit connectivity request packet is not terminated at the local node, and the virtual circuit connectivity check is forwarded.
- a request packet where the virtual circuit connectivity request packet carries a hop count of the virtual pseudowire between the detection initiation node and the detection termination node, so as to detect that the termination node is based on the virtual pseudo between the detection initiation node and the detection termination node.
- the hop count of the line sets the lifetime value of the response packet; here, the hop count of the virtual pseudowire in the forwarded virtual circuit connectivity check request message is not modified.
- the response message sending and receiving module 502 is configured to receive the response message, determine that the received response message is not terminated by the node, modify the survival time value in the response message, and forward the modified response message.
- the network node 500 may further include a connectivity detection control module 503, configured to determine that the virtual circuit connectivity check request message received by the request message transceiver module 501 is not after the end of the node, the control request message transceiver module The 501 forwards the virtual circuit connectivity check request message, and determines that the response message received by the response message sending and receiving module 502 is not in the TTL of the local device termination control response packet sending and receiving module 502 to modify the response message. After the value is forwarded, the modified response message is forwarded.
- the control function of the request packet sending and receiving module 501 can be integrated in the request packet sending and receiving module 501, and the control function of the response detecting and receiving module 503 can be integrated into the response packet.
- a communication system 600 includes at least two nodes, such as nodes 610a, 610b, 610c, 610d, and 620a, 620b in FIG. 610a, 6 10b 610c, 610d are terminating edge devices disposed in the network system, collectively referred to as terminating nodes 610.
- Nodes 620a, 620b are switching devices disposed in the network system, collectively referred to as switching nodes 620.
- One of the two nodes in the communication system 600 can serve as a detection initiation node, and the other of the two nodes serves as a detection termination node, and between the detection initiation node and the detection termination node according to FIG. 2A or FIG. 2B.
- the inspection process is described above and is not mentioned.
- the terminating node 610 is a PW Terminating Provider Edge (T-PE), and the switching node 620 is a virtual pseudowire switching point provider edge. PW Switching Provider Edge (S-PE).
- T-PE PW Terminating Provider Edge
- S-PE PW Switching Provider Edge
- control channel (CC) type of VCCV has the following three modes:
- Type 1 PW E3 control word mode of the first 4 bits at 0001b;
- Type 2 Multi-Protocol Label Switching (MPLS) routing alarm label
- TTL Time To Live
- T-PE1 checks the S-PE connectivity through VCCV:
- Step S701 T-PE1 determines the hop count of the PW between the T-PE1 and the S-PE, and encapsulates the hop count of the PW between the T-PE1 and the S-PE into the virtual circuit connectivity check request message. .
- T-PE1 determines that the number of hops of the PW between the T-PE1 and the S-PE is 1.
- the hop count of the PW is encapsulated according to the TLV coding format.
- the value of the Value field of the TLV is set to the hop count of the PW.
- Step S702 The T-PE1 sends the virtual circuit connectivity check request packet to the S-PE according to the set VCCV type according to the protocol.
- the type 1 or type 3 V in the VCCV is used to send the virtual circuit connectivity check request message to the S-PE according to the VCCV protocol.
- Step S703 The S-PE receives the virtual circuit connectivity check request packet, and determines that the virtual circuit connectivity check request packet is terminated by itself, and the virtual circuit connectivity check request packet is carried in the virtual circuit connectivity check request packet.
- the hop count of the PW between the T-PE1 and the S-PE is encapsulated into the response packet as a TTL value.
- Step S704 The S-PE sends a response packet to the T-PE1 according to the VCCV protocol.
- Step S705 The T-PE1 receives the response packet, and determines that the response packet is terminated by the device according to the TTL value in the response packet, and the response packet forwarding process is terminated, and corresponding processing is performed to complete the check. For details, refer to the description of step S210 above, and no longer comment.
- the T-PE1 checks the connectivity of T-PE2 through VCCV, including:
- Step S801 The T-PE1 determines the hop count of the PW between the T-PE1 and the T-PE2, and encapsulates the hop count of the PW between the T-PE1 and the T-PE2 into the virtual circuit connectivity check request report. Text.
- T-PE1 determines that the number of hops of the PW between T-PE1 and T-PE2 is 2.
- the value of the Value field of the TLV is set to 2 according to the TLV encoding format, and is encapsulated into Virtual circuit connectivity check request message
- Step S802 The T-PE1 sends the virtual circuit connectivity check request packet to the T-PE2 through the S-PE according to the set VCCV type.
- the VCCV type is type 1 or type 3, and different protocol specifications are selected depending on the type.
- the S-PE does not modify the hop count of the PW between T-PE1 and T-PE2 in the virtual circuit connectivity check request message.
- Step S803 The T-PE2 receives the virtual circuit connectivity check request packet, and uses the hop count of the PW between the T-PE1 and the T-PE2 carried in the virtual circuit connectivity check request packet as the TTL. The value is encapsulated into the response packet. The TTL value of the response packet in this application instance is set to the hop count of the PW.
- Step S804 The T-PE2 sends a response packet according to the transmission path, and the response packet is sent to the S-PE.
- Step S805 The S-PE receives the response packet, parses the TTL value, and determines that the response packet is not terminated by itself according to the TTL value, and the response packet is forwarded.
- the TTL value in the response packet sent by the S-PE is modified. Specifically, the S-PE decrements the TTL value after parsing into a new response packet or subtracts 1 from the TTL value obtained by the parsing. The value of the TTL in the response packet is replaced.
- Step S806 The T-PE1 receives the response packet, determines that the response packet is terminated by itself according to the TTL value in the response packet, terminates the response packet forwarding process, and performs corresponding processing to complete the check.
- determining whether the response packet is terminated on the local device according to the TTL value may be: determining whether the TTL obtained by the parsing is 1 or determining whether the TTL obtained by the parsing is 0 after the parsing, and if not, determining the response packet. It is not terminated at the device. If yes, it is determined that the response message is terminated at its own; or it is combined with the TTL value and the destination IP address in the response message.
- the process of forwarding processing according to the transmission path between the S-PE and the S-PE is also included, and the principle is the same as that of the S-PE to the T-PE1/T-PE2, and is no longer praised. .
- the method for checking the connectivity of the T-PE1 through the VCCV by the S-PE is described as an example.
- the method includes
- Step S901 The S-PE determines the number of hops of the PW between the S-PE and the T-PE1, and the P between the S-PE and the T-PE1.
- the hop count of W is encapsulated into the virtual circuit connectivity check request message.
- the S-PE determines that the number of hops of the PW between the S-PE and the T-PE1 is 1. After the virtual circuit connectivity check request packet is generated, the hop count of the PW is encapsulated according to the format of the TLV. In the virtual circuit connectivity check request message
- Step S902 The S-PE sends the virtual circuit connectivity check request packet to the T-PE1 according to the set VCCV type in the manner specified by the protocol.
- Step S903 The T-PE1 receives the virtual circuit connectivity check request packet, and encapsulates the hop count of the PW in the virtual circuit connectivity check request packet into the response packet as a TTL value.
- Step S904 The T-PE1 sends a response packet to the S-PE according to the transmission path.
- Step S905 The S-PE receives the response packet, determines that the packet is terminated by itself according to the TTL value in the response packet, terminates the response packet forwarding process, and performs corresponding processing on the response packet to complete the check. .
- the method for the S-PE to check the connectivity of the T-PE2 through the VCCV is the same as the method for the S-PE to check the connectivity of the T-PE1 through the VCCV, and is not mentioned here.
- the process of forwarding processing according to the transmission path between the S-PE and the S-PE is also included, and the principle is the same as that of the S-PE to the T-PE1/T-PE2, and the description is not repeated. .
- the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only)
- ROM Read Only Memory
- RAM Random Access Memory
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
说明书 Instruction manual
Title of Invention:一种虚电路连通性检査的方法、 网络节点和通信 系统 Title of Invention: A method for virtual circuit connectivity checking, network nodes, and communication systems
[1] 本申请要求了 2008年 10月 15日提交的、 申请号为 200810224464.5、 发明名称为" 一种虚电路连通性检査的方法、 网络节点和通信系统 "的中国申请的优先权, 其 全部内容通过引用结合在本申请中。 [1] This application claims the priority of the Chinese application filed on October 15, 2008, with the application number 200810224464.5, entitled "A method for virtual circuit connectivity check, network node and communication system", The entire contents are incorporated herein by reference.
[2] 技术领域 [2] Technical field
[3] 本发明涉及通信技术领域, 尤其涉及一种虚电路连通性检査的方法、 网络节点 和通信系统。 [3] The present invention relates to the field of communications technologies, and in particular, to a method, a network node, and a communication system for checking a virtual circuit connectivity.
[4] 发明背景 [4] Background of the invention
[5] 虚拟伪线 (Pseudo Wire , PW) 分为单跳虚拟伪线 (Single Segment Pseudo [5] Pseudo Wire (PW) is divided into single-hop virtual pseudowires (Single Segment Pseudo)
Wire , SS-PW) 和多跳虚拟伪线 (Multi Segment Pseudo Wire, SS-PW) and multi-hop virtual pseudowires (Multi Segment Pseudo
Wire , MS-PW) 。 SS-PW和 MS-PW, 都可以通过虚电路连通性检査 (Virtual Circuit Connectivity Verification , VCCV) 方式来检査虚电路连通性缺陷。 Wire, MS-PW). Both SS-PW and MS-PW can check for virtual circuit connectivity defects through Virtual Circuit Connectivity Verification (VCCV).
[6] 在 MS-PW中, 参照图 1所示, 现有方式中虚拟伪线终结点提供商边缘设备 (P[6] In MS-PW, refer to Figure 1, the virtual pseudowire termination provider edge device in the existing mode (P
W Terminating Provider Edge , T-PE) 通过 VCCV检査虚拟伪线交换点提供商边 缘设备 (PW Switching Provider W Terminating Provider Edge (T-PE) Checking Virtual Pseudo Switching Point Provider Edge Device by VCCV (PW Switching Provider)
Edge , S-PE) 的连通性如下: T-PEl按照选用的 VCCV类型, 发送虚电路连通性 检査 Ping请求 (VCCV Ping Request) 报文; T-PEl会根据选用的 VCCV类型, 按 照协议规定的方式将该 VCCV Ping Request报文发送到 S-PE上; S-PE收到该报文 , 为了维持检査, 将生存吋间 (Time To Live The connectivity of the Edge and S-PE is as follows: T-PE1 sends a virtual circuit connectivity check ping request (VCCV Ping Request) message according to the selected VCCV type; T-PE1 will be compliant according to the protocol according to the selected VCCV type. The method sends the VCCV Ping Request message to the S-PE; the S-PE receives the message, and will survive in order to maintain the check (Time To Live)
, TTL) 值设置为一个很大值, 如 255 ; TTL值不为零, S-PE对接收到的报文进 行转发, T-PE1是 PW的终结点, 报文会成功送到 T-PE1上进行处理。 再参照图 1 所示, T-PE1通过 VCCV检査 T-PE2的连通性如下: T-PE1发送 VCCV Ping Request 报文; T-PEl通过协议规定的方式将该 VCCV Ping Request , TTL) value is set to a large value, such as 255; TTL value is not zero, S-PE forwards the received packet, T-PE1 is the end point of PW, and the packet is successfully sent to T-PE1 Processing on. Referring to Figure 1, T-PE1 checks the connectivity of T-PE2 through VCCV as follows: T-PE1 sends a VCCV Ping Request message; T-PE1 pings the VCCV through the protocol.
报文发送到 T-PE2上; T-PE2收到该报文, 将 TTL的值设置为一个很大值; T-PE2 根据传输路径将报文发送给 S-PE, TTL值不为零, S-PE根据 TTL的值确定自己不 是终结点, 对接收到的报文进行转发, T-PE1最终可能会接收到返回的报文。 在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: 现有技术中The packet is sent to the T-PE2. The T-PE2 receives the packet and sets the TTL value to a large value. The T-PE2 sends the packet to the S-PE according to the transmission path. The TTL value is not zero. S-PE determines that it is not based on the value of TTL. It is the endpoint. After receiving the received packet, T-PE1 may eventually receive the returned packet. In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art:
, 如果 S-PE想主动通过 VCCV方式来检査其他设备伪线状态 (如 T-PE1或 T-PE2 ) 吋, 由于不能准确的设定 TTL值, 所以当 S-PE收到 T-PE1或 T-PE2发送的 VCCV Ping Reply报文吋, 只要 TTL值不为零, S-PE就要将其报文进行转发, 这样最终 得到的检査结果就不能确定是 S-PE与其他设备之间伪线的状态, 所以在多跳虚 拟伪线虚电路连通性检査过程中 S-PE主动通过 VCCV方式来检査其他设备伪线状 态存在局限性。 If the S-PE wants to actively check the pseudowire status of other devices (such as T-PE1 or T-PE2) by VCCV, the S-PE can receive the T-PE1 because it cannot accurately set the TTL value. After the VCCV ping reply message sent by the T-PE2, the S-PE forwards the packet as long as the TTL value is not zero. The result of the check is not determined to be between the S-PE and other devices. The state of the pseudowire, so in the multi-hop virtual pseudowire virtual circuit connectivity check process, the S-PE actively checks the pseudowire state of other devices through the VCCV mode.
[8] 发明内容 [8] Summary of the invention
[9] 本发明的实施例提供了一种虚电路连通性检査的方法、 网络节点及系统, 解决 了 MS-PW中连通性问题。 [9] Embodiments of the present invention provide a method, network node, and system for checking virtual circuit connectivity, which solves the connectivity problem in MS-PW.
[10] 本发明的实施例提供了一种虚电路连通性检査的方法, 包括: [10] An embodiment of the present invention provides a method for checking a virtual circuit connectivity, including:
[11] 接收虚电路连通性检査请求报文, 所述虚电路连通性检査请求报文中携带检测 发起节点与检测终结节点之间虚拟伪线的跳数; [11] receiving a virtual circuit connectivity check request packet, where the virtual circuit connectivity check request packet carries a hop count of the virtual pseudowire between the detection initiator node and the detection termination node;
[12] 确定接收到的虚电路连通性检査请求报文是否在本节点终结; 如果接收到的虚 电路连通性检査请求报文是在本节点终结, 生成并发送回应报文, 其中, 所述 回应报文中的生存吋间值设置为所述虚拟伪线的跳数。 [12] Determining whether the received virtual circuit connectivity check request message is terminated at the local node; if the received virtual circuit connectivity check request message is terminated at the local node, a response message is generated and sent, where The survival time value in the response message is set to the hop count of the virtual pseudowire.
[13] 本发明实施例还提供了一种虚电路连通性检査的方法, 包括: [13] The embodiment of the present invention further provides a method for checking a virtual circuit connectivity, including:
[14] 生成虚电路连通性检査请求报文, 所述虚电路连通性检査请求报文中携带检测 发起节点与检测终结节点之间虚拟伪线的跳数, 以便检测终结节点基于所述检 测发起节点与检测终结节点之间虚拟伪线跳数设置回应报文中的生存吋间值; [14] generating a virtual circuit connectivity check request packet, where the virtual circuit connectivity check request packet carries a hop count of the virtual pseudowire between the detection initiator node and the detection termination node, so that the detection termination node is based on the Detecting the virtual pseudowire hop count between the initiating node and the detecting termination node to set the survival time value in the response message;
[15] 接收回应报文, 根据回应报文中的生存吋间值进行虚电路连通性检査。 [15] Receive a response message and perform a virtual circuit connectivity check based on the lifetime value in the response message.
[16] 本发明实施例提供了一种网络节点, 包括: An embodiment of the present invention provides a network node, including:
[17] 发送模块 302, 用于发送虚电路连通性检査请求报文, 所述虚电路连通性检査 请求报文携带有检测发起节点与检测终结节点之间虚拟伪线的跳数, 以便所述 检测终结节点根据所述检测发起节点与检测终结节点之间虚拟伪线的跳数设置 回应报文的生存吋间值; [17] The sending module 302 is configured to send a virtual circuit connectivity check request packet, where the virtual circuit connectivity check request packet carries a hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node, so that The detecting termination node sets a survival time value of the response packet according to the hop count of the virtual pseudowire between the detection initiation node and the detection termination node;
[18] 接收模块 303, 用于接收回应报文; [19] 连通性检査模块 304, 用于根据该回应报文中的生存吋间值进行虚电路连通性 检査。 [18] The receiving module 303 is configured to receive a response message. [19] The connectivity check module 304 is configured to perform a virtual circuit connectivity check according to the survival time value in the response message.
[20] 本发明实施例还提供了一种网络节点, 包括: [20] The embodiment of the present invention further provides a network node, including:
[21] 接收模块 401, 用于接收虚电路连通性检査请求报文, 该请求中携带检测发起 节点与检测终结节点之间虚拟伪线的跳数; [21] The receiving module 401 is configured to receive a virtual circuit connectivity check request packet, where the request carries a hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node;
[22] 回应报文生成模块 402, 用于确定虚电路连通性检査请求报文是在自身终结后[22] The response message generating module 402 is configured to determine that the virtual circuit connectivity check request message is after its termination.
, 生成并发送回应报文, 其中, 所生成的回应报文中的生存吋间值为所述虚拟 伪线的跳数; And generating and sending a response message, where the survival time value in the generated response message is the hop count of the virtual pseudowire;
[23] 发送模块 403, 用于发送所述回应报文。 [23] The sending module 403 is configured to send the response message.
[24] 本发明实施例还提供一种网络节点, 包括: [24] The embodiment of the present invention further provides a network node, including:
[25] 请求报文收发模块 501, 用于接收并转发虚电路连通性检査请求报文, 在确定 该虚电路连通性请求报文不是在本节点终结吋转发所述虚电路连通性检査请求 报文, 其中, 该虚电路连通性请求报文中携带检测发起节点与检测终结节点之 间虚拟伪线的跳数, 以便检测终结节点基于所述检测发起节点与检测终结节点 之间虚拟伪线的跳数设置回应报文的生存吋间值; [25] The request packet sending and receiving module 501 is configured to receive and forward the virtual circuit connectivity check request packet, and determine that the virtual circuit connectivity request packet is not terminated at the local node, and the virtual circuit connectivity check is forwarded. a request packet, where the virtual circuit connectivity request packet carries a hop count of the virtual pseudowire between the detection initiation node and the detection termination node, so as to detect that the termination node is based on the virtual pseudo between the detection initiation node and the detection termination node. The hop count of the line sets the lifetime value of the response message;
[26] 回应报文收发模块 502, 用于接收回应报文, 确定接收到的回应报文不在本节 点终结吋, 修改回应报文中的生存吋间值并转发修改后的回应报文。 [26] The response message sending and receiving module 502 is configured to receive the response message, determine that the received response message is not terminated by the node, modify the survival time value in the response message, and forward the modified response message.
[27] 本发明实施例提供了一种通信系统, 包括: 检测发起节点和检测终结节点: [27] An embodiment of the present invention provides a communication system, including: a detection initiation node and a detection termination node:
[28] 所述检测发起节点向检测终结节点发送虚电路连通性检査请求报文, 所述虚电 路连通性检査请求报文中携带检测发起节点与检测终结节点之间虚拟伪线的跳 数, 以及接收所述检测终结节点发送的回应报文, 根据回应报文中的生存吋间 值进行虚电路连通性检査; [28] The detection initiation node sends a virtual circuit connectivity check request message to the detection termination node, where the virtual circuit connectivity check request message carries a hop of the virtual pseudowire between the detection initiation node and the detection termination node. And receiving the response message sent by the detection termination node, and performing virtual circuit connectivity check according to the survival time value in the response message;
[29] 检测终结节点接收所述检测发起节点发送的所述虚电路连通性检査请求报文, 确定接收到的虚电路连通性检査请求报文是否在本节点终结; 如果接收到的虚 电路连通性检査请求报文是在本节点终结, 生成并向检测发起节点发送回应报 文其中, 所述回应报文中的生存吋间值设置为所述虚拟伪线的跳数。 [29] The detection termination node receives the virtual circuit connectivity check request message sent by the detection initiation node, and determines whether the received virtual circuit connectivity check request message is terminated at the local node; if the received virtual The circuit connectivity check request message is terminated at the local node, and generates and sends a response message to the detection initiator node, where the survival time value in the response message is set to the hop count of the virtual pseudowire.
[30] 由上述本发明的实施例提供的技术方案可以看出, 本发明实施例通过在虚电路 连通性检査请求报文中携带检测终结节点的回应报文中需要填写的生存吋间值 , 使检测终结节点能够准确的设置生存吋间, 解决了现有技术中 S-PE不能主动 通过 VCCV检测与其他设备之间连通性的问题, 并且釆用本发明提供的技术方案 , 使现有技术中 T-PE主动检测其他设备连通性吋, 通过准确的设置 TTL值, 使检 査过程更加便捷和高效。 According to the technical solution provided by the foregoing embodiment of the present invention, the embodiment of the present invention carries the survival time value required to be filled in the response packet of the detection termination node in the virtual circuit connectivity check request message. The detection termination node can accurately set the survival time, and solves the problem that the S-PE cannot actively detect the connectivity with other devices through the VCCV in the prior art, and uses the technical solution provided by the present invention to make the existing In the technology, T-PE actively detects the connectivity of other devices. By setting the TTL value accurately, the inspection process is more convenient and efficient.
[31] 附图简要说明 [31] BRIEF DESCRIPTION OF THE DRAWINGS
[32] 图 1为现有技术中虚电路连通性检査的应用场景示意图; [32] FIG. 1 is a schematic diagram of an application scenario of a virtual circuit connectivity check in the prior art;
[33] 图 2A为本发明一实施例中虚电路连通性检査的方法流程图; 2A is a flowchart of a method for checking connectivity of a virtual circuit according to an embodiment of the present invention;
[34] 图 2B为本发明另一实施例中虚电路连通性检査的方法流程图; 2B is a flowchart of a method for checking connectivity of a virtual circuit according to another embodiment of the present invention;
[35] 图 3为本发明一实施例的网络节点简化结构图; FIG. 3 is a simplified structural diagram of a network node according to an embodiment of the present invention; FIG.
[36] 图 4为本发明另一实施例的网络节点简化结构图; FIG. 4 is a simplified structural diagram of a network node according to another embodiment of the present invention; FIG.
[37] 图 5为本发明另一实施例的网络节点简化结构图; FIG. 5 is a simplified structural diagram of a network node according to another embodiment of the present invention; FIG.
[38] 图 6为本发明一实施例的通信系统简化结构图。 6 is a simplified structural diagram of a communication system according to an embodiment of the present invention.
[39] 实施本发明的方式 [39] Mode for carrying out the invention
[40] 在本发明实施例中, 检测发起节点发送虚电路连通性检査请求 (VCCV Ping In the embodiment of the present invention, the detecting initiating node sends a virtual circuit connectivity check request (VCCV Ping).
Request) 报文吋, 在 VCCV Ping Request报文中携带检测终结节点在虚电路连通 性检査回应 (VCCV Ping Reply) 报文中需要设置的生存吋间 (TTL) 值, 以便 检测终结节点能够基于所述检测发起节点与检测终结节点之间虚拟伪线的跳数 设置 VCCV Ping Reply报文中的 TTL值, 由于检测终结节点发送的 VCCV Ping Reply报文中 TTL值表示其与检测发起节点之间准确的跳数, 该回应报文会被准 确、 快速发送到预期的设备上, 完成连通性的检测。 本发明实施例解决了现有 技术中 S-PE不能主动通过 VCCV方式来检査与其他设备之间虚拟伪线虚电路连通 性的问题, 釆用本发明实施例所述技术方案, 也使现有技术中 T-PE主动通过 VC CV检査与其他设备连通性的方法更加快速和便捷。 Request) After the packet is received, the VCCV ping request carries the TTL value that the termination node needs to set in the VCCV ping reply packet to detect that the termination node can be based on The TTL value of the VCCV ping reply packet is set in the VCCV ping reply packet, and the TTL value in the VCCV ping reply packet sent by the detecting termination node is between the detection initiator node and the detection initiator node. The exact number of hops, the response message will be accurately and quickly sent to the intended device to complete the connectivity detection. The embodiment of the present invention solves the problem that the S-PE cannot actively check the connectivity of the virtual pseudowire virtual circuit with other devices through the VCCV mode in the prior art, and the technical solution described in the embodiment of the present invention is also used. In the prior art, the T-PE actively checks the connectivity with other devices through the VC CV more quickly and conveniently.
[41] 如图 2A所示, 一种通信系统中虚电路连通性检査的方法, 以通信系统包含两个 节点为例, 如图 2A中的检测发起节点和检测终结节点, 检测发起节点和检测终 结节点中间不包含检测中间节点, 这里的检测发起节点表示发起检测请求的节 点, 检测终结节点表示终结检测请求的节点, 检测中间节点表示中转检测请求 的节点, 该虚电路连通性检査方法包括: [42] 步骤 S202: 检测发起节点生成虚电路连通性检査请求报文。 [41] As shown in FIG. 2A, a method for checking a virtual circuit connectivity in a communication system, taking a communication system including two nodes as an example, as shown in FIG. 2A, a detection initiation node and a detection termination node, detecting an initiation node and The detection termination node does not include a detection intermediate node, where the detection initiation node represents the node that initiates the detection request, the detection termination node represents the node that terminates the detection request, and the detection intermediate node represents the node of the transit detection request, and the virtual circuit connectivity check method include: [42] Step S202: The detecting initiating node generates a virtual circuit connectivity check request message.
[43] 该虚电路连通性检査请求报文中携带检测发起节点与检测终结节点之间虚拟伪 线的跳数; 该虚电路连通性检査请求报文中还携带有目的 IP地址和虚拟伪线标识 [43] The virtual circuit connectivity check request packet carries the hop count of the virtual pseudowire between the detection initiation node and the detection termination node; the virtual circuit connectivity check request packet further carries the destination IP address and the virtual Pseudo line identifier
, 其中, 目的 IP地址为检测终结节点的 IP地址。 , where the destination IP address is the IP address of the detection termination node.
[44] 其中, 检测发起节点与检测终结节点之间虚拟伪线的跳数可以通过网络结构或 其它参数确定, 也可以通过用户配置确定。 [44] The hop count of the virtual pseudowire between the detecting initiator node and the detecting terminal node may be determined by a network structure or other parameters, or may be determined by user configuration.
[45] 步骤 S204: 检测发起节点发送生成的虚电路连通性检査请求报文。 [45] Step S204: Detect the virtual circuit connectivity check request message sent by the initiating node.
[46] 步骤 S206: 检测终结节点接收虚电路连通性检査请求报文, 确定虚电路连通性 检査请求报文是在本节点终结, 生成回应报文, 该回应报文中的 TTL值为检测发 起节点与检测终结节点之间虚拟伪线的跳数。 [46] Step S206: The detecting termination node receives the virtual circuit connectivity check request packet, and determines that the virtual circuit connectivity check request packet is terminated at the local node, and generates a response packet, where the TTL value in the response packet is Detect the number of hops of the virtual pseudowire between the initiating node and the detecting end node.
[47] 确定虚电路连通性检査请求报文是否在本节点终结的方法可以包括: 解析虚电 路连通性检査请求报文得到目的 IP地址, 将目的 IP地址和本节点的 IP地址匹配, 如果匹配则确定该虚电路连通性检査请求报文是在本节点终结, 如果不匹配则 确定该虚电路连通性检査请求报文不是在本节点终结; 或者, 解析虚电路连通 性检査请求报文得到目的 IP地址和虚拟伪线标识, 将目的 IP地址和虚拟伪线标识 分别与本节点的 IP地址和虚拟伪线标识匹配, 如果匹配则确定该虚电路连通性检 査请求报文是在本节点终结, 如果不匹配则确定该虚电路连通性检査请求报文 不是在本节点终结。 [47] The method for determining whether the virtual circuit connectivity check request message is terminated at the local node may include: parsing the virtual circuit connectivity check request packet to obtain the destination IP address, and matching the destination IP address with the IP address of the local node, If the matching is performed, it is determined that the virtual circuit connectivity check request packet is terminated at the local node. If the matching is not performed, the virtual circuit connectivity check request packet is not terminated at the local node; or, the virtual circuit connectivity check is parsed. The request packet obtains the destination IP address and the virtual pseudowire identifier, and the destination IP address and the virtual pseudowire identifier are respectively matched with the IP address of the local node and the virtual pseudowire identifier. If yes, the virtual circuit connectivity check request packet is determined. It is terminated at the local node. If it does not match, it is determined that the virtual circuit connectivity check request message is not terminated at the local node.
[48] 步骤 S208: 检测终结节点发送生成的回应报文。 [48] Step S208: Detecting that the terminating node sends the generated response message.
[49] 步骤 S210: 检测发起节点接收到回应报文后, 根据 TTL值确定回应报文在本节 点终结, 终止回应报文的转发过程, 并执行相应处理完成检测过程。 [49] Step S210: After detecting the response message, the initiating node determines that the response message is terminated according to the TTL value, terminates the forwarding process of the response message, and performs corresponding processing to complete the detection process.
[50] 当检测发起节点接收到回应报文后, 就能够确定检测发起节点与检测终节点之 间虚电路连通性是正常的。 [50] After detecting that the initiating node receives the response message, it can determine that the virtual circuit connectivity between the detecting initiating node and the detecting end node is normal.
[51] 具体的, 当检测发起节点收到回应报文后, 解析得到回应报文中携带的 TTL值 , 当 TTL值为 1或者将 TTL值减 1为 0吋, 得知该回应报文是在自身终结, 终止该 回应报文的转发过程。 进一步的, 检测终结点可以结合回应报文中的 TTL值和目 的 IP地址确定该回应报文是否在本节点终结, 例如可以利用在 TTL值减 1为 0吋, 触发中央处理单元 (Central Processing Unit, CPU) 处理该回应报文, 如 CPU将 回应报文中的目的 IP地址和本节点的 IP地址进行匹配, 如果匹配, 确定该回应报 文是在本节点终结。 CPU还可以根据回应报文中的虚拟伪线标识和本节点保存的 虚拟伪线标识匹配校验本节点是否已发送过虚电路连通性检査请求报文等, 以 保证连通性检査更准确可靠。 [51] Specifically, after detecting that the initiating node receives the response packet, the TTL value carried in the response packet is parsed. When the TTL value is 1 or the TTL value is decreased to 0, the response message is At the end of itself, the forwarding process of the response message is terminated. Further, the detection end point may be combined with the TTL value and the destination IP address in the response packet to determine whether the response message is terminated at the local node, for example, the TTL value is reduced to 1 to 0, and the central processing unit is triggered. , CPU) processing the response message, such as the CPU will The destination IP address in the response packet matches the IP address of the local node. If it matches, it is determined that the response packet is terminated at the local node. The CPU may also check whether the node has sent a virtual circuit connectivity check request packet according to the virtual pseudowire identifier in the response packet and the virtual pseudowire identifier saved by the node, so as to ensure that the connectivity check is more accurate. reliable.
其中, 上述检测发起节点与检测终结节点之间虚拟伪线的跳数是按照类型-长 度-值 (Type-Length- Value, TLV) 的编码格式封装到虚电路连通性检査请求报 文的信息字段中。 TLV的编码格式如表 1所示。 检测发起节点与检测终结节点之 间虚拟伪线的跳数就填写在值 (Value) 中。 The hop count of the virtual pseudowire between the detection initiation node and the detection termination node is encapsulated into the virtual circuit connectivity check request packet according to the type-Length-Value (TLV) coding format. In the field. The coding format of the TLV is shown in Table 1. The number of hops of the virtual pseudowire between the initiating node and the detecting end node is filled in the value.
TLV信息字段中各字段的含义如下表 2所示: The meanings of the fields in the TLV information field are as shown in Table 2 below:
[55] [55]
[56] 例如在图 2A中所示, 通信系统包含两个节点, 检测发起节点和检测终结节点, 检测发起节点和检测终结节点中间不包含检测中间节点, 当检测发起节点发起 检测吋, 检测发起节点与检测终结节点之间的虚拟伪线 PW跳数为 1, 就在信息 字段中的 Value填入 1。 当检测发起节点收到回应报文后, 解析得到回应报文中携 带的 TTL值, 当 TTL值为 1或 TTL值减 1为 0吋, 得知该回应报文是在自身终结, 终止该回应报文的转发过程。 [56] For example, as shown in FIG. 2A, the communication system includes two nodes, a detection initiation node and a detection termination node, and the detection initiation node and the detection termination node do not include a detection intermediate node, and when the detection initiation node initiates detection, the detection is initiated. The number of virtual pseudowire PW hops between the node and the detection termination node is 1, and the value in the information field is filled with 1. After detecting that the initiating node receives the response packet, it parses the TTL value carried in the response packet. When the TTL value is 1 or the TTL value is decreased by 1 to 0, the response message is terminated at itself, and the response is terminated. Packet forwarding process.
[57] 其中, 检测发起节点与检测终结节点之间虚拟伪线的跳数是根据组网结构来确 定的, 例如根据网络拓扑参数、 虚拟伪线列表、 虚拟伪线算法的一种或多种来 确定; 检测发起节点与检测终结节点之间虚拟伪线的跳数也可以由用户配置确 定。 上述确定检测发起节点与检测终结节点之间虚拟伪线的跳数的步骤可以由 检测发起节点在本地确定, 也可以由中心控制节点或服务节点确定并提供给检 测发起节点。 [57] The hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node is determined according to the networking structure, for example, according to one or more of network topology parameters, virtual pseudowire list, and virtual pseudowire algorithm. To determine; the number of hops of the virtual pseudowire between the initiating node and the detecting end node can also be determined by the user configuration. The step of determining the number of hops of the virtual pseudowire between the detecting initiating node and the detecting terminating node may be determined locally by the detecting initiating node, or may be determined and provided by the central control node or the serving node. Test the originating node.
[58] 图 2B所示, 通信系统中虚电路连通性检査的方法另一实施例, 该实施例以三个 节点为例, 如图 2B中的检测发起节点和检测终结节点, 检测发起节点和检测终 结节点中间包含 1个检测中间节点, 检测发起节点与检测终结节点之间的虚拟伪 线跳数为 2, 这里的检测发起节点表示发起检测请求的节点, 检测终结节点表示 终结检测请求的节点, 检测中间节点表示中转检测请求的节点, 该方法包括: [58] FIG. 2B shows another embodiment of a method for checking the connectivity of a virtual circuit in a communication system. The embodiment takes three nodes as an example. As shown in FIG. 2B, the detection initiation node and the detection termination node detect the initiating node. The detection termination node includes a detection intermediate node, and the number of virtual pseudowire hops between the detection initiation node and the detection termination node is 2, where the detection initiation node represents the node that initiates the detection request, and the detection termination node represents the termination detection request. a node, detecting a node in which the intermediate node represents a transit detection request, the method includes:
[59] 步骤 S202' : 检测发起节点生成虚电路连通性检査请求报文, 该虚电路连通性 检査请求报文中携带检测发起节点与检测终结节点之间虚拟伪线的跳数; 在本 实施例中跳数为 2; 虚电路连通性检査请求报文中携带跳数的方式和图 2A中相同 , 不再赞述。 虚电路连通性检査请求报文中还可以包括检测终结节点的目的 IP地 址和虚拟伪线标识。 [59] Step S202': The detection initiation node generates a virtual circuit connectivity check request message, where the virtual circuit connectivity check request message carries the hop count of the virtual pseudowire between the detection initiation node and the detection termination node; In this embodiment, the hop count is 2; the manner in which the hop count is carried in the virtual circuit connectivity check request packet is the same as that in FIG. 2A, and is not described. The virtual circuit connectivity check request message may further include detecting a destination IP address and a virtual pseudowire identifier of the terminating node.
[60] 步骤 S204' : 检测发起节点发送生成的虚电路连通性检査请求报文。 [60] Step S204': Detecting the virtual circuit connectivity check request message sent by the initiating node.
[61] 步骤 S205' : 检测中间节点接收到虚电路连通性检査请求报文后, 确定该虚电 路连通性检査请求报文是否在本节点终结。 [61] Step S205': After detecting the virtual circuit connectivity check request message, the intermediate node determines whether the virtual circuit connectivity check request message is terminated at the local node.
[62] 其中, 确定虚电路连通性检査请求报文是否在本节点终结的方法可以和图 2A中 步骤 S206相应描述相同, 不再赞述。 [62] The method for determining whether the virtual circuit connectivity check request message is terminated at the local node may be the same as the corresponding description in step S206 in FIG. 2A, and is not described.
[63] 步骤 S204" : 如果在步骤 S205'中检测中间节点确定该虚电路连通性检査请求报 文不是在本节点终结, 检测中间节点继续发送该虚电路连通性检査请求报文, 这里, 检测中间节点不会修改虚电路连通性检査请求报文中的检测发起节点与 检测终结节点之间虚拟伪线的跳数。 [63] Step S204": If it is detected in step S205' that the intermediate node determines that the virtual circuit connectivity check request message is not terminated at the local node, the detecting intermediate node continues to send the virtual circuit connectivity check request message, where The detecting intermediate node does not modify the hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node in the virtual circuit connectivity check request message.
[64] 步骤 S206' : 检测终结节点接收虚电路连通性检査请求报文后, 确定虚电路连 通性检査请求报文是在本节点终结, 生成回应报文, 其中, 检测终结点节点基 于检测发起节点与检测终结节点之间虚拟伪线的跳数设置回应报文中的 TTL值, 即将 TTL值设置成检测发起节点与检测终结节点之间虚拟伪线的跳数; 回应报文 中还可以包括目的 IP地址和虚拟伪线标识 (即检测发起节点的 IP地址和虚拟伪线 标识) 。 [64] Step S206': After detecting that the termination node receives the virtual circuit connectivity check request packet, it determines that the virtual circuit connectivity check request packet is terminated at the local node, and generates a response packet, where the detection endpoint node is based on Detecting the TTL value of the hop count of the virtual pseudowire between the initiating node and the detecting end node, and setting the TTL value to detect the hop count of the virtual pseudowire between the initiating node and the detecting end node; It may include a destination IP address and a virtual pseudowire identifier (ie, detecting an IP address of the initiating node and a virtual pseudowire identifier).
其中, 确定虚电路连通性检査请求报文是否在本节点终结的方法可以参考步骤 S206的相应描述, 不再赞述。 [66] 步骤 S208' : 检测终结节点发送生成的回应报文。 The method for determining whether the virtual circuit connectivity check request message is terminated at the local node may refer to the corresponding description in step S206, and is not described. [66] Step S208': detecting that the terminating node sends the generated response message.
[67] 步骤 S209' : 检测中间节点接收到回应报文后, 确定回应报文是否在本节点终 结。 [67] Step S209': After detecting that the intermediate node receives the response message, it determines whether the response message is terminated at the node.
[68] 步骤 S208" : 如果步骤 S209中检测中间节点确定回应报文不是在本节点终结, 检测中间节点继续发送回应报文, 其中, 检测中间节点发送的回应报文中的 TTL 值按照协议规定减 1。 [68] Step S208": If it is detected in step S209 that the intermediate node determines that the response message is not terminated at the local node, the detecting intermediate node continues to send the response message, wherein the TTL value in the response message sent by the intermediate node is detected according to the protocol. Minus 1.
[69] 步骤 S210' : 检测发起节点接收检测中间节点发送的回应报文后, 根据回应报 文中的 TTL值进行虚电路连通性检査。 [69] Step S210': After detecting that the initiating node receives the response message sent by the intermediate node, the virtual circuit connectivity check is performed according to the TTL value in the response message.
[70] 具体的, 根据回应报文中的 TTL值确定回应报文是在本节点终结, 终止回应报 文的转发过程, 并执行相应处理完成检测过程。 该步骤和图 2A中的步骤 S210相 同, 在此不再赞述。 [70] Specifically, according to the TTL value in the response message, it is determined that the response message is terminated at the local node, the forwarding process of the response message is terminated, and the corresponding processing is performed to complete the detection process. This step is the same as step S210 in Fig. 2A, and will not be described here.
[71] 如图 3所示, 本发明一实施例的一种网络节点 300, 其包括: As shown in FIG. 3, a network node 300 according to an embodiment of the present invention includes:
[72] 请求报文生成模块 301, 用于生成虚电路连通性检査请求报文, 该虚电路连通 性检査请求报文中携带该检测发起节点与检测终结节点之间虚拟伪线的跳数, 以便检测终结节点基于检测发起节点与检测终结节点之间虚拟伪线的跳数设置 回应报文中的 TTL值; [72] The request message generating module 301 is configured to generate a virtual circuit connectivity check request message, where the virtual circuit connectivity check request message carries a hop of the virtual pseudowire between the detection initiation node and the detection termination node. Number, in order to detect that the terminating node sets the TTL value in the response message based on the number of hops of the virtual pseudowire between the detecting initiating node and the detecting terminating node;
[73] 发送模块 302, 用于将请求报文生成模块 301生成的虚电路连通性检査请求报文 发送到通信系统中; [73] The sending module 302 is configured to send the virtual circuit connectivity check request message generated by the request message generating module 301 to the communication system;
[74] 接收模块 303, 用于接收回应报文; [74] The receiving module 303 is configured to receive a response packet.
[75] 连通性检査控制模块 304, 用于根据该回应报文中 TTL值进行虚电路连通性检 査。 [75] The connectivity check control module 304 is configured to perform a virtual circuit connectivity check according to the TTL value in the response packet.
[76] 本发明实施例的网络节点可以是检测发起节点, 实现检测终结节点能够准确的 设定生存吋间 TTL值, 不再像现有技术那样, TTL设置成很大 (如 255) , 本发 明实施例的网络节点可以快速的完成各设备之间虚电路连通性的检査。 [76] The network node in the embodiment of the present invention may be a detection initiation node, and the detection termination node can accurately set the TTL value of the survival time, and the TTL is not set to be large (such as 255), as in the prior art. The network node of the embodiment of the invention can quickly complete the check of the virtual circuit connectivity between the devices.
[77] 如图 4所示, 本发明另一实施例的一种网络节点 400, 包括: As shown in FIG. 4, a network node 400 according to another embodiment of the present invention includes:
[78] 接收模块 401, 用于接收虚电路连通性检査请求报文, 该请求中携带检测发起 节点与检测终结节点之间虚拟伪线的跳数。 [78] The receiving module 401 is configured to receive a virtual circuit connectivity check request packet, where the request carries a hop count of the virtual pseudowire between the detecting initiator node and the detecting termination node.
[79] 回应报文生成模块 402, 用于确定虚电路连通性检査请求报文是在自身终结后 , 生成回应报文, 其中, 所生成的回应报文中的生存吋间值为所述虚拟伪线的 跳数。 其中, 所生成的回应报文中还可以包括目的 IP地址和虚拟伪线标识, 其中 , 目的 IP地址为检测发起节点的 IP地址。 [79] The response message generating module 402 is configured to determine that the virtual circuit connectivity check request message is after its termination. And generating a response message, where the survival time in the generated response message is the hop count of the virtual pseudowire. The generated response packet may further include a destination IP address and a virtual pseudowire identifier, where the destination IP address is an IP address of the detection initiator node.
[80] 发送模块 403, 用于将回应报文生成模块 402生成的回应报文发送出去。 [80] The sending module 403 is configured to send the response message generated by the response message generating module 402.
[81] 如图 5所示, 本发明另一实施例的一种网络节点 500, 包括: As shown in FIG. 5, a network node 500 according to another embodiment of the present invention includes:
[82] 请求报文收发模块 501, 用于接收并转发虚电路连通性检査请求报文, 在确定 该虚电路连通性请求报文不是在本节点终结吋转发所述虚电路连通性检査请求 报文, 其中, 该虚电路连通性请求报文中携带检测发起节点与检测终结节点之 间虚拟伪线的跳数, 以便检测终结节点基于所述检测发起节点与检测终结节点 之间虚拟伪线的跳数设置回应报文的生存吋间值; 这里, 转发的虚电路连通性 检査请求报文中的虚拟伪线的跳数不会被修改。 [82] The request packet sending and receiving module 501 is configured to receive and forward the virtual circuit connectivity check request packet, and determine that the virtual circuit connectivity request packet is not terminated at the local node, and the virtual circuit connectivity check is forwarded. a request packet, where the virtual circuit connectivity request packet carries a hop count of the virtual pseudowire between the detection initiation node and the detection termination node, so as to detect that the termination node is based on the virtual pseudo between the detection initiation node and the detection termination node. The hop count of the line sets the lifetime value of the response packet; here, the hop count of the virtual pseudowire in the forwarded virtual circuit connectivity check request message is not modified.
[83] 回应报文收发模块 502, 用于接收回应报文, 确定接收到的回应报文不在本节 点终结吋, 修改回应报文中的生存吋间值并转发修改后的回应报文。 [83] The response message sending and receiving module 502 is configured to receive the response message, determine that the received response message is not terminated by the node, modify the survival time value in the response message, and forward the modified response message.
[84] 网络节点 500还可以包括连通性检测控制模块 503, 其用于确定请求报文收发模 块 501接收到的虚电路连通性检査请求报文不是在本节点终结后控制请求报文收 发模块 501转发所述虚电路连通性检査请求报文, 以及用于确定回应报文收发模 块 502接收到的回应报文不是在本节点终结吋控制回应报文收发模块 502修改回 应报文中的 TTL值后转发修改后的回应报文。 其中, 连通性检测控制模块 503对 请求报文收发模块 501的控制功能可以集成在请求报文收发模块 501中, 连通性 检测控制模块 503对回应报文收发模块 501的控制功能可以集成在回应报文收发 模块 502中。 [84] The network node 500 may further include a connectivity detection control module 503, configured to determine that the virtual circuit connectivity check request message received by the request message transceiver module 501 is not after the end of the node, the control request message transceiver module The 501 forwards the virtual circuit connectivity check request message, and determines that the response message received by the response message sending and receiving module 502 is not in the TTL of the local device termination control response packet sending and receiving module 502 to modify the response message. After the value is forwarded, the modified response message is forwarded. The control function of the request packet sending and receiving module 501 can be integrated in the request packet sending and receiving module 501, and the control function of the response detecting and receiving module 503 can be integrated into the response packet. In the transceiver module 502.
[85] 如图 6所示, 本发明一实施例的一种通信系统 600, 通信系统 600包括至少两个 节点, 如图 6中的节点 610a、 610b、 610c、 610d和 620a、 620b, 其中节点 610a、 6 10b 610c、 610d为设置在该网络系统中的终结边缘设备, 统称终结节点 610, 节 点 620a、 620b为设置在该网络系统中的交换设备, 统称交换节点 620。 As shown in FIG. 6, a communication system 600 according to an embodiment of the present invention, a communication system 600 includes at least two nodes, such as nodes 610a, 610b, 610c, 610d, and 620a, 620b in FIG. 610a, 6 10b 610c, 610d are terminating edge devices disposed in the network system, collectively referred to as terminating nodes 610. Nodes 620a, 620b are switching devices disposed in the network system, collectively referred to as switching nodes 620.
[86] 通信系统 600中任何两个节点中的一个节点可以作为检测发起节点, 两个节点 中的另一个节点作为检测终结节点, 检测发起节点和检测终结节点之间按照图 2 A或图 2B所述方式进行虚拟伪线虚电路连通性检査, 具体虚拟伪线虚电路连通性 检査过程参见上文所述, 不再赞述。 [86] One of the two nodes in the communication system 600 can serve as a detection initiation node, and the other of the two nodes serves as a detection termination node, and between the detection initiation node and the detection termination node according to FIG. 2A or FIG. 2B. In the manner of performing virtual pseudowire virtual circuit connectivity check, specific virtual pseudowire virtual circuit connectivity The inspection process is described above and is not mentioned.
[87] 具体的, 在支持 MPLS的通信系统中, 终结节点 610为虚拟伪线终结点提供商边 缘设备 (PW Terminating Provider Edge, T-PE) ' 交换节点 620为虚拟伪线交换点 提供商边缘设备 (PW Switching Provider Edge, S-PE) 。 [87] Specifically, in the communication system supporting MPLS, the terminating node 610 is a PW Terminating Provider Edge (T-PE), and the switching node 620 is a virtual pseudowire switching point provider edge. PW Switching Provider Edge (S-PE).
釆用本发明实施例所述技术方案, 不仅解决了现有技术中不能实现的 S-PE主动 进行 VCCV检测的问题, 并且对于现有技术 T-PE检测其他设备的方法, 也更加便 捷。 为了便于理解本发明实施例的技术方案, 下面结合具体应用实例进一步说 明。 The technical solution described in the embodiment of the present invention not only solves the problem that the S-PE can not actively perform VCCV detection, which is not implemented in the prior art, and is also more convenient for the prior art T-PE to detect other devices. In order to facilitate the understanding of the technical solutions of the embodiments of the present invention, the following further describes the specific application examples.
本发明应用实例中 VCCV的控制渠道 (Control Channel, CC) 类型有如下三种 方式: In the application example of the present invention, the control channel (CC) type of VCCV has the following three modes:
类型 1 : 前 4bit于 0001b幵头的 PW E3控制字方式; Type 1 : PW E3 control word mode of the first 4 bits at 0001b;
[91] 类型 2: 多协议标签交换 (Multi-Protocol Label Switching, MPLS) 路由告警标 [91] Type 2: Multi-Protocol Label Switching (MPLS) routing alarm label
[92] 类型 3: MPLS PW标签中携带的生存吋间或寿命 (Time To Live, TTL) == 1。 [92] Type 3: Time To Live (TTL) carried in the MPLS PW tag == 1.
[93] 应用实例一: [93] Application Example 1:
[94] 参照图 1所示, T-PE1通过 VCCV检査 S-PE连通性的方法: [94] Referring to Figure 1, T-PE1 checks the S-PE connectivity through VCCV:
[95] 步骤 S701 : T-PE1确定 T-PE1与 S-PE之间 PW的跳数, 将 T-PE1与 S-PE之间 PW的 跳数封装到虚电路连通性检査请求报文中。 [95] Step S701: T-PE1 determines the hop count of the PW between the T-PE1 and the S-PE, and encapsulates the hop count of the PW between the T-PE1 and the S-PE into the virtual circuit connectivity check request message. .
[96] 例如, T-PE1确定 T-PE1与 S-PE之间 PW的跳数为 1, 在生成虚电路连通性检査 请求报文吋, 按照 TLV的编码格式将 PW的跳数 1封装到虚电路连通性检査请求报 文中, 其中, 将 TLV的 Value字段的值设定为 PW的跳数 1。 [96] For example, T-PE1 determines that the number of hops of the PW between the T-PE1 and the S-PE is 1. After the virtual circuit connectivity check request message is generated, the hop count of the PW is encapsulated according to the TLV coding format. In the virtual circuit connectivity check request message, the value of the Value field of the TLV is set to the hop count of the PW.
[97] 步骤 S702: T-PE1根据设置的 VCCV类型, 按照协议规定的方式将该虚电路连 通性检査请求报文发送给 S-PE。 [97] Step S702: The T-PE1 sends the virtual circuit connectivity check request packet to the S-PE according to the set VCCV type according to the protocol.
[98] 例如, 釆用 VCCV中的类型 1或类型 3吋, 根据 VCCV协议规定将所述虚电路连 通性检査请求报文发送给 S-PE。 [98] For example, the type 1 or type 3 V in the VCCV is used to send the virtual circuit connectivity check request message to the S-PE according to the VCCV protocol.
[99] 步骤 S703: S-PE收到该虚电路连通性检査请求报文, 确定该虚电路连通性检査 请求报文是在自身终结, 将虚电路连通性检査请求报文中携带的 T-PE1与 S-PE之 间 PW的跳数作为 TTL值封装到回应报文中。 [100] 步骤 S704: S-PE根据 VCCV协议, 将回应报文发送给 T-PE1。 [99] Step S703: The S-PE receives the virtual circuit connectivity check request packet, and determines that the virtual circuit connectivity check request packet is terminated by itself, and the virtual circuit connectivity check request packet is carried in the virtual circuit connectivity check request packet. The hop count of the PW between the T-PE1 and the S-PE is encapsulated into the response packet as a TTL value. [100] Step S704: The S-PE sends a response packet to the T-PE1 according to the VCCV protocol.
[101] 步骤 S705: T-PE1接收到回应报文, 根据回应报文中的 TTL值确定回应报文是 在本设备终结, 终止回应报文转发过程, 并进行相应处理以完成检査。 具体可 参见上文步骤 S210相关描述, 不再赞述。 [101] Step S705: The T-PE1 receives the response packet, and determines that the response packet is terminated by the device according to the TTL value in the response packet, and the response packet forwarding process is terminated, and corresponding processing is performed to complete the check. For details, refer to the description of step S210 above, and no longer comment.
[102] 应用实例二: [102] Application example 2:
[103] 参照图 1所示, T-PE1通过 VCCV检査 T-PE2连通性的方法, 包括: [103] Referring to Figure 1, the T-PE1 checks the connectivity of T-PE2 through VCCV, including:
[104] 步骤 S801 : T-PE1确定 T-PE1与 T-PE2之间的 PW的跳数, 将 T-PE1与 T-PE2之间 的 PW的跳数封装到虚电路连通性检査请求报文。 [104] Step S801: The T-PE1 determines the hop count of the PW between the T-PE1 and the T-PE2, and encapsulates the hop count of the PW between the T-PE1 and the T-PE2 into the virtual circuit connectivity check request report. Text.
[105] 例如, T-PE1确定 T-PE1与 T-PE2之间 PW的跳数为 2, 请求报文中,按照 TLV的编 码格式将 TLV的 Value字段的值设定为 2, 并封装到虚电路连通性检査请求报文中 [105] For example, T-PE1 determines that the number of hops of the PW between T-PE1 and T-PE2 is 2. In the request message, the value of the Value field of the TLV is set to 2 according to the TLV encoding format, and is encapsulated into Virtual circuit connectivity check request message
[106] 步骤 S802: T-PE1根据设置的 VCCV类型, 按照协议规定的方式通过 S-PE将该 虚电路连通性检査请求报文发送给 T-PE2。 [106] Step S802: The T-PE1 sends the virtual circuit connectivity check request packet to the T-PE2 through the S-PE according to the set VCCV type.
[107] 例如, VCCV类型为类型 1或类型 3, 根据类型的不同选择不同的协议规定。 这 里, S-PE不会对该虚电路连通性检査请求报文中的 T-PE1与 T-PE2之间的 PW的跳 数进行修改。 [107] For example, the VCCV type is type 1 or type 3, and different protocol specifications are selected depending on the type. Here, the S-PE does not modify the hop count of the PW between T-PE1 and T-PE2 in the virtual circuit connectivity check request message.
[108] 步骤 S803: T-PE2收到该虚电路连通性检査请求报文, 将虚电路连通性检査请 求报文中携带的 T-PE1与 T-PE2之间 PW的跳数作为 TTL值封装到回应报文中; 本 应用实例中回应报文的 TTL值设置为 PW的跳数 2。 [108] Step S803: The T-PE2 receives the virtual circuit connectivity check request packet, and uses the hop count of the PW between the T-PE1 and the T-PE2 carried in the virtual circuit connectivity check request packet as the TTL. The value is encapsulated into the response packet. The TTL value of the response packet in this application instance is set to the hop count of the PW.
[109] 步骤 S804: T-PE2按照传输路径发送回应报文, 该回应报文会被发送给 S-PE。 [109] Step S804: The T-PE2 sends a response packet according to the transmission path, and the response packet is sent to the S-PE.
[110] 步骤 S805: S-PE接收到该回应报文, 解析得到 TTL值, 根据 TTL值确定该回应 报文不是在自身终结, 转发回应报文。 其中, S-PE发送的回应报文中的 TTL值经 过修改, 具体的, S-PE将解析得到的 TTL值减 1后封装到新的回应报文中或用解 析得到的 TTL值减 1后替换回应报文中的 TTL的值进行转发。 [110] Step S805: The S-PE receives the response packet, parses the TTL value, and determines that the response packet is not terminated by itself according to the TTL value, and the response packet is forwarded. The TTL value in the response packet sent by the S-PE is modified. Specifically, the S-PE decrements the TTL value after parsing into a new response packet or subtracts 1 from the TTL value obtained by the parsing. The value of the TTL in the response packet is replaced.
[111] 具体的, 如 T-PE1与 T-PE2之间 PW的跳数为 2, S-PE解析得到的 TTL值减 1后的 值为 1, 按照 VCCV协议, 将该回应报文发送给 T-PE1。 [111] Specifically, if the number of hops of the PW between the T-PE1 and the T-PE2 is 2, and the value of the TTL value obtained by the S-PE is less than 1, the response packet is sent to the VCCV protocol. T-PE1.
[112] 步骤 S806: T-PE1接收到回应报文, 根据回应报文中的 TTL值确定回应报文是 在自身终结, 终止回应报文转发过程, 并进行相应处理以完成检査。 [113] 例如, 根据 TTL值确定回应报文是否在本设备终结具体可以是: 判断解析得到 的 TTL是否为 1或者是判断解析得到的 TTL减 1后是否为 0, 如果不是则确定回应 报文不是在本设备终结, 如果是则确定回应报文是在自身终结; 或者是结合 TTL 值和回应报文中的目的 IP地址进行判断。 [112] Step S806: The T-PE1 receives the response packet, determines that the response packet is terminated by itself according to the TTL value in the response packet, terminates the response packet forwarding process, and performs corresponding processing to complete the check. [113] For example, determining whether the response packet is terminated on the local device according to the TTL value may be: determining whether the TTL obtained by the parsing is 1 or determining whether the TTL obtained by the parsing is 0 after the parsing, and if not, determining the response packet. It is not terminated at the device. If yes, it is determined that the response message is terminated at its own; or it is combined with the TTL value and the destination IP address in the response message.
[114] 其中, 在上述实施例中仅仅以 T-PE1与 T-PE2之间的 PW跳数等于 2为例进行说 明, 该方案也可扩展到 T-PE1与 T-PE2之间的 PW [114] Wherein, in the above embodiment, only the PW hop count between T-PE1 and T-PE2 is equal to 2, and the scheme can also be extended to PW between T-PE1 and T-PE2.
跳数大于 2的情况。 在 T-PE1与 T-PE2之间的 PW The case where the number of hops is greater than 2. PW between T-PE1 and T-PE2
跳数大于 2的情况下, 还包括 S-PE和 S-PE之间的按照传输路径进行转发处理的过 程, 原理和上述 S-PE向 T-PE1/T-PE2的相同, 不再赞述。 When the hop count is greater than 2, the process of forwarding processing according to the transmission path between the S-PE and the S-PE is also included, and the principle is the same as that of the S-PE to the T-PE1/T-PE2, and is no longer praised. .
[115] 应用实例三: [115] Application Example 3:
[116] 参考图 1所示, 由 S-PE作为检测发起节点, 进行的连通性检査方法。 [116] Referring to FIG. 1, a connectivity check method performed by the S-PE as a detection initiator node.
[117] 下面, 以 S-PE通过 VCCV检査 T-PE1连通性的方法为例进行说明, 该方法包括 [117] The method for checking the connectivity of the T-PE1 through the VCCV by the S-PE is described as an example. The method includes
[118] 步骤 S901 : S-PE确定 S-PE与 T-PE1之间的 PW的跳数, 将 S-PE与 T-PE1之间的 P[118] Step S901: The S-PE determines the number of hops of the PW between the S-PE and the T-PE1, and the P between the S-PE and the T-PE1.
W的跳数封装到虚电路连通性检査请求报文中。 The hop count of W is encapsulated into the virtual circuit connectivity check request message.
[119] 例如, S-PE确定 S-PE与 T-PE1之间的 PW的跳数为 1, 在生成虚电路连通性检査 请求报文吋,按照 TLV的格式将 PW的跳数 1封装到虚电路连通性检査请求报文中 [119] For example, the S-PE determines that the number of hops of the PW between the S-PE and the T-PE1 is 1. After the virtual circuit connectivity check request packet is generated, the hop count of the PW is encapsulated according to the format of the TLV. In the virtual circuit connectivity check request message
[120] 步骤 S902: S-PE根据设置的 VCCV类型, 按照协议规定的方式将该虚电路连通 性检査请求报文发送给 T-PE1。 [120] Step S902: The S-PE sends the virtual circuit connectivity check request packet to the T-PE1 according to the set VCCV type in the manner specified by the protocol.
[121] 步骤 S903: T-PE1收到该虚电路连通性检査请求报文, 将虚电路连通性检査请 求报文中的 PW的跳数作为 TTL值封装到回应报文中。 [121] Step S903: The T-PE1 receives the virtual circuit connectivity check request packet, and encapsulates the hop count of the PW in the virtual circuit connectivity check request packet into the response packet as a TTL value.
[122] 步骤 S904: T-PE1根据传输路径将回应报文发送给 S-PE。 [122] Step S904: The T-PE1 sends a response packet to the S-PE according to the transmission path.
[123] 步骤 S905: S-PE接收到回应报文, 根据回应报文中的 TTL值确定报文是在自身 终结, 终止回应报文转发过程, 并对回应报文进行相应处理以完成检査。 [123] Step S905: The S-PE receives the response packet, determines that the packet is terminated by itself according to the TTL value in the response packet, terminates the response packet forwarding process, and performs corresponding processing on the response packet to complete the check. .
[124] S-PE通过 VCCV检査 T-PE2连通性的方法, 与 S-PE通过 VCCV检査 T-PE1连通 性的方法相同, 在此不再赞述。 [124] The method for the S-PE to check the connectivity of the T-PE2 through the VCCV is the same as the method for the S-PE to check the connectivity of the T-PE1 through the VCCV, and is not mentioned here.
[125] 值得注意的是: 在上述实施例中仅仅以 S-PE1与 T-PE1/T-PE2之间的 PW的跳数 等于 1为例进行说明, 该方案也可扩展到 S-PE1与 T-PE1/T-PE2之间的 PW的跳数 大于 1的情况。 在 T-PE1与 T-PE2之间的 PW [125] It is worth noting that: in the above embodiment, only the hop count of PW between S-PE1 and T-PE1/T-PE2 The example is equal to 1 and the scheme can also be extended to the case where the hop count of the PW between S-PE1 and T-PE1/T-PE2 is greater than 1. PW between T-PE1 and T-PE2
跳数大于 1的情况下, 还包括 S-PE和 S-PE之间的按照传输路径进行转发处理的过 程, 原理和上述 S-PE向 T-PE1/T-PE2的相同, 不再赞述。 When the hop count is greater than 1, the process of forwarding processing according to the transmission path between the S-PE and the S-PE is also included, and the principle is the same as that of the S-PE to the T-PE1/T-PE2, and the description is not repeated. .
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可 以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算机可 读取存储介质中, 该程序在执行吋, 可包括如上述各方法的实施例的流程。 其 中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体 (Read-Only A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. After execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only)
Memory, ROM) 或随机存储记忆体 (Random Access Memory, RAM) 等。 Memory, ROM) or Random Access Memory (RAM).
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008102244645A CN101409656B (en) | 2008-10-15 | 2008-10-15 | Method for checking connectivity of virtual circuit, network node and communication system |
| CN200810224464.5 | 2008-10-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2010043149A1 true WO2010043149A1 (en) | 2010-04-22 |
Family
ID=40572459
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2009/074250 Ceased WO2010043149A1 (en) | 2008-10-15 | 2009-09-27 | Method, network node and communication system for virtual circuit connectivity verification |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101409656B (en) |
| WO (1) | WO2010043149A1 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101409656B (en) * | 2008-10-15 | 2012-04-18 | 华为技术有限公司 | Method for checking connectivity of virtual circuit, network node and communication system |
| CN102055619A (en) * | 2009-11-02 | 2011-05-11 | 中兴通讯股份有限公司 | Method and system for realize fault detection in bidirectional path segment |
| CN102315989B (en) * | 2011-09-16 | 2015-03-25 | 华为技术有限公司 | Method for detecting multi-section pseudowire (MS-PW) and equipment and system |
| CN107645401A (en) * | 2016-07-22 | 2018-01-30 | 中兴通讯股份有限公司 | The detection of multiprotocol label switching, processing method, apparatus and system |
| CN109067608A (en) * | 2018-07-06 | 2018-12-21 | 杭州涂鸦信息技术有限公司 | A method of measuring and calculating IP packet is from equipment to hop count public network gateway |
| CN110912824B (en) * | 2019-11-27 | 2021-08-31 | 美的集团股份有限公司 | Method and device for determining survival time value of multi-hop network node |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007101140A2 (en) * | 2006-02-24 | 2007-09-07 | Nortel Networks Ltd. | Multi-protocol support over ethernet packet-switched networks |
| WO2008080050A2 (en) * | 2006-12-21 | 2008-07-03 | Verizon Services Corp. | Multifunctional control channel for pseudowire emulation |
| WO2008089370A1 (en) * | 2007-01-17 | 2008-07-24 | Nortel Networks Limited | Method and apparatus for interworking ethernet and mpls networks |
| CN101409656A (en) * | 2008-10-15 | 2009-04-15 | 华为技术有限公司 | Method for checking virtual circuit connectivity, network node and communication system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7764688B2 (en) * | 2004-01-20 | 2010-07-27 | Nortel Networks Limited | Ethernet differentiated services |
-
2008
- 2008-10-15 CN CN2008102244645A patent/CN101409656B/en active Active
-
2009
- 2009-09-27 WO PCT/CN2009/074250 patent/WO2010043149A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2007101140A2 (en) * | 2006-02-24 | 2007-09-07 | Nortel Networks Ltd. | Multi-protocol support over ethernet packet-switched networks |
| WO2008080050A2 (en) * | 2006-12-21 | 2008-07-03 | Verizon Services Corp. | Multifunctional control channel for pseudowire emulation |
| WO2008089370A1 (en) * | 2007-01-17 | 2008-07-24 | Nortel Networks Limited | Method and apparatus for interworking ethernet and mpls networks |
| CN101409656A (en) * | 2008-10-15 | 2009-04-15 | 华为技术有限公司 | Method for checking virtual circuit connectivity, network node and communication system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101409656A (en) | 2009-04-15 |
| CN101409656B (en) | 2012-04-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103490970B (en) | A kind of detection method of traffic engineering tunnel, apparatus and system | |
| US9948434B2 (en) | Method for bit error rate detection, and network device | |
| CN111917643A (en) | Seamless bidirectional forwarding detection method and device for segmented routing tunnel | |
| CN103580894B (en) | Method, equipment and the system of Operations, Administration and Maintenance OAM configurations | |
| US11991066B2 (en) | Method of establishing bidirectional forwarding detection session based on BIER, and BFIR, BFER, system and storage medium | |
| US9912586B2 (en) | Method, system, and device for establishing pseudo wire | |
| CN102217378B (en) | Method, device and system for detecting routing information | |
| WO2011110118A2 (en) | Fault detection method and system | |
| WO2010043149A1 (en) | Method, network node and communication system for virtual circuit connectivity verification | |
| CN104852826B (en) | A kind of loop detecting method and device | |
| US20120134365A1 (en) | Method and network device for associated channel capability negotiation | |
| CN101459547B (en) | Label forwarding path failure detection method and system | |
| WO2009009992A1 (en) | A method, system, source end and destination end for indexing the label switching path by means of a label | |
| WO2007073649A1 (en) | A method and system for obtaining path maximum transfer unit in network | |
| CN104937878B (en) | The method that Protocol Independent Multicast tree is established in the presence of unidirectional tunnel | |
| WO2018010560A1 (en) | Method, apparatus, and system for detecting and processing multi-protocol label switching | |
| WO2023098703A1 (en) | Path notification method, topology algorithm combination generation method, path calculation method, data transmission method, electronic device, and computer-readable storage medium | |
| KR101235582B1 (en) | Method for processing control message in wireless mesh network and apparatus thereof | |
| CN107317753B (en) | Method, device and system for Bidirectional Forwarding Detection (BFD) session establishment | |
| CN101159691B (en) | Originated multi-protocol label switching packet maximum length determining method and node | |
| CN115567434B (en) | Data message forwarding method, device and routing equipment | |
| CN112311668B (en) | Method, network device and system for processing BIER message | |
| CN110719178A (en) | Network topology acquisition method and device | |
| CN115225732A (en) | A kind of operation maintenance management OAM detection method and device | |
| CN103685024B (en) | Node protecting method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 09820225 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 09820225 Country of ref document: EP Kind code of ref document: A1 |