[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106411625A - Link message packet loss measurement method and system, target node and initiator node - Google Patents

Link message packet loss measurement method and system, target node and initiator node Download PDF

Info

Publication number
CN106411625A
CN106411625A CN201510446685.7A CN201510446685A CN106411625A CN 106411625 A CN106411625 A CN 106411625A CN 201510446685 A CN201510446685 A CN 201510446685A CN 106411625 A CN106411625 A CN 106411625A
Authority
CN
China
Prior art keywords
node
tested
initiator
packet loss
target
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.)
Pending
Application number
CN201510446685.7A
Other languages
Chinese (zh)
Inventor
盛科
李琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zte Technical Service Co ltd
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201510446685.7A priority Critical patent/CN106411625A/en
Priority to PCT/CN2016/076504 priority patent/WO2016177120A1/en
Publication of CN106411625A publication Critical patent/CN106411625A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Landscapes

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

Abstract

本发明提供的链路报文丢包率检测方法、系统及目标节点、发起端节点,属于通信领域。目标节点接收发起端节点发送的丢包计算信息LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息;目标节点根据定位信息判断自身是否为待测节点;如果是待测节点,则统计接收到的发起端节点发送的报文个数;目标节点根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包率。与现有技术比,具有待测节点的定位信息,能够定位端与端之间的中间节点的位置,定位后能够能利用目前各种OAM标准中定义的LMM报文进行链路报文丢包率检测,实现了端到端的中间节点的链路报文丢包率检测的问题。

The method and system for detecting the packet loss rate of link messages provided by the invention, as well as the target node and the initiator node, belong to the communication field. The target node receives the packet loss calculation information LMM message sent by the initiator node. The LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested; the target node judges whether it is a node to be tested according to the location information; If it is the node to be tested, count the number of packets received from the initiator node; the target node obtains the link according to the number of packets received from the initiator node and the number of packets sent by the initiator node Packet loss rate. Compared with the existing technology, it has the positioning information of the node to be tested, and can locate the position of the intermediate node between the end and the end. After positioning, the LMM message defined in various current OAM standards can be used to perform link packet loss Rate detection, which realizes the detection of the link packet loss rate of end-to-end intermediate nodes.

Description

链路报文丢包测量方法、系统及目标节点、发起端节点Link packet loss measurement method, system, target node, and initiator node

技术领域 technical field

本发明涉及通信领域,特别涉及一种链路报文丢包测量方法、系统及目标节点、发起端节点。 The invention relates to the communication field, in particular to a link message packet loss measurement method, system, target node, and initiator node.

背景技术 Background technique

链路丢包测量是一种常用的网络维护功能,准确而快速的丢包测量对于网络维护有着极为重要的意义。OAM定义是根据运营商网络运营的实际需要,通常将网络的管理工作划分为3大类:操作(Operation)、管理(Administration)、维护(Maintenance),简称OAM。操作主要完成日常网络和业务进行的分析、预测、规划和配置工作;维护主要是对网络及其业务的测试和故障管理等进行的日常操作活动。OAM功能可分为:故障管理:如故障测量、故障分类、故障定位、故障通告等;性能管理:如性能监视、性能分析、性能管理控制等;保护恢复:如保护机制、恢复机制等。OAM的LM功能(即帧丢失测量功能)是用于统计点到点T-MPLS连接入口和出口发送和接收业务帧的数量差,来计算链路丢包数及丢包等。目前常用的OAM相关标准(1)MPLS-TP OAM(BHH):可以分为TMS、TMP、和TMC,分别用于监测段层、隧道层、伪线层的连通性以及性能。可应用于各种MPLS-TP网络中。依据的主要标准为:Y.1731及MPLS-TP标准,对于TMP和TMC层的LM,只能测量PE-PE的丢包测量。(2)CFM:是一种以太网OAM,依据的主要标准有:802.1ag和Y1731,其中帧丢失测量功能是在Y.1731标准中定义。 Link packet loss measurement is a common network maintenance function. Accurate and fast packet loss measurement is extremely important for network maintenance. The definition of OAM is based on the actual needs of the operator's network operation, and usually divides the management work of the network into three categories: Operation, Administration, and Maintenance, referred to as OAM. Operation mainly completes the analysis, prediction, planning and configuration of the daily network and services; maintenance mainly refers to the daily operation activities such as testing and fault management of the network and its services. OAM functions can be divided into: fault management: such as fault measurement, fault classification, fault location, fault notification, etc.; performance management: such as performance monitoring, performance analysis, performance management control, etc.; protection recovery: such as protection mechanism, recovery mechanism, etc. The LM function of OAM (that is, the frame loss measurement function) is used to count the difference in the number of service frames sent and received between the ingress and egress of a point-to-point T-MPLS connection, and to calculate the number of link packet loss and packet loss. Currently commonly used OAM-related standards (1) MPLS-TP OAM (BHH): can be divided into TMS, TMP, and TMC, which are used to monitor the connectivity and performance of the segment layer, tunnel layer, and pseudowire layer respectively. It can be applied to various MPLS-TP networks. Based on the main standards: Y.1731 and MPLS-TP standards, for the LM of the TMP and TMC layers, only PE-PE packet loss measurement can be measured. (2) CFM: It is a kind of Ethernet OAM, based on the main standards: 802.1ag and Y1731, and the frame loss measurement function is defined in the Y.1731 standard.

两种OAM的LM功能都是提供了一种端到端(PE到PE节点)的丢包测量,对于PE到任意一个P节点无法提供链路丢包测量,在实际网络维护工作中有一定的缺陷。 The LM function of the two OAMs provides an end-to-end (PE to PE node) packet loss measurement. For PE to any P node, it cannot provide link packet loss measurement, which has certain limitations in actual network maintenance work. defect.

发明内容 Contents of the invention

本发明要解决的主要技术问题是,提供一种链路报文丢包测量方法、系统及目标节点、发起端节点,解决现有中只能针对端到端的链路报文丢包测量,不能进行端到端的中间节点的链路报文丢包测量的问题。 The main technical problem to be solved by the present invention is to provide a link packet loss measurement method, system, target node, and initiating node, so as to solve the existing problems that can only be measured for end-to-end link packet loss and cannot The problem of performing end-to-end intermediate node link packet loss measurement.

为解决上述问题,本发明提供一种链路报文丢包测量方法,包括: In order to solve the above problems, the present invention provides a method for measuring link packet loss, including:

目标节点接收发起端节点发送的丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息; The target node receives the packet loss calculation information LMM message sent by the initiator node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested;

所述目标节点根据所述定位信息判断自身是否为所述待测节点; The target node judges whether it is the node to be tested according to the positioning information;

如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数; If it is the node to be tested, count the number of received messages sent by the initiator node;

所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。 The target node obtains link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node.

在本发明的一种实施例中,所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;所述目标节点根据所述定位信息判断自身是否为所述待测节点包括: In an embodiment of the present invention, the positioning information of the node to be tested includes: the location information of the node to be tested or the relative position information of the node to be tested relative to the initiator node; the target node according to The positioning information judging whether itself is the node to be tested includes:

所述目标节点判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则是所述待测节点;如果不同,则不是所述待测节点; The target node judges whether its own location information is the same as the location information of the node to be tested, if the same, it is the node to be tested; if different, it is not the node to be tested;

or

所述目标节点判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则是所述待测节点;如果不相同,则不是所述待测节点。 The target node judges whether its relative position information relative to the initiator node is the same as the relative position information of the node to be tested, if the same, it is the node to be tested; if not, it is not the node to be tested node.

在本发明的一种实施例中,当所述链路为MPLS-TP网络链路时,所述待测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节 点的相差的隧道标签中生存周期值或伪线标签中的生存周期值; In an embodiment of the present invention, when the link is an MPLS-TP network link, the relative position information of the node to be tested relative to the initiator node includes: the node to be tested and the initiator node The lifetime value in the different tunnel label of the end node or the lifetime value in the pseudowire label;

当所述链路为CFM网络链路时,所述待测节点的位置信息可以是所述待测节点的MAC地址。 When the link is a CFM network link, the location information of the node to be tested may be a MAC address of the node to be tested.

在本发明的一种实施例中,还包括所述目标节点根据所述定位信息判断自身不是所述待测节点,则直接将所述LMM报文转发给下一跳节点。 In an embodiment of the present invention, it further includes that the target node judges that it is not the node to be tested according to the positioning information, and then directly forwards the LMM message to the next-hop node.

在本发明的一种实施例中,所述根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算链路报文丢包的方式包括: In an embodiment of the present invention, the method of calculating link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node includes :

所述目标节点自身通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包; The target node itself calculates the packet loss of the link message through the received number of packets sent by the initiator node and the number of packets sent by the initiator node;

