WO2016177120A1 - Measurement method and system for packet loss of link packet, target node and initiating-end node - Google Patents

Measurement method and system for packet loss of link packet, target node and initiating-end node Download PDF

Info

Publication number
WO2016177120A1
WO2016177120A1 PCT/CN2016/076504 CN2016076504W WO2016177120A1 WO 2016177120 A1 WO2016177120 A1 WO 2016177120A1 CN 2016076504 W CN2016076504 W CN 2016076504W WO 2016177120 A1 WO2016177120 A1 WO 2016177120A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
tested
target
packets sent
packet
Prior art date
Application number
PCT/CN2016/076504
Other languages
French (fr)
Chinese (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 WO2016177120A1 publication Critical patent/WO2016177120A1/en

Links

Images

Classifications

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

Definitions

  • the present application relates to, but is not limited to, the field of communications, and in particular, to a link packet loss measurement method, system, target node, and initiator node.
  • OAM Operation, Administration, and Maintenance
  • the operation mainly completes the analysis, prediction, planning and configuration of daily network and business; the maintenance is mainly the daily operation activities of 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.
  • the LM function of the OAM (that is, the frame loss measurement function) is used to count the difference between the number of transmission and reception service frames of the ingress and egress of the transport-to-point T-MPLS (Transport Multi-Protocol Label Switching) to calculate the number of link loss and Lost bags and so on.
  • TMS Transmission Multi-Protocol Label Switching
  • TMC Transport Multi-Protocol Label Switching
  • MPLS-TP OAM BHH
  • TMS Transmission Multi-Protocol Label Switching
  • CFM Connectivity Fault Management
  • the LM functions of the two OAMs provide an end-to-end (PE to PE node) packet loss measurement.
  • the PE cannot provide link loss measurement for any P node. There is a certain amount of network maintenance work. defect.
  • the embodiment of the invention provides a link packet loss measurement method and system, a target node, and an initiator node, which can solve the problem that only the end-to-end link packet loss measurement can be performed, and the end-to-end intermediate node cannot be performed. Link packet loss measurement problem.
  • the embodiment of the invention provides a link packet loss measurement method, including:
  • the target node receives the packet loss calculation information (LMM) message sent by the initiating end node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
  • LMM packet loss calculation information
  • the target node is the node to be tested, the number of received packets sent by the originating node is counted;
  • the target node obtains the link packet loss according to the received number of the packets sent by the originating node and the number of the packets sent by the originating node.
  • the location information of the node to be tested includes: location information of the node to be tested or relative location information of the node to be tested relative to the initiator node;
  • Determining, by the target node, whether the node is the node to be tested according to the location information includes:
  • the relative location information of the node to be tested relative to the initiator node includes: the node to be tested and the initiator The lifetime value in the tunnel label of the phase difference of the end node or the lifetime period value in the pseudowire label;
  • the location information of the node to be tested may be the MAC address of the node to be tested.
  • the method further includes: the target node determining, according to the location information, that the node is not the node to be tested, and directly forwarding the LMM packet to the next hop node.
  • the method for obtaining a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node includes: :
  • the target node itself calculates the packet loss of the link packet by using the number of the packets sent by the originating end node and the number of the packets sent by the originating end node;
  • the initiator node is configured to calculate a link packet loss according to the foregoing parameters.
  • the target node obtains link packet loss according to the number of received packets sent by the originating node and the number of packets sent by the originating node.
  • the method further includes: the target node sending a packet loss reply information (LMR) message to the originating node, where the LMR message includes a packet sent by the target node to the originating node a number, such that the number of packets sent by the originating node to the originating node according to the target node, and the number of packets sent by the originating node to the originating node by the originating node The number gets the packet packet loss.
  • LMR packet loss reply information
  • the embodiment of the invention further provides a link packet loss measurement method, including:
  • the initiating end node sends a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested, so that the target node according to the The number of the packets sent by the initiating end node and the number of packets sent by the target node to the target node by the originating node are lost in the link packet.
  • LMM packet loss calculation information
  • the embodiment of the invention further provides a link packet loss measurement method, including:
  • the initiating end node sends a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
  • LMM packet loss calculation information
  • the target node receives the LMM message sent by the initiating end node, and determines whether it is the node to be tested according to the positioning information; if the target node is the node to be tested, the receiving end is counted Number of packets sent by the node;
  • the target node obtains the link packet loss according to the received number of the packets sent by the originating node and the number of the packets sent by the originating node.
  • An embodiment of the present invention further provides a target node, including a receiving module, a determining module, a statistics module, and a computing module;
  • the receiving module is configured to: receive a packet loss calculation information (LMM) packet sent by the initiating end node, where the LMM packet includes the number of packets sent by the initiating end node and the positioning information of the node to be tested. ;
  • LMM packet loss calculation information
  • the determining module is configured to: determine, according to the positioning information, whether the node is the node to be tested;
  • the statistic module is configured to: if the determining module determines that the target node is the node to be tested, the number of received packets sent by the originating end node is counted;
  • the calculating module is configured to: obtain a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node.
  • the location information of the node to be tested includes: location information of the node to be tested or relative location information of the node to be tested relative to the initiator node;
  • the determining module includes a position determining sub-module and a relative position determining sub-module;
  • the position determining sub-module is configured to: determine whether the location information of the same is the same as the location information of the node to be tested, and if yes, determine that the target node is the node to be tested; if not, determine the The target node is not the node to be tested;
  • the relative position determining sub-module is configured to: determine whether the relative position information of the initiating end node is the same as the relative position information of the node to be tested, and if the same, determine that the target node is the to-be-tested a node; if not, determining that the target node is not the node to be tested.
  • the waiting The relative position information of the measured node relative to the originating end node includes: a lifetime period value in the tunnel label of the difference between the node to be tested and the originating end node or a lifetime period value in the pseudowire label;
  • the location information of the node to be tested may be the MAC address of the node to be tested.
  • the target node further includes a forwarding module, and the forwarding module is configured to: directly determine, when the determining module determines that the node is not the node to be tested according to the positioning information, The LMM packet is forwarded to the next hop node.
  • the computing module is configured to:
  • the target node further includes a reply module, and the reply module is configured to: in the computing module, according to the received number of the sent packets of the originating end node, and After the number of the packets sent by the initiating end node is lost, the packet is sent to the initiating end node, and the LMR packet is sent to the initiating end node, where the LMR packet is sent by the target node.
  • the number of the packets of the initiating end node so that the initiating end node sends the number of packets sent by the target node to the initiating end node, and the initiating end node receives the target node and sends the packet to the The number of packets of the initiating end node is lost in the link packet.
  • An embodiment of the present invention further provides an originating end node, including a sending module,
  • the sending module is configured to: send a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of packets sent by the initiator node and the location information of the node to be tested, And causing the target node to obtain a link packet loss according to the number of the packets sent by the originating node and the number of packets sent by the target node to the target node by the originating node.
  • LMM packet loss calculation information
  • the embodiment of the invention further provides a link packet loss measurement system, including an initiator node and a destination Standard node
  • the initiating end node is configured to: send a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of packets sent by the initiating end node and the location of the node to be tested. information;
  • LMM packet loss calculation information
  • the target node is configured to: receive an LMM packet sent by the initiating end node, determine, according to the positioning information, whether the node is the node to be tested, and if the node to be tested, collect the received end Number of packets sent by the node;
  • the target node is further configured to: obtain a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are executed to implement the link packet loss measurement method applied to a target node.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are implemented to implement the link packet loss measurement method applied to an originating end node.
  • the link packet loss measurement method and system, the target node, and the initiator node are provided by the embodiment of the present invention.
  • the target node receives the LMM packet sent by the initiator node, and the LMM packet includes the number of packets sent by the initiator node.
  • the location information of the node to be tested; the target node determines whether it is the node to be tested according to the location information; if it is the node to be tested, it counts the number of packets sent by the initiator node; the target node is based on the received initiator node.
  • the number of sent packets and the number of packets sent by the initiating end node are lost.
  • the positioning information of the node to be tested can be used to locate the position of the intermediate node between the end and the end.
  • the LMM packet defined in the current OAM standards can be used to perform link packet loss measurement.
  • the link packet measurement of the end-to-end intermediate node is implemented, which is a supplement to the relevant standards, and also provides a good means for link loss measurement measurement for practical applications and engineering maintenance.
  • FIG. 1 is a schematic flowchart of a link packet loss measurement method according to Embodiment 1 of the present invention.
  • 2-1 is a schematic diagram 1 of packet flow direction in a link packet loss measurement method according to Embodiment 2 of the present invention
  • FIG. 2-3 is a schematic diagram 2 of packet flow direction in a link packet loss measurement method according to Embodiment 2 of the present invention.
  • 3-1 is a schematic diagram of packet flow in a link packet loss measurement method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram 1 of a target node according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram 2 of a target node according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram 3 of a target node according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram 4 of a target node according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic structural diagram of an originating end node according to Embodiment 4 of the present invention.
  • FIG. 9 is a schematic structural diagram of a link packet loss measurement system according to Embodiment 4 of the present invention.
  • the link packet loss measurement method in this embodiment includes the following steps:
  • Step S101 The target node receives the LMS (Loss Measurement Message) message sent by the initiating end node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested.
  • LMS Loss Measurement Message
  • the target node here should be understood as any node in the middle of the end, Of course, these nodes have a Maintenance Intermediate Point (MIP) and enable Lost Measurement (LM) function. Of course, instead of measuring the node, you do not need to configure the MIP.
  • MIP Maintenance Intermediate Point
  • LM Lost Measurement
  • the originator here refers to the first end of a link on which two pieces of information are used for information exchange.
  • the target node can also be an end node.
  • the number of packets sent by the initiating end node is the number of packets sent by the initiating end node to the next hop node.
  • the specific packet may be a data packet and a client layer packet.
  • the initiator will continuously send various packets to the next hop node, and the LMM packet is to tell the next hop node how many packets are sent.
  • the number of packets sent by different services is corresponding.
  • the rate and the priority are different.
  • Step S102 The target node determines, according to the positioning information, whether it is a node to be tested.
  • each node has its corresponding node location information, and the location information may be its corresponding address information or the first few in the link.
  • a node for example, an end-to-end link has four nodes, and the originating end is a head end node, and their corresponding addresses are 132.132.45.16, 132.132.45.26, 132.132.45.36, and 132.132.45.46, respectively, or may be correspondingly numbered as the initiating end node PE1. , the intermediate node P1, the intermediate node P2, and the receiving end node PE2.
  • the location information is specific to which node to perform link packet loss measurement.
  • the location information may be 132.132.45.26 or P1.
  • Step S103 If it is a node to be tested, the number of received packets sent by the originating end node is counted;
  • the number of packets, the rate, and the priority of the packets sent by the different services are different.
  • the number of messages is X2.
  • Step S104 The target node obtains the link packet loss according to the number of the received packets sent by the originating end node and the number of the packets sent by the originating end node.
  • the target node can calculate the link packet loss by itself, that is, the link packet is calculated by the number of the packets sent by the originating end node and the number of the packets sent by the originating end node. Packet loss, combined with the above example, the link packet loss is: X1-X2.
  • the calculation is performed by the unified initiating end node, so as to manage the lost packet of the used node, the target node may also receive the number of packets sent by the initiating end node and the initiating end node. The number of sent packets is sent to the initiating end node by using the LSR (Loss Measurement Reply) message, so that the initiating end node calculates the link packet loss according to the above parameters.
  • LSR Loss Measurement Reply
  • the receiving time can also be recorded.
  • the target node records that X1 messages are received, and the time for receiving the packets is T1, so that the link loss rate calculation, that is, the chain, can be performed.
  • the road packet loss rate is: (X1-X2)/T1.
  • the location information of the node to be tested in the foregoing step S102 may be the location information of the node to be tested or the relative location information of the node to be tested relative to the initiator node.
  • the target node determines whether it is based on the location information.
  • the node to be tested includes: the target node determines whether the location information of the node is the same as the location information of the node to be tested, and 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 target node determines the relative originating node of the node.
  • the relative position information is the same as the relative position information of the node to be tested, if it is the same, it is the node to be tested; if not, it is not the node to be tested.
  • the node to be tested is P2
  • the location information may be the location information of P2 132.132.45.26, or the location information of P2 relative to PE1, that is, the first node after PE1, that is, the location The information is the second node after PE1. Then the target node determines whether its own address is 132.132.45.26.
  • node If it is, it indicates that it is the node to be tested, or whether it is the second node after the originating node PE1, and if it is the second node, it is to be tested. node. It should be understood that other methods that can be used to locate which node to measure should be included.
  • the information may be improved based on a related protocol.
  • the link is a Multi-Protocol Label Switching Transport Profile (MPLS-TP) network link
  • the relative location information of the node to be tested relative to the initiator node is Including: a lifetime value (TTL) in a tunnel label of a difference between the node to be tested and the originating node or a lifetime period value (TTL) in the pseudowire label, that is, the TTL is an abbreviation of Time To Live (this period).
  • TTL lifetime value
  • TTL lifetime period value
  • the location information of the node to be tested may be a Media Access Control (MAC) address of the node to be tested.
  • MAC Media Access Control
  • the method further includes: when the target node determines that it is not the node to be tested according to the location information, directly forwards the LMM packet to the next hop node.
  • the method further includes: the target node sends a packet loss reply message (LMR) message to the originating node, where the LMR packet includes the target node and sends the packet to the initiator.
  • LMR packet loss reply message
  • the number of packets of the node so that the originating node obtains the link packet loss according to the number of packets sent by the target node to the originating node and the number of packets sent by the originating node to the originating node. package. That is, not only the link loss of the link from the originating node to the node to be tested but also the link loss of the link from the node to the initiator can be measured.
  • the originating end node sends a packet loss calculation information (LMM) packet to the target node, where the LMM packet includes the number of packets sent by the originating end node and the node to be tested.
  • the positioning information is such that the target node obtains the link packet loss according to the number of the packets sent by the originating node and the number of packets sent by the target node to the destination node.
  • the link packet loss measurement method in 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, and Figure 2-1 shows the packet flow direction diagram in the method.
  • each node is named PE1, P1, P2, and PE2.
  • the link packet loss measurement method includes the following steps:
  • Step S201 Configure a Maintenance End Point (MEP) node on the PE1 node, and enable the LM function, and configure the TTL of the configured LM to the destination MIP node;
  • MIP Maintenance End Point
  • the MEP node is configured on the PE1 as required by the user, the LM function of the tunnel layer is enabled, and basic information such as the LM priority is configured.
  • the OAM protocol processing module of the PE1 node assembles the Protocol Data Unit (PDU) of the LMM packet according to the OAM protocol standard, and encapsulates the tunnel label and the Ethernet Layer 2 header.
  • PDU Protocol Data Unit
  • the lifetime of the LMM packet tunnel is TTL, indicating that the LM packet sent starts at the PE1 node and ends at the P2 node.
  • the OAM performance processing module of PE1 starts to count the number of service packets and OAM packets passing through the node, that is, the number of packets sent/received by the local end. After receiving the LMM, the OAM performance processing module sends the local device to send the packet count to the corresponding LM packet with the priority of the LM packet.
  • Step S202 For the intermediate point P1 node, the switching chip needs to decrement the TTL of the packet tunnel label by 1;
  • the intermediate node of the non-destination point can select whether to configure the MIP node according to the configuration of the user. If the P1 node is configured with the MIP and the LM function is enabled, the OAM performance processing module of the P1 node identifies the received LMM packet and determines whether the TTL value in the tunnel label is 1. As shown in Figure 2-1, the TTL of the LMM packet received by the P1 node is 2, and the OAM performance processing module of the LMM packet is directly transmitted to the switch chip. If the M1 is not configured on the P1 node, the process of verifying the TTL value by the OAM performance processing module is omitted. In this case, the value of the TTL is directly forwarded to the switch chip. The switch chip receives the LMM packet with the TTL equal to 2, decrements the TTL by 1, and forwards it to the next hop node according to the original direction of the tunnel.
  • the OAM performance processing module of P2 starts to count the number of service packets and OAM packets passing through the node, that is, the remote end. / Number of received messages.
  • the OAM performance processing module of the P2 node identifies the received LMM packet and reads the TTL value in its tunnel label. As shown in Figure 2-1, the TTL value of the LMM packet is equal to 1.
  • the OAM performance processing module finds the counter with the same priority according to the priority information of the LMM packet, and records it in the reserved field of the LMM packet, and finally forwards it to the switch chip.
  • the switch chip of the P2 node reads the TTL value of the LMM packet, and finally forwards the LMM packet with the TTL of 1 to the OAM protocol processing module.
  • Step S204 The OAM protocol processing module of the P2 node receives the LMM packet, and replies to the LMR packet according to the relevant standard.
  • the OAM protocol processing module of the P2 node encapsulates and replies with a corresponding LMR packet (TTL value is 255), and sends the packet through the switch chip.
  • the OAM performance processing module of the P2 node receives the LMR packet from the switch chip. Similar to the LMM, the LMR packet needs to be matched with the LMR packet priority (that is, the number of packets sent by the remote end).
  • Step S205 The PE1 node receives the LMR packet, and the OAM performance processing module sends the OAM protocol processing module to the OAM protocol processing module for processing;
  • the PE1 node OAM performance processing module receives the LMR packet, and needs to put a counter count with the same priority in the reserved field (that is, the number of packets received by the local end), and the core is exchanged.
  • the slice is extracted to the OAM protocol processing module of the PE1 node for further processing.
  • the OAM protocol processing module of the PE1 node receives the LMR packet, and reads the number of packets sent by the local end, the number of remotely received packets, the number of packets sent by the remote end, and the local receiving packet. The number of four counts is counted, and the number of near/far end packets and the near/far end packet loss rate are calculated according to relevant standards.
  • Step S206 Read the required performance statistics at the PE1 node.
  • the figure is the flow diagram of the packet, but the TTL value of the LM packet is carried in the pseudo-line label, and other implementation processes and the embodiment Very similar, this article is not repeated.
  • the intermediate node of the destination point in this embodiment is a node to be tested, and the originating end node is a PE1 node.
  • the link packet loss measurement method in this embodiment is mainly used to introduce the LM function in the Ethernet CFM, as shown in Figure 3-1.
  • the figure is the flow direction diagram of the packet in the method.
  • this document Name the rack MACs of the first three nodes as MAC0, MAC1, and MAC2.
  • the link packet loss measurement method includes the following steps:
  • Step S301 Configure an 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.
  • the MEP node is configured on the PE1 according to the needs of the user, the LM to the MIP node is enabled, and the MAC address of the MIP node (ie, MAC2) is assigned, and basic information such as the LM priority is configured.
  • the OAM protocol processing module of the PE1 node assembles the PDU of the LMM packet and the Ethernet Layer 2 header according to the OAM protocol standard. As shown in Figure 3-1, the destination MAC address of the LMM packet is MAC2, indicating that the sent LM packet starts at the PE1 node and ends at the P2 node.
  • the OAM performance processing module of PE1 starts to count the number of service packets and OAM packets passing through the node, that is, the number of packets sent/received by the local end. After receiving the LMM, the OAM performance processing module puts the count value corresponding to the priority of the LMM packet in the corresponding field in the LMM packet, and sends it to the next hop node.
  • Step S302 For the intermediate point, the switch chip needs to determine whether the DMAC of the LMM message is consistent with the MAC address of the device, and if yes, extract, and vice versa;
  • the intermediate node of the non-destination point can select whether to configure the MIP according to the configuration of the user. node. If the M1 is configured on the P1 node and the LM function is enabled, the OAM performance processing module of the P1 node identifies the received LMM packet and determines whether its destination MAC address is the rack MAC address of the local device. As shown in Figure 3-1, the DMAC receives the LMM packet as the MAC2 and the non-local frame MAC address. The LMM packet OAM performance processing module directly transmits the packet to the switch chip. If the MIP node is not configured on the P1, the process of verifying the destination MAC address is omitted.
  • the value of the destination MAC address of the LMM is directly forwarded to the switch chip.
  • the switch chip receives the LMM packet whose DMAC is not equal to the MAC address of the local chassis, and forwards the packet to the next hop node in the VLAN domain.
  • Step S303 The OAM performance processing module of the P2 node identifies that the DMAC is consistent with the MAC address of the local device, and the MIP is configured, and the LMM packet is sent to the OAM protocol processing module through the switch chip for processing;
  • the OAM performance processing module of P2 starts to count the number of service packets and OAM packets passing through the node, that is, the remote end. / Number of received messages.
  • the OAM performance processing module of the P2 node identifies the received LMM packet and reads the destination MAC address of the packet. As shown in Figure 3-1, the destination MAC address of the LMM packet is equal to the chassis MAC address of the P2 node.
  • the OAM performance processing module puts a count corresponding to the priority of the packet in the reserved field of the LMM packet (that is, the number of packets received by the remote end) (this process can also pass the count value in the packet cookie), and finally forwards it to the reserved packet.
  • Switch chip The switch chip of the P2 node reads the destination MAC address of the LMM packet, and finally forwards the LMM packet whose destination MAC address is equal to the MAC2 to the OAM protocol processing module.
  • Step S304 The OAM protocol processing module of the P2 node receives the LMM packet, and replies to the LMR packet according to the relevant standard.
  • the OAM protocol processing module of the P2 node assembles and replies with a corresponding LMR message and sends it to the switch chip.
  • the destination MAC address of the LMR packet is equal to the SMAC of the LMM packet.
  • the DMAC of the LMR packet is equal to MAC0.
  • the OAM performance processing module of the P2 node receives the LMR packet from the switch chip, similar to the LMM, and also puts the count corresponding to the priority of the LMR packet in the corresponding field of the LMR (that is, the number of packets sent by the remote end).
  • Step S305 The PE1 node receives the LMR packet, and the OAM performance processing module sends the OAM protocol processing module to the OAM protocol processing module for processing;
  • the PE1 node OAM performance processing module receives the LMR packet, and needs to put the local receiving packet count in the reserved field of the packet and extract the packet to the OAM protocol processing module through the switch chip for further processing.
  • the OAM protocol processing module of the PE1 node receives the LMR packet, and reads the number of packets sent by the local end, the number of remotely received packets, the number of packets sent by the remote end, and the local receiving packet. The number of four counts is counted, and the number of near/far end packets and the near/far end packet loss rate are calculated according to relevant standards.
  • Step S306 Read the required performance statistics at the PE1 node.
  • the present embodiment provides a target node 400, as shown in FIG. 4, including a receiving module 401, a determining module 402, a statistic module 403, and a computing module 404.
  • the receiving module 401 is configured to: receive packet loss calculation information sent by the originating node ( The LMM packet includes: the number of the packets sent by the initiating end node and the positioning information of the node to be tested; the determining module 402 is configured to: determine whether the node is a node to be tested according to the positioning information; and the statistics module 403 is configured to If the determining module 402 determines that the target node 400 is a node to be tested, the number of received packets sent by the initiating end node is counted; the calculating module 404 is configured to: according to the number of received packets sent by the initiating end node, and The number of packets sent by the initiating end node is lost in the link packet.
  • the embodiment further provides a target node 400.
  • the determining module 402 includes a position determining sub-module 4021 and a relative position determining sub-module 4022.
  • the positioning information of the node to be tested includes: location information of the node to be tested.
  • the position determining sub-module 4021 is configured to: determine whether the location information of the node is the same as the location information of the node to be tested, and if the same, determine that the target node 400 is the node to be tested; If the target node 400 is not the node to be tested, the relative position determining sub-module 4022 is configured to: determine whether the relative position information of the node to be tested is the same as the relative node of the initiating node, and if yes, determine that the target node 400 is to be tested. Node; if not, it is determined that the target node 400 is not a node to be tested.
  • the relative location information of the node to be tested relative to the initiator node includes: a lifetime value or a pseudowire label in the tunnel label of the difference between the node to be tested and the initiator node.
  • the lifetime value of the node to be tested may be the MAC address of the node to be tested when the link is a CFM network link.
  • the embodiment further provides a target node 400.
  • the target node 400 further The forwarding module 405 is configured to: when the determining module 402 determines that it is not a node to be tested according to the positioning information, directly forwards the LMM message to the next hop node.
  • the calculating module 404 is configured to: calculate, according to the received number of the packets sent by the initiating end node, and the number of the packets sent by the initiating end node, the link packet loss; or, the received packet
  • the number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node are sent to the initiating end node through the packet loss reply message (LMR) message, so that the initiating end node calculates the link packet loss according to the above parameters. package.
  • LMR packet loss reply message
  • the embodiment further provides a target node 400.
  • the target node 400 further includes a reply module 406.
  • the reply module 406 is configured to: according to the received message sent by the sending end node by the calculating module 404. After the number of packets sent by the initiating end node is lost, the packet is sent to the initiating end node, and the LMR packet is sent to the initiating end node. The number of packets, so that the originating node obtains the link packet according to the number of packets sent by the target node 400 to the originating node, and the number of packets sent by the originating node to the originating node by the originating node 400. Lose the package.
  • the embodiment further provides an initiating end node 500.
  • the initiating end node 500 includes a sending module 501, and the sending module 501 is configured to: send a packet loss calculation information (LMM) message to the target node 400.
  • LMM packet includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested, so that the target node 400 sends the number of the packets sent by the initiating end node, and the target node 400 receives the sending end node.
  • the number of packets of the target node 400 is lost in the link packet.
  • This embodiment further provides a link packet loss measurement system, as shown in FIG. 9, the system includes an initiator node 500 and a target node 400;
  • the initiating end node 500 is configured to: send a packet loss calculation information (LMM) message to the target node 400, where the LMM message includes the number of packets sent by the initiating end node 500 and the positioning information of the node to be tested;
  • the method is: receiving the LMM packet sent by the initiating end node 500, determining whether it is the node to be tested according to the positioning information; if it is the node to be tested, counting the number of the packets sent by the initiating end node 500; The packet is lost according to the number of received packets sent by the initiating end node 500 and the number of packets sent by the initiating end node 500.
  • LMM packet loss calculation information
  • an embodiment of the present invention further provides an initiator node, including a processor and a memory, where the processor stores instructions executable by the processor, and when the instruction is executed by the processor, performs the function of the module shown in FIG.
  • an embodiment of the present invention further provides a target node, including a processor and a memory, where the processor stores instructions executable by the processor, and when the instruction is executed by the processor, executes FIG. 4, FIG. 5, FIG. 6, or FIG. The function of the module shown.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which implement a link packet loss measurement method applied to a target node when the computer executable instructions are executed.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which implement a link packet loss measurement method applied to an originating end node when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the embodiment of the invention provides a link packet loss measurement method and system, a target node, and an initiator node, which can locate the position of the intermediate node between the end and the end, and can be used after the positioning, and can utilize various current OAM standards.
  • the LMM packet is used to measure the packet loss of the link packet, and the link packet loss measurement of the end-to-end intermediate node is implemented.

Abstract

A measurement method for the packet loss of a link packet, comprising: a target node receiving a loss measurement message (LMM) packet sent by an initiating end node, the LMM packet comprising the number of packets sent by the initiating end node and positioning information about a node to be measured; the target node judging whether the target node is a node to be measured according to the positioning information; if the target node is a node to be measured, counting the number of the packets sent by the initiating end node; and the target node obtaining the packet loss rate of a link packet according to the number of the received packets sent by the initiating end node and the number of the packets sent by the initiating end node. By means of positioning information about a node to be measured, the method can position the location of an intermediate node between ends, and the packet loss rate of a link packet can be measured using an LMM packet defined in various OAM standards at present, thereby realizing the detection of the packet loss rate of the link packet of the intermediate node between ends.

Description

链路报文丢包测量方法、系统及目标节点、发起端节点Link packet loss measurement method, system and target node, initiator node 技术领域Technical field
本申请涉及但不限于通信领域,特别涉及一种链路报文丢包测量方法、系统及目标节点、发起端节点。The present application relates to, but is not limited to, the field of communications, and in particular, to a link packet loss measurement method, system, target node, and initiator node.
背景技术Background technique
链路丢包测量是一种常用的网络维护功能,准确而快速的丢包测量对于网络维护有着极为重要的意义。OAM定义是根据运营商网络运营的实际需要,通常将网络的管理工作划分为3大类:操作(Operation)、管理(Administration)、维护(Maintenance),简称OAM。操作主要完成日常网络和业务进行的分析、预测、规划和配置工作;维护主要是对网络及其业务的测试和故障管理等进行的日常操作活动。OAM功能可分为:故障管理:如故障测量、故障分类、故障定位、故障通告等;性能管理:如性能监视、性能分析、性能管理控制等;保护恢复:如保护机制、恢复机制等。OAM的LM功能(即帧丢失测量功能)是用于统计点到点T-MPLS(Transport Multi-Protocol Label Switching)连接入口和出口发送和接收业务帧的数量差,来计算链路丢包数及丢包等。目前常用的OAM相关标准(1)MPLS-TP OAM(BHH):可以分为TMS、TMP和TMC,分别用于监测段层、隧道层、伪线层的连通性以及性能。可应用于各种MPLS-TP(MPLS-Transport Profile,多协议标签交换传送应用)网络中。依据的主要标准为:Y.1731及MPLS-TP标准,对于TMP和TMC层的LM,只能测量PE-PE(端到端)的丢包测量。(2)CFM(Connectivity Fault Management,连接故障管理):是一种以太网OAM,依据的主要标准有:802.1ag和Y.1731,其中,帧丢失测量功能是在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 network operation of the operator. Generally, the management of the network is divided into three categories: Operation, Administration, and Maintenance (OAM). The operation mainly completes the analysis, prediction, planning and configuration of daily network and business; the maintenance is mainly the daily operation activities of 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. The LM function of the OAM (that is, the frame loss measurement function) is used to count the difference between the number of transmission and reception service frames of the ingress and egress of the transport-to-point T-MPLS (Transport Multi-Protocol Label Switching) to calculate the number of link loss and Lost bags and so on. Currently 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 segment layer, tunnel layer and pseudowire layer respectively. It can be applied to various MPLS-TP (MPLS-Transport Profile) networks. The main criteria are: Y.1731 and MPLS-TP standards. For LMs in the TMP and TMC layers, only PE-PE (end-to-end) packet loss measurements can be measured. (2) CFM (Connectivity Fault Management): It is an Ethernet OAM. The main standards are: 802.1ag and Y.1731. The frame loss measurement function is defined in the Y.1731 standard.
两种OAM的LM功能都是提供了一种端到端(PE到PE节点)的丢包测量,对于PE到任意一个P节点无法提供链路丢包测量,在实际网络维护工作中有一定的缺陷。 The LM functions of the two OAMs provide an end-to-end (PE to PE node) packet loss measurement. The PE cannot provide link loss measurement for any P node. There is a certain amount of network maintenance work. defect.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种链路报文丢包测量方法、系统及目标节点、发起端节点,解决现有只能针对端到端的链路报文丢包测量,不能进行端到端的中间节点的链路报文丢包测量的问题。The embodiment of the invention provides a link packet loss measurement method and system, a target node, and an initiator node, which can solve the problem that only the end-to-end link packet loss measurement can be performed, and the end-to-end intermediate node cannot be performed. Link packet loss measurement problem.
本发明实施例提供一种链路报文丢包测量方法,包括:The embodiment of the invention provides a link packet loss measurement method, including:
目标节点接收发起端节点发送的丢包计算信息(LMM)报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The target node receives the packet loss calculation information (LMM) message sent by the initiating end node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
所述目标节点根据所述定位信息判断自身是否为所述待测节点;Determining, by the target node, whether the node is the node to be tested according to the positioning information;
如果所述目标节点是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;If the target node is the node to be tested, the number of received packets sent by the originating node is counted;
所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node obtains the link packet loss according to the received number of the packets sent by the originating node and the number of the packets sent by the originating node.
在本发明的一种实施例中,所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;In an embodiment of the present invention, the location information of the node to be tested includes: location information of the node to be tested or relative location information of the node to be tested relative to the initiator node;
所述目标节点根据所述定位信息判断自身是否为所述待测节点包括:Determining, by the target node, whether the node is the node to be tested according to the location information includes:
所述目标节点判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则所述目标节点是所述待测节点;如果不同,则所述目标节点不是所述待测节点;Determining, by the target node, whether the location information of the node is the same as the location information of the node to be tested, and if the same, the target node is the node to be tested; if not, the target node is not the node to be tested. ;
或,or,
所述目标节点判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则所述目标节点是所述待测节点;如果不相同,则所述目标节点不是所述待测节点。Determining, by the target node, whether the relative location information of the initiating end node is the same as the relative location information of the node to be tested, and if the same, the target node is the node to be tested; The target node is not the node to be tested.
在本发明的一种实施例中,当所述链路为MPLS-TP网络链路时,所述待测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值; In an embodiment of the present invention, when the link is an MPLS-TP network link, the relative location information of the node to be tested relative to the initiator node includes: the node to be tested and the initiator The lifetime value in the tunnel label of the phase difference of the end node or the lifetime period 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 the MAC address of the node to be tested.
在本发明的一种实施例中,所述方法还包括:所述目标节点根据所述定位信息判断自身不是所述待测节点,则直接将所述LMM报文转发给下一跳节点。In an embodiment of the present invention, the method further includes: the target node determining, according to the location information, that the node is not the node to be tested, and directly forwarding the LMM packet to the next hop node.
在本发明的一种实施例中,所述根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包的方式包括:In an embodiment of the present invention, the method for obtaining a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node includes: :
所述目标节点自身通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包;The target node itself calculates the packet loss of the link packet by using the number of the packets sent by the originating end node and the number of the packets sent by the originating end node;
或,or,
所述目标节点将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息(LMR)报文发送给所述发起端节点,以使所述发起端节点根据上述参数计算出链路报文丢包。Sending, by the target node, the number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node to the initiating end node by using a packet loss reply information (LMR) message, The initiator node is configured to calculate a link packet loss according to the foregoing parameters.
在本发明的一种实施例中,在所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,所述方法还包括:所述目标节点向所述发起端节点发送丢包回复信息(LMR)报文,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。In an embodiment of the present invention, the target node obtains link packet loss according to the number of received packets sent by the originating node and the number of packets sent by the originating node. The method further includes: the target node sending a packet loss reply information (LMR) message to the originating node, where the LMR message includes a packet sent by the target node to the originating node a number, such that the number of packets sent by the originating node to the originating node according to the target node, and the number of packets sent by the originating node to the originating node by the originating node The number gets the packet packet loss.
本发明实施例还提供一种链路报文丢包测量方法,包括:The embodiment of the invention further provides a link packet loss measurement method, including:
发起端节点向目标节点发送丢包计算信息(LMM)报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文丢包。The initiating end node sends a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested, so that the target node according to the The number of the packets sent by the initiating end node and the number of packets sent by the target node to the target node by the originating node are lost in the link packet.
本发明实施例还提供一种链路报文丢包测量方法,包括:The embodiment of the invention further provides a link packet loss measurement method, including:
发起端节点向目标节点发送丢包计算信息(LMM)报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息; The initiating end node sends a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
所述目标节点接收发起端节点发送的LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果所述目标节点是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The target node receives the LMM message sent by the initiating end node, and determines whether it is the node to be tested according to the positioning information; if the target node is the node to be tested, the receiving end is counted Number of packets sent by the node;
所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node obtains the link packet loss according to the received number of the packets sent by the originating node and the number of the packets sent by the originating node.
本发明实施例还提供一种目标节点,包括接收模块、判断模块、统计模块和计算模块;An embodiment of the present invention further provides a target node, including a receiving module, a determining module, a statistics module, and a computing module;
所述接收模块,设置为:接收发起端节点发送的丢包计算信息(LMM)报文,其中,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The receiving module is configured to: receive a packet loss calculation information (LMM) packet sent by the initiating end node, where the LMM packet includes the number of packets sent by the initiating end node and the positioning information of the node to be tested. ;
所述判断模块,设置为:根据所述定位信息判断自身是否为所述待测节点;The determining module is configured to: determine, according to the positioning information, whether the node is the node to be tested;
所述统计模块,设置为:如果所述判断模块判断所述目标节点是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The statistic module is configured to: if the determining module determines that the target node is the node to be tested, the number of received packets sent by the originating end node is counted;
所述计算模块,设置为:根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The calculating module is configured to: obtain a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node.
在本发明的一种实施例中,所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;In an embodiment of the present invention, the location information of the node to be tested includes: location information of the node to be tested or relative location information of the node to be tested relative to the initiator node;
所述判断模块包括位置判断子模块和相对位置判断子模块;The determining module includes a position determining sub-module and a relative position determining sub-module;
所述位置判断子模块,设置为:判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则判断所述目标节点是所述待测节点;如果不同,则判断所述目标节点不是所述待测节点;The position determining sub-module is configured to: determine whether the location information of the same is the same as the location information of the node to be tested, and if yes, determine that the target node is the node to be tested; if not, determine the The target node is not the node to be tested;
或,or,
所述相对位置判断子模块,设置为:判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则判断所述目标节点是所述待测节点;如果不相同,则判断所述目标节点不是所述待测节点。The relative position determining sub-module is configured to: determine whether the relative position information of the initiating end node is the same as the relative position information of the node to be tested, and if the same, determine that the target node is the to-be-tested a node; if not, determining that the target node is not the node to be tested.
在本发明的一种实施例中,当所述链路为MPLS-TP网络链路时,所述待 测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;In an embodiment of the present invention, when the link is an MPLS-TP network link, the waiting The relative position information of the measured node relative to the originating end node includes: a lifetime period value in the tunnel label of the difference between the node to be tested and the originating end node or a lifetime period 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 the MAC address of the node to be tested.
在本发明的一种实施例中,所述目标节点还包括转发模块,所述转发模块,设置为:在所述判断模块根据所述定位信息判断自身不是所述待测节点时,直接将所述LMM报文转发给下一跳节点。In an embodiment of the present invention, the target node further includes a forwarding module, and the forwarding module is configured to: directly determine, when the determining module determines that the node is not the node to be tested according to the positioning information, The LMM packet is forwarded to the next hop node.
在本发明的一种实施例中,所述计算模块是设置为:In an embodiment of the invention, the computing module is configured to:
通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包;And detecting, by the received number of the packets sent by the initiating end node, and the number of the packets sent by the initiating end node, the link packet loss is calculated;
或,or,
将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息(LMR)报文发送给所述发起端节点,以使所述发起端节点根据上述参数计算出链路报文丢包。Transmitting the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node to the initiating end node by using a packet loss reply information (LMR) message, so that the initiating The end node calculates the packet loss of the link packet according to the above parameters.
在本发明的一种实施例中,所述目标节点还包括回复模块,所述回复模块,设置为:在所述计算模块根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,向所述发起端节点发送丢包回复信息(LMR)报文,其中,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。In an embodiment of the present invention, the target node further includes a reply module, and the reply module is configured to: in the computing module, according to the received number of the sent packets of the originating end node, and After the number of the packets sent by the initiating end node is lost, the packet is sent to the initiating end node, and the LMR packet is sent to the initiating end node, where the LMR packet is sent by the target node. The number of the packets of the initiating end node, so that the initiating end node sends the number of packets sent by the target node to the initiating end node, and the initiating end node receives the target node and sends the packet to the The number of packets of the initiating end node is lost in the link packet.
本发明实施例还提供一种发起端节点,包括发送模块,An embodiment of the present invention further provides an originating end node, including a sending module,
所述发送模块,设置为:向目标节点发送丢包计算信息(LMM)报文,其中,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文丢包。The sending module is configured to: send a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of packets sent by the initiator node and the location information of the node to be tested, And causing the target node to obtain a link packet loss according to the number of the packets sent by the originating node and the number of packets sent by the target node to the target node by the originating node.
本发明实施例还提供一种链路报文丢包测量系统,包括发起端节点和目 标节点;The embodiment of the invention further provides a link packet loss measurement system, including an initiator node and a destination Standard node
所述发起端节点,设置为:向所述目标节点发送丢包计算信息(LMM)报文,其中,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The initiating end node is configured to: send a packet loss calculation information (LMM) message to the target node, where the LMM message includes the number of packets sent by the initiating end node and the location of the node to be tested. information;
所述目标节点,设置为:接收发起端节点发送的LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The target node is configured to: receive an LMM packet sent by the initiating end node, determine, according to the positioning information, whether the node is the node to be tested, and if the node to be tested, collect the received end Number of packets sent by the node;
所述目标节点还设置为:根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node is further configured to: obtain a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现应用于目标节点的所述链路报文丢包测量方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are executed to implement the link packet loss measurement method applied to a target node.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现应用于发起端节点的所述链路报文丢包测量方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are implemented to implement the link packet loss measurement method applied to an originating end node.
本发明实施例提供的链路报文丢包测量方法、系统及目标节点、发起端节点,目标节点接收发起端节点发送的LMM报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息;目标节点根据定位信息判断自身是否为待测节点;如果是待测节点,则统计接收到的发起端节点发送的报文个数;目标节点根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包。与现有技术比,具有待测节点的定位信息,能够定位端与端之间的中间节点的位置,定位后能够利用目前各种OAM标准中定义的LMM报文进行链路报文丢包测量,实现了端到端的中间节点的链路报文丢包测量,对相关标准是一种补充,同时也为实际应用和工程维护等提供了一种很好的链路丢包测量的手段。The link packet loss measurement method and system, the target node, and the initiator node are provided by the embodiment of the present invention. The target node receives the LMM packet sent by the initiator node, and the LMM packet includes the number of packets sent by the initiator node. The location information of the node to be tested; the target node determines whether it is the node to be tested according to the location information; if it is the node to be tested, it counts the number of packets sent by the initiator node; the target node is based on the received initiator node. The number of sent packets and the number of packets sent by the initiating end node are lost. Compared with the prior art, the positioning information of the node to be tested can be used to locate the position of the intermediate node between the end and the end. After the positioning, the LMM packet defined in the current OAM standards can be used to perform link packet loss measurement. The link packet measurement of the end-to-end intermediate node is implemented, which is a supplement to the relevant standards, and also provides a good means for link loss measurement measurement for practical applications and engineering maintenance.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述 BRIEF abstract
图1为本发明实施例一提供的链路报文丢包测量方法的流程示意图;1 is a schematic flowchart of a link packet loss measurement method according to Embodiment 1 of the present invention;
图2-1为本发明实施例二提供的链路报文丢包测量方法中报文流向示意图一;2-1 is a schematic diagram 1 of packet flow direction in a link packet loss measurement method according to Embodiment 2 of the present invention;
图2-2为本发明实施例二提供的链路报文丢包测量方法的流程示意图;2-2 is a schematic flowchart of a link packet loss measurement method according to Embodiment 2 of the present invention;
图2-3为本发明实施例二提供的链路报文丢包测量方法中报文流向示意图二;2-3 is a schematic diagram 2 of packet flow direction in a link packet loss measurement method according to Embodiment 2 of the present invention;
图3-1为本发明实施例三提供的链路报文丢包测量方法中报文流向示意图;3-1 is a schematic diagram of packet flow in a link packet loss measurement method according to Embodiment 3 of the present invention;
图3-2为本发明实施例三提供的链路报文丢包测量方法的流程示意图;3-2 is a schematic flowchart of a link packet loss measurement method according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的目标节点的结构示意图一;4 is a schematic structural diagram 1 of a target node according to Embodiment 4 of the present invention;
图5为本发明实施例四提供的目标节点的结构示意图二;FIG. 5 is a schematic structural diagram 2 of a target node according to Embodiment 4 of the present invention; FIG.
图6为本发明实施例四提供的目标节点的结构示意图三;6 is a schematic structural diagram 3 of a target node according to Embodiment 4 of the present invention;
图7为本发明实施例四提供的目标节点的结构示意图四;FIG. 7 is a schematic structural diagram 4 of a target node according to Embodiment 4 of the present invention; FIG.
图8为本发明实施例四提供的发起端节点的结构示意图;FIG. 8 is a schematic structural diagram of an originating end node according to Embodiment 4 of the present invention; FIG.
图9为本发明实施例四提供的链路报文丢包测量系统的结构示意图。FIG. 9 is a schematic structural diagram of a link packet loss measurement system according to Embodiment 4 of the present invention.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present application.
实施例一 Embodiment 1
本实施例的链路报文丢包测量方法,如图1所示,包括以下步骤:The link packet loss measurement method in this embodiment, as shown in FIG. 1, includes the following steps:
步骤S101:目标节点接收发起端节点发送的丢包计算信息(LMM,Loss Measurement Message)报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息;Step S101: The target node receives the LMS (Loss Measurement Message) message sent by the initiating end node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested.
在该步骤中,这里的目标节点应该理解为端到端中间的任意的一个节点, 当然,这些节点具有配置了维护中间点(MIP,Maintenance Intermediate Point)并启用丢包计算(LM,Loss Measurement)功能,当然,不是对该节点进行测量,可以不用配置MIP。这里的发起端是指两个用来进行信息交互的发送信息一条链路上的首端。并且,该目标节点也可以为末端节点。这里的发起端节点发送的报文个数是指该发起端节点发送给下一跳节点多少个报文,具体的报文可以是数据报文和客户层报文。应该理解为发起端会向下一跳节点不断地发送各种报文,而LMM报文就是告诉下一跳节点具体发送了多少个报文;由于不同的业务对应的发送的报文的个数、速率及优先级不同,为了便于进行统计计算,或者根据用户需求需要知道某类业务对应的具体的丢包情况,选择同一级对应发送LMM报文统计报文数。例如,该报文数为X1。In this step, the target node here should be understood as any node in the middle of the end, Of course, these nodes have a Maintenance Intermediate Point (MIP) and enable Lost Measurement (LM) function. Of course, instead of measuring the node, you do not need to configure the MIP. The originator here refers to the first end of a link on which two pieces of information are used for information exchange. And, the target node can also be an end node. The number of packets sent by the initiating end node is the number of packets sent by the initiating end node to the next hop node. The specific packet may be a data packet and a client layer packet. It should be understood that the initiator will continuously send various packets to the next hop node, and the LMM packet is to tell the next hop node how many packets are sent. The number of packets sent by different services is corresponding. The rate and the priority are different. In order to facilitate the calculation of statistics, or to know the specific packet loss situation of a certain type of service, you need to select the number of LMM packets sent by the same level. For example, the number of messages is X1.
步骤S102:目标节点根据定位信息判断自身是否为待测节点;Step S102: The target node determines, according to the positioning information, whether it is a node to be tested.
在该步骤中,应该理解为在一条端到端的链路中,对于每个节点都有其相应的节点位置信息,这些位置信息可以是其对应的地址信息或者在该链路中的第几个节点,例如一条端到端的链路有四个节点,发起端为首端节点,其对应地址分别为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, and the location information may be its corresponding address information or the first few in the link. A node, for example, an end-to-end link has four nodes, and the originating end is a head end node, and their corresponding addresses are 132.132.45.16, 132.132.45.26, 132.132.45.36, and 132.132.45.46, respectively, or may be correspondingly numbered as the initiating end node PE1. , the intermediate node P1, the intermediate node P2, and the receiving end node PE2. The location information is specific to which node to perform link packet loss measurement. For example, the location information may be 132.132.45.26 or P1.
步骤S103:如果是待测节点,则统计接收到的发起端节点发送的报文个数;Step S103: If it is a node to be tested, the number of received packets sent by the originating end node is counted;
在该步骤中,由于不同的业务对应的发送的报文的个数、速率和优先级不同,待测节点选择统计同一级对应接收的报文数。例如,该报文数为X2。In this step, the number of packets, the rate, and the priority of the packets sent by the different services are different. For example, the number of messages is X2.
步骤S104:目标节点根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包。Step S104: The target node obtains the link packet loss according to the number of the received packets sent by the originating end node and the number of the packets sent by the originating end node.
在该步骤中,该目标节点可以自己计算得到链路报文丢包,即通过接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数计算出链路报文丢包,结合上面的例子,链路报文丢包为:X1-X2。可选地,为了便于管理,通过统一的发起端节点进行计算,以便对于所用的节点丢包进行管理,该目标节点还可以将接收到的发起端节点发送的报文个数和发起端节点 发送的报文个数通过丢包回复信息(LMR,Loss Measurement Reply)报文发送给发起端节点,以使发起端节点根据上述参数计算出链路报文丢包。In this step, the target node can calculate the link packet loss by itself, that is, the link packet is calculated by the number of the packets sent by the originating end node and the number of the packets sent by the originating end node. Packet loss, combined with the above example, the link packet loss is: X1-X2. Optionally, in order to facilitate management, the calculation is performed by the unified initiating end node, so as to manage the lost packet of the used node, the target node may also receive the number of packets sent by the initiating end node and the initiating end node. The number of sent packets is sent to the initiating end node by using the LSR (Loss Measurement Reply) message, so that the initiating end node calculates the link packet loss according to the above parameters.
值得注意的是,可选地,还可以记录接收时间,例如目标节点记录接收到了X1个报文,并且接收这些报文的时间为T1,这样就可以进行链路丢包率的计算,即链路丢包率为:(X1-X2)/T1。It is noted that, optionally, the receiving time can also be recorded. For example, the target node records that X1 messages are received, and the time for receiving the packets is T1, so that the link loss rate calculation, that is, the chain, can be performed. The road packet loss rate is: (X1-X2)/T1.
可选地,在上述步骤S102中的待测节点的定位信息可以是待测节点的位置信息或待测节点相对发起端节点的相对位置信息;上述步骤S103中目标节点根据定位信息判断自身是否为待测节点包括:目标节点判断自身的位置信息是否与待测节点的位置信息相同,如相同,则是待测节点;如果不同,则不是待测节点;或,目标节点判断自身相对发起端节点的相对位置信息是否与待测节点的相对位置信息相同,如相同,则是待测节点;如果不相同,则不是待测节点。结合上面的例子进行说明,待测节点为P2,那么定位信息可以是P2的位置信息132.132.45.26,也可以是P2相对于PE1的位置信息,即是位于PE1后的第几个节点,即定位信息为PE1后的第二个节点。那么目标节点就判断自身的地址是不是132.132.45.26,如果是就说明自身就是待测节点,或者判断自身是不是位于发起端节点PE1后的第二个节点,如果是第二节点就为待测节点。应该理解为,其他可以进行定位对哪个节点进行测量的方式都应包含在内。Optionally, the location information of the node to be tested in the foregoing step S102 may be the location information of the node to be tested or the relative location information of the node to be tested relative to the initiator node. In the foregoing step S103, the target node determines whether it is based on the location information. The node to be tested includes: the target node determines whether the location information of the node is the same as the location information of the node to be tested, and 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 target node determines the relative originating node of the node. Whether the relative position information is the same as the relative position information of the node to be tested, if it is the same, it is the node to be tested; if not, it is not the node to be tested. In combination with the above example, the node to be tested is P2, then the location information may be the location information of P2 132.132.45.26, or the location information of P2 relative to PE1, that is, the first node after PE1, that is, the location The information is the second node after PE1. Then the target node determines whether its own address is 132.132.45.26. If it is, it indicates that it is the node to be tested, or whether it is the second node after the originating node PE1, and if it is the second node, it is to be tested. node. It should be understood that other methods that can be used to locate which node to measure should be included.
可选地,可以基于相关协议进行改进,当链路为多协议标签交换传送应用(MPLS-TP,Multi-Protocol Label Switching Transport Profile)网络链路时,待测节点相对发起端节点的相对位置信息包括:待测节点与发起端节点的相差的隧道标签中生存周期值(TTL)或伪线标签中的生存周期值(TTL),即TTL是Time To Live(生存周期值)的缩写,该字段指定IP包在计算机网络中可以转发的最大跳数。当链路为连接故障管理(CFM,Connectivity Fault Management)网络链路时,待测节点的位置信息可以是待测节点的介质访问控制(MAC,Media Access Control)地址。Optionally, the information may be improved based on a related protocol. When the link is a Multi-Protocol Label Switching Transport Profile (MPLS-TP) network link, the relative location information of the node to be tested relative to the initiator node is Including: a lifetime value (TTL) in a tunnel label of a difference between the node to be tested and the originating node or a lifetime period value (TTL) in the pseudowire label, that is, the TTL is an abbreviation of Time To Live (this period). Specifies the maximum number of hops an IP packet can forward on a computer network. When the link is a connection fault management (CFM) network link, the location information of the node to be tested may be a Media Access Control (MAC) address of the node to be tested.
可选地,上述方法还包括:目标节点根据定位信息判断自身不是待测节点,则直接将LMM报文转发给下一跳节点。Optionally, the method further includes: when the target node determines that it is not the node to be tested according to the location information, directly forwards the LMM packet to the next hop node.
可选地,在目标节点根据接收到的发起端节点发送的报文个数、以及发 起端节点发送的报文个数得到链路报文丢包之后,上述方法还包括:目标节点向发起端节点发送丢包回复信息(LMR)报文,LMR报文包括目标节点发送给发起端节点的报文个数,以使发起端节点根据目标节点发送给发起端节点的报文个数、以及发起端节点接收到目标节点发送给发起端节点的报文个数得到链路报文丢包。即不仅可以测量发起端节点到待测节点的链路丢包,还可以测量待测节点到发起端节点的链路丢包。Optionally, the number of packets sent by the target node according to the received initiator node, and the sending After the number of the packets sent by the originating node is lost, the method further includes: the target node sends a packet loss reply message (LMR) message to the originating node, where the LMR packet includes the target node and sends the packet to the initiator. The number of packets of the node, so that the originating node obtains the link packet loss according to the number of packets sent by the target node to the originating node and the number of packets sent by the originating node to the originating node. package. That is, not only the link loss of the link from the originating node to the node to be tested but also the link loss of the link from the node to the initiator can be measured.
值得注意的是,在上述步骤S101中,应该理解为,发起端节点会向目标节点发送丢包计算信息(LMM)报文,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息,以使目标节点根据发起端节点发送的报文个数、以及目标节点接收到发起端节点发送给目标节点的报文个数得到链路报文丢包。It should be noted that, in the foregoing step S101, it should be understood that the originating end node sends a packet loss calculation information (LMM) packet to the target node, where the LMM packet includes the number of packets sent by the originating end node and the node to be tested. The positioning information is such that the target node obtains the link packet loss according to the number of the packets sent by the originating node and the number of packets sent by the target node to the destination node.
实施例二 Embodiment 2
本实施例的链路报文丢包测量方法,主要用于介绍TP-OAM协议中隧道层的LM功能,如图2-1所示,图2-1为该方法中的报文流向图,为了便于说明,本文将每个节点分别命名为PE1、P1、P2和PE2。如图2-2所示,链路报文丢包测量方法包括以下步骤:The link packet loss measurement method in 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, and Figure 2-1 shows the packet flow direction diagram in the method. For ease of explanation, each node is named PE1, P1, P2, and PE2. As shown in Figure 2-2, the link packet loss measurement method includes the following steps:
步骤S201:在PE1节点配置维护端点(MEP,Maintenance End Point)节点,并启用LM功能,以及配置的LM指定到目的MIP节点的TTL;Step S201: Configure a Maintenance End Point (MEP) node on the PE1 node, and enable the LM function, and configure the TTL of the configured LM to the destination MIP node;
在该步骤中,按用户的需要在PE1配置MEP节点,启用隧道层的LM功能并配置LM优先级等基本信息。PE1节点的OAM协议处理模块接收到配置命令后,按照OAM协议标准,组装LMM报文的协议数据单元(PDU,Protocol Data Unit),并封装隧道标签和以太网二层头。如图2-1所示,LMM报文隧道标签的生存周期值TTL值为2,表示发送的LM报文起始于PE1节点,终止于P2节点。启用LM功能的同时,PE1的OAM性能处理模块开始按优先级分别统计经过该节点的业务报文和客户层OAM报文个数,即本端发送/接收报文数。OAM性能处理模块收到LMM后,则在报文里的对应字段打上与LM报文优先级一致的本端发送报文计数,向下一跳节点发送。In this step, the MEP node is configured on the PE1 as required by the user, the LM function of the tunnel layer is enabled, and basic information such as the LM priority is configured. After receiving the configuration command, the OAM protocol processing module of the PE1 node assembles the Protocol Data Unit (PDU) of the LMM packet according to the OAM protocol standard, and encapsulates the tunnel label and the Ethernet Layer 2 header. As shown in Figure 2-1, the lifetime of the LMM packet tunnel is TTL, indicating that the LM packet sent starts at the PE1 node and ends at the P2 node. When the LM function is enabled, the OAM performance processing module of PE1 starts to count the number of service packets and OAM packets passing through the node, that is, the number of packets sent/received by the local end. After receiving the LMM, the OAM performance processing module sends the local device to send the packet count to the corresponding LM packet with the priority of the LM packet.
步骤S202:对于中间点P1节点,交换芯片需要对报文隧道标签后面TTL进行减1; Step S202: For the intermediate point P1 node, the switching chip needs to decrement the TTL of the packet tunnel label by 1;
在该步骤中,非目的点的中间节点依据用户的配置可选择是否配置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 of the non-destination point can select whether to configure the MIP node according to the configuration of the user. If the P1 node is configured with the MIP and the LM function is enabled, the OAM performance processing module of the P1 node identifies the received LMM packet and determines whether the TTL value in the tunnel label is 1. As shown in Figure 2-1, the TTL of the LMM packet received by the P1 node is 2, and the OAM performance processing module of the LMM packet is directly transmitted to the switch chip. If the M1 is not configured on the P1 node, the process of verifying the TTL value by the OAM performance processing module is omitted. In this case, the value of the TTL is directly forwarded to the switch chip. The switch chip receives the LMM packet with the TTL equal to 2, decrements the TTL by 1, and forwards it to the next hop node according to 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 identifies that the TTL=1 and the MIP is configured, and the LMM packet is sent to the OAM protocol processing module through the switch 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 the MIP node is configured on P2 and the LM function is enabled, the OAM performance processing module of P2 starts to count the number of service packets and OAM packets passing through the node, that is, the remote end. / Number of received messages. The OAM performance processing module of the P2 node identifies the received LMM packet and reads the TTL value in its tunnel label. As shown in Figure 2-1, the TTL value of the LMM packet is equal to 1. The OAM performance processing module finds the counter with the same priority according to the priority information of the LMM packet, and records it in the reserved field of the LMM packet, and finally forwards it to the switch chip. The switch chip of the P2 node reads the TTL value of the LMM packet, and finally forwards the LMM packet with the 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 packet, and replies to the LMR packet according to the relevant standard.
在该步骤中,P2节点的OAM协议处理模块收到LMM报文后,封装并回复一个与之相应的LMR报文(TTL值为255),通过交换芯片进行发送。P2节点的OAM性能处理模块收到来自于交换芯片转发的LMR报文,与LMM类似,需要在LMR报文里打上与LMR报文优先级一致的计数(即远端发送报文数)。In this step, after receiving the LMM packet, the OAM protocol processing module of the P2 node encapsulates and replies with a corresponding LMR packet (TTL value is 255), and sends the packet through the switch chip. The OAM performance processing module of the P2 node receives the LMR packet from the switch chip. Similar to the LMM, the LMR packet needs to be matched with the LMR packet priority (that is, the number of packets sent by the remote end).
步骤S205:PE1节点收到LMR报文,OAM性能处理模块通过交换芯片上送给OAM协议处理模块进行处理;Step S205: The PE1 node receives the LMR packet, and the OAM performance processing module sends the OAM protocol processing module to the OAM protocol processing module for processing;
在该步骤中,PE1节点OAM性能处理模块收到LMR报文,需要在保留字段里打上优先级一致的counter计数(即本端接收报文数),并通过交换芯 片提取到PE1节点的OAM协议处理模块进行下一步处理。PE1节点的OAM协议处理模块收到LMR报文,通过读取LMR相应字段里保存的本端发送报文个数、远端接收报文个数、远端发送报文个数、本端接收报文个数四个counter计数,按照相关的标准计算出近/远端丢包数、近/远端丢包率。In this step, the PE1 node OAM performance processing module receives the LMR packet, and needs to put a counter count with the same priority in the reserved field (that is, the number of packets received by the local end), and the core is exchanged. The slice is extracted to the OAM protocol processing module of the PE1 node for further processing. The OAM protocol processing module of the PE1 node receives the LMR packet, and reads the number of packets sent by the local end, the number of remotely received packets, the number of packets sent by the remote end, and the local receiving packet. The number of four counts is counted, and the number of near/far end packets and the near/far end packet loss rate are calculated according to relevant standards.
步骤S206:在PE1节点读取所需的性能统计信息。Step S206: Read the required performance statistics at the PE1 node.
值得注意的是,对于多段伪线的场景,如图2-3所示,该图为其中的报文流向图,只是LM报文的TTL值承载于伪线标签,其他实现过程与本实施例极为类似,本文不在赘述。并且本实施例中的目的点的中间节点为待测节点,发起端节点为PE1节点。It is noted that, for the scenario of the multi-segment pseudo-line, as shown in Figure 2-3, the figure is the flow diagram of the packet, but the TTL value of the LM packet is carried in the pseudo-line label, and other implementation processes and the embodiment Very similar, this article is not repeated. And the intermediate node of the destination point in this embodiment is a node to be tested, and the originating end node is a PE1 node.
实施例三Embodiment 3
本实施例的链路报文丢包测量方法,主要用于介绍以太网CFM中的LM功能,如图3-1所示,该图为该方法中的报文流向图,为了便于说明,本文将前三个节点的机架MAC分别命名为MAC0、MAC1和MAC2。如图3-2所示,链路报文丢包测量方法包括以下步骤:The link packet loss measurement method in this embodiment is mainly used to introduce the LM function in the Ethernet CFM, as shown in Figure 3-1. The figure is the flow direction diagram of the packet in the method. For convenience of description, this document Name the rack MACs of the first three nodes as MAC0, MAC1, and MAC2. 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 an 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, the MEP node is configured on the PE1 according to the needs of the user, the LM to the MIP node is enabled, and the MAC address of the MIP node (ie, MAC2) is assigned, and basic information such as the LM priority is configured. After receiving the configuration command, the OAM protocol processing module of the PE1 node assembles the PDU of the LMM packet and the Ethernet Layer 2 header according to the OAM protocol standard. As shown in Figure 3-1, the destination MAC address of the LMM packet is MAC2, indicating that the sent LM packet starts at the PE1 node and ends at the P2 node. When the LM function is enabled, the OAM performance processing module of PE1 starts to count the number of service packets and OAM packets passing through the node, that is, the number of packets sent/received by the local end. After receiving the LMM, the OAM performance processing module puts the count value corresponding to the priority of the LMM packet in the corresponding field in the LMM packet, and sends it to the next hop node.
步骤S302:对于中间点,交换芯片需要判断LMM报文的DMAC是否与本设备的MAC一致,如一致则提取,反之则转发;Step S302: For the intermediate point, the switch chip needs to determine whether the DMAC of the LMM message is consistent with the MAC address of the device, and if yes, extract, and vice versa;
在该步骤中,非目的点的中间节点依据用户的配置可选择是否配置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 of the non-destination point can select whether to configure the MIP according to the configuration of the user. node. If the M1 is configured on the P1 node and the LM function is enabled, the OAM performance processing module of the P1 node identifies the received LMM packet and determines whether its destination MAC address is the rack MAC address of the local device. As shown in Figure 3-1, the DMAC receives the LMM packet as the MAC2 and the non-local frame MAC address. The LMM packet OAM performance processing module directly transmits the packet to the switch chip. If the MIP node is not configured on the P1, the process of verifying the destination MAC address is omitted. The value of the destination MAC address of the LMM is directly forwarded to the switch chip. The switch chip receives the LMM packet whose DMAC is not equal to the MAC address of the local chassis, and forwards the packet to the next hop node in the VLAN domain.
步骤S303:P2节点的OAM性能处理模块识别出DMAC会与本设备的MAC一致且配置了MIP,则将与该LMM报文通过交换芯片上送给OAM协议处理模块进行处理;Step S303: The OAM performance processing module of the P2 node identifies that the DMAC is consistent with the MAC address of the local device, and the MIP is configured, and the LMM packet is sent to the OAM protocol processing module through the switch 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 the MIP node is configured on P2 and the LM function is enabled, the OAM performance processing module of P2 starts to count the number of service packets and OAM packets passing through the node, that is, the remote end. / Number of received messages. The OAM performance processing module of the P2 node identifies the received LMM packet and reads the destination MAC address of the packet. As shown in Figure 3-1, the destination MAC address of the LMM packet is equal to the chassis MAC address of the P2 node. The OAM performance processing module puts a count corresponding to the priority of the packet in the reserved field of the LMM packet (that is, the number of packets received by the remote end) (this process can also pass the count value in the packet cookie), and finally forwards it to the reserved packet. Switch chip. The switch chip of the P2 node reads the destination MAC address of the LMM packet, and finally forwards the LMM packet whose destination MAC address is equal to the 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 packet, and replies to the LMR packet according to the relevant standard.
在该步骤中,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 with a corresponding LMR message and sends it to the switch chip. The destination MAC address of the LMR packet is equal to the SMAC of the LMM packet. As shown in Figure 3-1, the DMAC of the LMR packet is equal to MAC0. The OAM performance processing module of the P2 node receives the LMR packet from the switch chip, similar to the LMM, and also puts the count corresponding to the priority of the LMR packet in the corresponding field of the LMR (that is, the number of packets sent by the remote end).
步骤S305:PE1节点收到LMR报文,OAM性能处理模块通过交换芯片上送给OAM协议处理模块进行处理; Step S305: The PE1 node receives the LMR packet, and the OAM performance processing module sends the OAM protocol processing module to the OAM protocol processing module for processing;
在该步骤中,PE1节点OAM性能处理模块收到LMR报文,需要在报文的保留字段里打上本端接收报文计数并通过交换芯片将报文提取到OAM协议处理模块进行下一步处理。PE1节点的OAM协议处理模块收到LMR报文,通过读取LMR相应字段里保存的本端发送报文个数、远端接收报文个数、远端发送报文个数、本端接收报文个数四个counter计数,按照相关的标准计算出近/远端丢包数、近/远端丢包率。In this step, the PE1 node OAM performance processing module receives the LMR packet, and needs to put the local receiving packet count in the reserved field of the packet and extract the packet to the OAM protocol processing module through the switch chip for further processing. The OAM protocol processing module of the PE1 node receives the LMR packet, and reads the number of packets sent by the local end, the number of remotely received packets, the number of packets sent by the remote end, and the local receiving packet. The number of four counts is counted, and the number of near/far end packets and the near/far end packet loss rate are calculated according to relevant standards.
步骤S306:在PE1节点读取所需的性能统计信息。Step S306: Read the required performance statistics at the PE1 node.
实施例四Embodiment 4
本实施例提供一种目标节点400,如图4所示,包括接收模块401、判断模块402、统计模块403和计算模块404;接收模块401设置为:接收发起端节点发送的丢包计算信息(LMM)报文,其中,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息;判断模块402设置为:根据定位信息判断自身是否为待测节点;统计模块403设置为:如果判断模块402判断目标节点400是待测节点,则统计接收到的发起端节点发送的报文个数;计算模块404设置为:根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包。The present embodiment provides a target node 400, as shown in FIG. 4, including a receiving module 401, a determining module 402, a statistic module 403, and a computing module 404. The receiving module 401 is configured to: receive packet loss calculation information sent by the originating node ( The LMM packet includes: the number of the packets sent by the initiating end node and the positioning information of the node to be tested; the determining module 402 is configured to: determine whether the node is a node to be tested according to the positioning information; and the statistics module 403 is configured to If the determining module 402 determines that the target node 400 is a node to be tested, the number of received packets sent by the initiating end node is counted; the calculating module 404 is configured to: according to the number of received packets sent by the initiating end node, and The number of packets sent by the initiating end node is lost in the link packet.
本实施例还提供一种目标节点400,如图5所示,判断模块402包括位置判断子模块4021和相对位置判断子模块4022;其中,待测节点的定位信息包括:待测节点的位置信息或待测节点相对发起端节点的相对位置信息;位置判断子模块4021设置为:判断自身的位置信息是否与待测节点的位置信息相同,如相同,则判断目标节点400是待测节点;如果不同,则判断目标节点400不是待测节点;或,相对位置判断子模块4022设置为:判断待测节点相对发起端节点的相对位置信息是否为相同,如是相同,则判断目标节点400是待测节点;如果不相同,则判断目标节点400不是待测节点。The embodiment further provides a target node 400. As shown in FIG. 5, the determining module 402 includes a position determining sub-module 4021 and a relative position determining sub-module 4022. The positioning information of the node to be tested includes: location information of the node to be tested. Or the relative position information of the node to be tested relative to the initiating end node; the position determining sub-module 4021 is configured to: determine whether the location information of the node is the same as the location information of the node to be tested, and if the same, determine that the target node 400 is the node to be tested; If the target node 400 is not the node to be tested, the relative position determining sub-module 4022 is configured to: determine whether the relative position information of the node to be tested is the same as the relative node of the initiating node, and if yes, determine that the target node 400 is to be tested. Node; if not, it is determined that the target node 400 is not a node to be tested.
可选地,当链路为MPLS-TP网络链路时,待测节点相对发起端节点的相对位置信息包括:待测节点与发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;当链路为CFM网络链路时,待测节点的位置信息可以是待测节点的MAC地址。Optionally, when the link is an MPLS-TP network link, the relative location information of the node to be tested relative to the initiator node includes: a lifetime value or a pseudowire label in the tunnel label of the difference between the node to be tested and the initiator node. The lifetime value of the node to be tested may be the MAC address of the node to be tested when the link is a CFM network link.
本实施例还提供一种目标节点400,如图6所示,所述目标节点400还 包括转发模块405,转发模块405设置为:在判断模块402根据定位信息判断自身不是待测节点时,直接将LMM报文转发给下一跳节点。The embodiment further provides a target node 400. As shown in FIG. 6, the target node 400 further The forwarding module 405 is configured to: when the determining module 402 determines that it is not a node to be tested according to the positioning information, directly forwards the LMM message to the next hop node.
可选地,计算模块404是设置为:通过接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数计算出链路报文丢包;或,将接收到的发起端节点发送的报文个数和发起端节点发送的报文个数通过丢包回复信息(LMR)报文发送给发起端节点,以使发起端节点根据上述参数计算出链路报文丢包。Optionally, the calculating module 404 is configured to: calculate, according to the received number of the packets sent by the initiating end node, and the number of the packets sent by the initiating end node, the link packet loss; or, the received packet The number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node are sent to the initiating end node through the packet loss reply message (LMR) message, so that the initiating end node calculates the link packet loss according to the above parameters. package.
本实施例还提供一种目标节点400,如图7所示,所述目标节点400还包括回复模块406,回复模块406设置为:在计算模块404根据接收到的发起端节点发送的报文个数、以及发起端节点发送的报文个数得到链路报文丢包之后,向发起端节点发送丢包回复信息(LMR)报文,其中,LMR报文包括目标节点400发送给发起端节点的报文个数,以使发起端节点根据目标节点400发送给发起端节点的报文个数、以及发起端节点接收到目标节点400发送给发起端节点的报文个数得到链路报文丢包。The embodiment further provides a target node 400. As shown in FIG. 7, the target node 400 further includes a reply module 406. The reply module 406 is configured to: according to the received message sent by the sending end node by the calculating module 404. After the number of packets sent by the initiating end node is lost, the packet is sent to the initiating end node, and the LMR packet is sent to the initiating end node. The number of packets, so that the originating node obtains the link packet according to the number of packets sent by the target node 400 to the originating node, and the number of packets sent by the originating node to the originating node by the originating node 400. Lose the package.
本实施例还提供一种发起端节点500,如图8所示,所述发起端节点500包括发送模块501,发送模块501设置为:向目标节点400发送丢包计算信息(LMM)报文,其中,LMM报文包括发起端节点发送的报文个数和待测节点的定位信息,以使目标节点400根据发起端节点发送的报文个数、以及目标节点400接收到发起端节点发送给目标节点400的报文个数得到链路报文丢包。The embodiment further provides an initiating end node 500. As shown in FIG. 8, the initiating end node 500 includes a sending module 501, and the sending module 501 is configured to: send a packet loss calculation information (LMM) message to the target node 400. The LMM packet includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested, so that the target node 400 sends the number of the packets sent by the initiating end node, and the target node 400 receives the sending end node. The number of packets of the target node 400 is lost in the link packet.
本实施例还提供一种链路报文丢包测量系统,如图9所示,所述系统包括发起端节点500和目标节点400;This embodiment further provides a link packet loss measurement system, as shown in FIG. 9, the system includes an initiator node 500 and a target node 400;
发起端节点500设置为:向目标节点400发送丢包计算信息(LMM)报文,其中,LMM报文包括发起端节点500发送的报文个数和待测节点的定位信息;目标节点400设置为:接收发起端节点500发送的LMM报文,根据定位信息判断自身是否为待测节点;如果是待测节点,则统计接收到的发起端节点500发送的报文个数;目标节点400还设置为:根据接收到的发起端节点500发送的报文个数、以及发起端节点500发送的报文个数得到链路报文丢包。 The initiating end node 500 is configured to: send a packet loss calculation information (LMM) message to the target node 400, where the LMM message includes the number of packets sent by the initiating end node 500 and the positioning information of the node to be tested; The method is: receiving the LMM packet sent by the initiating end node 500, determining whether it is the node to be tested according to the positioning information; if it is the node to be tested, counting the number of the packets sent by the initiating end node 500; The packet is lost according to the number of received packets sent by the initiating end node 500 and the number of packets sent by the initiating end node 500.
此外,本发明实施例还提供一种发起端节点,包括处理器和存储器,存储器中存储有处理器可执行的指令,当指令被处理器执行时,执行图8所示模块的功能。In addition, an embodiment of the present invention further provides an initiator node, including a processor and a memory, where the processor stores instructions executable by the processor, and when the instruction is executed by the processor, performs the function of the module shown in FIG.
此外,本发明实施例还提供一种目标节点,包括处理器和存储器,存储器中存储有处理器可执行的指令,当指令被处理器执行时,执行图4、图5、图6或图7中所示模块的功能。In addition, an embodiment of the present invention further provides a target node, including a processor and a memory, where the processor stores instructions executable by the processor, and when the instruction is executed by the processor, executes FIG. 4, FIG. 5, FIG. 6, or FIG. The function of the module shown.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现应用于目标节点的链路报文丢包测量方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which implement a link packet loss measurement method applied to a target node when the computer executable instructions are executed.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现应用于发起端节点的链路报文丢包测量方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which implement a link packet loss measurement method applied to an originating end node when the computer executable instructions are executed.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。A person of ordinary skill in the art may understand that all or part of the above steps may be completed by a program to instruct related hardware (for example, a processor), and the program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk. . Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application 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 application, and are not intended to be limiting, and the present application is only described in detail with reference to the preferred embodiments. A person skilled in the art should understand that the technical solutions of the present application can be modified or equivalent, without departing from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
工业实用性Industrial applicability
本发明实施例提供一种链路报文丢包测量方法、系统及目标节点、发起端节点,能够定位端与端之间的中间节点的位置,定位后能够利用目前各种OAM标准中定义的LMM报文进行链路报文丢包测量,实现了端到端的中间节点的链路报文丢包测量。 The embodiment of the invention provides a link packet loss measurement method and system, a target node, and an initiator node, which can locate the position of the intermediate node between the end and the end, and can be used after the positioning, and can utilize various current OAM standards. The LMM packet is used to measure the packet loss of the link packet, and the link packet loss measurement of the end-to-end intermediate node is implemented.

Claims (18)

  1. 一种链路报文丢包测量方法,包括:A link packet loss measurement method includes:
    目标节点接收发起端节点发送的丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The target node receives the packet loss calculation information LMM message sent by the initiating end node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
    所述目标节点根据所述定位信息判断自身是否为所述待测节点;Determining, by the target node, whether the node is the node to be tested according to the positioning information;
    如果所述目标节点是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;If the target node is the node to be tested, the number of received packets sent by the originating node is counted;
    所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node obtains the link packet loss according to the received number of the packets sent by the originating node and the number of the packets sent by the originating node.
  2. 如权利要求1所述的链路报文丢包测量方法,其中,The link packet loss measurement method according to claim 1, wherein
    所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;The location information of the node to be tested includes: location information of the node to be tested or relative location information of the node to be tested relative to the originating node;
    所述目标节点根据所述定位信息判断自身是否为所述待测节点包括:Determining, by the target node, whether the node is the node to be tested according to the location information includes:
    所述目标节点判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则所述目标节点是所述待测节点;如果不同,则所述目标节点不是所述待测节点;Determining, by the target node, whether the location information of the node is the same as the location information of the node to be tested, and if the same, the target node is the node to be tested; if not, the target node is not the node to be tested. ;
    或,or,
    所述目标节点判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则所述目标节点是所述待测节点;如果不相同,则所述目标节点不是所述待测节点。Determining, by the target node, whether the relative location information of the initiating end node is the same as the relative location information of the node to be tested, and if the same, the target node is the node to be tested; The target node is not the node to be tested.
  3. 如权利要求2所述的链路报文丢包测量方法,其中,The link packet loss measurement method according to claim 2, wherein
    当所述链路为多协议标签交换传送应用MPLS-TP网络链路时,所述待测节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;When the link is a multi-protocol label switching transmission application MPLS-TP network link, the relative location information of the node to be tested relative to the originating node includes: a difference between the node to be tested and the originating node The lifetime value in the tunnel label or the lifetime value in the pseudowire label;
    当所述链路为连接故障管理CFM网络链路时,所述待测节点的位置信息可以是所述待测节点的介质访问控制MAC地址。When the link is a connection fault management CFM network link, the location information of the node to be tested may be a medium access control MAC address of the node to be tested.
  4. 如权利要求1所述的链路报文丢包测量方法,所述方法还包括:所述 目标节点根据所述定位信息判断自身不是所述待测节点,则直接将所述LMM报文转发给下一跳节点。The link packet loss measurement method according to claim 1, wherein the method further comprises: The target node determines that it is not the node to be tested according to the location information, and directly forwards the LMM packet to the next hop node.
  5. 如权利要求1-4任一项所述的链路报文丢包测量方法,其中,所述根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包,包括:The link packet loss measurement method according to any one of claims 1 to 4, wherein the number of packets sent by the originating node and the report sent by the originating node are received according to the received The number of packets is lost in the link packet, including:
    所述目标节点自身通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包;The target node itself calculates the packet loss of the link packet by using the number of the packets sent by the originating end node and the number of the packets sent by the originating end node;
    或,or,
    所述目标节点将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息LMR报文发送给所述发起端节点,以使所述发起端节点根据上述参数计算出链路报文丢包。Sending, by the target node, the number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node to the initiating end node by using the packet loss reply information LMR message, so that the target node The originating end node calculates the link packet loss according to the above parameters.
  6. 如权利要求1-4任一项所述的链路报文丢包测量方法,在所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,所述方法还包括:所述目标节点向所述发起端节点发送丢包回复信息LMR报文,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。The link packet loss measurement method according to any one of claims 1 to 4, wherein the number of packets sent by the target node according to the received originating node and the sending end node are sent by the target node. After the packet number is lost, the method further includes: the target node sending a packet loss reply information LMR message to the originating node, where the LMR packet includes the target node sending The number of the packets of the initiating end node, so that the initiating end node sends the number of packets sent by the target node to the initiating end node, and the initiating end node receives the target node and sends the packet to the The number of packets of the initiating end node is lost in the link packet.
  7. 一种链路报文丢包测量方法,包括:A link packet loss measurement method includes:
    发起端节点向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文丢包。The initiating end node sends a packet loss calculation information LMM message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested, so that the target node initiates according to the The number of the packets sent by the end node and the number of packets sent by the target node to the target node by the originating node are lost in the link packet.
  8. 一种链路报文丢包测量方法,包括:A link packet loss measurement method includes:
    发起端节点向目标节点发送丢包计算信息LMM报文,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The initiating end node sends a packet loss calculation information LMM message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
    所述目标节点接收发起端节点发送的LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果所述目标节点是所述待测节点,则统计接 收到的所述发起端节点发送的报文个数;The target node receives the LMM packet sent by the initiating end node, and determines whether it is the node to be tested according to the positioning information; if the target node is the node to be tested, the statistics are connected. The number of received packets sent by the originating end node;
    所述目标节点根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node obtains the link packet loss according to the received number of the packets sent by the originating node and the number of the packets sent by the originating node.
  9. 一种目标节点,包括接收模块、判断模块、统计模块和计算模块;A target node includes a receiving module, a determining module, a statistics module, and a computing module;
    所述接收模块,设置为:接收发起端节点发送的丢包计算信息LMM报文,其中,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The receiving module is configured to: receive a packet loss calculation information LMM packet sent by the initiating end node, where the LMM packet includes the number of the packet sent by the initiating end node and the positioning information of the node to be tested;
    所述判断模块,设置为:根据所述定位信息判断自身是否为所述待测节点;The determining module is configured to: determine, according to the positioning information, whether the node is the node to be tested;
    所述统计模块,设置为:如果所述判断模块判断所述目标节点是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The statistic module is configured to: if the determining module determines that the target node is the node to be tested, the number of received packets sent by the originating end node is counted;
    所述计算模块,设置为:根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The calculating module is configured to: obtain a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node.
  10. 如权利要求9所述的目标节点,其中,The target node according to claim 9, wherein
    所述待测节点的定位信息包括:所述待测节点的位置信息或所述待测节点相对所述发起端节点的相对位置信息;The location information of the node to be tested includes: location information of the node to be tested or relative location information of the node to be tested relative to the originating node;
    所述判断模块包括位置判断子模块和相对位置判断子模块;The determining module includes a position determining sub-module and a relative position determining sub-module;
    所述位置判断子模块,设置为:判断自身的位置信息是否与所述待测节点的位置信息相同,如相同,则判断所述目标节点是所述待测节点;如果不同,则判断所述目标节点不是所述待测节点;The position determining sub-module is configured to: determine whether the location information of the same is the same as the location information of the node to be tested, and if yes, determine that the target node is the node to be tested; if not, determine the The target node is not the node to be tested;
    或,or,
    所述相对位置判断子模块,设置为:判断自身相对所述发起端节点的相对位置信息是否与所述待测节点的相对位置信息相同,如相同,则判断所述目标节点是所述待测节点;如果不相同,则判断所述目标节点不是所述待测节点。The relative position determining sub-module is configured to: determine whether the relative position information of the initiating end node is the same as the relative position information of the node to be tested, and if the same, determine that the target node is the to-be-tested a node; if not, determining that the target node is not the node to be tested.
  11. 如权利要求10所述的目标节点,其中,The target node according to claim 10, wherein
    当所述链路为多协议标签交换传送应用MPLS-TP网络链路时,所述待测 节点相对所述发起端节点的相对位置信息包括:所述待测节点与所述发起端节点的相差的隧道标签中生存周期值或伪线标签中的生存周期值;When the link is an MPLS-TP network link for multi-protocol label switching transmission, the to-be-tested The relative position information of the node relative to the originating end node includes: a lifetime period value in the tunnel label of the difference between the node to be tested and the originating end node or a lifetime period value in the pseudowire label;
    当所述链路为连接故障管理CFM网络链路时,所述待测节点的位置信息可以是所述待测节点的介质访问控制MAC地址。When the link is a connection fault management CFM network link, the location information of the node to be tested may be a medium access control MAC address of the node to be tested.
  12. 如权利要求9所述的目标节点,所述目标节点还包括转发模块,所述转发模块,设置为:在所述判断模块根据所述定位信息判断自身不是所述待测节点时,直接将所述LMM报文转发给下一跳节点。The target node according to claim 9, wherein the target node further includes a forwarding module, and the forwarding module is configured to: directly: when the determining module determines that the node is not the node to be tested according to the positioning information The LMM packet is forwarded to the next hop node.
  13. 如权利要求9-12任一项所述的目标节点,其中,所述计算模块是设置为:The target node of any of claims 9-12, wherein the computing module is configured to:
    通过接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数计算出链路报文丢包;And detecting, by the received number of the packets sent by the initiating end node, and the number of the packets sent by the initiating end node, the link packet loss is calculated;
    或,or,
    将接收到的所述发起端节点发送的报文个数和所述发起端节点发送的报文个数通过丢包回复信息LMR报文发送给所述发起端节点,以使所述发起端节点根据上述参数计算出链路报文丢包。Sending, by the received end node, the number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node to the initiating end node by using the packet loss reply information LMR message, so that the initiating end node The link packet loss is calculated based on the preceding parameters.
  14. 如权利要求9-12任一项所述的目标节点,所述目标节点还包括回复模块,所述回复模块,设置为:在所述计算模块根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包之后,向所述发起端节点发送丢包回复信息LMR报文,其中,所述LMR报文包括所述目标节点发送给所述发起端节点的报文个数,以使所述发起端节点根据所述目标节点发送给所述发起端节点的报文个数、以及所述发起端节点接收到所述目标节点发送给所述发起端节点的报文个数得到链路报文丢包。The target node according to any one of claims 9 to 12, wherein the target node further includes a reply module, and the reply module is configured to: in the computing module, according to the received message sent by the originating end node After the number of the packets sent by the initiating end node is lost, the packet is sent to the initiating end node, and the LMR packet includes the target. The number of packets sent by the node to the initiating end node, so that the initiating end node receives the number of packets sent by the target node to the initiating end node, and the initiating end node receives the target The number of packets sent by the node to the originating end node is lost in the link packet.
  15. 一种发起端节点,包括发送模块,An originating node, including a sending module,
    所述发送模块,设置为:向目标节点发送丢包计算信息LMM报文,其中,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息,以使所述目标节点根据所述发起端节点发送的报文个数、以及所述目标节点接收到所述发起端节点发送给所述目标节点的报文个数得到链路报文 丢包。The sending module is configured to: send a packet loss calculation information LMM packet to the target node, where the LMM packet includes the number of packets sent by the initiator node and the location information of the node to be tested, so that the location is The target node obtains a link packet according to the number of packets sent by the originating node and the number of packets sent by the target node to the target node by the originating node. Lose the package.
  16. 一种链路报文丢包测量系统,包括发起端节点和目标节点;A link packet loss measurement system includes an initiator node and a target node;
    所述发起端节点,设置为:向所述目标节点发送丢包计算信息LMM报文,其中,所述LMM报文包括所述发起端节点发送的报文个数和待测节点的定位信息;The initiating end node is configured to: send a packet loss calculation information LMM message to the target node, where the LMM message includes the number of the packets sent by the initiating end node and the positioning information of the node to be tested;
    所述目标节点,设置为:接收发起端节点发送的LMM报文,根据所述定位信息判断自身是否为所述待测节点;如果是所述待测节点,则统计接收到的所述发起端节点发送的报文个数;The target node is configured to: receive an LMM packet sent by the initiating end node, determine, according to the positioning information, whether the node is the node to be tested, and if the node to be tested, collect the received end Number of packets sent by the node;
    所述目标节点还设置为:根据接收到的所述发起端节点发送的报文个数、以及所述发起端节点发送的报文个数得到链路报文丢包。The target node is further configured to: obtain a link packet loss according to the received number of the packets sent by the initiating end node and the number of the packets sent by the initiating end node.
  17. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现权利要求1至6任一项所述的方法。A computer readable storage medium storing computer executable instructions that, when executed, implement the method of any one of claims 1 to 6.
  18. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现权利要求7所述的方法。 A computer readable storage medium storing computer executable instructions that, when executed, implement the method of claim 7.
PCT/CN2016/076504 2015-07-27 2016-03-16 Measurement method and system for packet loss of link packet, target node and initiating-end node WO2016177120A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510446685.7 2015-07-27
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
WO2016177120A1 true WO2016177120A1 (en) 2016-11-10

Family

ID=57218167

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789437A (en) * 2016-12-29 2017-05-31 瑞斯康达科技发展股份有限公司 The processing method of message, retransmission method, relevant apparatus and packet loss rate measurement method
CN114567574A (en) * 2022-03-01 2022-05-31 烽火通信科技股份有限公司 Method and device for realizing LM flow-free test based on time sequence control
CN115550224A (en) * 2021-06-29 2022-12-30 中国电信股份有限公司 Packet loss analysis system, method, and storage medium

Families Citing this family (6)

* 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
CN109981414B (en) * 2019-03-29 2021-08-24 烽火通信科技股份有限公司 method for acquiring packet loss number between mpls network nodes
CN110290017B (en) * 2019-07-26 2022-06-10 新华三大数据技术有限公司 Fault node positioning method and PE equipment
CN113347087B (en) * 2021-06-11 2022-01-18 北京连山科技股份有限公司 Method for improving multilink data transmission correctness
CN113691421B (en) * 2021-08-27 2022-08-02 烽火通信科技股份有限公司 Message generation method and device
CN113872827B (en) * 2021-09-10 2023-03-24 苏州浪潮智能科技有限公司 Method and device for analyzing snakelike test failure of switch 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
CN102223263A (en) * 2011-06-09 2011-10-19 中兴通讯股份有限公司 Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN102724086A (en) * 2012-06-21 2012-10-10 中兴通讯股份有限公司 Method and device for detecting quality of transmission link
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
CN102217236A (en) * 2011-05-10 2011-10-12 华为技术有限公司 Method and device for detecting link loss ratio

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
CN102223263A (en) * 2011-06-09 2011-10-19 中兴通讯股份有限公司 Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN102724086A (en) * 2012-06-21 2012-10-10 中兴通讯股份有限公司 Method and device for detecting quality of transmission link
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789437A (en) * 2016-12-29 2017-05-31 瑞斯康达科技发展股份有限公司 The processing method of message, retransmission method, relevant apparatus and packet loss rate measurement method
CN106789437B (en) * 2016-12-29 2020-07-28 瑞斯康达科技发展股份有限公司 Message processing method, forwarding method, related device and packet loss rate measuring method
CN115550224A (en) * 2021-06-29 2022-12-30 中国电信股份有限公司 Packet loss analysis system, method, 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
CN106411625A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2016177120A1 (en) Measurement method and system for packet loss of link packet, target node and initiating-end node
EP3278503B1 (en) Method of packet marking for flow analytics
EP3808040B1 (en) Apparatus and method to trace packets in a packet processing pipeline of a software defined networking switch
US9306819B2 (en) Controller driven OAM for split architecture network
WO2020233192A1 (en) Method and apparatus for providing service for service flow
US9203738B2 (en) Optimal forwarding for trill fine-grained labeling and VXLAN interworking
JP5462954B2 (en) Packet loss detection method and apparatus, and router
US7599303B2 (en) System and methods for sending trace messages
JP4567367B2 (en) Insert address to enable OAM function
CN106375158B (en) A kind of method for detecting packet loss, the network equipment and system
WO2016184245A1 (en) Tunnel packet loss detecting method, apparatus and network communication device
US9641420B1 (en) Methods and apparatus for assessing the quality of a data path including both layer-2 and layer-3 devices
EP3412004B1 (en) Method and apparatus for data plane to monitor differentiated services code point (dscp) and explicit congestion notification (ecn)
CN111371634B (en) Communication method, device and system
WO2017000802A1 (en) Service fault location method and device
KR20140117993A (en) Mpls-tp network and method for link failure trace
US20190372873A1 (en) Devices for analyzing and mitigating dropped packets
JP6616230B2 (en) Network equipment
CN110166311B (en) Method, equipment and network system for measuring network performance
US20200019425A1 (en) Service oam for virtual systems and services
WO2014008809A1 (en) Frame loss detection method and system
US9432275B2 (en) Transmission monitoring method and device
JP2011244312A (en) Node device, optimal path determination method, and program
WO2022222544A1 (en) Method and apparatus for operation administration and maintenance (oam) detection
JP5990491B2 (en) Network quality measurement system, method and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789114

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789114

Country of ref document: EP

Kind code of ref document: A1