WO2013189426A2 - 一种自动协商mpls网络连通性检测时间的方法及系统 - Google Patents

一种自动协商mpls网络连通性检测时间的方法及系统 Download PDF

Info

Publication number
WO2013189426A2
WO2013189426A2 PCT/CN2013/082184 CN2013082184W WO2013189426A2 WO 2013189426 A2 WO2013189426 A2 WO 2013189426A2 CN 2013082184 W CN2013082184 W CN 2013082184W WO 2013189426 A2 WO2013189426 A2 WO 2013189426A2
Authority
WO
WIPO (PCT)
Prior art keywords
node
cycle
detection
period
new
Prior art date
Application number
PCT/CN2013/082184
Other languages
English (en)
French (fr)
Other versions
WO2013189426A3 (zh
Inventor
纪林
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013189426A2 publication Critical patent/WO2013189426A2/zh
Publication of WO2013189426A3 publication Critical patent/WO2013189426A3/zh

Links

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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for automatically negotiating multi-protocol label forwarding (MPLS) network connectivity detection time.
  • MPLS multi-protocol label forwarding
  • MPLS Transport Architecture TP Operation, Management, and Maintenance
  • MPLS TP OAM can achieve carrier-class OAM and protection mechanisms of 50ms, the natural adaptation of packets ", and the benefits of connection-oriented multi-service support, has now become the mainstream technology choice for operators.
  • the purpose of the embodiments of the present invention is to provide a method and a system for automatically negotiating MPLS network connectivity detection time, which can enable two nodes to automatically negotiate the link connectivity detection time in the MPLS network, and also enable the two nodes to send.
  • the period is separated from the reception period to achieve the purpose of bidirectionally detecting the link quality of the transceiver link.
  • a method for automatically negotiating an MPLS network connectivity detection time including: In the MPLS network, the first node sends a negotiation request message including its own sending period and receiving period to the second node, and requests to negotiate with the second node to configure the detection time of the MPLS network connectivity detection;
  • the second node After receiving the negotiation request message, the second node sends a negotiation response message including its own sending period and receiving period to the first node, and responds to the negotiation request message of the first node; according to its own sending period and receiving period, a sending period and a receiving period of the first node in the negotiation request message, where the second node determines a new sending period and a detecting period used by the MPLS network connectivity detection;
  • the first node determines a new transmission period and a detection period for the MPLS network connectivity detection according to its own transmission period and reception period, the transmission period and the reception period of the second node in the negotiation response message.
  • the step of the second node determining its own new transmission period includes:
  • the transmission period of the first node is greater than or equal to the reception period of the first node, the current transmission period is kept unchanged; otherwise, the reception period of the first node is taken as its own new transmission period.
  • the step of the second node determining its new detection period comprises:
  • the receiving period of the first node is greater than or equal to the sending period of the first node, the receiving period of the second node is kept unchanged; otherwise, the sending period of the first node is used as its own new receiving period;
  • the new reception period determined after the comparison is multiplied by the second predetermined value to obtain its own new detection period.
  • the method further includes: The second node sends the detection message configured as the MPLS network connectivity detection to the first node according to its new transmission period, and receives the detection message configured as the MPLS network connectivity detection from the first node according to its new detection period.
  • the step of the first node determining its new transmission period comprises:
  • the transmission period of the second node is greater than or equal to the reception period of the second node, the current transmission period of the second node is kept unchanged; otherwise, the reception period of the second node is taken as its own new transmission period.
  • the step of the first node determining its own new detection period comprises:
  • the self-receiving period is greater than or equal to the sending period of the second node, the receiving period of the second node is kept unchanged; otherwise, the sending period of the second node is used as its own new receiving period;
  • Multiplying the new reception period determined after the comparison by the first predetermined value yields its own new detection period.
  • the method further includes:
  • the first node sends a detection message for MPLS network connectivity detection to the second node according to its new transmission period, and receives a detection message for the MPLS network connectivity detection from the second node according to its own new detection period.
  • a system for automatically negotiating an MPLS network connectivity detection time including a first node and a second node in an MPLS network, where: the first node includes:
  • the negotiation request module is configured to send a negotiation request message including a sending period and a receiving period of the first node to the second node, and request to negotiate with the second node for MPLS network connectivity. Detection time of sexual detection;
  • a first detection time determining module configured to determine, according to a sending period and a receiving period of the first node, a sending period and a receiving period of the second node in the negotiation response message, a new sending period and a detecting period of the first node;
  • the second node includes:
  • the negotiation response module is configured to: after receiving the negotiation request message, send a negotiation response message including a sending period and a receiving period of the second node to the first node, and respond to the negotiation request message of the first node;
  • the second detection time determining module is configured to determine a new sending period and a detecting period of the second node according to the sending period and the receiving period of the second node, the sending period and the receiving period of the first node in the negotiation request message.
  • the second node further includes:
  • the second detecting module is configured to send a detection message for the MPLS network connectivity detection to the first node according to the new sending period of the second node, and receive the MPLS for the MPLS from the first node according to the new detection period of the second node. Detection message for network connectivity detection.
  • the first node further includes:
  • the first detecting module is configured to send a detection message for the MPLS network connectivity detection to the second node according to the new sending period of the first node, and receive the MPLS for the second node according to the new detection period of the first node. Detection message for network connectivity detection.
  • the embodiment of the invention can automatically negotiate the sending period and the detecting period, and avoid the error alarm and related processing flow caused by the inconsistent configuration time of the two sides in the prior art;
  • the original period is extended to a transmission period and a reception period, and the detection period is calculated through the reception period, so that the two nodes can adopt different detection strategies from the two directions of sending and receiving, and the link is better. monitor.
  • FIG. 1 is a block diagram of a method for automatically negotiating MPLS network connectivity detection time according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a system for automatically negotiating MPLS network connectivity detection time according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a PDU part format of a CCM message provided by the prior art
  • FIG. 4 is a schematic diagram of a PDU part format of a CCM message according to an embodiment of the present invention
  • FIG. 5 is a numerical explanatory diagram of a period negotiation flag bit field provided by an embodiment of the present invention.
  • FIG. 7 is a flow chart of auto-negotiating MPLS network connectivity detection time according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic block diagram of a method for automatically negotiating an MPLS network connectivity detection time according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step 101 In a multi-protocol label forwarding (MPLS) network, the first node sends a negotiation request message including its own sending period and receiving period to the second node, requesting the second node to negotiate the detecting time for the MPLS network connectivity detection.
  • MPLS multi-protocol label forwarding
  • Step 102 After receiving the negotiation request message, the second node sends a negotiation response message including its own sending period and receiving period to the first node, in response to the negotiation request message of the first node.
  • Step 103 According to a sending period and a receiving period of the second node, a sending period and a receiving period of the first node in the negotiation request message, the second node determines a new sending period and detection used by the MPLS network connectivity detection. cycle. In the step 103, the second node determines its new transmission period, compares its transmission period with the reception period of the first node, and if the transmission period is greater than or equal to the reception period of the first node, The current transmission period of the two nodes is unchanged; otherwise, the reception period of the first node is used as the new transmission period of the second node.
  • the second node compares its reception period with the transmission period of the first node to determine its new detection period, and maintains the second node if the reception period of the second node is greater than or equal to the transmission period of the first node.
  • the receiving period of the first node is unchanged; otherwise, the sending period of the first node is used as the new receiving period of the second node, and the new receiving period determined after the comparison is multiplied by the second predetermined value to obtain a new detecting period of the second node.
  • the second node may send a detection message for MPLS network connectivity detection to the first node according to the new transmission period, and receive the first according to its new detection period.
  • a detection message for the MPLS network connectivity detection of the node to detect the transceiver link.
  • Step 104 According to a sending period and a receiving period of the first node, a sending period and a receiving period of the second node in the negotiation response message, the first node determines a new sending period used by the MPLS network connectivity detection. And detection cycle.
  • the first node compares its transmission period with the reception period of the second node to determine its new transmission period, if the transmission period of the first node is greater than or equal to the reception of the second node.
  • the period keeps the current sending period of the first node unchanged; otherwise, the receiving period of the second node is used as a new sending period of the first node for sending a message.
  • the first node compares its reception period with the transmission period of the second node to determine its new detection period, and maintains the first node if the reception period of the first node is greater than or equal to the transmission period of the second node.
  • the receiving period of the second node is unchanged; otherwise, the sending period of the second node is used as the new receiving period of the first node, and the new receiving period determined after the comparison is multiplied by the first predetermined value, to obtain the first node for receiving the message.
  • the new detection cycle After the first node determines its new transmission period and detection period, the first node may send to the second node according to its new transmission period for The MPLS network connectivity detects the detection message and receives the detection message for the MPLS network connectivity detection from the second node according to its new detection period to detect the transceiver link.
  • the embodiment of the present invention further provides a system for automatically negotiating an MPLS network connectivity detection time.
  • the method includes: a first node 11 and a second node 12 in an MPLS network, where: the first node 11 includes :
  • the negotiation request module 111 can be implemented by the CPU, and configured to send a negotiation request message including the sending period and the receiving period of the first node 11 to the second node 12, requesting the second node 12 to negotiate the detection for the MPLS network connectivity detection.
  • the first detection time determining module 112 can be implemented by the CPU, and configured to determine, according to the sending period and the receiving period of the first node 11, the sending period and the receiving period of the second node 12 in the negotiation response message, determining the first node 11 New transmission period and detection period for MPLS network connectivity detection;
  • the first detecting module 113 can be implemented by the CPU, configured to send a detection message for the MPLS network connectivity detection to the second node 12 according to the new sending period of the first node 11, and according to the new detection of the first node 11.
  • a detection message for MPLS network connectivity detection from the second node 12 is received periodically to detect the transceiver link.
  • the second node 12 includes:
  • the negotiation response module 121 is configured by the CPU, and configured to send the negotiation response message including the sending period and the receiving period of the second node 12 to the first node 11 in response to the first node 11 after receiving the negotiation request message.
  • the negotiation request message ;
  • the second detection time determining module 122 is configured by the CPU, and configured to determine, according to the sending period and the receiving period of the second node 12, the sending period and the receiving period of the first node 11 in the negotiation request message, determining the second node 12 New transmission period and detection period for MPLS network connectivity detection;
  • the second detecting module 123 can be implemented by the CPU and configured to be new according to the second node 12
  • the sending period sends a detection message for MPLS network connectivity detection to the first node 11, and receives a detection message for the MPLS network connectivity detection from the first node 11 according to the new detection period of the second node 12, in order to detect Transceiver link.
  • setting the first predetermined value and the second predetermined value described above are both 3.5;
  • the negotiation request message, the negotiation response message, and the detection message are all obtained by expanding the CCM message. Specifically, by extending the reserved field of the existing CCM message, two fields are added, one is the reception period field, and the other is the period negotiation flag bit field.
  • the check period negotiation flag is checked. If it is 1, the peer node needs to perform periodic negotiation with the local node. At this time, the local node first sends a CCM packet whose periodic negotiation flag is 2, and the CCM packet whose periodic negotiation flag is 2, the transmission period and the receiving period are filled in the transmission period and the receiving period configured on the local node.
  • the local node obtains the transmission period and the reception period in the received CCM message with the periodic negotiation flag bit being 1, and compares it with the reception period and the transmission period configured by the local end respectively, and takes the larger value respectively.
  • the detecting period is obtained by multiplying the newly determined receiving period by 3.5; the opposite node acquires the sending period in the received CCM message with the periodic negotiation flag bit being 2 and The receiving period is compared with the configured receiving period and sending period, respectively, and the larger value is taken as the new receiving period and the transmitted after negotiation.
  • Period to give 3.5 by multiplying the reception period detection period newly determined.
  • the two parties send CCM packets according to the successful transmission period of the negotiation, and detect the connectivity according to the successful detection period of the negotiation. If the CCM message sent by the peer is not received within the detection period, the link is considered broken.
  • FIG. 3 and FIG. 4 are schematic diagrams showing the format of a PDU part of a CCM message provided by the prior art and the embodiment of the present invention. As shown in FIG. 3 and FIG. 4, the comparison is as follows:
  • the embodiment of the present invention increases in the reserved field of the original MPLS TP OAM CCM packet. Add the receive period field.
  • the receiving period field format is exactly the same as the sending period field format, as shown in FIG. 5.
  • a period negotiation flag bit field is added, and the value of the period negotiation identifier bit field is as shown in FIG. 6.
  • the period field of the original MPLS TP OAM CCM packet is modified to a sending period.
  • the nodes deploying the MPLS TP OAM can configure the transmission period and the reception period.
  • the node When the connectivity check is enabled, the node sends a CCM packet.
  • the CCM packet carries the local transmission period and the reception period, and the periodic negotiation flag is set to 1.
  • the node When the node receives the CCM packet sent by the peer, and finds that the periodic negotiation flag of the received CCM packet is 1, the node first sends a CCM packet with the periodic negotiation flag bit being 2, in the packet.
  • the sending period field and the receiving period field are filled in the locally configured sending period and receiving period, and then the sending period and the receiving period in the received CCM message are obtained, and compared with the local receiving period and the sending period, respectively. If the sending period of the local end is greater than the receiving period of the local end, the receiving period of the local end is changed to the transmitting period of the peer end.
  • the detection period of the local end is equal to the transmitting period of the peer end multiplied by 3.5.
  • the sending period of the peer end is less than or equal to the receiving period of the local end, the receiving end of the local end is received. If the receiving period of the local end is greater than the receiving period of the local end, the receiving period of the local end is changed to the receiving period of the peer end. If the receiving period of the peer end is less than or equal to the local end, the receiving period of the local end is greater than or equal to 3.5. During the transmission period, the local transmission period remains unchanged.
  • the node When the node receives the CCM packet with the periodic negotiation flag set to 2, it compares the receiving period and the sending period of the CCM packet with the sending period and the receiving period of the local end, and obtains a new sending period, receiving period, and detection of the local end. Cycle, the calculation method is the same as above.
  • the measurement time negotiation process is completed.
  • the node immediately sends a CCM message with a periodic negotiation flag of 1.
  • the message includes the modified transmission period and the reception period of the local end, and the pair The negotiation is repeated.
  • the negotiation process repeats the above steps. After the negotiation succeeds, the two parties can send and detect packets according to the transmission cycle and detection period after the new negotiation.
  • the two nodes performing the MPLS TP OAM detection can negotiate the two detection cycles into a unified time according to a certain rule by using the extended CCM packet, so that each MPLS TP OAM can be avoided.
  • Each node must be artificially used to ensure the consistency of the detection period.
  • the CCM message can be extended and the CCM message can be sent and received according to different time detections to achieve the purpose of two-way detection.
  • FIG. 7 is a flowchart of auto-negotiating MPLS network connectivity detection time according to an embodiment of the present invention.
  • node A is used in an MPLS TP OAM networking environment consisting of two nodes, node A and node B.
  • the process of initiating a negotiation detection time is taken as an example.
  • the negotiation process of the node B is exactly the same as the negotiation process of the node A.
  • the node A and the node B are configured as the detection nodes of the MPLS TP OAM, and the domain related information is completely configured.
  • the CCM packet sending period of the node A is 10 ms, the receiving period is 1 min, and the CCM packet of the node B is sent.
  • Step 1 Node A sends a CCM packet, where the period negotiation flag is 1 , the transmission period is 10 ms, and the reception period is lmin.
  • Step 3 Node A receives the CCM packet sent by the Node B, detects that the CCM packet has a periodic negotiation flag of 2, and obtains the sending period and the receiving period in the packet, and performs calculation according to the algorithm described in step 2.
  • the embodiment of the present invention can automatically negotiate the detection period of the CCM packet of the MPLS TP OAM, and avoid the error processing caused by misconfiguring the two-side detection time in the prior art;
  • the embodiment of the present invention separates the receiving period from the sending period, so that the two nodes are respectively detected according to their respective detection periods, that is, the two ends nodes can separately detect the link quality of the transceiver link.

Landscapes

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

Abstract

本发明公开了一种自动协商MPLS网络连通性检测时间的方法及系统,所述方法包括:在MPLS网络中,第一节点将包含其发送周期和接收周期的协商请求消息发送至第二节点;第二节点收到所述协商请求消息后,将包含其发送周期和接收周期的协商响应消息发送至第一节点;根据第二节点的发送周期和接收周期、所述协商请求消息中的第一节点的发送周期和接收周期,第二节点确定其配置为MPLS网络连通性检测的新的发送周期和检测周期;根据第一节点的发送周期和接收周期、所述协商响应消息中的第二节点的发送周期和接收周期,第一节点确定其配置为MPLS网络连通性检测的新的发送周期和检测周期。本发明实现了自动协商检测时间和双向检测的目的。

Description

一种自动协商 MPLS网络连通性检测时间的方法及系统 技术领域
本发明涉及通信领域,特别涉及一种自动协商多协议标签转发( MPLS ) 网络连通性检测时间的方法及系统。 背景技术
随着通讯技术的发展, 分组传送网 (PTN )和因特网协议 IP/MPLS业 务不断的融合和发展。 MPLS传送架构 (TP )操作、 管理、 维护 (OAM ) 在 MPLS TP组网环境中的应用越来越多, 由于 MPLS TP OAM能够达到 50ms的电信级 OAM和保护机制, 对分组的天然 "适配", 以及面向连接的 多业务支持等优点, 现在已经成为了运营商的主流技术选择。
目前, 在 MPLS TP网络中部署 MPLS TP OAM来检测网络连通性时 , 需要对网络节点进行人工配置, 以保证双方发送连通性检测报文(CCM ) 的收发时间, 这样就增加了部署的难度和误操作性。
此外, 现有技术只能按照配置的检测时间进行检测, 两端节点只能在 一个检测周期内进行检测, 无法实现分别检测。 发明内容
本发明实施例的目的在于提供一种自动协商 MPLS 网络连通性检测时 间的方法及系统, 可以使两端节点自动协商 MPLS 网络中链路连通性的检 测时间, 并且还可以使两端节点的发送周期和接收周期分离开, 从而达到 双向检测收发链路的链路质量的目的。
根据本发明实施例的一个方面, 提供了一种自动协商 MPLS 网络连通 性检测时间的方法, 包括: 在 MPLS 网络中, 第一节点将包含自身发送周期和接收周期的协商请 求消息发送至第二节点, 请求与所述第二节点协商配置为 MPLS 网络连通 性检测的检测时间;
第二节点收到所述协商请求消息后, 将包含自身发送周期和接收周期 的协商响应消息发送至第一节点, 响应第一节点的所述协商请求消息; 根据自身的发送周期和接收周期、 所述协商请求消息中的第一节点的 发送周期和接收周期, 所述第二节点确定自身用于 MPLS 网络连通性检测 的新的发送周期和检测周期;
根据自身的发送周期和接收周期、 所述协商响应消息中的第二节点的 发送周期和接收周期, 所述第一节点确定自身用于 MPLS 网络连通性检测 的新的发送周期和检测周期。
优选地, 所述第二节点确定自身新的发送周期的步驟包括:
比较自身的发送周期和第一节点的接收周期;
若所述自身的发送周期大于等于所述第一节点的接收周期, 则保持自 身当前的发送周期不变, 否则, 将所述第一节点的接收周期作为自身新的 发送周期。
优选地, 第二节点确定其新的检测周期的步驟包括:
比较自身的接收周期和第一节点的发送周期;
若所述自身的接收周期大于等于所述第一节点的发送周期, 则保持第 二节点的接收周期不变, 否则, 将所述第一节点的发送周期作为自身新的 接收周期;
将比较后确定的新的接收周期乘以第二预定值, 得到自身新的检测周 期。
优选地, 在所述第二节点确定其新的发送周期和检测周期的步驟之后 , 该方法还包括: 第二节点按照自身新的发送周期向第一节点发送配置为 MPLS 网络连 通性检测的检测消息, 并按照自身新的检测周期接收来自第一节点的配置 为 MPLS网络连通性检测的检测消息。
优选地, 第一节点确定其新的发送周期的步驟包括:
比较自身的发送周期和第二节点的接收周期;
若所述自身的发送周期大于等于所述第二节点的接收周期, 则保持自 身当前的发送周期不变, 否则, 将所述第二节点的接收周期作为自身新的 发送周期。
优选地, 第一节点确定自身新的检测周期的步驟包括:
比较自身的接收周期和第二节点的发送周期;
若所述自身接收周期大于等于所述第二节点的发送周期, 则保持自身 的接收周期不变, 否则, 将所述第二节点的发送周期作为自身新的接收周 期;
将比较后确定的新的接收周期乘以第一预定值, 得到自身新的检测周 期。
优选地, 在所述第一节点确定自身新的发送周期和检测周期的步驟之 后, 该方法还包括:
第一节点按照自身新的发送周期向第二节点发送用于 MPLS 网络连通 性检测的检测消息, 并按照自身新的检测周期接收来自第二节点的用于 MPLS网络连通性检测的检测消息。
根据本发明实施例的另一方面, 提供了一种自动协商 MPLS 网络连通 性检测时间的系统, 包括 MPLS网络中的第一节点和第二节点, 其中: 所述第一节点包括:
协商请求模块, 配置为将包含第一节点的发送周期和接收周期的协商 请求消息发送至第二节点, 请求与所述第二节点协商用于 MPLS 网络连通 性检测的检测时间;
第一检测时间确定模块, 配置为根据第一节点的发送周期和接收周期、 所述协商响应消息中第二节点的发送周期和接收周期, 确定第一节点新的 发送周期和检测周期;
所述第二节点包括:
协商响应模块, 配置为收到所述协商请求消息后, 将包含第二节点的 发送周期和接收周期的协商响应消息发送至第一节点, 响应第一节点的所 述协商请求消息;
第二检测时间确定模块, 配置为根据第二节点的发送周期和接收周期、 所述协商请求消息中第一节点的发送周期和接收周期, 确定第二节点新的 发送周期和检测周期。
优选地, 所述第二节点还包括:
第二检测模块, 配置为按照第二节点新的发送周期向第一节点发送用 于 MPLS 网络连通性检测的检测消息, 并按照第二节点的新的检测周期接 收来自第一节点的用于 MPLS网络连通性检测的检测消息。
优选地, 所述第一节点还包括:
第一检测模块, 配置为按照第一节点新的发送周期向第二节点发送用 于 MPLS 网络连通性检测的检测消息, 并按照第一节点的新的检测周期接 收来自第二节点的用于 MPLS网络连通性检测的检测消息。
与现有技术相比较, 本发明实施例的有益效果在于:
本发明实施例能够自动协商发送周期和检测周期, 避免因现有技术中 两边配置时间不一致而导致的错误告警及相关处理流程;
本发明实施例将原有的周期扩展成发送周期和接收周期, 而检测周期 则通过接收周期计算得到, 这样两端节点能够从收发两个方向采用不同的 检测策略, 更好的对链路进行监测。 附图说明
图 1是本发明实施例提供的自动协商 MPLS网络连通性检测时间的方 法原理框图;
图 2是本发明实施例所述自动协商 MPLS网络连通性检测时间的系统 结构示意图;
图 3是现有技术提供的 CCM报文的 PDU部分格式示意图;
图 4是本发明实施例提供的 CCM报文的 PDU部分格式示意图; 图 5是本发明实施例提供的周期协商标志位字段数值说明图表; 图 6是本发明实施例提供的接收周期数值说明图表;
图 7是本发明实施例提供的自动协商 MPLS网络连通性检测时间的流 程图。 具体实施方式
以下结合附图对本发明的优选实施例进行详细说明, 应当理解, 以下 所说明的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。
图 1是本发明实施例提供的自动协商 MPLS网络连通性检测时间的方 法原理框图, 如图 1所示, 包括如下步驟:
步驟 101、 在多协议标签转发( MPLS ) 网络中, 第一节点将包含自身 发送周期和接收周期的协商请求消息发送至第二节点, 请求第二节点协商 用于 MPLS网络连通性检测的检测时间。
步驟 102、第二节点收到所述协商请求消息后,将包含自身发送周期和 接收周期的协商响应消息发送至第一节点, 以响应第一节点的所述协商请 求消息。
步驟 103、根据第二节点的发送周期和接收周期、所述协商请求消息中 的第一节点的发送周期和接收周期, 第二节点确定自身用于 MPLS 网络连 通性检测的新的发送周期和检测周期。 在所述步驟 103 中, 第二节点为确定其新的发送周期, 将其发送周期 与第一节点的接收周期进行比较, 若其发送周期大于等于所述第一节点的 接收周期, 则保持第二节点当前的发送周期不变; 否则, 将所述第一节点 的接收周期作为第二节点新的发送周期。 第二节点为确定其新的检测周期 , 将其接收周期和第一节点的发送周期进行比较, 若所述第二节点的接收周 期大于等于所述第一节点的发送周期, 则保持第二节点的接收周期不变; 否则, 将所述第一节点的发送周期作为第二节点新的接收周期, 将比较后 确定的新的接收周期乘以第二预定值, 得到第二节点新的检测周期。 第二 节点确定其新的发送周期和检测周期后, 第二节点可以按照新的发送周期 向第一节点发送用于 MPLS 网络连通性检测的检测消息, 并按照其新的检 测周期接收来自第一节点的用于 MPLS 网络连通性检测的检测消息, 以便 检测收发链路。
步驟 104、根据第一节点的发送周期和接收周期、所述协商响应消息中 的第二节点的发送周期和接收周期, 所述第一节点确定自身用于 MPLS 网 络连通性检测的新的发送周期和检测周期。
在所述步驟 104 中, 第一节点为确定其新的发送周期, 将其发送周期 和第二节点的接收周期进行比较, 若所述第一节点的发送周期大于等于所 述第二节点的接收周期, 则保持第一节点当前的发送周期不变; 否则, 将 所述第二节点的接收周期作为第一节点的用于发送消息的新的发送周期。 第一节点为确定其新的检测周期, 将其接收周期和第二节点的发送周期进 行比较, 若所述第一节点的接收周期大于等于所述第二节点的发送周期, 则保持第一节点的接收周期不变; 否则, 将所述第二节点的发送周期作为 第一节点新的接收周期, 将比较后确定的新的接收周期乘以第一预定值, 得到第一节点用于接收消息的新的检测周期。 第一节点确定其新的发送周 期和检测周期后, 第一节点可以按照其新的发送周期向第二节点发送用于 MPLS网络连通性检测的检测消息,并按照其新的检测周期接收来自第二节 点的用于 MPLS网络连通性检测的检测消息, 以便检测收发链路。
本发明实施例还提供了一种自动协商 MPLS 网络连通性检测时间的系 统, 如图 2所示, 包括 MPLS网络中的第一节点 11和第二节点 12, 其中: 所述第一节点 11包括:
协商请求模块 111 , 可通过 CPU实现, 配置为将包含第一节点 11的发 送周期和接收周期的协商请求消息发送至第二节点 12,请求第二节点 12协 商用于 MPLS网络连通性检测的检测时间;
第一检测时间确定模块 112, 可通过 CPU实现, 配置为根据第一节点 11的发送周期和接收周期、所述协商响应消息中第二节点 12的发送周期和 接收周期,确定第一节点 11的用于 MPLS网络连通性检测的新的发送周期 和检测周期;
第一检测模块 113 , 可通过 CPU实现, 配置为按照第一节点 11的新的 发送周期向第二节点 12发送用于 MPLS网络连通性检测的检测消息,并按 照第一节点 11的新的检测周期接收来自第二节点 12的用于 MPLS网络连 通性检测的检测消息, 以便检测收发链路。
所述第二节点 12包括:
协商响应模块 121 , 可通过 CPU实现, 配置为收到所述协商请求消息 后, 将包含第二节点 12的发送周期和接收周期的协商响应消息发送至第一 节点 11 , 以响应第一节点 11的所述协商请求消息;
第二检测时间确定模块 122, 可通过 CPU实现, 配置为根据第二节点 12的发送周期和接收周期、所述协商请求消息中第一节点 11的发送周期和 接收周期,确定第二节点 12的用于 MPLS网络连通性检测的新的发送周期 和检测周期;
第二检测模块 123 , 可通过 CPU实现, 配置为按照第二节点 12的新的 发送周期向第一节点 11发送用于 MPLS网络连通性检测的检测消息, 并按 照第二节点 12的新的检测周期接收来自第一节点 11的用于 MPLS网络连 通性检测的检测消息, 以便检测收发链路。
这里, 设置上文所述的第一预定值和所述第二预定值均为 3.5;
所述协商请求消息、所述协商响应消息和所述检测消息均以 CCM报文 上扩展而得到。 具体地说, 通过扩展现有 CCM报文的保留字段, 增加两个 字段, 一个是接收周期字段, 另一个是周期协商标志位字段。 当本端节点, 即第二节点收到来自对端节点, 即第一节点的 CCM报文时,检查周期协商 标志位, 如果为 1 , 则说明对端节点需要和本端节点进行周期协商; 此时本 端节点首先会发送周期协商标志位为 2的 CCM报文,所述周期协商标志位 为 2的 CCM报文中,发送周期和接收周期填写本端节点上配置的发送周期 和接收周期; 然后, 本端节点获取所收到的周期协商标志位为 1的 CCM报 文中的发送周期和接收周期, 并分别与本端配置的接收周期和发送周期进 行比较, 分别取其中较大值作为协商后的本端新的接收周期和发送周期, 检测周期通过新确定的接收周期乘以 3.5得到;对端节点获取所收到的周期 协商标志位为 2的 CCM报文中的发送周期和接收周期,并分别与其配置的 接收周期和发送周期进行比较, 分别取其中较大值作为协商后的新的接收 周期和发送周期,检测周期通过新确定的接收周期乘以 3.5得到。 双方按照 协商成功的发送周期发送 CCM报文,并按照协商成功的检测周期来检测连 通性。 如果在检测周期内没有收到对端后续发送的 CCM报文, 则认为链路 已断。
图 3和图 4分别是现有技术和本发明实施例提供的 CCM报文的 PDU 部分格式示意图, 如图 3和图 4所示, 对比如下:
1、 本发明实施例在原有 MPLS TP OAM CCM报文的保留字段中, 增 加接收周期字段。 所述接收周期字段格式与发送周期字段格式完全相同, 如图 5所示。
2、 本发明实施例在原有 MPLS TP OAM CCM报文的保留字段中, 增 加周期协商标志位字段, 所述周期协商标识位字段数值如图 6所示。
3、 本发明实施例将原有 MPLS TP OAM CCM报文的周期字段修改为 发送周期。
这里, 部署所述 MPLS TP OAM的节点均可以配置发送周期和接收周 期。
当连通性检测使能时, 节点发送 CCM报文, 此时 CCM报文中携带本 地配置的发送周期和接收周期, 且周期协商标志位置 1。
当节点收到对端发送的 CCM报文, 并发现收到的 CCM报文的周期协 商标志位为 1时, 节点首先会发送周期协商标志位为 2的 CCM报文, 所述 报文中的发送周期字段和接收周期字段填写本地配置的发送周期和接收周 期, 然后, 获取收到的 CCM报文中的发送周期和接收周期, 并分别与本地 的接收周期和发送周期进行比较, 如果发现对端的发送周期大于本端的接 收周期, 则本端的接收周期修改为对端的发送周期, 本端的检测周期等于 对端的发送周期乘以 3.5; 如果对端的发送周期小于等于本端的接收周期, 则本端的接收周期保持不变,本端的检测周期等于本端的接收周期乘以 3.5; 如果对端的接收周期大于本端的发送周期, 则本端的发送周期修改为对端 的接收周期; 如果对端的接收周期小于等于本端的发送周期, 则本端发送 周期保持不变。
当节点收到周期协商标志位为 2的 CCM报文时, 将 CCM报文中的接 收周期和发送周期与本端的发送周期和接收周期进行比较, 得到本端新的 发送周期、 接收周期以及检测周期, 计算方法同上。
所述两端节点均确定新的发送周期、 接收周期和检测周期后, 整个检 测时间协商过程完成。 当改变其中某一节点的发送周期和 /或接收周期时, 所述节点会立刻发送周期协商标志位为 1的 CCM报文,报文中包括本端修 改后的发送周期和接收周期, 与对端重新进行协商, 协商过程重复上述步 驟, 协商成功后双方才能按照新协商后的发送周期和检测周期进行报文发 送与检测。
可见, 在 MPLS网络中, 进行 MPLS TP OAM检测的双方节点, 能够 通过扩展的 CCM报文,按照一定的规则将双方的检测周期协商成统一的时 间, 这样能够避免在部署 MPLS TP OAM时, 每个节点都要人为来保证检 测周期的一致性, 同时, 还可以通过扩展 CCM报文的方式, 实现 CCM报 文的发送和接收根据不同的时间检测, 达到双向检测的目的。
图 7是本发明实施例提供的自动协商 MPLS网络连通性检测时间的流 程图, 如图 7所示, 在由节点 A和节点 B两个节点组成的 MPLS TP OAM 组网环境中, 以节点 A发起一次协商检测时间的过程为例进行说明, 节点 B的协商过程与节点 A的协商过程完全相同。 本实施例中, 节点 A、 节点 B分别配置为 MPLS TP OAM的检测节点, 域相关信息配置完全, 其中节 点 A的 CCM报文发送周期 =10ms, 接收周期 =lmin, 节点 B的 CCM报文 发送周期 =3.33ms, 接收周期 =100ms。
步驟 1: 节点 A发送 CCM报文, 其中的周期协商标志位为 1 , 发送周 期为 10ms, 接收周期为 lmin。
步驟 2: 节点 B收到节点 A发送的 CCM报文,检测到周期协商标志位 为 1时, 首先回应一个周期协商标识位为 2的 CCM 4艮文, 其中的发送周期 =3.33ms, 接收周期 =100ms。 然后, 将所收到报文中的发送周期、 接收周期 分别与本地的接收周期和发送周期进行比较, 因为报文中的发送周期 10ms <本地的接收周期 100ms, 所以节点 B协商后的接收周期为 100ms, 检测周 期 =100ms*3.5; 而报文中的接收周期 lmin〉本地的发送周期 3.33ms, 所以 节点 B协商后的发送周期修改为 lmin。 修改完毕后, 节点 B按照新的发送 周期和检测周期继续发包和检测。
步驟 3: 节点 A收到节点 B发送的 CCM报文, 检测到 CCM报文的周 期协商标志位置为 2, 获取该报文中的发送周期和接收周期,按照步驟 2所 述的算法进行计算,节点 A获得新的本地发送周期 =100ms,接收周期 =lmin, 检测周期 =lmin*3.5。 修改完毕后, 节点 A按照新的发送周期和检测周期进 行发包和检测, 一次检测周期的自动协商完成。
综上所述, 本发明实施例具有以下技术效果:
1、 本发明实施例能够自动协商 MPLS TP OAM的 CCM报文的检测周 期, 避免现有技术中因为错误配置两边检测时间导致的错误处理;
2、 本发明实施例通过将接收周期和发送周期分离开, 使两端节点按照 各自的检测周期分别检测, 即: 两端节点可以对于收发链路的链路质量进 行分别侦测。
尽管上文对本发明进行了详细说明, 但是本发明不限于此, 本技术领 域技术人员可以根据本发明的原理进行各种修改。 因此, 凡按照本发明原 理所作的修改, 都应当理解为落入本发明的保护范围。

Claims

权利要求书
1、 一种自动协商 MPLS网络连通性检测时间的方法, 该方法包括: 在多协议标签转发 MPLS 网络中, 第一节点将包含自身发送周期和接 收周期的协商请求消息发送至第二节点, 请求与所述第二节点协商用于 MPLS网络连通性检测的检测时间;
第二节点收到所述协商请求消息后, 将包含自身发送周期和接收周期 的协商响应消息发送至第一节点, 响应第一节点的所述协商请求消息; 根据自身的发送周期和接收周期、 所述协商请求消息中的第一节点的 发送周期和接收周期, 所述第二节点确定自身用于 MPLS 网络连通性检测 的新的发送周期和检测周期;
根据自身的发送周期和接收周期、 所述协商响应消息中的第二节点的 发送周期和接收周期, 所述第一节点确定自身用于 MPLS 网络连通性检测 的新的发送周期和检测周期。
2、 根据权利要求 1所述的方法, 其中, 所述第二节点确定自身新的发 送周期, 包括:
比较自身的发送周期和第一节点的接收周期;
若所述自身的发送周期大于等于所述第一节点的接收周期, 则保持自 身当前的发送周期不变, 否则, 将所述第一节点的接收周期作为自身新的 发送周期。
3、 根据权利要求 2所述的方法, 其中, 所述第二节点确定自身新的检 测周期, 包括:
比较自身的接收周期和第一节点的发送周期;
若所述自身的接收周期大于等于所述第一节点的发送周期, 则保持自 身的接收周期不变, 否则, 将所述第一节点的发送周期作为自身新的接收 周期; 将比较后确定的新的接收周期乘以第二预定值, 得到自身新的检测周 期。
4、 根据权利要求 3所述的方法, 其中, 在所述第二节点确定自身新的 发送周期和检测周期之后, 该方法还包括:
第二节点按照自身新的发送周期向第一节点发送用于 MPLS 网络连通 性检测的检测消息, 并按照自身新的检测周期接收来自第一节点的用于 MPLS网络连通性检测的检测消息。
5、 根据权利要求 1所述的方法, 其中, 所述第一节点确定自身新的发 送周期, 包括:
比较自身的发送周期和第二节点的接收周期;
若所述自身的发送周期大于等于所述第二节点的接收周期, 则保持自 身当前的发送周期不变, 否则, 将所述第二节点的接收周期作为自身新的 发送周期。
6、 根据权利要求 5所述的方法, 其中, 所述第一节点确定自身新的检 测周期, 包括:
比较自身的接收周期和第二节点的发送周期;
若所述自身的接收周期大于等于所述第二节点的发送周期, 则保持自 身的接收周期不变, 否则, 将所述第二节点的发送周期作为自身新的接收 周期;
将比较后确定的新的接收周期乘以第一预定值, 得到自身新的检测周 期。
7、 根据权利要求 6所述的方法, 其中, 在所述第一节点确定自身新的 发送周期和检测周期之后, 该方法还包括:
第一节点按照自身新的发送周期向第二节点发送用于 MPLS 网络连通 性检测的检测消息, 并按照自身新的检测周期接收来自第二节点的用于 MPLS网络连通性检测的检测消息。
8、 一种自动协商 MPLS网络连通性检测时间的系统, 该系统包括: 多 协议标签转发 MPLS网络中的第一节点和第二节点, 其中:
所述第一节点包括:
协商请求模块, 配置为将包含第一节点的发送周期和接收周期的协商 请求消息发送至第二节点, 请求与所述第二节点协商用于 MPLS 网络连通 性检测的检测时间;
第一检测时间确定模块, 配置为根据第一节点的发送周期和接收周期、 所述协商响应消息中第二节点的发送周期和接收周期, 确定第一节点的用 于 MPLS网络连通性检测的新的发送周期和检测周期;
所述第二节点包括:
协商响应模块, 配置为收到所述协商请求消息后, 将包含第二节点的 发送周期和接收周期的协商响应消息发送至第一节点, 响应第一节点的所 述协商请求消息;
第二检测时间确定模块, 配置为根据第二节点的发送周期和接收周期、 所述协商请求消息中第一节点的发送周期和接收周期, 确定第二节点的用 于 MPLS网络连通性检测的新的发送周期和检测周期。
9、 根据权利要求 8所述的系统, 其中, 所述第二节点还包括: 第二检测模块, 配置为按照第二节点的新的发送周期向第一节点发送 用于 MPLS 网络连通性检测的检测消息, 并按照第二节点的新的检测周期 接收来自第一节点的用于 MPLS网络连通性检测的检测消息。
10、 根据权利要求 8所述的系统, 其中, 所述第一节点还包括: 第一检测模块, 配置为按照第一节点的新的发送周期向第二节点发送 用于 MPLS 网络连通性检测的检测消息, 并按照第一节点的新的检测周期 接收来自第二节点的用于 MPLS网络连通性检测的检测消息。
PCT/CN2013/082184 2013-03-29 2013-08-23 一种自动协商mpls网络连通性检测时间的方法及系统 WO2013189426A2 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310110131.0 2013-03-29
CN201310110131.0A CN104079446A (zh) 2013-03-29 2013-03-29 一种自动协商mpls网络连通性检测时间的方法及系统

Publications (2)

Publication Number Publication Date
WO2013189426A2 true WO2013189426A2 (zh) 2013-12-27
WO2013189426A3 WO2013189426A3 (zh) 2014-02-27

Family

ID=49769567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082184 WO2013189426A2 (zh) 2013-03-29 2013-08-23 一种自动协商mpls网络连通性检测时间的方法及系统

Country Status (2)

Country Link
CN (1) CN104079446A (zh)
WO (1) WO2013189426A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001944A (zh) * 2022-05-26 2022-09-02 苏州盛科通信股份有限公司 Ccm检测周期的修改方法、装置、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332733B (zh) * 2017-06-30 2021-03-19 联想(北京)有限公司 一种网络端口的状态监测方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170390A (zh) * 2010-02-26 2011-08-31 中兴通讯股份有限公司 参数协商方法和系统
US20120036279A1 (en) * 2010-08-09 2012-02-09 Cisco Technology, Inc. Distributed connectivity verification protocol redundancy
CN102457404A (zh) * 2010-10-15 2012-05-16 中兴通讯股份有限公司 检测通信路径mtu的方法、装置和系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252528B (zh) * 2008-04-14 2011-04-13 华为技术有限公司 一种故障检测方法及设备
CN101826990A (zh) * 2009-03-05 2010-09-08 华为技术有限公司 检测虚拟伪线连通性的方法、装置及系统
CN101808022B (zh) * 2010-04-22 2014-08-13 中兴通讯股份有限公司 双向转发检测的实现方法及装置
CN102158371A (zh) * 2011-04-12 2011-08-17 杭州华三通信技术有限公司 一种基于bfd的链路性能检测方法及其装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170390A (zh) * 2010-02-26 2011-08-31 中兴通讯股份有限公司 参数协商方法和系统
US20120036279A1 (en) * 2010-08-09 2012-02-09 Cisco Technology, Inc. Distributed connectivity verification protocol redundancy
CN102457404A (zh) * 2010-10-15 2012-05-16 中兴通讯股份有限公司 检测通信路径mtu的方法、装置和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001944A (zh) * 2022-05-26 2022-09-02 苏州盛科通信股份有限公司 Ccm检测周期的修改方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
WO2013189426A3 (zh) 2014-02-27
CN104079446A (zh) 2014-10-01

Similar Documents

Publication Publication Date Title
US7742400B2 (en) Method and system for detecting link failure between nodes in a hybrid network
US8780731B2 (en) Ethernet performance monitoring
EP3066784B1 (en) Supporting operator commands in link aggregation group
US7852778B1 (en) Verification of network paths using two or more connectivity protocols
US9742645B2 (en) Method and apparatus for measuring performance of multi-service in tunnel
WO2008077300A1 (fr) Procédé et système permettant de négocier le discriminateur de session de détection de transmission bidirectionnelle d&#39;un pseudo-fil
WO2007016833A1 (fr) Procédé de déclenchement de détection de panne de détection de transfert bidirectionnel
EP2951953A1 (en) Method of managing zigbee network in the internet of things
JP2008263393A (ja) ネットワークシステム及びノード装置
WO2014032435A1 (zh) 故障点位置信息处理方法及设备
WO2014047784A1 (zh) 报文转发路径确定方法及网络设备、控制设备
EP3203685B1 (en) Method and apparatus for implementing operations, administration and maintenance function
CN103957158A (zh) 一种流量转发路径确定方法、装置及通信系统
WO2015035616A1 (zh) 跨网通信方法及装置
WO2014019348A1 (zh) 操作、管理和维护oam配置的方法、设备及系统
WO2012155817A1 (zh) 一种环回测试方法、装置及系统
CN102457404B (zh) 检测通信路径mtu的方法、装置和系统
WO2015070614A1 (zh) 检测l2vpn网络用户侧接口连通性的方法及设备
WO2011120463A2 (zh) 跨媒介网络中的qos协商方法和系统及网络设备
JP4532253B2 (ja) フレーム転送装置及びフレームのループ抑止方法
CN112910704B (zh) 一种支持动态自适应网络配置的局域网系统、方法和装置
WO2013189426A2 (zh) 一种自动协商mpls网络连通性检测时间的方法及系统
WO2009076848A1 (zh) 一种pbb网络中自动拓扑发现及资源管理的方法和装置
WO2007140703A1 (fr) Procédé et appareil de nœud rsvp interactif
JP5327001B2 (ja) 通信装置及び通信方法

Legal Events

Date Code Title Description
122 Ep: pct application non-entry in european phase

Ref document number: 13807793

Country of ref document: EP

Kind code of ref document: A2