or

所述目标节点将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息LMR报文发送给所述发起端节点,以使所述发起端节点根据上述各参数计算出链路报文丢包。 The target node sends the received number of packets sent by the initiator node and the number of packets sent by the initiator node to the initiator node through a packet loss response information LMR message, so that the The initiating end node calculates the link packet loss according to the above parameters.

在本发明的一种实施例中,在所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,还包括:所述目标节点向所述发起端节点发送丢包回复信息LMR报文,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。 In an embodiment of the present invention, at the target node, according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node, the link packet loss Afterwards, it also includes: the target node sends a packet loss response information LMR message to the initiator node, and the LMR message includes the number of messages sent by the target node to the initiator node, so that the The initiating node obtains the link report according to the number of messages sent by the target node to the initiating node and the number of messages received by the initiating node from the target node to the initiating node Packet loss.

为解决上述问题,本发明还提供一种链路报文丢包测量方法,包括: In order to solve the above problems, the present invention also provides a method for measuring link packet loss, including:

发起端节点向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发 送给所述目标节点的报文个数得到链路报文丢包。 The initiator node sends a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested, so that the target node The number of packets sent by the end node and the number of packets received by the target node from the initiating end node to the target node are obtained to obtain link packet loss.

为解决上述问题,本发明还提供一种链路报文丢包测量方法,包括: In order to solve the above problems, the present invention also provides a method for measuring link packet loss, including:

发起端节点向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息; The initiator node sends a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested;

所述目标节点接收发起端节点发送的丢包计算信息LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数; The target node receives the packet loss calculation information LMM message sent by the initiator node, and judges whether it is the node to be tested according to the positioning information; if it is the node to be tested, then counts the received initiator The number of messages sent by the node;

所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。 The target node obtains link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node.

为解决上述问题,本发明还提供一种目标节点,包括接收模块、判断模块、统计模块和计算模块: In order to solve the above problems, the present invention also provides a target node, including a receiving module, a judging module, a statistical module and a computing module:

所述接收模块用于接收发起端节点发送的丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息; The receiving module is used to receive the packet loss calculation information LMM message sent by the initiator node, and the LMM message includes the number of messages sent by the initiator node and the positioning information of the node to be tested;

所述判断模块用于根据所述定位信息判断自身是否为所述待测节点; The judging module is used to judge whether it is the node to be tested according to the positioning information;

所述统计模块用于如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数; The statistical module is used to count the number of received messages sent by the initiator node if it is the node to be tested;

所述计算模块用于根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。 The calculation module is configured to obtain link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node.

在本发明的一种实施例中,所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;所述判断模块包括位置判断子模块和相对位置判断子模块: In an embodiment of the present invention, the positioning information of the node to be tested includes: the location information of the node to be tested or the relative position information of the node to be tested relative to the initiator node; the judging module includes Position judgment sub-module and relative position judgment sub-module:

所述位置判断子模块用于判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则是所述待测节点;如果不同,则不是所述待测节点; The location judging submodule is used to judge whether its own location information is the same as the location information of the node to be tested. If it is the same, it is the node to be tested; if it is different, it is not the node to be tested;

or

所述相对位置判断子模块用于判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则是所述待测节点;如果不相同,则不是所述待测节点。 The relative position judging submodule is used to judge whether the relative position information of itself relative to the initiator node is the same as the relative position information of the node to be tested, if the same, it is the node to be tested; if not, then Not the node under test.

在本发明的一种实施例中,当所述链路为MPLS-TP网络链路时,所述待测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值; In an embodiment of the present invention, when the link is an MPLS-TP network link, the relative position information of the node to be tested relative to the initiator node includes: the node to be tested and the initiator node The lifetime value in the different tunnel label of the end node or the lifetime value in the pseudowire label;

当所述链路为CFM网络链路时,所述待测节点的位置信息可以是所述待测节点的MAC地址。 When the link is a CFM network link, the location information of the node to be tested may be a MAC address of the node to be tested.

在本发明的一种实施例中,还包括转发模块,所述转发模块用于根据所述定位信息判断自身不是所述待测节点,则直接将所述LMM报文转发给下一跳节点。 In an embodiment of the present invention, a forwarding module is further included, and the forwarding module is configured to judge that it is not the node to be tested according to the positioning information, and then directly forward the LMM message to the next-hop node.

在本发明的一种实施例中,所述计算模块还用于: In an embodiment of the present invention, the calculation module is also used for:

通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包; calculating link packet loss by the number of received packets sent by the initiating node and the number of packets sent by the initiating node;

or

将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息LMR报文发送给所述发起端节点,以使所述发起端节点根据上述各参数计算出链路报文丢包。 Sending the received number of packets sent by the initiator node and the number of packets sent by the initiator node to the initiator node through a packet loss response information LMR message, so that the initiator node Calculate link packet loss based on the above parameters.

在本发明的一种实施例中,还包括回复模块,所述回复模块用于在所述计算模块根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,向所述发起端节点发送丢包回复信息LMR报文,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以 使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。 In an embodiment of the present invention, a reply module is also included, and the reply module is used for receiving the number of messages sent by the initiator node and the number of messages sent by the initiator node in the calculation module. After the packet loss of the link packet is obtained by the number of messages, send a packet loss reply information LMR message to the initiator node, and the LMR message includes the number of messages sent by the target node to the initiator node , so that the initiator node receives the number of packets sent by the target node to the initiator node according to the number of packets sent by the target node to the initiator node Obtain link packet loss.

为解决上述问题,本发明还提供一种发起端节点,包括发送模块: In order to solve the above problems, the present invention also provides an initiating node, including a sending module:

所述发送模块用于向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文丢包。 The sending module is used to send a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the positioning information of the node to be tested, so that the target node can be used according to The number of packets sent by the initiating node and the number of packets received by the target node from the initiating node to the target node are obtained to obtain link packet loss.

为解决上述问题,本发明还提供一种链路报文丢包测量系统,包括发起端节点和目标节点: In order to solve the above problems, the present invention also provides a link packet loss measurement system, including an originating node and a target node:

所述发起端节点用于向所述目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息; The initiator node is used to send a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the positioning information of the node to be tested;

所述目标节点用于接收发起端节点发送的丢包计算信息LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数; The target node is used to receive the packet loss calculation information LMM message sent by the initiator node, and judge whether it is the node to be tested according to the positioning information; if it is the node to be tested, then count the received nodes. The number of packets sent by the originating end node;

所述目标节点还用于根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。 The target node is further configured to obtain link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node.

本发明的有益效果是: The beneficial effects of the present invention are:

本发明提供的链路报文丢包测量方法、系统及目标节点、发起端节点,目标节点接收发起端节点发送的丢包计算信息LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息;目标节点根据定位信息判断自身是否为待测节点;如果是待测节点,则统计接收到的发起端节点发送的报文个数;目标节点根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报 文个数得到链路报文丢包。与现有技术比,具有待测节点的定位信息,能够定位端与端之间的中间节点的位置,定位后能够能利用目前各种OAM标准中定义的LMM报文进行链路报文丢包测量,实现了端到端的中间节点的链路报文丢包测量的问题,对目前标准是一种补充,同时也为实际应用和工程维护等提供了一种很好的链路丢包测量的手段。 The link message packet loss measurement method and system provided by the present invention, the target node, and the initiator node, the target node receives the packet loss calculation information LMM message sent by the initiator node, and the LMM message includes the number of messages sent by the initiator node number and the location information of the node to be tested; the target node judges whether it is the node to be tested according to the location information; if it is the node to be tested, it counts the The number of packets sent by the end node and the number of packets sent by the initiating end node can be used to obtain link packet loss. Compared with the existing technology, it has the positioning information of the node to be tested, and can locate the position of the intermediate node between the end and the end. After positioning, it can use the LMM message defined in various current OAM standards to perform link packet loss It is a supplement to the current standard, and it also provides a good method of link packet loss measurement for practical applications and engineering maintenance. means.

附图说明 Description of drawings

图1为本发明实施例一提供的链路报文丢包测量方法流程示意图; FIG. 1 is a schematic flowchart of a method for measuring link packet loss provided by Embodiment 1 of the present invention;

图2-1为本发明实施例二提供的链路报文丢包测量方法中报文流向示意图一; FIG. 2-1 is a first schematic diagram of message flow in the link message packet loss measurement method provided by Embodiment 2 of the present invention;

图2-2为本发明实施例二提供的链路报文丢包测量方法流程示意图; FIG. 2-2 is a schematic flowchart of a method for measuring link packet loss provided by Embodiment 2 of the present invention;

图2-3为本发明实施例二提供的链路报文丢包测量方法中报文流向示意图二; 2-3 is a second schematic diagram of message flow in the method for measuring link packet loss provided by Embodiment 2 of the present invention;

图3-1为本发明实施例三提供的链路报文丢包测量方法中报文流向示意图; FIG. 3-1 is a schematic diagram of packet flow in the link packet loss measurement method provided by Embodiment 3 of the present invention;

图3-2为本发明实施例三提供的链路报文丢包测量方法流程示意图; FIG. 3-2 is a schematic flowchart of a method for measuring link packet loss provided by Embodiment 3 of the present invention;

图4为本发明实施例四提供的目标节点结构示意图一; FIG. 4 is a schematic diagram 1 of a target node structure provided by Embodiment 4 of the present invention;

图5为本发明实施例四提供的目标节点结构示意图二; FIG. 5 is a second schematic diagram of the target node structure provided by Embodiment 4 of the present invention;

图6为本发明实施例四提供的目标节点结构示意图三; FIG. 6 is a third schematic diagram of the target node structure provided by Embodiment 4 of the present invention;

图7为本发明实施例四提供的目标节点结构示意图四; FIG. 7 is a fourth structural schematic diagram of a target node provided by Embodiment 4 of the present invention;

图8为本发明实施例四提供的发起端节点结构示意图; FIG. 8 is a schematic structural diagram of an initiating node provided in Embodiment 4 of the present invention;

图9为本发明实施例四提供的链路报文丢包测量系统结构示意图。 FIG. 9 is a schematic structural diagram of a link packet loss measurement system provided by Embodiment 4 of the present invention.

具体实施方式 detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例一 Embodiment one

本实施例的链路报文丢包测量方法,如图1所示,包括以下步骤: The method for measuring link packet loss in this embodiment, as shown in Figure 1, includes the following steps:

步骤S101:目标节点接收发起端节点发送的丢包计算信息LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息; Step S101: the target node receives the packet loss calculation information LMM message sent by the initiator node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested;

在该步骤中,这里的目标节点应该理解为端到端中间的任意的一个节点,当然,这些节点具有配置了MIP并启用LM功能,当然,不是对该节点进行测量,可以不用配置MIP。这里的发起端是指两个用来进行信息交互的发送信息一条链路上的首端。并且,该目标节点也可以为末端节点。这里的发起端节点发送的报文个数是指该发起端节点发送给下一跳节点多少个报文,具体的报文可以是数据报文和客户层报文。应该理解为发起端会向下一跳节点不断的发送各种报文,而丢包计算信息LMM报文就是告诉下一跳节点具体发送了多少个报文;由于不同的业务对应的发送的报文的个数以及速率不同,优选的,为了便于进行统计计算,或者根据用户需求需要知道某类业务对应的具体的丢包情况,选择同一级对应发送的报文数。例如,该报文数为X1。 In this step, the target node here should be understood as any node in the middle of the end-to-end. Of course, these nodes have the MIP configured and the LM function enabled. Of course, the node is not measured, and MIP may not be configured. The originating end here refers to two head ends on a link for sending information for information exchange. Moreover, the target node may also be an end node. The number of packets sent by the initiator node here refers to how many packets the initiator node sends to the next-hop node, and the specific packets may be data packets and client layer packets. It should be understood that the initiator will continuously send various messages to the next hop node, and the packet loss calculation information LMM message is to tell the next hop node how many messages have been sent; The number and rate of messages are different. Preferably, in order to facilitate statistical calculations, or to know the specific packet loss situation corresponding to a certain type of service according to user needs, the corresponding number of messages sent at the same level is selected. For example, the packet number is X1.

步骤S102:目标节点根据定位信息判断自身是否为待测节点; Step S102: The target node judges whether it is a node to be tested according to the positioning information;

在该步骤中,应该理解为在一条端到端的链路中,对于每个节点都有其相应的节点位置信息,这些位置信息可以是其对应的地址信息或者在该链路中的第几个节点,例如一条端到端的链路有四个节点,发起端为首端节点,其对应地址分别为132.132.45.16、132.132.45.26、132.132.45.36和132.132.45.46; 也可以对应编号为发起端节点PE1、中间节点P1、中间节点P2和接收端节点PE2。该定位信息为具体要对那个节点进行链路报文丢包测量,例如该定位信息可以为132.132.45.26,也可以为P1。 In this step, it should be understood that in an end-to-end link, each node has its corresponding node location information, which can be its corresponding address information or the number of nodes in the link. Nodes, for example, there are four nodes in an end-to-end link, the initiator is the head-end node, and the corresponding addresses are 132.132.45.16, 132.132.45.26, 132.132.45.36, and 132.132.45.46; the corresponding number can also be the initiator node PE1 , the intermediate node P1, the intermediate node P2 and the receiving end node PE2. The location information is the specific node for which link packet loss measurement is to be performed, for example, the location information may be 132.132.45.26 or P1.

步骤S103:如果是待测节点,则统计接收到的发起端节点发送的报文个数; Step S103: If it is the node to be tested, count the number of received messages sent by the initiator node;

在该步骤中,由于不同的业务对应的发送的报文的个数以及速率不同,优选的,选择统计同一级对应发送的报文数。例如,该报文数为X2。 In this step, since different services correspond to different numbers and rates of sent packets, it is preferred to choose to count the number of packets sent corresponding to the same level. For example, the number of packets is X2.

步骤S104:目标节点根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包。 Step S104: The target node obtains link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node.

在该步骤中,具体的,该目标节点可以自己计算得到链路报文丢包,即通过接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数计算出链路报文丢包,结合上面的例子,链路报文丢包为;X1-X2。进一步,为了便于管理,通过同一的发起端节点进行计算,以便对于所用的节点丢包进行管理,该目标节点还可以将接收到的发起端节点发送的报文个数和发起端节点发送的报文个数通过丢包回复信息LMR报文发送给发起端节点,以使发起端节点根据上述各参数计算出链路报文丢包。 In this step, specifically, the target node can calculate the packet loss of the link by itself, that is, calculate the link packet loss based on the number of received packets sent by the initiator node and the number of packets sent by the initiator node. Link packet loss, combined with the above example, the link packet loss is: X1-X2. Further, in order to facilitate management, the calculation is performed by the same initiator node, so as to manage the packet loss of the used node, and the target node can also receive the number of packets sent by the initiator node and the number of packets sent by the initiator node. The number of messages is sent to the initiating end node through the packet loss reply information LMR message, so that the initiating end node can calculate the packet loss of the link message according to the above parameters.

值得注意的是,进一步,还可以记录接收时间,例如目标节点记录接收到了X1个报文,并且接收这些报文的时间为T1,这样就可以进行链路丢包率的计算,即链路丢包率为:(X1-X2)/T1。 It is worth noting that, further, the receiving time can also be recorded, for example, the target node records that X1 messages have been received, and the time of receiving these messages is T1, so that the link packet loss rate can be calculated, that is, the link loss rate Packet rate: (X1-X2)/T1.

具体的,在上述步骤S102中的待测节点的定位信息可以是待测节点的位置信息或待测节点相对发起端节点的相对位置信息;上述步骤S103中目标节点根据定位信息判断自身是否为待测节点包括:目标节点判断自身的位置信息是否与待测节点的位置信息相同,如相同,则是待测节点;如果不同,则不是待测节点;或目标节点判断自身相对发起端节点的相对位置信息是否待测节点的相 对位置信息相同,如相同,则是待测节点;如果不相同,则不是待测节点。结合上面的例子进行说明,待测节点为P2,那么定位信息可以P2的位置信息132.132.45.26,也可以是P2相对于PE1的位置信息,即是位于PE1后的第几个节点,即定位信息为PE1后的第二个节点。那么目标节点就判断自身的地址是不是132.132.45.26,如果是就说明自身就是待测节点,或者判断自身是不是位于发起端节点PE1后的第二个节点,如果是第二节点就为待测节点。应该理解为,其他可以进行定位对哪个节点进行测量的方式都应包含在内。 Specifically, the positioning information of the node to be tested in the above step S102 may be the position information of the node to be tested or the relative position information of the node to be tested relative to the initiator node; in the above step S103, the target node judges whether it is The test node includes: the target node judges whether its own position information is the same as the position information of the node to be tested. If it is the same, it is the node to be tested; if it is different, it is not the node to be tested; Whether the location information is the same as the relative location information of the nodes to be tested. If they are the same, they are the nodes to be tested; if not, they are not the nodes to be tested. Combined with the above example to illustrate, the node to be tested is P2, then the location information can be the location information of P2 132.132.45.26, or the location information of P2 relative to PE1, that is, the number of nodes after PE1, that is, the location information It is the second node after PE1. Then the target node judges whether its own address is 132.132.45.26, if it is, it means that it is the node to be tested, or judges whether it is the second node after the initiator node PE1, if it is the second node, it is the node to be tested node. It should be understood that other ways to locate which node to measure should be included.

优选的,可以基于现有的协议进行改进,当链路为MPLS-TP网络链路时,待测节点相对发起端节点的相对位置信息包括:待测节点与发起端节点的相差的隧道标签中生存周期值TTL或伪线标签中的生存周期值TTL,即TTL是Time To Live(生存周期值)的缩写,该字段指定IP包在计算机网络中可以转发的最大跳数。当链路为CFM网络链路时,待测节点的位置信息可以是待测节点的MAC地址。 Preferably, it can be improved based on the existing protocol. When the link is an MPLS-TP network link, the relative position information of the node to be tested relative to the initiator node includes: the tunnel label difference between the node to be tested and the initiator node The life cycle value TTL or the life cycle value TTL in the pseudowire label, that is, TTL is the abbreviation of Time To Live (life cycle value), and this field specifies the maximum number of hops that the IP packet can be forwarded in the computer network. When the link is a CFM network link, the location information of the node to be tested may be the MAC address of the node to be tested.

进一步,还包括目标节点根据定位信息判断自身不是待测节点,则直接将LMM报文转发给下一跳节点。 Further, it also includes that the target node judges that it is not the node to be tested according to the positioning information, and then directly forwards the LMM message to the next-hop node.

进一步,在目标节点根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包之后,还包括:目标节点向发起端节点发送丢包回复信息LMR报文,LMR报文包括目标节点发送给发起端节点的报文个数,以使发起端节点根据目标节点发送给发起端节点的报文个数、以及发起端节点接收到目标节点发送给发起端节点的报文个数得到链路报文丢包。即不仅可以测量发起端节点到待测节点的链路丢包,还可以测量待测节点到发起端节点的链路丢包。 Further, after the target node obtains the packet loss of the link according to the received number of packets sent by the initiator node and the number of packets sent by the initiator node, it also includes: the target node sends the packet loss to the initiator node Reply information LMR message, the LMR message includes the number of messages sent by the target node to the initiator node, so that the initiator node sends the number of messages to the initiator node according to the number of messages sent by the target node and the number of messages received by the initiator node from the target node. The number of packets sent to the initiating end node is obtained by link packet loss. That is, not only the packet loss of the link from the initiator node to the node under test can be measured, but also the packet loss of the link from the node under test to the initiator node can be measured.

值得注意的是,在上述步骤S101中,应该理解为,发起端节点会向目标节 点发送丢包计算信息LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息,以使目标节点根据发起端节点发送的报文个数、以及目标节点接收到发起端节点发送给目标节点的报文个数得到链路报文丢包。 It should be noted that in the above step S101, it should be understood that the initiator node will send a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the location of the node to be tested Information, so that the target node obtains link packet loss according to the number of packets sent by the initiator node and the number of packets received by the target node from the initiator node to the target node.

实施例二 Embodiment two

本实施例的链路报文丢包测量方法,主要用于介绍TP-OAM协议中隧道层的LM功能,如图2-1所示,该图为该方法中的报文流向图,为了便于说明,本文将各个节点的节点分别命名为PE1、P1、P2和PE2。如图2-2所示,链路报文丢包测量方法包括以下步骤: The link packet loss measurement method of this embodiment is mainly used to introduce the LM function of the tunnel layer in the TP-OAM protocol, as shown in Figure 2-1, which is a packet flow diagram in this method, for convenience Note that this article names the nodes of each node as PE1, P1, P2, and PE2. As shown in Figure 2-2, the link packet loss measurement method includes the following steps:

步骤S201:在PE1节点配置MEP节点,并启用LM功能,以及配置的LM指定到目的MIP节点的TTL; Step S201: configure the MEP node on the PE1 node, and enable the LM function, and the configured LM specifies the TTL to the destination MIP node;

在该步骤中,按用户的需要在PE1配置MEP节点,启用隧道层的LM功能并配置LM优先级等基本信息。PE1节点的OAM协议处理模块接收到配置命令后,按照OAM协议标准,组装LMM报文的PDU,并封装隧道标签和以太网二层头。如图2-1所示,LMM报文隧道标签的生存周期值TTL值为2,表示发送的LM报文起始于PE1节点,终止于P2节点。启用LM功能的同时,PE1的OAM性能处理模块开始按优先级分别统计经过该节点的业务报文和客户层OAM报文个数,即本端发送/接收报文数。OAM性能处理模块收到LMM后,则在报文里的对应字段打上与LM报文优先级一致的本端发送报文计数,向下一跳节点发送。 In this step, configure MEP nodes on PE1 according to user requirements, enable the LM function at the tunnel layer, and configure basic information such as LM priority. After receiving the configuration command, the OAM protocol processing module of the PE1 node assembles the PDU of the LMM message according to the OAM protocol standard, and encapsulates the tunnel label and the Ethernet layer 2 header. As shown in Figure 2-1, the TTL value of the tunnel label of an LMM packet is 2, which means that the sent LM packet starts from PE1 and ends at P2. When the LM function is enabled, the OAM performance processing module of PE1 starts counting the number of service packets and client layer OAM packets passing through the node according to priority, that is, the number of packets sent/received by the local end. After the OAM performance processing module receives the LMM, it will mark the corresponding field in the message with the count of the message sent by the local end consistent with the priority of the LM message, and send it to the next hop node.

步骤S202:对于中间点P1节点,交换芯片需要对报文隧道标签后面TTL进行减1; Step S202: For the intermediate point P1 node, the switch chip needs to subtract 1 from the TTL behind the packet tunnel label;

在该步骤中,非目的点的中间节点依据用户的配置可选择是否配置MIP节点。若P1节点配置了MIP并启用LM功能,P1节点的OAM性能处理模块,识别 收到的LMM报文并判断其隧道标签中TTL值是否为1。如图2-1所示,P1节点收到LMM报文的TTL为2,此LMM报文OAM性能处理模块将直接透传给交换芯片。若P1节点未配置MIP则省去OAM性能处理模块验证TTL值的过程,此时无论TTL为何值,均直接转发给交换芯片。交换芯片收到TTL等于2的LMM报文,将TTL减1,并按隧道原来的方向向下一跳节点转发。 In this step, the intermediate node that is not the destination point can choose whether to configure the MIP node according to the configuration of the user. If the P1 node has configured the MIP and enabled the LM function, the OAM performance processing module of the P1 node will identify the received LMM message and determine whether the TTL value in its tunnel label is 1. As shown in Figure 2-1, the TTL of the LMM message received by the P1 node is 2, and the OAM performance processing module of the LMM message will be transparently transmitted to the switch chip directly. If the P1 node is not configured with MIP, the process of verifying the TTL value by the OAM performance processing module is omitted. At this time, no matter what the TTL value is, it is directly forwarded to the switching chip. The switch chip receives the LMM message whose TTL is equal to 2, reduces the TTL by 1, and forwards it to the next hop node in the original direction of the tunnel.

步骤S203:P2节点的OAM性能处理模块识别出TTL=1且配置了MIP,则将与该LMM报文通过交换芯片上送给OAM协议处理模块进行处理; Step S203: The OAM performance processing module of the P2 node recognizes that TTL=1 and MIP is configured, then sends the LMM message to the OAM protocol processing module through the switching chip for processing;

在该步骤中,在P2配置了MIP节点并启用了LM功能后,P2的OAM性能处理模块开始按优先级分别统计经过该节点的业务报文和客户层OAM报文个数,即远端发送/接收报文数。P2节点的OAM性能处理模块识别收到的LMM报文,并读取其隧道标签中的TTL值。如图2-1所示,此时LMM报文的TTL值等于1。OAM性能处理模块根据LMM报文的优先级信息,找到优先级一致的接收counter计数,并打在LMM报文的保留字段里,最后转发给交换芯片。P2节点的交换芯片读取LMM报文的TTL值,最后将TTL为1的LMM报文转交给OAM协议处理模块。 In this step, after P2 configures the MIP node and enables the LM function, the OAM performance processing module of P2 starts to count the number of service packets and client layer OAM packets passing through the node according to priority, that is, the remote sending /Number of packets received. The OAM performance processing module of the P2 node identifies the received LMM message, and reads the TTL value in the tunnel label. As shown in Figure 2-1, the TTL value of the LMM packet is equal to 1. According to the priority information of the LMM message, the OAM performance processing module finds the received counter count with the same priority, and puts it in the reserved field of the LMM message, and finally forwards it to the switching chip. The switching chip of the P2 node reads the TTL value of the LMM message, and finally transfers the LMM message with a TTL of 1 to the OAM protocol processing module.

步骤S204:P2节点的OAM协议处理模块收到LMM报文,并按照相关标准回复LMR报文; Step S204: The OAM protocol processing module of the P2 node receives the LMM message, and replies to the LMR message according to relevant standards;

在该步骤中,P2节点的OAM协议处理模块收到LMM报文后,封装并回复一个与之相应的LMR报文(TTL值为255),通过交换芯片进行发送。P2节点的OAM性能处理模块收到来自于交换芯片转发的LMR报文,与LMM类似,需要在LMR报文里打上与LMR报文优先级一致的计数(即远端发送报文数)。 In this step, after receiving the LMM message, the OAM protocol processing module of the P2 node encapsulates and replies a corresponding LMR message (TTL value is 255), and sends it through the switching chip. The OAM performance processing module of the P2 node receives the LMR message forwarded from the switch chip. Similar to the LMM, it needs to add a count consistent with the priority of the LMR message (that is, the number of messages sent by the remote end) in the LMR message.

步骤S205:PE1节点收到LMR报文,OAM性能处理模块通过交换芯片上送给OAM协议处理模块进行处理; Step S205: The PE1 node receives the LMR message, and the OAM performance processing module sends it to the OAM protocol processing module through the switching chip for processing;

在该步骤中,PE1节点OAM性能处理模块收到LMR报文,需要在保留字段里 打上优先级一致的counter计数(即本端接收报文数),并通过交换芯片提取到PE1节点的OAM协议处理模块进行下一步处理。PE1节点的OAM协议处理模块收到LMR报文,通过读取LMR相应字段里保存的本端发送报文个数,远端接收报文个数,远端发送报文个数,本端接收报文个数四个counter计数,按照相关的标准计算出近/远端丢包数、近/远端丢包率。 In this step, the OAM performance processing module of the PE1 node receives the LMR message, and needs to mark the counter count with the same priority (that is, the number of messages received by the local end) in the reserved field, and extract the OAM protocol of the PE1 node through the switching chip The processing module performs the next step of processing. The OAM protocol processing module of the PE1 node receives the LMR message, reads the number of messages sent by the local end, the number of received messages from the remote end, the number of The number of texts is counted by four counters, and the number of near/far-end packet loss and near/far-end packet loss rate are calculated according to relevant standards.

步骤S206:在PE1节点读取所需的性能统计信息。 Step S206: Read required performance statistics information on the PE1 node.

值得注意的是,对于多段伪线的场景,如图2-3所示,该图为其中的报文流向图,只是LM报文的TTL值承载于伪线标签,其他实现过程与本实施例极为类似,本文不在赘述。并且本实施例中的目的点的中间节点为待测节点,发起端节点为PE1节点。 It is worth noting that for the multi-segment pseudowire scenario, as shown in Figure 2-3, this figure is the packet flow diagram, except that the TTL value of the LM packet is carried in the pseudowire label, and other implementation processes are the same as in this embodiment Very similar, this article will not repeat them. In addition, in this embodiment, the intermediate node of the destination point is the node to be tested, and the originating end node is the PE1 node.

实施例三 Embodiment Three

本实施例的链路报文丢包测量方法,主要用于介绍以太网CFM中的LM功能,如图3-1所示,该图为该方法中的报文流向图,为了便于说明,本文将前三个节点的机架MAC分别命名为MAC0,MAC1和MAC2。如图3-2所示,链路报文丢包测量方法包括以下步骤: The link packet loss measurement method of this embodiment is mainly used to introduce the LM function in Ethernet CFM, as shown in Figure 3-1, which is a packet flow diagram in this method. For the convenience of description, this article Name the rack MACs of the first three nodes as MAC0, MAC1, and MAC2, respectively. As shown in Figure 3-2, the link packet loss measurement method includes the following steps:

步骤S301:在PE1节点配置MEP节点,并启用LM功能,以及配置LM的目的MAC指定到目的MIP节点; Step S301: configure the MEP node on the PE1 node, enable the LM function, and configure the destination MAC of the LM to be assigned to the destination MIP node;

在该步骤中,按用户的需要在PE1配置MEP节点,启用LM到MIP节点,同时指定到MIP节点的MAC(即MAC2),配置LM优先级等基本信息。PE1节点的OAM协议处理模块接收到配置命令后,按照OAM协议标准,组装LMM报文的PDU和以太网二层头。如图3-1所示,LMM报文的目的MAC为MAC2,表示发送的LM报文起始于PE1节点,终止于P2节点。启用LM功能的同时,PE1的OAM性能处 理模块开始按优先级分别统计经过该节点的业务报文和客户层OAM报文个数,即本端发送/接收报文数。OAM性能处理模块收到LMM后,在LMM报文里的相应字段打上与LMM报文优先级一致的计数值,向下一跳节点发送。 In this step, configure the MEP node on PE1 according to the needs of the user, enable the LM to connect to the MIP node, specify the MAC (namely MAC2) to the MIP node, and configure basic information such as LM priority. After receiving the configuration command, the OAM protocol processing module of the PE1 node assembles the PDU and Ethernet layer 2 header of the LMM message according to the OAM protocol standard. As shown in Figure 3-1, the destination MAC address of the LMM packet is MAC2, which means that the sent LM packet starts from PE1 and ends at P2. When the LM function is enabled, the OAM performance processing module of PE1 starts counting the number of service packets and client layer OAM packets passing through the node according to priority, that is, the number of packets sent/received by the local end. After receiving the LMM, the OAM performance processing module stamps a count value consistent with the priority of the LMM message in the corresponding field in the LMM message, and sends it to the next-hop node.

步骤S302:对于中间点,交换芯片需要判断LMM报文的DMAC是否与本设备的MAC一致,如一致则提取,反之则转发; Step S302: For the intermediate point, the switch chip needs to judge whether the DMAC of the LMM message is consistent with the MAC of the device, and if it is consistent, it will be extracted, otherwise, it will be forwarded;

在该步骤中,非目的点的中间节点依据用户的配置可选择是否配置MIP节点。若P1节点配置了MIP并启用LM功能,P1节点的OAM性能处理模块,识别收到的LMM报文并判断其目的MAC是否为本机的机架MAC。如图3-1所示,P1节点收到LMM报文的DMAC为MAC2,非本端的机架MAC,此LMM报文OAM性能处理模块将直接透传给交换芯片。若P1未配置MIP节点则省去OAM性能处理模块验证目的MAC的过程,此时无论LMM的目的MAC为何值,均直接转发给交换芯片。交换芯片收到DMAC不等于本机机架MAC的LMM报文,将以VLAN域内广播的方式转发到下一跳节点。 In this step, the intermediate node that is not the destination point can choose whether to configure the MIP node according to the configuration of the user. If the P1 node is configured with MIP and the LM function is enabled, the OAM performance processing module of the P1 node identifies the received LMM message and judges whether its destination MAC is the rack MAC of the local machine. As shown in Figure 3-1, the DMAC of the P1 node receiving the LMM message is MAC2, which is not the rack MAC of the local end. The OAM performance processing module of the LMM message will be transparently transmitted to the switch chip directly. If P1 is not configured with a MIP node, the process of verifying the destination MAC by the OAM performance processing module is omitted. At this time, no matter what the destination MAC value of the LMM is, it is directly forwarded to the switching chip. When the switch chip receives the LMM message whose DMAC is not equal to the MAC of the local frame, it will forward it to the next hop node by broadcasting in the VLAN domain.

步骤S303:P2节点的OAM性能处理模块识别出DMAC会与本设备的MAC一致且配置了MIP,则将与该LMM报文通过交换芯片上送给OAM协议处理模块进行处理; Step S303: The OAM performance processing module of the P2 node recognizes that the DMAC will be consistent with the MAC of the device and that the MIP is configured, and then sends the LMM message to the OAM protocol processing module through the switching chip for processing;

在该步骤中,在P2配置了MIP节点并启用了LM功能后,P2的OAM性能处理模块开始按优先级分别统计经过该节点的业务报文和客户层OAM报文个数,即远端发送/接收报文数。P2节点的OAM性能处理模块识别收到的LMM报文,并读取报文的目的MAC。如图3-1所示,此时LMM报文的目的MAC等于P2节点的机架MAC。OAM性能处理模块在LMM报文的保留字段打上与报文优先级一致的计数(即远端接收报文数)(该处理也可将计数值放在报文cookie里进行传递),最后转发给交换芯片。P2节点的交换芯片读取LMM报文的目的MAC,最后将目 的MAC等于MAC2的LMM报文转交给OAM协议处理模块。 In this step, after P2 configures the MIP node and enables the LM function, the OAM performance processing module of P2 starts to count the number of service packets and client layer OAM packets passing through the node according to priority, that is, the remote sending /Number of packets received. The OAM performance processing module of the P2 node identifies the received LMM message, and reads the destination MAC of the message. As shown in Figure 3-1, the destination MAC address of the LMM packet is equal to the rack MAC address of the P2 node. The OAM performance processing module marks the count consistent with the message priority in the reserved field of the LMM message (that is, the number of received messages at the far end) (this processing can also put the count value in the message cookie for transmission), and finally forwards to Exchange chips. The switching chip of the P2 node reads the destination MAC of the LMM message, and finally forwards the LMM message whose destination MAC is equal to MAC2 to the OAM protocol processing module.

步骤S304:P2节点的OAM协议处理模块收到LMM报文,并按照相关标准回复LMR报文; Step S304: The OAM protocol processing module of the P2 node receives the LMM message, and replies to the LMR message according to relevant standards;

在该步骤中,P2节点的OAM协议处理模块收到LMM报文后,组装并回复一个与之相应的LMR报文,发送到交换芯片。回复的LMR报文,其目的MAC等于LMM报文的SMAC,如图3-1所示,LMR报文的DMAC等于MAC0。P2节点的OAM性能处理模块收到来自于交换芯片转发的LMR报文,与LMM类似,同样在LMR的相应字段打上与LMR报文优先级一致的计数(即远端发送报文数)。 In this step, after receiving the LMM message, the OAM protocol processing module of the P2 node assembles and replies a corresponding LMR message, and sends it to the switching chip. The destination MAC address of the returned LMR message is equal to the SMAC of the LMM message. As shown in Figure 3-1, the DMAC of the LMR message is equal to MAC0. The OAM performance processing module of the P2 node receives the LMR message forwarded from the switch chip, similar to the LMM, and also marks the count consistent with the priority of the LMR message in the corresponding field of the LMR (that is, the number of messages sent by the remote end).

步骤S305:PE1节点收到LMR报文,OAM性能处理模块通过交换芯片上送给OAM协议处理模块进行处理; Step S305: The PE1 node receives the LMR message, and the OAM performance processing module sends it to the OAM protocol processing module through the switching chip for processing;

在该步骤中,PE1节点OAM性能处理模块收到LMR报文,需要在报文的保留字段里打上本端接收报文计数并通过交换芯片将报文提取到OAM协议处理模块进行下一步处理。PE1节点的OAM协议处理模块收到LMR报文,通过读取LMR相应字段里保存的本端发送报文个数,远端接收报文个数,远端发送报文个数,本端接收报文个数四个counter计数,按照相关的标准计算出近/远端丢包数、近/远端丢包率。 In this step, when the PE1 node OAM performance processing module receives the LMR message, it needs to mark the local received message count in the reserved field of the message and extract the message to the OAM protocol processing module through the switching chip for further processing. The OAM protocol processing module of the PE1 node receives the LMR message, reads the number of messages sent by the local end, the number of received messages from the remote end, the number of The number of texts is counted by four counters, and the number of near/far-end packet loss and near/far-end packet loss rate are calculated according to relevant standards.

步骤S306:在PE1节点读取所需的性能统计信息。 Step S306: Read required performance statistics information on the PE1 node.

实施例四 Embodiment Four

本实施例提供一种目标节点400,如图4所示,包括接收模块401、判断模块402、统计模块403和计算模块404:接收模块401用于接收发起端节点发送的丢包计算信息LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息;判断模块402用于根据定位信息判断自身是否为待测节点;统计 模块403用于如果是待测节点,则统计接收到的发起端节点发送的报文个数;计算模块404用于根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包。 This embodiment provides a target node 400, as shown in Figure 4, including a receiving module 401, a judging module 402, a statistical module 403, and a calculating module 404: the receiving module 401 is used to receive the packet loss calculation information LMM report sent by the initiator node The LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested; the judging module 402 is used to judge whether it is a node to be tested according to the location information; the statistics module 403 is used to if it is a node to be tested, Then count the number of packets sent by the initiator node received; the calculation module 404 is used to obtain the link message loss according to the number of packets sent by the initiator node received and the number of packets sent by the initiator node Bag.

本实施例还提供一种目标节点400,如图5所示,判断模块402包括位置判断子模块4021和相对位置判断子模块4022:待测节点的定位信息包括:待测节点的位置信息或待测节点相对发起端节点的相对位置信息;位置判断子模块4021用于判断自身的位置信息是否与待测节点的位置信息相同,如相同,则是待测节点;如果不同,则不是待测节点;或相对位置判断子模块4022用于判断待测节点相对发起端节点的相对位置信息是否为相邻,如是相邻,则是待测节点;如果不相邻,则不是待测节点。 This embodiment also provides a target node 400. As shown in FIG. 5 , the judging module 402 includes a position judging submodule 4021 and a relative position judging submodule 4022: the location information of the node to be tested includes: the location information of the node to be tested or The relative position information of the measured node relative to the initiator node; the position judgment submodule 4021 is used to judge whether the position information of itself is the same as the position information of the node to be tested, if the same, it is the node to be tested; if it is different, it is not the node to be tested ; or the relative position judgment sub-module 4022 is used to judge whether the relative position information of the node to be tested relative to the initiator node is adjacent, if it is adjacent, it is the node to be tested; if it is not adjacent, it is not the node to be tested.

具体的,当链路为MPLS-TP网络链路时,待测节点相对发起端节点的相对位置信息包括:待测节点与发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;当链路为CFM网络链路时,待测节点的位置信息可以是待测节点的MAC地址。 Specifically, when the link is an MPLS-TP network link, the relative position information of the node to be tested relative to the initiating node includes: the lifetime value in the tunnel label or the value in the pseudowire label that differs between the node to be tested and the initiating node A lifetime value; when the link is a CFM network link, the location information of the node to be tested may be the MAC address of the node to be tested.

本实施例还提供一种目标节点400,如图6所示,还包括转发模块405,转发模块405用于根据定位信息判断自身不是待测节点,则直接将LMM报文转发给下一跳节点。 This embodiment also provides a target node 400. As shown in FIG. 6, it also includes a forwarding module 405. The forwarding module 405 is used to judge that it is not the node to be tested according to the positioning information, and then directly forward the LMM message to the next hop node. .

进一步,计算模块404还用于:通过接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数计算出链路报文丢包;或将接收到的发起端节点发送的报文个数和发起端节点发送的报文个数通过丢包回复信息LMR报文发送给发起端节点,以使发起端节点根据上述各参数计算出链路报文丢包。 Further, the calculation module 404 is also used to: calculate the packet loss of the link according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node; The number of packets sent and the number of packets sent by the initiating node are sent to the initiating node through the packet loss response information LMR message, so that the initiating node calculates the packet loss of the link according to the above parameters.

本实施例还提供一种目标节点400,如图7所示,还包括回复模块406,回复模块406用于在计算模块404根据接收到的发起端节点发送的报文个数、以 及发起端节点发送的报文个数得到链路报文丢包之后,向发起端节点发送丢包回复信息LMR报文,LMR报文包括目标节点400发送给发起端节点的报文个数,以使发起端节点根据目标节点400发送给发起端节点的报文个数、以及发起端节点接收到目标节点400发送给发起端节点的报文个数得到链路报文丢包。 This embodiment also provides a target node 400. As shown in FIG. 7 , it also includes a reply module 406. The reply module 406 is used in the calculation module 404 according to the number of messages sent by the initiator node received and the number of messages sent by the initiator node. After the packet loss of the link packet is obtained by the number of sent packets, send a packet loss response information LMR packet to the initiator node, and the LMR packet includes the number of packets that the target node 400 sends to the initiator node, so that the initiator The node obtains link packet loss according to the number of packets sent by the target node 400 to the initiator node and the number of packets received by the initiator node from the target node 400 to the initiator node.

本实施例还提供一种发起端节点500,如图8所示,包括发送模块501:发送模块501用于向目标节点400发送丢包计算信息LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息,以使目标节点400根据发起端节点发送的报文个数、以及目标节点400接收到发起端节点发送给目标节点400的报文个数得到链路报文丢包。 This embodiment also provides an initiator node 500, as shown in FIG. 8 , including a sending module 501: the sending module 501 is used to send a packet loss calculation information LMM message to the target node 400, and the LMM message includes the information sent by the initiator node. The number of messages and the positioning information of the node to be tested, so that the target node 400 obtains the link according to the number of messages sent by the initiator node and the number of messages sent by the target node 400 to the target node 400 received by the initiator node. Packets are lost.

本实施例还提供一种链路报文丢包测量系统,如图9所示,包括发起端节点500和目标节点400: This embodiment also provides a system for measuring link packet loss, as shown in FIG. 9 , including an initiator node 500 and a target node 400:

发起端节点500用于向目标节点400发送丢包计算信息LMM报文,LMM报文包括发起端节点500发送的报文个数和待测节点的定位信息;目标节点400用于接收发起端节点500发送的丢包计算信息LMM报文,根据定位信息判断自身是否为待测节点;如果是待测节点,则统计接收到的发起端节点500发送的报文个数;目标节点400还用于根据接收到的发起端节点500发送的报文个数、以及发起端节点500发送的报文个数得到链路报文丢包。 The initiator node 500 is used to send the packet loss calculation information LMM message to the target node 400, and the LMM message includes the number of messages sent by the initiator node 500 and the location information of the node to be tested; the target node 400 is used to receive the information of the initiator node The packet loss calculation information LMM message sent by 500 judges whether itself is the node to be tested according to the positioning information; if it is the node to be tested, then count the number of messages sent by the initiator node 500 received; the target node 400 is also used for Link packet loss is obtained according to the received number of packets sent by the initiating node 500 and the number of packets sent by the initiating node 500 .

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。 Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the above program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.

以上实施例仅用以说明本发明的技术方案而非限制,仅仅参照较佳实施例对本发明进行了详细说明。本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。 The above embodiments are only used to illustrate the technical solutions of the present invention rather than limit them, and the present invention is described in detail with reference to preferred embodiments. Those skilled in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and all should be covered by the claims of the present invention.

Claims (16)

1.一种链路报文丢包测量方法,其特征在于,包括:1. A method for measuring link packet loss, characterized in that, comprising: 目标节点接收发起端节点发送的丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The target node receives the packet loss calculation information LMM message sent by the initiator node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested; 所述目标节点根据所述定位信息判断自身是否为所述待测节点;The target node judges whether it is the node to be tested according to the positioning information; 如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;If it is the node to be tested, count the number of received messages sent by the initiator node; 所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node obtains link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node. 2.如权利要求1所述的链路报文丢包测量方法,其特征在于,所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;所述目标节点根据所述定位信息判断自身是否为所述待测节点包括:2. The method for measuring link packet loss according to claim 1, wherein the location information of the node to be tested comprises: the position information of the node to be tested or the node to be tested relative to the initiator The relative position information of terminal node; Described target node judges whether oneself is described node under test according to described positioning information and comprises: 所述目标节点判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则是所述待测节点;如果不同,则不是所述待测节点;The target node judges whether its own location information is the same as the location information of the node to be tested, if the same, it is the node to be tested; if different, it is not the node to be tested; or 所述目标节点判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则是所述待测节点;如果不相同,则不是所述待测节点。The target node judges whether its relative position information relative to the initiator node is the same as the relative position information of the node to be tested, if the same, it is the node to be tested; if not, it is not the node to be tested node. 3.如权利要求2所述的链路报文丢包测量方法,其特征在于,3. link packet loss measurement method as claimed in claim 2, is characterized in that, 当所述链路为MPLS-TP网络链路时,所述待测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;When the link is an MPLS-TP network link, the relative position information of the node to be tested relative to the initiating node includes: the lifetime of the tunnel label difference between the node to be tested and the initiating node value or the lifetime value in the pseudowire tag; 当所述链路为CFM网络链路时,所述待测节点的位置信息可以是所述待测节点的MAC地址。When the link is a CFM network link, the location information of the node to be tested may be a MAC address of the node to be tested. 4.如权利要求1所述的链路报文丢包测量方法,其特征在于,还包括所述目标节点根据所述定位信息判断自身不是所述待测节点,则直接将所述LMM报文转发给下一跳节点。4. The method for measuring link packet loss as claimed in claim 1, further comprising that the target node judges that itself is not the node to be tested according to the positioning information, and then directly sends the LMM message forwarded to the next hop node. 5.如权利要求1-4所述的链路报文丢包测量方法,其特征在于,所述根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算链路报文丢包的方式包括:5. The method for measuring link packet loss according to claim 1-4, wherein the number of packets sent by the initiator node and the number of packets sent by the initiator node received are characterized in that: The methods for calculating the packet loss of link packets by the number of packets include: 所述目标节点自身通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包;The target node itself calculates the packet loss of the link message through the received number of packets sent by the initiator node and the number of packets sent by the initiator node; or 所述目标节点将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息LMR报文发送给所述发起端节点,以使所述发起端节点根据上述各参数计算出链路报文丢包。The target node sends the received number of packets sent by the initiator node and the number of packets sent by the initiator node to the initiator node through a packet loss response information LMR message, so that the The initiating end node calculates the link packet loss according to the above parameters. 6.如权利要求1-4所述的链路报文丢包测量方法,其特征在于,在所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,还包括:所述目标节点向所述发起端节点发送丢包回复信息LMR报文,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。6. The method for measuring link packet loss as claimed in claim 1-4, wherein, at the target node, according to the number of packets sent by the initiator node received and the initiator node After the number of messages sent by the node is obtained after the packet loss of the link message, it also includes: the target node sends a packet loss response information LMR message to the initiator node, and the LMR message includes the message sent by the target node to The number of messages of the initiator node, so that the initiator node sends the number of messages sent to the initiator node by the target node and the number of messages sent by the target node to the initiator node. The number of packets of the initiating end node is obtained by link packet loss. 7.一种链路报文丢包测量方法,其特征在于,包括:7. A method for measuring link packet loss, characterized in that, comprising: 发起端节点向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文丢包。The initiator node sends a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested, so that the target node The number of packets sent by the end node and the number of packets received by the target node from the initiating end node to the target node are obtained to obtain link packet loss. 8.一种链路报文丢包测量方法,其特征在于,包括:8. A method for measuring link packet loss, characterized in that, comprising: 发起端节点向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The initiator node sends a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the location information of the node to be tested; 所述目标节点接收发起端节点发送的丢包计算信息LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The target node receives the packet loss calculation information LMM message sent by the initiator node, and judges whether it is the node to be tested according to the positioning information; if it is the node to be tested, then counts the received initiator The number of messages sent by the node; 所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node obtains link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node. 9.一种目标节点,其特征在于,包括接收模块、判断模块、统计模块和计算模块:9. A target node, characterized in that it includes a receiving module, a judging module, a statistical module and a computing module: 所述接收模块用于接收发起端节点发送的丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The receiving module is used to receive the packet loss calculation information LMM message sent by the initiator node, and the LMM message includes the number of messages sent by the initiator node and the positioning information of the node to be tested; 所述判断模块用于根据所述定位信息判断自身是否为所述待测节点;The judging module is used to judge whether it is the node to be tested according to the positioning information; 所述统计模块用于如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The statistical module is used to count the number of received messages sent by the initiator node if it is the node to be tested; 所述计算模块用于根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The calculation module is configured to obtain link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node. 10.如权利要求9所述的目标节点,其特征在于,所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;所述判断模块包括位置判断子模块和相对位置判断子模块:10. The target node according to claim 9, wherein the positioning information of the node to be tested comprises: the position information of the node to be tested or the relative position information of the node to be tested relative to the initiator node ; The judgment module includes a position judgment submodule and a relative position judgment submodule: 所述位置判断子模块用于判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则是所述待测节点;如果不同,则不是所述待测节点;The location judging submodule is used to judge whether its own location information is the same as the location information of the node to be tested. If it is the same, it is the node to be tested; if it is different, it is not the node to be tested; or 所述相对位置判断子模块用于判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则是所述待测节点;如果不相同,则不是所述待测节点。The relative position judging submodule is used to judge whether the relative position information of itself relative to the initiator node is the same as the relative position information of the node to be tested, if the same, it is the node to be tested; if not, then Not the node under test. 11.如权利要求10所述的目标节点,其特征在于,11. The target node of claim 10, wherein 当所述链路为MPLS-TP网络链路时,所述待测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;When the link is an MPLS-TP network link, the relative position information of the node to be tested relative to the initiating node includes: the lifetime of the tunnel label difference between the node to be tested and the initiating node value or the lifetime value in the pseudowire tag; 当所述链路为CFM网络链路时,所述待测节点的位置信息可以是所述待测节点的MAC地址。When the link is a CFM network link, the location information of the node to be tested may be a MAC address of the node to be tested. 12.如权利要求9所述的目标节点,其特征在于,还包括转发模块,所述转发模块用于根据所述定位信息判断自身不是所述待测节点,则直接将所述LMM报文转发给下一跳节点。12. The target node according to claim 9, further comprising a forwarding module, the forwarding module is used to judge that it is not the node to be tested according to the positioning information, and then directly forwards the LMM message to the next hop node. 13.如权利要求9-12所述的目标节点,其特征在于,所述计算模块还用于:13. The target node according to claim 9-12, wherein the calculation module is further used for: 通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包;calculating link packet loss by the number of received packets sent by the initiating node and the number of packets sent by the initiating node; or 将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息LMR报文发送给所述发起端节点,以使所述发起端节点根据上述各参数计算出链路报文丢包。Sending the received number of packets sent by the initiator node and the number of packets sent by the initiator node to the initiator node through a packet loss response information LMR message, so that the initiator node Calculate link packet loss based on the above parameters. 14.如权利要求9-12所述的目标节点,其特征在于,还包括回复模块,所述回复模块用于在所述计算模块根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,向所述发起端节点发送丢包回复信息LMR报文,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。14. The target node according to claim 9-12, further comprising a reply module, the reply module is used to send the message number, And after the packet loss of the link packet is obtained from the number of packets sent by the initiator node, send a packet loss reply information LMR message to the initiator node, and the LMR message includes the message sent by the target node to the the number of packets of the initiator node, so that the initiator node sends the number of packets sent to the initiator node by the target node and the number of packets received by the initiator node from the target node to the The number of packets of the initiating end node is obtained by link packet loss. 15.一种发起端节点,其特征在于,包括发送模块:15. An initiating node, comprising a sending module: 所述发送模块用于向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文丢包。The sending module is used to send a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the positioning information of the node to be tested, so that the target node can be used according to The number of packets sent by the initiating node and the number of packets received by the target node from the initiating node to the target node are obtained to obtain link packet loss. 16.一种链路报文丢包测量系统,其特征在于,包括发起端节点和目标节点:16. A link packet loss measurement system, characterized in that it includes an originating end node and a target node: 所述发起端节点用于向所述目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The initiator node is used to send a packet loss calculation information LMM message to the target node, and the LMM message includes the number of messages sent by the initiator node and the positioning information of the node to be tested; 所述目标节点用于接收发起端节点发送的丢包计算信息LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The target node is used to receive the packet loss calculation information LMM message sent by the initiator node, and judge whether it is the node to be tested according to the positioning information; if it is the node to be tested, then count the received nodes. The number of packets sent by the originating end node; 所述目标节点还用于根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node is further configured to obtain link packet loss according to the received number of packets sent by the initiating node and the number of packets sent by the initiating node.
CN201510446685.7A 2015-07-27 2015-07-27 Link message packet loss measurement method and system, target node and initiator node Pending CN106411625A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510446685.7A CN106411625A (en) 2015-07-27 2015-07-27 Link message packet loss measurement method and system, target node and initiator node
PCT/CN2016/076504 WO2016177120A1 (en) 2015-07-27 2016-03-16 Measurement method and system for packet loss of link packet, target node and initiating-end node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510446685.7A CN106411625A (en) 2015-07-27 2015-07-27 Link message packet loss measurement method and system, target node and initiator node

Publications (1)

Publication Number Publication Date
CN106411625A true CN106411625A (en) 2017-02-15

Family

ID=57218167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510446685.7A Pending CN106411625A (en) 2015-07-27 2015-07-27 Link message packet loss measurement method and system, target node and initiator node

Country Status (2)

Country Link
CN (1) CN106411625A (en)
WO (1) WO2016177120A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107086943A (en) * 2017-05-24 2017-08-22 深圳市乃斯网络科技有限公司 The computational methods and system of packet loss in network linking
CN109981414A (en) * 2019-03-29 2019-07-05 烽火通信科技股份有限公司 The acquisition methods of number of dropped packets between mpls network node
CN110290017A (en) * 2019-07-26 2019-09-27 新华三大数据技术有限公司 Malfunctioning node localization method and PE equipment
CN113347087A (en) * 2021-06-11 2021-09-03 北京连山科技股份有限公司 Method for improving multilink data transmission correctness
CN113691421A (en) * 2021-08-27 2021-11-23 烽火通信科技股份有限公司 Message generation method and device
CN113872827A (en) * 2021-09-10 2021-12-31 苏州浪潮智能科技有限公司 Method and device for analyzing snakelike test failure of switch and storage medium
CN114567574A (en) * 2022-03-01 2022-05-31 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789437B (en) * 2016-12-29 2020-07-28 瑞斯康达科技发展股份有限公司 Message processing method, forwarding method, related device and packet loss rate measuring method
CN114465897A (en) * 2020-11-06 2022-05-10 中国电信股份有限公司 Method, device and system for monitoring data packets in service flow
CN115550224A (en) * 2021-06-29 2022-12-30 中国电信股份有限公司 Packet loss analysis system, method, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020698A1 (en) * 2008-07-23 2010-01-28 Fujitsu Limited Communication apparatus and OAM frame transmission method
CN102217236A (en) * 2011-05-10 2011-10-12 华为技术有限公司 Method and device for detecting link loss ratio
CN102223263A (en) * 2011-06-09 2011-10-19 中兴通讯股份有限公司 Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN103546303A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Lost frame measuring method and system
CN104348678A (en) * 2013-08-05 2015-02-11 华为技术有限公司 Method, device and system for measuring performance of Ethernet

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724086B (en) * 2012-06-21 2018-05-04 中兴通讯股份有限公司 Detect the method and device of link quality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020698A1 (en) * 2008-07-23 2010-01-28 Fujitsu Limited Communication apparatus and OAM frame transmission method
CN102217236A (en) * 2011-05-10 2011-10-12 华为技术有限公司 Method and device for detecting link loss ratio
CN102223263A (en) * 2011-06-09 2011-10-19 中兴通讯股份有限公司 Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN103546303A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Lost frame measuring method and system
CN104348678A (en) * 2013-08-05 2015-02-11 华为技术有限公司 Method, device and system for measuring performance of Ethernet

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107086943A (en) * 2017-05-24 2017-08-22 深圳市乃斯网络科技有限公司 The computational methods and system of packet loss in network linking
CN109981414A (en) * 2019-03-29 2019-07-05 烽火通信科技股份有限公司 The acquisition methods of number of dropped packets between mpls network node
CN110290017A (en) * 2019-07-26 2019-09-27 新华三大数据技术有限公司 Malfunctioning node localization method and PE equipment
CN113347087A (en) * 2021-06-11 2021-09-03 北京连山科技股份有限公司 Method for improving multilink data transmission correctness
CN113347087B (en) * 2021-06-11 2022-01-18 北京连山科技股份有限公司 Method for improving multilink data transmission correctness
CN113691421A (en) * 2021-08-27 2021-11-23 烽火通信科技股份有限公司 Message generation method and device
CN113691421B (en) * 2021-08-27 2022-08-02 烽火通信科技股份有限公司 Message generation method and device
CN113872827A (en) * 2021-09-10 2021-12-31 苏州浪潮智能科技有限公司 Method and device for analyzing snakelike test failure of switch and storage medium
CN114567574A (en) * 2022-03-01 2022-05-31 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control
CN114567574B (en) * 2022-03-01 2023-11-10 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control

Also Published As

Publication number Publication date
WO2016177120A1 (en) 2016-11-10

Similar Documents

Publication Publication Date Title
CN106411625A (en) Link message packet loss measurement method and system, target node and initiator node
CN111052668B (en) Residence time measurement for optimizing network services
CN113079091B (en) Active stream following detection method, network equipment and communication system
JP5462954B2 (en) Packet loss detection method and apparatus, and router
EP3278503B1 (en) Method of packet marking for flow analytics
CN102437931B (en) Detection method and device of service path
CN101536411B (en) Ethernet OAM at intrmediate nodes in a PBT network
CN101800679B (en) Method and system for packet loss detection
US20070064611A1 (en) Method for monitoring packet loss ratio
WO2021093692A1 (en) Network quality measurement method and device, server, and computer readable medium
CN102984018B (en) Ethernet loss packet test method, equipment and system
US12021741B2 (en) Packet measurement method, device, and system
US9124529B1 (en) Methods and apparatus for assessing the quality of a data path including both layer-2 and layer-3 devices
WO2016184245A1 (en) Tunnel packet loss detecting method, apparatus and network communication device
WO2022078293A1 (en) Method for detecting multicast service flow and related apparatus
CN111934936B (en) Network state detection method and device, electronic equipment and storage medium
CN101729391A (en) Method, node and system for acquiring link aggregation group information
US20150036510A1 (en) Method and device for measuring ethernet performance
CN110166311B (en) Method, equipment and network system for measuring network performance
KR20140117993A (en) Mpls-tp network and method for link failure trace
CN104683187A (en) A method for realizing the end-to-end measurement of the router's Layer 2 VPN service physical interface
CN105812198B (en) Method and device for monitoring end-to-end of bridge network
WO2014008809A1 (en) Frame loss detection method and system
CN110519103A (en) A kind of Fault Locating Method of heterogeneous network, device and terminal
CN102752169B (en) Transmitting, monitoring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200624

Address after: 518057 Zhongxing building, A3-01, A3-02, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong

Applicant after: Shenzhen ZTE Technical Service Co.,Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Applicant before: ZTE Corp.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication