WO2015184890A1 - Packet loss measurement method and apparatus - Google Patents

Packet loss measurement method and apparatus Download PDF

Info

Publication number
WO2015184890A1
WO2015184890A1 PCT/CN2015/074646 CN2015074646W WO2015184890A1 WO 2015184890 A1 WO2015184890 A1 WO 2015184890A1 CN 2015074646 W CN2015074646 W CN 2015074646W WO 2015184890 A1 WO2015184890 A1 WO 2015184890A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
test
packet
received
counter
Prior art date
Application number
PCT/CN2015/074646
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 WO2015184890A1 publication Critical patent/WO2015184890A1/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 invention relates to the field of communications technologies, and in particular, to a method and an apparatus for measuring packet loss.
  • TWAMP Two-Way Active Measurement Protocol
  • TWAMP-Control TWAMP Control Protocol
  • TWAMP-Test TWAMP Test Protocol
  • TWAMP usually consists of 4 logical entities.
  • the simple architecture is shown in Figure 1:
  • the TWAMP test initiator sends a control connection request to the server-side server entity, the communication mode of the negotiation packet, and the port number of the reflection-node Session-Reflector end to receive the test packet.
  • the client Control-Client controls the start and end of the TWAMP-Test session.
  • the server receives the connection request sent from the client Control-Client, and negotiates the packet communication mode with the client Control-Client and the port number of the test node that receives the test packet from the Session-Reflector.
  • the server side manages one or more TEAMP-Test sessions.
  • the sending node Session-Sender The node that sends the test packet to the Session-Reflector in the TWAMP-Test session, and receives the test packet from the reflection session of the reflection node, and collects the performance information and statistically measures the measurement result.
  • the reflection node Session-Reflector in the TWAMP-Test session, receives the test packet from the Session-Sender end of the transmitting node, and sends a response message.
  • the test node in the test phase, the test node first sends a test message to the reflection node Session-Reflector, and the test message includes the sequence of message transmission. Column number and time stamp.
  • the reflection node After receiving the test packet sent by the sending node Session-Sender, the reflection node reflects the test packet back to the transmitting node Session-Sender, and adds the own receiving timestamp in the reflected test packet.
  • the packet timestamp and the packet sequence number are as shown in FIG. 3.
  • the sending node Session-Sender collects the packet information and performs IP performance measurement.
  • the TTL in the figure indicates the time to live of the message.
  • the receiving timestamp is defined as T4 in the above process
  • the receiving timestamp of the reflecting node Session-Reflector is defined as T2
  • the sending timestamp is positioned as T3
  • Reverse link delay T4-T3 (meaningful in the case of network clock synchronization, meaningless in other cases).
  • the granularity of packet loss statistics is relatively coarse. When there is packet loss on the link, we cannot accurately determine that there is packet loss in that direction of the link.
  • the embodiment of the invention provides a method and a device for measuring packet loss, so as to achieve the purpose of accurately measuring the packet loss on the link to be tested without changing the specification and flow of the related bidirectional active measurement protocol TWAMP.
  • an embodiment of the present invention provides a method for measuring packet loss, which is applied to a test session of a bidirectional active measurement protocol TWAMP, including:
  • the first node in the test session of the TWAMP sends a test message with the number of preset test messages to the second node;
  • the second node performs the packet collection statistics on the received test packet, and obtains the number of preset test packets received by the second node;
  • the second node performs pre-processing on the preset test packet received by the second node, and obtains the number of preset test packets that are fed back to the first node, and receives the received by the second node.
  • the number of the preset test packets and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node;
  • the first node acquires the test session of the TWAMP according to the number of preset test packets sent and received by the first node and the number of preset test packets received and fed back by the second node. The amount of lost packets.
  • the number of preset test packets sent and received by the first node and the number of preset test packets received and fed by the second node are stored in a type-length-value TLV format;
  • the TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
  • the content field includes a first counter configured to store the number of preset test messages sent by the first node, and a second counter configured to store the number of preset test messages received by the second node, Set to store the third number of preset test messages fed back by the second node to the first node And a counter configured to store the number of preset test messages received by the first node.
  • the number of the preset test packets received by the second node and the number of preset test packets to be fed back to the first node are added to the test packet to form a response packet.
  • the step of the first node feeding back the response message includes:
  • the second node writes the content of the first counter of the test message into the first counter of the response message
  • the second node writes the number of preset test messages received by the second node into the second counter of the response message
  • the second node writes the number of preset test messages that need to be fed back to the first node into the third counter of the response message;
  • the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
  • the time at which the first node measures the amount of packet loss is less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
  • the test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
  • the response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
  • the method further includes:
  • the padding field length in the request session message in the test session of the TWAMP is set to be greater than 23 bytes.
  • the embodiment of the invention further includes a measurement device for packet loss, which is applied to a test session of the bidirectional active measurement protocol TWAMP, including:
  • a sending module configured to send, by the first node in the test session of the TWAMP, a test message that records the number of preset test messages to the second node;
  • the first receiving module is configured to: the second node collects the received test packet, and obtains the number of the preset test packets received by the second node;
  • a feedback module configured to: the second node pre-processes a preset test packet received by the second node, and obtains a number of preset test packets that are fed back to the first node, where the number is The number of the preset test packets received by the two nodes and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response is fed back to the first node.
  • the second receiving module is configured to receive, by the first node, the response packet, and perform packet collection statistics on the received response packet, to obtain the number of preset test packets received by the first node. ;
  • the number of preset test packets sent and received by the first node and the number of preset test packets received and fed by the second node are stored in a type-length-value TLV format;
  • the TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
  • the content field includes a first counter configured to store the number of preset test messages sent by the first node, and a second counter configured to store the number of preset test messages received by the second node, And a third counter configured to store the number of preset test messages fed back by the second node to the first node, and a fourth counter set to store the number of preset test messages received by the first node.
  • the feedback module includes:
  • a first writing unit configured to: the second node writes a content of the first counter of the test message into a first counter of the response message;
  • the second writing unit is configured to write, by the second node, the number of preset test messages received by the second node into the second counter of the response message;
  • a third writing unit configured to: the second node writes the number of the preset test messages that are to be fed back to the first node into a third counter of the response message;
  • a feedback unit configured to: the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
  • the time at which the first node measures the amount of packet loss is less than or equal to the first count.
  • the test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
  • the response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
  • the measuring device further comprises:
  • the setting module is set to set the padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
  • Embodiments of the present invention also include a computer storage medium having stored therein computer executable instructions for performing the above method.
  • the test packet sent by the first node and the response message fed back by the second node are added to the preset test packet sent and received by the corresponding node.
  • Number to achieve accurate measurement of the packet loss on the link to be tested; this method does not need to change the relevant TWAMP protocol specifications and procedures, no need to add a new mode, only need to extract the corresponding preset test message from the response message Count, you can get the packet loss or packet loss rate in each direction, improve the accuracy of packet loss measurement.
  • FIG. 3 is a diagram showing an encapsulation format of a response message Reflector-Test in a non-authentication mode in the related art
  • FIG. 4 is a schematic diagram showing the basic steps of a method for measuring packet loss according to an embodiment of the present invention.
  • FIG. 5 shows a TLV format for packet loss measurement in an embodiment of the present invention
  • FIG. 6 is a schematic diagram showing a process of constructing a response message in an embodiment of the present invention.
  • FIG. 7 is a schematic diagram showing the operation of measuring a TLV in a non-authentication mode according to an embodiment of the present invention.
  • FIG. 8 is a block diagram showing a package format of a test message Sender-Test used in a non-authentication mode according to an embodiment of the present invention
  • FIG. 9 is a diagram showing an encapsulation format of a response message Reflector-Test used in a non-authentication mode according to an embodiment of the present invention.
  • FIG. 10 is a diagram showing a package format of a test message Sender-Test used in a non-authentication mode and a symmetric mode according to an embodiment of the present invention
  • FIG. 11 is a diagram showing an encapsulation format of a response message Reflector-Test used in a non-authentication mode and a symmetric mode according to an embodiment of the present invention
  • Figure 12 is a view showing the basic structure of the first embodiment of the present invention.
  • Figure 13 is a view showing the basic structure of a second embodiment and a third embodiment of the present invention.
  • FIG. 14 is a block diagram showing the structure of a packet loss measuring apparatus according to an embodiment of the present invention.
  • the packet loss statistics are relatively coarse in the related art.
  • a method and a device for measuring packet loss are provided.
  • the number of preset test packets sent and received at the corresponding node is added to the test packet sent by the first node and the response message sent by the second node to accurately measure the packet loss on the link to be tested.
  • the purpose of this method is that the method does not need to change the relevant TWAMP protocol specifications and processes, and no need to add a new mode, only need to extract the number of corresponding preset test messages from the response message, and then obtain packet loss in each direction or
  • the packet loss rate improves the accuracy of packet loss measurement.
  • an embodiment of the present invention provides a method for measuring packet loss, which is applied to a test session of a bidirectional active measurement protocol TWAMP, including:
  • Step 41 The first node in the test session of the TWAMP sends a test packet with the number of preset test packets to the second node.
  • Step 42 The second node performs packet collection statistics on the received test packet, and obtains the number of preset test packets received by the second node.
  • Step 43 The second node performs pre-processing on the preset test packet received by the second node, and obtains the number of preset test packets fed back to the first node, where the second node is The number of the received preset test packets and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node. ;
  • Step 44 The first node receives the response packet and collects the received response message, and obtains the number of preset test packets received by the first node.
  • Step 45 The first node acquires the TWAMP according to the number of preset test messages sent and received by the first node, and the number of preset test messages received and fed back by the second node. The amount of lost packets in the test session.
  • the first node is a transmitting node Session-Sender, and the second node is a reflective node Session-Reflector;
  • the test packet The method further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
  • the response message further includes: the second node receiving the test packet The time at which the second node feeds back the response message to the first node and the sequence number of the response message.
  • the first node collects the information of the response packet and performs IP performance measurement.
  • the technical solution adds a corresponding preset test report to both the test packet and the response packet.
  • the number of texts is convenient for the user or the system to count the number of default test packets in different directions and in different directions, and to calculate the packet loss or packet loss rate during transmission. This method can accurately determine which link in the link. There is a packet loss in the direction, and the packet loss or packet loss rate in the direction in which the packet is lost can be accurately calculated.
  • the foregoing technical solution can calculate whether the sending direction (the first node to the second node) exists according to the number of preset test packets sent by the first node and the number of preset test packets received by the second node. Packet loss and packet loss; according to the number of preset test packets received by the second node and the number of preset test packets fed back to the first node by the second node, the preprocessing process of the second node can be calculated.
  • the feedback direction can be calculated (the second node to the first Whether there is a packet loss or a packet loss amount on a node; according to the number of preset test packets sent by the first node and the number of preset test packets received by the first node, a test session can be calculated. The amount of lost packets.
  • the number of preset test packets sent and received by the first node, and the preset test packet received and fed back by the second node is stored in a type-length-value TLV format
  • the TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
  • the content field includes a first counter S_TxC configured to store the number of preset test messages sent by the first node, and a number configured to store the number of preset test messages received by the second node.
  • the fourth counter S_RxC may not be set in the content field.
  • the counter flipping should be considered when calculating the forward packet loss and the reverse packet loss. If a calculator is flipped, the packet loss measurement will not be performed correctly. Therefore, in the case of a given packet rate, the number of test packets and the size of the counter, it is necessary to prevent the counter from being inverted. That is, the time at which the first node measures the amount of packet loss needs to be less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
  • the packet transmission rate is 100 Gbps and the test packet size is 64 bytes, a 32 counter will be flipped within 22 seconds. Therefore, in this case, the interval of each packet loss statistics cannot be greater than 22 Seconds, the time interval is the maximum measurement interval at this rate.
  • the measurement interval is determined in advance (usually preset configuration and less than the flip time of any counter), so it can be based on the preset test messages sent and received within the test interval.
  • the number of bytes of the packet or packet is used to measure the capacity of the IP link to be tested.
  • step 43 includes:
  • Step 431 the second node writes the content of the first counter of the test message into the first counter of the response message
  • Step 432 the second node writes the number of preset test messages received by the second node into the second counter of the response message.
  • Step 433 the second node writes the number of the preset test packets that need to be fed back to the first node into the third counter of the response message.
  • Step 434 the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
  • the first counter, the second counter, and the third counter in the response message are all written into the corresponding number of preset test messages, and then fed back to the first node, where the first node is Writing, by the fourth counter, the number of received preset test messages, the first node can calculate the loss in any direction according to the contents of the first counter, the second counter, the third counter, and the fourth counter The amount of the package.
  • the method before the sending, by the first node, the test packet to the second node, the method further includes:
  • Step 40 Set a padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
  • the first node instructs the second node to specify a minimum length of the data area in the test message in the request session message to ensure that the padding data area in the test message can accommodate the content in the TLV format.
  • 7 is used as an example to illustrate the operation steps of the TLV in the non-authentication mode (the operation steps are the same in other modes), the node A represents the first node Session-Sender, and the node B represents the second node Session-Reflector:
  • Step 1 The two ends of the A and B to be tested are respectively configured to enable the function of parsing the packet loss measurement TLV, and the padding-length must be greater than 23 bytes in the request session is a request-TW-session message (testing TVL+ must have zero MBZ padding field length before testing TLV);
  • Step 2 At time T1, node A sends a test packet to node B (as shown in FIG. 8), and the first counter S_TxC counter of the test packet TLV carries the number of preset test packets that node A has sent. A_TxC[n], the other three counters are set to zero;
  • Step 3 At time T2, after receiving the test packet sent by A, the B end performs the packet collection statistics in this paragraph;
  • Step 4 At time T3, the B end will receive the S_TxC[n] counter in the test message TLV. From the B to the B-end response message (as shown in Figure 9), the S_TxC counter of the TLV copies the B-side packet statistics R_RxC[n] to the R_RxC counter that should be sent to the message TLV, and the B-side reflection message statistics R_TxC [n] copy to the R_TxC count of the response message TLV, wherein the S_RxC counter is cleared, and then B transmits the response message to the A end;
  • the S_TxC counter of the TLV copies the B-side packet statistics R_RxC[n] to the R_RxC counter that should be sent to the message TLV, and the B-side reflection message statistics R_TxC [n] copy to the R_TxC count of the response message TLV, wherein the S_RxC counter is cleared, and then B transmits the response message to the A end;
  • Step 5 At time T4, after receiving the response message, the A end performs the local receiving and collecting statistics, and simultaneously copies the collected receiving data S_RxC[n] to the S_RxC counter in the message TLV (if A The end collection device itself has the capability of performance statistics, and the S_RxC counter may not be set);
  • the performance statistics module can perform performance measurement according to the message counter of the response message TLV (including forward packet loss measurement, reverse packet loss measurement, forward packet loss rate measurement, and reverse loss).
  • the packet rate measurement and the corresponding packet loss rate jitter measurement can also be performed under the premise of a given packet rate and measurement interval, forward path capacity measurement and reverse path capacity measurement).
  • TxLoss[n-1,n] (A_TxC[n]-A_TxC[n-1])-(B_RxC[n]-B_RxC[n-1]);
  • RxLoss[n-1,n] (B_TxC[n]-B_TxC[n-1])-(A_RxC[n]-A_RxC[n-1]);
  • TxLossRadio[n-1,n] TxLoss[n-1,n]/(A_TxC[n]-A_TxC[n-1]);
  • RxLossRadio[n-1,n] RxLoss[n-1,n]/(B_TxC[n]-B_TxC[n-1]).
  • n refers to the nth packet loss statistics.
  • FIG. 10 shows the test message used in the embodiment of the present invention in the non-authentication mode and the symmetric mode.
  • the encapsulation format of the Sender-Test FIG. 11 shows the encapsulation format of the response message Reflector-Test used in the embodiment of the present invention in the non-authentication mode and the symmetric mode.
  • Other modes such as non-authentication mode, symmetric mode, reflection byte (Reflect Octets) mode test message Sender-Test and response message Reflector-Test package format are not listed here.
  • FIG. 12 is a first embodiment of the present invention, which is an application for measuring an IP network drop on demand by using an TWAMP protocol in the form of an additional statistical TLV.
  • the TWAMP is only performed.
  • the TWAMP test packet of the control panel is counted and the user packet is not counted.
  • the router RouterA acts as the Control-Client and the Session-Sender, and the RouterB serves as the Server and the Session-Reflector.
  • Step 11 First, the ability to parse the packet loss statistics TLV is enabled on RouterA and RouterB, and A initiates the establishment of the TWAMP-Control connection and the test session on the link.
  • Step 12 After the test command is sent on RouterA, the TWAMP process on RouterA sends the test packet to the routerA in the above manner.
  • RouterB also reflects the test packet to the A end in the foregoing implementation manner.
  • Step 14 After receiving the packet reflected by RouterB, RouterA performs packet statistics and performs packet loss measurement according to the above algorithm.
  • FIG. 13 shows a second embodiment of the present invention, which is an application for actively measuring network packet loss in the form of an additional statistical TLV using the TWAMP protocol.
  • hardware participation is required.
  • the performance statistics device needs to collect TWAMP test packets and user packets at the same time, and the case is only applicable to in-band packet loss measurement, including:
  • Step 21 is the same as the first embodiment. Router A and Router B need to enable the ability to parse the statistical TLV.
  • Step 22 After RouterA initiates the test command, the hardware device (for example, the field programmable gate array FPGA) sends a test packet to RouterB according to the configured rate and the packet size on the data plane.
  • the hardware device for example, the field programmable gate array FPGA
  • Step 23 After receiving the test packet sent by RouterA, the RouterB hardware device sends a test packet to RouterA and then sends a test packet to RouterA.
  • Step 24 After receiving the packet reflected by RouterB, RouterA performs packet statistics and performs packet loss measurement according to the above algorithm.
  • the third embodiment is an application for performing real-time monitoring of link loss on the basis of the second embodiment, including:
  • Step 31 First, configure a forward packet loss rate threshold and a reverse packet loss on RouterA. Rate threshold
  • Step 32 Implement the steps of the second embodiment on RouterA and RouterB.
  • Step 33 On Router A, the packet loss rate in the two directions on the monitoring link is implemented.
  • the packet loss rate in the corresponding direction exceeds the configured packet loss threshold, the corresponding alarm is reported to prompt the user to perform corresponding operations.
  • the embodiment of the present invention further provides a packet loss measurement apparatus, which is applied to a test session of a bidirectional active measurement protocol TWAMP, including:
  • the sending module 71 is configured to send, by the first node in the test session of the TWAMP, a test message that records the number of preset test messages to the second node;
  • the first receiving module 72 is configured to receive, by the second node, the packet statistics of the received test packet, to obtain the number of preset test packets received by the second node;
  • the feedback module 73 is configured to preprocess the preset test packet received by the second node by the second node, and obtain the number of preset test packets that are fed back to the first node, and receive the second node. The number of the preset test packets and the number of the preset test packets that are fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node;
  • the second receiving module 74 is configured to receive, by the first node, the response packet, and perform packet collection statistics on the received response packet, to obtain a preset test packet received by the first node. number;
  • the obtaining module 75 is configured to obtain, according to the number of preset test packets sent and received by the first node, and the number of preset test packets received and fed by the second node, The amount of packet loss in the TWAMP test session.
  • the number of preset test packets sent and received by the first node and the number of preset test packets received and fed by the second node are type-length- Value TLV format storage;
  • the TLV format includes a type field, a length field, and a content field, where the type field is used to define a type of the TLV format, the length field is used to define a length of the content field, and the content field is used to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
  • the content field includes a first counter that is configured to store the number of preset test packets sent by the first node, and is configured to store the preset test packet received by the second node. a second counter of the number, a third counter configured to store the number of preset test messages fed back by the second node to the first node, and a number of preset test messages received by the first node The fourth counter.
  • the feedback module 73 includes:
  • a first writing unit configured to: the second node writes a content of the first counter of the test message into a first counter of the response message;
  • the second writing unit is configured to write, by the second node, the number of preset test messages received by the second node into the second counter of the response message;
  • a third writing unit configured to: the second node writes the number of the preset test messages that are to be fed back to the first node into a third counter of the response message;
  • a feedback unit configured to: the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
  • the time that the first node measures the amount of packet loss is less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
  • the test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
  • the response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
  • the measuring device further includes:
  • the setting module is set to set the padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
  • the test packet sent by the first node and the response message fed back by the second node are added to the preset test packet sent and received by the corresponding node.
  • Number to achieve accurate measurement of packet loss on the link under test; this method does not need to change the relevant TWAMP protocol specifications and procedures, no need to add new modes, only need to extract corresponding from the response message
  • the number of preset test packets can be used to obtain packet loss or packet loss rate in each direction, which improves the accuracy of packet loss measurement.
  • the device for measuring packet loss provided by the embodiment of the present invention is a device applying the above measurement method, and the above measurement method is applicable to the measurement device in all embodiments, and all of the same or similar beneficial effects can be achieved.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the above technical solution does not need to change the relevant TWAMP protocol specifications and processes, and can obtain packet loss or packet loss rate in each direction without adding a new mode, thereby improving the accuracy of packet loss measurement.

Landscapes

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

Abstract

A packet loss measurement method and apparatus. The method includes: a first node in a TWAMP test session sends to a second node a test message recording the number of preset test messages; the second node performs received packets statistics for the received test messages, and obtains the number of the preset test messages received by the second node; the second node preprocesses the preset test messages received by the second node, obtains the number of preset test messages to be fed back to the first node, constructs a response message by adding in the test message the number of the preset test messages received by the second node and the number of the preset test messages to be fed back to the first node, and feeds back the response message to the first node; the first node performs received packets statistics for the received response message, and obtains the number of the preset test messages received by the first node; the first node acquires the number of lost packets in the TWAMP test session according to the number of the preset test messages. The above technical solution can improve the accuracy of the packet loss measurement.

Description

一种丢包的测量方法及装置Method and device for measuring packet loss 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种丢包的测量方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for measuring packet loss.
背景技术Background technique
TWAMP协议(Two-Way Active Measurement Protocol,双向主动测量协议)是一种IP性能度量的协议,主要用于IP网络链路时延和丢包率等性能度量。TWAMP协议由两部分协议组成:TWAMP控制协议(TWAMP-Control)和TWAMP测试协议(TWAMP-Test)。TWAMP-Control主要用于初始化、启动和停止测试会话。TWAMP-Test主要用于在测试的端点间交互测试分组,同时进行IP性能的度量。TWAMP (Two-Way Active Measurement Protocol) is a protocol for IP performance measurement. It is mainly used for performance measurement such as IP network link delay and packet loss rate. The TWAMP protocol consists of a two-part protocol: TWAMP Control Protocol (TWAMP-Control) and TWAMP Test Protocol (TWAMP-Test). TWAMP-Control is mainly used to initialize, start and stop test sessions. TWAMP-Test is mainly used to test test packets between endpoints of the test, while measuring IP performance.
TWAMP通常有4个逻辑实体组成,简单的体系架构如图1所示:TWAMP usually consists of 4 logical entities. The simple architecture is shown in Figure 1:
●客户端Control-Client:TWAMP测试发起端,向服务端Server实体发送建立控制连接请求,协商报文的通信模式、反射节点Session-Reflector端接收测试报文的端口号等。客户端Control-Client控制TWAMP-Test会话的开始和终止。● Client Control-Client: The TWAMP test initiator sends a control connection request to the server-side server entity, the communication mode of the negotiation packet, and the port number of the reflection-node Session-Reflector end to receive the test packet. The client Control-Client controls the start and end of the TWAMP-Test session.
●Server:服务端,接收来自客户端Control-Client端发送的建连请求,与客户端Control-Client协商报文通信模式、反射节点Session-Reflector端接收测试报文的端口号等。Server端管理一个或多个TEAMP-Test会话。● Server: The server receives the connection request sent from the client Control-Client, and negotiates the packet communication mode with the client Control-Client and the port number of the test node that receives the test packet from the Session-Reflector. The server side manages one or more TEAMP-Test sessions.
●发射节点Session-Sender:TWAMP-Test会话中向Session-Reflector发送测试报文的节点,同时接收来自反射节点Session-Reflector反射会的测试报文,并收集性能信息,统计测量结果。● The sending node Session-Sender: The node that sends the test packet to the Session-Reflector in the TWAMP-Test session, and receives the test packet from the reflection session of the reflection node, and collects the performance information and statistically measures the measurement result.
●反射节点Session-Reflector:TWAMP-Test会话中,接收来自发射节点Session-Sender端的测试报文,并发送应答报文。The reflection node Session-Reflector: in the TWAMP-Test session, receives the test packet from the Session-Sender end of the transmitting node, and sends a response message.
如图2所示,在测试阶段,首先由发射节点Session-Sender向反射节点Session-Reflector发送测试报文,该测试报文中包含报文发送的序 列号和时间戳。反射节点Session-Reflector在收到发射节点Session-Sender发来的测试报文后,将测试报文反射回发射节点Session-Sender,同时在反射的测试报文中加如自己的收包时间戳、发包时间戳和报文序列号等信息,如图3所示,发射节点Session-Sender收到反射节点Session-Reflector发射回的测试报文后,收集报文信息,并进行IP性能度量。图中TTL表示报文的存活时间(Time to live)。As shown in FIG. 2, in the test phase, the test node first sends a test message to the reflection node Session-Reflector, and the test message includes the sequence of message transmission. Column number and time stamp. After receiving the test packet sent by the sending node Session-Sender, the reflection node reflects the test packet back to the transmitting node Session-Sender, and adds the own receiving timestamp in the reflected test packet. The packet timestamp and the packet sequence number are as shown in FIG. 3. After receiving the test packet sent by the reflection node Session-Reflector, the sending node Session-Sender collects the packet information and performs IP performance measurement. The TTL in the figure indicates the time to live of the message.
假设我们将上述过程中发射节点Session-Sender的发包时间戳定义为T1,收包时间戳定义为T4,反射节点Session-Reflector的收包时间戳定义为T2,发包时间戳定位T3,那么可以通过以下方法计算链路的时延。Suppose we define the timestamp of the sending node Session-Sender as T1 in the above process, the receiving timestamp is defined as T4, the receiving timestamp of the reflecting node Session-Reflector is defined as T2, and the sending timestamp is positioned as T3, then we can pass The following method calculates the delay of the link.
链路时延=(T4-T1)-(T3-T2)。Link delay = (T4-T1) - (T3-T2).
Reflector处理时延=T3-T2。Reflector processing delay = T3-T2.
前向时延链路=T2-T1(网络时钟同步的情况下有意义,其它情况下无意义)。Forward delay link = T2-T1 (meaningful in the case of network clock synchronization, meaningless in other cases).
反向链路时延=T4-T3(网络时钟同步的情况下有意义,其它情况下无意义)。Reverse link delay = T4-T3 (meaningful in the case of network clock synchronization, meaningless in other cases).
假设我们将测试过程中,发射节点Session-Sender端发送的报文个数定义为TxC,接收反射节点Session-Reflector发射的报文个数定义为RxC,那么我可以通过TxC-RxC来计算整个还回链路的丢包数。这种方式虽然可以计算环回链路的丢包,但存在以下问题:Suppose we define the number of packets sent by the sending node Session-Sender as TxC during the test, and the number of packets sent by the receiving reflection session Session-Reflector is defined as RxC, then I can calculate the whole through TxC-RxC. The number of lost packets on the link back. Although this method can calculate the packet loss of the loopback link, the following problems exist:
1、丢包统计粒度比较粗,当链路上存在丢包时,我们无法准确判断在链路的那个方向上有丢包;1. The granularity of packet loss statistics is relatively coarse. When there is packet loss on the link, we cannot accurately determine that there is packet loss in that direction of the link.
2、无法精确统计每个方向上丢包率是多少;2. It is impossible to accurately count the packet loss rate in each direction;
3、虽然在Sender-Test测试报文中和Reflector-Test测试报文中,都携带了发送报文的序列号,但这两个序列号是独立生成的,它的生成依赖于每端的传输规则,因此,我们认为使用序列号来计算每个方向上的丢包统计是不可靠的;3. Although both the Sender-Test test message and the Reflector-Test test message carry the sequence number of the transmitted message, the two serial numbers are generated independently, and its generation depends on the transmission rules of each end. Therefore, we believe that using serial numbers to calculate the packet loss statistics in each direction is unreliable;
4、TWAMP协议在进行丢包测量时,只能统计TWAMP测试报文,无法统计用户报文(user data)。 4. When the TWAMP protocol performs packet loss measurement, only the TWAMP test packet can be counted, and the user data cannot be counted.
发明内容Summary of the invention
本发明实施例提供一种丢包的测量方法及装置,以实现无需改变相关双向主动测量协议TWAMP的规范和流程,也无需增加新的模式就达到精确度量待测链路上丢包的目的。The embodiment of the invention provides a method and a device for measuring packet loss, so as to achieve the purpose of accurately measuring the packet loss on the link to be tested without changing the specification and flow of the related bidirectional active measurement protocol TWAMP.
为了达到上述目的,本发明实施例提供一种丢包的测量方法,应用于双向主动测量协议TWAMP的测试会话中,包括:In order to achieve the above object, an embodiment of the present invention provides a method for measuring packet loss, which is applied to a test session of a bidirectional active measurement protocol TWAMP, including:
所述TWAMP的测试会话中的第一节点向第二节点发送记录有预设测试报文的个数的测试报文;The first node in the test session of the TWAMP sends a test message with the number of preset test messages to the second node;
所述第二节点对接收到的测试报文进行收包统计,得到所述第二节点接收到的预设测试报文的个数;The second node performs the packet collection statistics on the received test packet, and obtains the number of preset test packets received by the second node;
所述第二节点对所述第二节点接收到的预设测试报文进行预处理,得到向所述第一节点反馈的预设测试报文的个数,将所述第二节点接收到的预设测试报文的个数和向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文;The second node performs pre-processing on the preset test packet received by the second node, and obtains the number of preset test packets that are fed back to the first node, and receives the received by the second node. The number of the preset test packets and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node;
所述第一节点接收所述应答报文并对接收到的所述应答报文进行收包统计,得到所述第一节点接收到的预设测试报文的个数;Receiving, by the first node, the response packet, and performing the packet collection statistics on the received response packet, to obtain the number of preset test packets received by the first node;
所述第一节点根据所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数,获取所述TWAMP的测试会话中的丢包量。The first node acquires the test session of the TWAMP according to the number of preset test packets sent and received by the first node and the number of preset test packets received and fed back by the second node. The amount of lost packets.
其中,所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数采用类型-长度-值TLV格式存储;The number of preset test packets sent and received by the first node and the number of preset test packets received and fed by the second node are stored in a type-length-value TLV format;
所述TLV格式包括类型字段、长度字段和内容字段,其中,所述类型字段设置为定义所述TLV格式的类型,所述长度字段设置为定义所述内容字段的长度,所述内容字段设置为存储所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数。The TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
其中,所述内容字段包括设置为存储第一节点发送的预设测试报文的个数的第一计数器、设置为存储第二节点接收到的预设测试报文的个数的第二计数器、设置为存储第二节点向第一节点反馈的预设测试报文的个数的第三 计数器以及设置为存储第一节点收到的预设测试报文的个数的第四计数器。The content field includes a first counter configured to store the number of preset test messages sent by the first node, and a second counter configured to store the number of preset test messages received by the second node, Set to store the third number of preset test messages fed back by the second node to the first node And a counter configured to store the number of preset test messages received by the first node.
其中,所述将所述第二节点接收到的预设测试报文的个数和需向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文的步骤包括:The number of the preset test packets received by the second node and the number of preset test packets to be fed back to the first node are added to the test packet to form a response packet. The step of the first node feeding back the response message includes:
所述第二节点将所述测试报文的第一计数器的内容写入所述应答报文的第一计数器中;The second node writes the content of the first counter of the test message into the first counter of the response message;
所述第二节点将所述第二节点接收到的预设测试报文的个数写入所述应答报文的第二计数器中;The second node writes the number of preset test messages received by the second node into the second counter of the response message;
所述第二节点将所述需向第一节点反馈的预设测试报文的个数写入所述应答报文的第三计数器中;The second node writes the number of preset test messages that need to be fed back to the first node into the third counter of the response message;
所述第二节点将所述应答报文的第四计数器清零,并向所述第一节点反馈所述应答报文。The second node clears the fourth counter of the response message, and feeds back the response message to the first node.
其中,所述第一节点测量一次丢包量的时间小于或者等于所述第一计数器、第二计数器、第三计数器和第四计数器中最小的翻转时间。The time at which the first node measures the amount of packet loss is less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
其中,所述测试报文还包括:所述测试报文的序列号、所述测试报文的发送时间以及所述测试报文的填充数据包;The test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
所述应答报文还包括:所述第二节点接收所述测试报文的时间、所述第二节点向所述第一节点反馈应答报文的时间以及所述应答报文的序列号。The response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
其中,所述方法还包括:The method further includes:
第一节点向第二节点发送测试报文之前,Before the first node sends a test packet to the second node,
设置所述TWAMP的测试会话中的请求会话消息中的填充字段长度大于23个字节。The padding field length in the request session message in the test session of the TWAMP is set to be greater than 23 bytes.
本发明实施例还包括一种丢包的测量装置,应用于双向主动测量协议TWAMP的测试会话中,包括:The embodiment of the invention further includes a measurement device for packet loss, which is applied to a test session of the bidirectional active measurement protocol TWAMP, including:
发送模块,设置为所述TWAMP的测试会话中的第一节点向第二节点发送记录有预设测试报文的个数的测试报文;a sending module, configured to send, by the first node in the test session of the TWAMP, a test message that records the number of preset test messages to the second node;
第一接收模块,设置为所述第二节点对接收到的测试报文进行收包统计,得到所述第二节点接收到的预设测试报文的个数; The first receiving module is configured to: the second node collects the received test packet, and obtains the number of the preset test packets received by the second node;
反馈模块,设置为所述第二节点对所述第二节点接收到的预设测试报文进行预处理,得到向所述第一节点反馈的预设测试报文的个数,将所述第二节点接收到的预设测试报文的个数和向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文;a feedback module, configured to: the second node pre-processes a preset test packet received by the second node, and obtains a number of preset test packets that are fed back to the first node, where the number is The number of the preset test packets received by the two nodes and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response is fed back to the first node. Message
第二接收模块,设置为所述第一节点接收所述应答报文并对接收到的所述应答报文进行收包统计,得到所述第一节点接收到的预设测试报文的个数;The second receiving module is configured to receive, by the first node, the response packet, and perform packet collection statistics on the received response packet, to obtain the number of preset test packets received by the first node. ;
获取模块,设置为所述第一节点根据所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数,获取所述TWAMP的测试会话中的丢包量。Obtaining, the acquiring, by the first node, the number of the preset test packets sent and received by the first node, and the number of preset test packets received and fed by the second node, The amount of packet loss in the TWAMP test session.
其中,所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数采用类型-长度-值TLV格式存储;The number of preset test packets sent and received by the first node and the number of preset test packets received and fed by the second node are stored in a type-length-value TLV format;
所述TLV格式包括类型字段、长度字段和内容字段,其中,所述类型字段设置为定义所述TLV格式的类型,所述长度字段设置为定义所述内容字段的长度,所述内容字段设置为存储所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数。The TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
其中,所述内容字段包括设置为存储第一节点发送的预设测试报文的个数的第一计数器、设置为存储第二节点接收到的预设测试报文的个数的第二计数器、设置为存储第二节点向第一节点反馈的预设测试报文的个数的第三计数器以及设置为存储第一节点收到的预设测试报文的个数的第四计数器。The content field includes a first counter configured to store the number of preset test messages sent by the first node, and a second counter configured to store the number of preset test messages received by the second node, And a third counter configured to store the number of preset test messages fed back by the second node to the first node, and a fourth counter set to store the number of preset test messages received by the first node.
其中,所述反馈模块包括:The feedback module includes:
第一写入单元,设置为所述第二节点将所述测试报文的第一计数器的内容写入所述应答报文的第一计数器中;a first writing unit, configured to: the second node writes a content of the first counter of the test message into a first counter of the response message;
第二写入单元,设置为所述第二节点将所述第二节点接收到的预设测试报文的个数写入所述应答报文的第二计数器中;The second writing unit is configured to write, by the second node, the number of preset test messages received by the second node into the second counter of the response message;
第三写入单元,设置为所述第二节点将所述需向第一节点反馈的所述预设测试报文的个数写入所述应答报文的第三计数器中;a third writing unit, configured to: the second node writes the number of the preset test messages that are to be fed back to the first node into a third counter of the response message;
反馈单元,设置为所述第二节点将所述应答报文的第四计数器清零,并向所述第一节点反馈所述应答报文。And a feedback unit, configured to: the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
其中,所述第一节点测量一次丢包量的时间小于或者等于所述第一计数 器、第二计数器、第三计数器和第四计数器中最小的翻转时间。The time at which the first node measures the amount of packet loss is less than or equal to the first count. The minimum flip time of the second counter, the third counter, and the fourth counter.
其中,所述测试报文还包括:所述测试报文的序列号、所述测试报文的发送时间以及所述测试报文的填充数据包;The test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
所述应答报文还包括:所述第二节点接收所述测试报文的时间、所述第二节点向所述第一节点反馈应答报文的时间以及所述应答报文的序列号。The response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
其中,所述测量装置还包括:Wherein, the measuring device further comprises:
设置模块,设置为设置所述TWAMP的测试会话中的请求会话消息中的填充字段长度大于23个字节。The setting module is set to set the padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
本发明实施例还包括一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。Embodiments of the present invention also include a computer storage medium having stored therein computer executable instructions for performing the above method.
上述技术方案至少具有如下有益效果:The above technical solution has at least the following beneficial effects:
本发明实施例的丢包的测量方法及装置中,通过在第一节点发送的测试报文和第二节点反馈的应答报文中均加入对应节点处发送及接收的预设测试报文的个数,来达到精确度量待测链路上丢包的目的;该方法无需改变相关TWAMP协议规范和流程,无需增加新的模式,仅需从应答报文中提取相应的预设测试报文的个数,即可得到每个方向上的丢包或丢包率,提高丢包测量的准确性。In the method and device for measuring packet loss, the test packet sent by the first node and the response message fed back by the second node are added to the preset test packet sent and received by the corresponding node. Number, to achieve accurate measurement of the packet loss on the link to be tested; this method does not need to change the relevant TWAMP protocol specifications and procedures, no need to add a new mode, only need to extract the corresponding preset test message from the response message Count, you can get the packet loss or packet loss rate in each direction, improve the accuracy of packet loss measurement.
附图概述BRIEF abstract
图1表示表示相关技术中TWAMP协议的简单架构;1 shows a simple architecture showing the TWAMP protocol in the related art;
图2表示相关技术中非认证模式(Unauthenticated Mode)下测试报文Sender-Test的封装格式;2 shows a package format of a test message Sender-Test in an unauthenticated mode in the related art;
图3表示相关技术中非认证模式下应答报文Reflector-Test的封装格式;FIG. 3 is a diagram showing an encapsulation format of a response message Reflector-Test in a non-authentication mode in the related art;
图4表示本发明实施例的丢包的测量方法的基本步骤示意图;4 is a schematic diagram showing the basic steps of a method for measuring packet loss according to an embodiment of the present invention;
图5表示本发明实施例中用于丢包测量的TLV格式;FIG. 5 shows a TLV format for packet loss measurement in an embodiment of the present invention;
图6表示本发明实施例中应答报文的构成过程示意图; 6 is a schematic diagram showing a process of constructing a response message in an embodiment of the present invention;
图7表示本发明实施例的非认证模式下测量TLV的操作简图;7 is a schematic diagram showing the operation of measuring a TLV in a non-authentication mode according to an embodiment of the present invention;
图8表示本发明实施例的非认证模式下使用的测试报文Sender-Test的封装格式;8 is a block diagram showing a package format of a test message Sender-Test used in a non-authentication mode according to an embodiment of the present invention;
图9表示本发明实施例的非认证模式下使用的应答报文Reflector-Test的封装格式;FIG. 9 is a diagram showing an encapsulation format of a response message Reflector-Test used in a non-authentication mode according to an embodiment of the present invention;
图10表示本发明实施例的非认证模式和对称模式下(Symmetrical Mode)使用的测试报文Sender-Test的封装格式;FIG. 10 is a diagram showing a package format of a test message Sender-Test used in a non-authentication mode and a symmetric mode according to an embodiment of the present invention;
图11表示本发明实施例的非认证模式和对称模式下使用的应答报文Reflector-Test的封装格式;11 is a diagram showing an encapsulation format of a response message Reflector-Test used in a non-authentication mode and a symmetric mode according to an embodiment of the present invention;
图12表示本发明的第一实施例的基本结构示意图;Figure 12 is a view showing the basic structure of the first embodiment of the present invention;
图13表示本发明的第二实施例和第三实施例的基本结构示意图;Figure 13 is a view showing the basic structure of a second embodiment and a third embodiment of the present invention;
图14表示本发明实施例的丢包的测量装置的组成结构示意图。FIG. 14 is a block diagram showing the structure of a packet loss measuring apparatus according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面将结合附图及实施例进行详细描述。The detailed description will be made below in conjunction with the accompanying drawings and embodiments.
本发明实施例针对相关技术中丢包统计比较粗,当链路上存在丢包时,无法准确判断在链路的那个方向上有丢包的问题,提供一种丢包的测量方法及装置中,通过在第一节点发送的测试报文和第二节点反馈的应答报文中均加入对应节点处发送及接收的预设测试报文的个数,来达到精确度量待测链路上丢包的目的;该方法无需改变相关TWAMP协议规范和流程,无需增加新的模式,仅需从应答报文中提取相应的预设测试报文的个数,即可得到每个方向上的丢包或丢包率,提高丢包测量的准确性。In the embodiment of the present invention, the packet loss statistics are relatively coarse in the related art. When there is a packet loss on the link, the problem of packet loss in the direction of the link cannot be accurately determined, and a method and a device for measuring packet loss are provided. The number of preset test packets sent and received at the corresponding node is added to the test packet sent by the first node and the response message sent by the second node to accurately measure the packet loss on the link to be tested. The purpose of this method is that the method does not need to change the relevant TWAMP protocol specifications and processes, and no need to add a new mode, only need to extract the number of corresponding preset test messages from the response message, and then obtain packet loss in each direction or The packet loss rate improves the accuracy of packet loss measurement.
如图4所示,本发明实施例提供一种丢包的测量方法,应用于双向主动测量协议TWAMP的测试会话中,包括:As shown in FIG. 4, an embodiment of the present invention provides a method for measuring packet loss, which is applied to a test session of a bidirectional active measurement protocol TWAMP, including:
步骤41,所述TWAMP的测试会话中的第一节点向第二节点发送记录有预设测试报文的个数的测试报文;Step 41: The first node in the test session of the TWAMP sends a test packet with the number of preset test packets to the second node.
步骤42,所述第二节点对接收到的所述测试报文进行收包统计,得到所述第二节点接收到的预设测试报文的个数; Step 42: The second node performs packet collection statistics on the received test packet, and obtains the number of preset test packets received by the second node.
步骤43,所述第二节点对所述第二节点接收到的预设测试报文进行预处理,得到向所述第一节点反馈的预设测试报文的个数,将所述第二节点接收到的预设测试报文的个数和向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文;Step 43: The second node performs pre-processing on the preset test packet received by the second node, and obtains the number of preset test packets fed back to the first node, where the second node is The number of the received preset test packets and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node. ;
步骤44,所述第一节点接收所述应答报文并对接收到的所述应答报文进行收包统计,得到所述第一节点接收到的预设测试报文的个数;Step 44: The first node receives the response packet and collects the received response message, and obtains the number of preset test packets received by the first node.
步骤45,所述第一节点根据所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数,获取所述TWAMP的测试会话中的丢包量。Step 45: The first node acquires the TWAMP according to the number of preset test messages sent and received by the first node, and the number of preset test messages received and fed back by the second node. The amount of lost packets in the test session.
本发明的上述实施例应用于双向主动测量协议TWAMP的测试会话中,可选地,所述第一节点为发射节点Session-Sender,所述第二节点为反射节点Session-Reflector;该测试报文中还包括:所述测试报文的序列号、所述测试报文的发送时间以及所述测试报文的填充数据包;该应答报文还包括:所述第二节点接收所述测试报文的时间、所述第二节点向所述第一节点反馈应答报文的时间以及所述应答报文的序列号。第一节点收到第二节点发射回的应答报文后,收集该应答报文的信息,并进行IP性能度量;上述技术方案由于在测试报文及应答报文中均加入相应预设测试报文的个数,方便用户或系统根据不同节点、不同方向上的预设测试报文的个数,对传输过程中的丢包或丢包率进行统计,该方法能够准确判断在链路的哪个方向上存在丢包,且能准确计算上存在丢包的方向上的丢包量或丢包率。The foregoing embodiment of the present invention is applied to a test session of the bidirectional active measurement protocol TWAMP. Optionally, the first node is a transmitting node Session-Sender, and the second node is a reflective node Session-Reflector; the test packet The method further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet; the response message further includes: the second node receiving the test packet The time at which the second node feeds back the response message to the first node and the sequence number of the response message. After receiving the response packet sent by the second node, the first node collects the information of the response packet and performs IP performance measurement. The technical solution adds a corresponding preset test report to both the test packet and the response packet. The number of texts is convenient for the user or the system to count the number of default test packets in different directions and in different directions, and to calculate the packet loss or packet loss rate during transmission. This method can accurately determine which link in the link. There is a packet loss in the direction, and the packet loss or packet loss rate in the direction in which the packet is lost can be accurately calculated.
上述技术方案,根据第一节点发送的预设测试报文的个数和第二节点接收的预设测试报文的个数,能够计算出发送方向(第一节点至第二节点)上是否存在丢包及丢包量;根据第二节点接收的预设测试报文的个数和第二节点向第一节点反馈的预设测试报文的个数,能够计算出第二节点的预处理过程中是否存在丢包及丢包量;根据第二节点反馈的预设测试报文的个数和第一节点接收的预设测试报文的个数,能够计算出反馈方向(第二节点至第一节点)上是否存在丢包及丢包量;根据第一节点发送的预设测试报文的个数和第一节点接收的预设测试报文的个数,能够计算出一次测试会话过程中的丢包量。 The foregoing technical solution can calculate whether the sending direction (the first node to the second node) exists according to the number of preset test packets sent by the first node and the number of preset test packets received by the second node. Packet loss and packet loss; according to the number of preset test packets received by the second node and the number of preset test packets fed back to the first node by the second node, the preprocessing process of the second node can be calculated. Whether there is a packet loss or a packet loss amount; according to the number of preset test packets fed back by the second node and the number of preset test packets received by the first node, the feedback direction can be calculated (the second node to the first Whether there is a packet loss or a packet loss amount on a node; according to the number of preset test packets sent by the first node and the number of preset test packets received by the first node, a test session can be calculated. The amount of lost packets.
可选的,如图5所示,本发明的上述实施例中,所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数采用类型-长度-值TLV格式存储;Optionally, as shown in FIG. 5, in the foregoing embodiment of the present invention, the number of preset test packets sent and received by the first node, and the preset test packet received and fed back by the second node. The number is stored in a type-length-value TLV format;
所述TLV格式包括类型字段、长度字段和内容字段,其中,所述类型字段设置为定义所述TLV格式的类型,所述长度字段设置为定义所述内容字段的长度,所述内容字段设置为存储所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数。The TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
可选的,所述内容字段包括设置为存储第一节点发送的预设测试报文的个数的第一计数器S_TxC、设置为存储第二节点接收到的预设测试报文的个数的第二计数器R_RxC、设置为存储第二节点向第一节点反馈的预设测试报文的个数的第三计数器R_TxC以及设置为存储第一节点收到的预设测试报文的个数的第四计数器S_RxC。Optionally, the content field includes a first counter S_TxC configured to store the number of preset test messages sent by the first node, and a number configured to store the number of preset test messages received by the second node. a second counter R_RxC, a third counter R_TxC configured to store the number of preset test messages fed back by the second node to the first node, and a fourth set to store the number of preset test messages received by the first node Counter S_RxC.
可选的,本发明实施例的实际应用中,若第一节点的收包装置自身具备性能统计的能力,所述内容字段中可不设置第四计数器S_RxC。可选的,在计算前向丢包和反向丢包时要考虑计数器的翻转,如果某个计算器发生了翻转,将无法正确进行丢包测量。因此在给定发包速率,预设测试报文个数及计数器大小的情况下,必须防止计数器翻转的情况的发生。即所述第一节点测量一次丢包量的时间需要小于或者等于所述第一计数器、第二计数器、第三计数器和第四计数器中最小的翻转时间。例如,发包速率为100Gbps,测试报文大小为64字节的情况下,一个32的计数器将在22秒内发生翻转,因此,在这种情况下,每次丢包统计的时间间隔不能大于22秒,该时间间隔为该速率下最大测量间隔。Optionally, in the practical application of the embodiment of the present invention, if the receiving device of the first node has the capability of performance statistics, the fourth counter S_RxC may not be set in the content field. Optionally, the counter flipping should be considered when calculating the forward packet loss and the reverse packet loss. If a calculator is flipped, the packet loss measurement will not be performed correctly. Therefore, in the case of a given packet rate, the number of test packets and the size of the counter, it is necessary to prevent the counter from being inverted. That is, the time at which the first node measures the amount of packet loss needs to be less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter. For example, if the packet transmission rate is 100 Gbps and the test packet size is 64 bytes, a 32 counter will be flipped within 22 seconds. Therefore, in this case, the interval of each packet loss statistics cannot be greater than 22 Seconds, the time interval is the maximum measurement interval at this rate.
通常在实施TWAMP测量时,测量间隔是事先确定好的(通常的预设配置的,且小于任一计数器的翻转时间),因此可以根据该测试间隔内发送和接收的预设测试报文的个数或报文的字节数来测量待测IP链路的容量。Usually when performing TWAMP measurement, the measurement interval is determined in advance (usually preset configuration and less than the flip time of any counter), so it can be based on the preset test messages sent and received within the test interval. The number of bytes of the packet or packet is used to measure the capacity of the IP link to be tested.
可选的,本发明上述实施例中,如图6所示,步骤43包括:Optionally, in the foregoing embodiment of the present invention, as shown in FIG. 6, step 43 includes:
步骤431,所述第二节点将所述测试报文的第一计数器的内容写入所述应答报文的第一计数器中; Step 431, the second node writes the content of the first counter of the test message into the first counter of the response message;
步骤432,所述第二节点将所述第二节点接收到的预设测试报文的个数写入所述应答报文的第二计数器中; Step 432, the second node writes the number of preset test messages received by the second node into the second counter of the response message.
步骤433,所述第二节点将需向第一节点反馈的所述预设测试报文的个数写入所述应答报文的第三计数器中; Step 433, the second node writes the number of the preset test packets that need to be fed back to the first node into the third counter of the response message.
步骤434,所述第二节点将所述应答报文的第四计数器清零,并向所述第一节点反馈所述应答报文。 Step 434, the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
本发明上述实施例中,所述应答报文中第一计数器、第二计数器和第三计数器中均写入相应的预设测试报文的个数后再反馈给第一节点,第一节点在第四计数器中写入收到的预设测试报文的个数,则所述第一节点能够根据第一计数器、第二计数器、第三计数器和第四计数器的内容,计算任一方向上的丢包量。In the foregoing embodiment of the present invention, the first counter, the second counter, and the third counter in the response message are all written into the corresponding number of preset test messages, and then fed back to the first node, where the first node is Writing, by the fourth counter, the number of received preset test messages, the first node can calculate the loss in any direction according to the contents of the first counter, the second counter, the third counter, and the fourth counter The amount of the package.
可选的,本发明的上述实施例中,所述第一节点向第二节点发送测试报文之前还包括:Optionally, in the foregoing embodiment of the present invention, before the sending, by the first node, the test packet to the second node, the method further includes:
步骤40,设置所述TWAMP的测试会话中的请求会话消息中的填充字段长度大于23个字节。Step 40: Set a padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
第一节点向第二节点在请求会话消息中指定测试报文中填充数据区的最小长度,以确保测试报文中的填充数据区能够容纳所述TLV格式的内容。下面以图7为例来说明非认证模式下(其他模式下操作步骤相同)对该TLV的操作步骤,节点A代表第一节点Session-Sender,节点B代表第二节点Session-Reflector:The first node instructs the second node to specify a minimum length of the data area in the test message in the request session message to ensure that the padding data area in the test message can accommodate the content in the TLV format. 7 is used as an example to illustrate the operation steps of the TLV in the non-authentication mode (the operation steps are the same in other modes), the node A represents the first node Session-Sender, and the node B represents the second node Session-Reflector:
步骤1,待测的A、B两端分别配置使能解析该丢包测量TLV的功能,并且在请求会话是request-TW-session消息中填充长度(padding-length)必须大于23字节(测试TVL+测试TLV之前的必须为零MBZ填充字段长度);Step 1: The two ends of the A and B to be tested are respectively configured to enable the function of parsing the packet loss measurement TLV, and the padding-length must be greater than 23 bytes in the request session is a request-TW-session message (testing TVL+ must have zero MBZ padding field length before testing TLV);
步骤2,在T1时刻,节点A向节点B发送测试报文(如图8所示),在测试报文TLV的第一计数器S_TxC计数器携带节点A节点已经发送的预设测试报文的个数A_TxC[n],其它三个计数器置零;Step 2: At time T1, node A sends a test packet to node B (as shown in FIG. 8), and the first counter S_TxC counter of the test packet TLV carries the number of preset test packets that node A has sent. A_TxC[n], the other three counters are set to zero;
步骤3,在T2时刻,B端收到A发来的测试报文后,进行本段收包统计;Step 3: At time T2, after receiving the test packet sent by A, the B end performs the packet collection statistics in this paragraph;
步骤4,在T3时刻,B端将收到测试报文TLV中的S_TxC[n]计数器拷 贝到B端应答报文(如图9所示)TLV的S_TxC计数器中,将B端收包统计R_RxC[n]拷贝到应到报文TLV的R_RxC计数器中,将B端反射报文统计R_TxC[n]拷贝到应答报文TLV的R_TxC计数其中,S_RxC计数器清零,之后B向A端发射该应答报文;Step 4: At time T3, the B end will receive the S_TxC[n] counter in the test message TLV. From the B to the B-end response message (as shown in Figure 9), the S_TxC counter of the TLV copies the B-side packet statistics R_RxC[n] to the R_RxC counter that should be sent to the message TLV, and the B-side reflection message statistics R_TxC [n] copy to the R_TxC count of the response message TLV, wherein the S_RxC counter is cleared, and then B transmits the response message to the A end;
步骤5,在T4时刻,A端收到应道报文后进行本端收包统计,同时将统计到的收包统计S_RxC[n]拷贝到应到报文TLV中的S_RxC计数器中(如果A端收包装置自身具备性能统计的能力,可不设置S_RxC计数器);Step 5: At time T4, after receiving the response message, the A end performs the local receiving and collecting statistics, and simultaneously copies the collected receiving data S_RxC[n] to the S_RxC counter in the message TLV (if A The end collection device itself has the capability of performance statistics, and the S_RxC counter may not be set);
步骤6,在A端,性能统计模块,可根据应答报文TLV的报文计数器,进行性能测量(包括,前向丢包测量、反向丢包测量、前向丢包率测量、反向丢包率测量和相应丢包率抖动测量,在给定发包速率和测量间隔的前提下亦可进行,前向路径容量测量和反向路径容量测量)。In step 6, on the A side, the performance statistics module can perform performance measurement according to the message counter of the response message TLV (including forward packet loss measurement, reverse packet loss measurement, forward packet loss rate measurement, and reverse loss). The packet rate measurement and the corresponding packet loss rate jitter measurement can also be performed under the premise of a given packet rate and measurement interval, forward path capacity measurement and reverse path capacity measurement).
根据以上步骤可以用以下算法进行丢包和容量测量:According to the above steps, you can use the following algorithm to perform packet loss and capacity measurement:
前向丢包:TxLoss[n-1,n]=(A_TxC[n]-A_TxC[n-1])-(B_RxC[n]-B_RxC[n-1]);Forward packet loss: TxLoss[n-1,n]=(A_TxC[n]-A_TxC[n-1])-(B_RxC[n]-B_RxC[n-1]);
反向丢包:RxLoss[n-1,n]=(B_TxC[n]-B_TxC[n-1])-(A_RxC[n]-A_RxC[n-1]);Reverse packet loss: RxLoss[n-1,n]=(B_TxC[n]-B_TxC[n-1])-(A_RxC[n]-A_RxC[n-1]);
前向丢包率:TxLossRadio[n-1,n]=TxLoss[n-1,n]/(A_TxC[n]-A_TxC[n-1]);Forward packet loss rate: TxLossRadio[n-1,n]=TxLoss[n-1,n]/(A_TxC[n]-A_TxC[n-1]);
反向丢包率:RxLossRadio[n-1,n]=RxLoss[n-1,n]/(B_TxC[n]-B_TxC[n-1])。n指的是第n次丢包统计。Reverse packet loss rate: RxLossRadio[n-1,n]=RxLoss[n-1,n]/(B_TxC[n]-B_TxC[n-1]). n refers to the nth packet loss statistics.
需要说明的是,其他模式下,对该TLV的操作步骤与上述非认证模式下的操作步骤相同;例如图10显示非认证模式和对称模式下(Symmetrical Mode)本发明实施例使用的测试报文Sender-Test的封装格式;图11显示非认证模式和对称模式下本发明实施例使用的应答报文Reflector-Test的封装格式。其他模式,如非认证模式、对称模式、反射字节(Reflect Octets)模式下测试报文Sender-Test及应答报文Reflector-Test的封装格式在此不一一列举。It should be noted that, in other modes, the operation steps of the TLV are the same as those in the non-authentication mode; for example, FIG. 10 shows the test message used in the embodiment of the present invention in the non-authentication mode and the symmetric mode. The encapsulation format of the Sender-Test; FIG. 11 shows the encapsulation format of the response message Reflector-Test used in the embodiment of the present invention in the non-authentication mode and the symmetric mode. Other modes, such as non-authentication mode, symmetric mode, reflection byte (Reflect Octets) mode test message Sender-Test and response message Reflector-Test package format are not listed here.
为了更好的描述本发明实施例的测量方法,下面结合应用场景进行详细 描述,如图12所示为本发明的第一实施例,是一种使用TWAMP协议,以一种附加统计TLV的形式,进行按需测量IP网络丢包的应用,该实例中TWAMP进行只对控制面板TWAMP测试报文进行统计,不统计用户报文。其中路由器RouterA作为Control-Client和Session-Sender,路由器RouterB作为Server和Session-Reflector,包括:In order to better describe the measurement method of the embodiment of the present invention, the following details are combined with the application scenario. Description, as shown in FIG. 12 is a first embodiment of the present invention, which is an application for measuring an IP network drop on demand by using an TWAMP protocol in the form of an additional statistical TLV. In this example, the TWAMP is only performed. The TWAMP test packet of the control panel is counted and the user packet is not counted. The router RouterA acts as the Control-Client and the Session-Sender, and the RouterB serves as the Server and the Session-Reflector.
步骤11,首先在RouterA和RouterB上使能解析丢包统计TLV能力,并由A发起建立TWAMP-Control连接和该链接上的测试会话;Step 11: First, the ability to parse the packet loss statistics TLV is enabled on RouterA and RouterB, and A initiates the establishment of the TWAMP-Control connection and the test session on the link.
步骤12,在RouterA上发起测试指令后,RouterA上TWAMP进程以上述实施方式,在控制面向routerA发送测试报文;Step 12: After the test command is sent on RouterA, the TWAMP process on RouterA sends the test packet to the routerA in the above manner.
步骤13,RouterB也以上述实施方式向A端反射测试报文;In Step 13, RouterB also reflects the test packet to the A end in the foregoing implementation manner.
步骤14,RouterA收到RouterB反射回的报文后,进行报文信息统计,并按上述算法进行丢包测量。Step 14: After receiving the packet reflected by RouterB, RouterA performs packet statistics and performs packet loss measurement according to the above algorithm.
如图13所示为本发明的第二实施例,是一种使用TWAMP协议,以一种附加统计TLV的形式,进行主动测量网络丢包的应用。在实施时需要有硬件参与,如FPGA,性能统计装置需要同时统计TWAMP测试报文和用户报文,并且该案例只适用于带内丢包测量,包括:FIG. 13 shows a second embodiment of the present invention, which is an application for actively measuring network packet loss in the form of an additional statistical TLV using the TWAMP protocol. In the implementation, hardware participation is required. For example, the performance statistics device needs to collect TWAMP test packets and user packets at the same time, and the case is only applicable to in-band packet loss measurement, including:
步骤21,与第一实施例相同,RouterA和RouterB需要开启解析统计TLV的能力;Step 21 is the same as the first embodiment. Router A and Router B need to enable the ability to parse the statistical TLV.
步骤22,当RouterA发起测试指令后,由硬件设备(例如现场可编程门阵列FPGA)在数据面立即按配置的速率和报文大小,向RouterB发送测试报文;Step 22: After RouterA initiates the test command, the hardware device (for example, the field programmable gate array FPGA) sends a test packet to RouterB according to the configured rate and the packet size on the data plane.
步骤23,RouterB硬件设备收到RouterA发来的测试报文后,进行相应报文统计后,立即向RouterA反射测试报文;Step 23: After receiving the test packet sent by RouterA, the RouterB hardware device sends a test packet to RouterA and then sends a test packet to RouterA.
步骤24,RouterA收到RouterB反射回的报文后,进行报文信息统计,并按上述算法进行丢包测量。Step 24: After receiving the packet reflected by RouterB, RouterA performs packet statistics and performs packet loss measurement according to the above algorithm.
如图13所示,第三实施例是一种在第二实施例的基础上,进行实时监控链路丢包的一种应用,包括:As shown in FIG. 13, the third embodiment is an application for performing real-time monitoring of link loss on the basis of the second embodiment, including:
步骤31,首先在RouterA上配置一个前向丢包率门限值和一个反向丢包 率门限值;Step 31: First, configure a forward packet loss rate threshold and a reverse packet loss on RouterA. Rate threshold
步骤32,在RouterA和RouterB上实施第二实施例的步骤;Step 32: Implement the steps of the second embodiment on RouterA and RouterB.
步骤33,在RouterA上,实施监控链路上两个方向的丢包率,当相应方向上的丢包率达超过配置的丢包门限时,上报相应的告警,提示用户做相应操作。Step 33: On Router A, the packet loss rate in the two directions on the monitoring link is implemented. When the packet loss rate in the corresponding direction exceeds the configured packet loss threshold, the corresponding alarm is reported to prompt the user to perform corresponding operations.
为了更好的实现上述目的,如图14所示,本发明实施例还提供一种丢包的测量装置,应用于双向主动测量协议TWAMP的测试会话中,包括:In order to achieve the above objective, as shown in FIG. 14, the embodiment of the present invention further provides a packet loss measurement apparatus, which is applied to a test session of a bidirectional active measurement protocol TWAMP, including:
发送模块71,设置为所述TWAMP的测试会话中的第一节点向第二节点发送记录有预设测试报文的个数的测试报文;The sending module 71 is configured to send, by the first node in the test session of the TWAMP, a test message that records the number of preset test messages to the second node;
第一接收模块72,设置为所述第二节点对接收到的所述测试报文进行收包统计,得到第二节点接收到的预设测试报文的个数;The first receiving module 72 is configured to receive, by the second node, the packet statistics of the received test packet, to obtain the number of preset test packets received by the second node;
反馈模块73,设置为所述第二节点对第二节点接收到的所述预设测试报文进行预处理,得到向第一节点反馈的预设测试报文的个数,将第二节点接收到的预设测试报文的个数和向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文;The feedback module 73 is configured to preprocess the preset test packet received by the second node by the second node, and obtain the number of preset test packets that are fed back to the first node, and receive the second node. The number of the preset test packets and the number of the preset test packets that are fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node;
第二接收模块74,设置为所述第一节点接收所述应答报文并对接收到的所述应答报文进行收包统计,得到所述第一节点接收到的预设测试报文的个数;The second receiving module 74 is configured to receive, by the first node, the response packet, and perform packet collection statistics on the received response packet, to obtain a preset test packet received by the first node. number;
获取模块75,设置为所述第一节点根据所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数,获取所述TWAMP的测试会话中的丢包量。The obtaining module 75 is configured to obtain, according to the number of preset test packets sent and received by the first node, and the number of preset test packets received and fed by the second node, The amount of packet loss in the TWAMP test session.
可选的本发明上述实施例中,所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数采用类型-长度-值TLV格式存储;In an optional embodiment of the present invention, the number of preset test packets sent and received by the first node and the number of preset test packets received and fed by the second node are type-length- Value TLV format storage;
所述TLV格式包括类型字段、长度字段和内容字段,其中,所述类型字段用于定义所述TLV格式的类型,所述长度字段用于定义所述内容字段的长度,所述内容字段用于存储所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数。 The TLV format includes a type field, a length field, and a content field, where the type field is used to define a type of the TLV format, the length field is used to define a length of the content field, and the content field is used to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
可选的本发明上述实施例中,所述内容字段包括设置为存储第一节点发送的预设测试报文的个数的第一计数器、设置为存储第二节点接收到的预设测试报文的个数的第二计数器、设置为存储第二节点向第一节点反馈的预设测试报文的个数的第三计数器以及设置为存储第一节点收到的预设测试报文的个数的第四计数器。In an optional embodiment of the present invention, the content field includes a first counter that is configured to store the number of preset test packets sent by the first node, and is configured to store the preset test packet received by the second node. a second counter of the number, a third counter configured to store the number of preset test messages fed back by the second node to the first node, and a number of preset test messages received by the first node The fourth counter.
可选的本发明上述实施例中,所述反馈模块73包括:In the foregoing embodiment of the present invention, the feedback module 73 includes:
第一写入单元,设置为所述第二节点将所述测试报文的第一计数器的内容写入所述应答报文的第一计数器中;a first writing unit, configured to: the second node writes a content of the first counter of the test message into a first counter of the response message;
第二写入单元,设置为所述第二节点将所述第二节点接收到的预设测试报文的个数写入所述应答报文的第二计数器中;The second writing unit is configured to write, by the second node, the number of preset test messages received by the second node into the second counter of the response message;
第三写入单元,设置为所述第二节点将所述需向第一节点反馈的所述预设测试报文的个数写入所述应答报文的第三计数器中;a third writing unit, configured to: the second node writes the number of the preset test messages that are to be fed back to the first node into a third counter of the response message;
反馈单元,设置为所述第二节点将所述应答报文的第四计数器清零,并向所述第一节点反馈所述应答报文。And a feedback unit, configured to: the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
可选的本发明上述实施例中,所述第一节点测量一次丢包量的时间小于或者等于所述第一计数器、第二计数器、第三计数器和第四计数器中最小的翻转时间。In an optional embodiment of the present invention, the time that the first node measures the amount of packet loss is less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
可选的本发明上述实施例中,所述测试报文还包括:所述测试报文的序列号、所述测试报文的发送时间以及所述测试报文的填充数据包;In an optional embodiment of the present invention, the test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
所述应答报文还包括:所述第二节点接收所述测试报文的时间、所述第二节点向所述第一节点反馈应答报文的时间以及所述应答报文的序列号。The response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
可选的本发明上述实施例中,所述测量装置还包括:In an optional embodiment of the present invention, the measuring device further includes:
设置模块,设置为设置所述TWAMP的测试会话中的请求会话消息中的填充字段长度大于23个字节。The setting module is set to set the padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
本发明实施例的丢包的测量方法及装置中,通过在第一节点发送的测试报文和第二节点反馈的应答报文中均加入对应节点处发送及接收的预设测试报文的个数,来达到精确度量待测链路上丢包的目的;该方法无需改变相关TWAMP协议规范和流程,无需增加新的模式,仅需从应答报文中提取相应 的预设测试报文的个数,即可得到每个方向上的丢包或丢包率,提高丢包测量的准确性。In the method and device for measuring packet loss, the test packet sent by the first node and the response message fed back by the second node are added to the preset test packet sent and received by the corresponding node. Number, to achieve accurate measurement of packet loss on the link under test; this method does not need to change the relevant TWAMP protocol specifications and procedures, no need to add new modes, only need to extract corresponding from the response message The number of preset test packets can be used to obtain packet loss or packet loss rate in each direction, which improves the accuracy of packet loss measurement.
需要说明的是,本发明实施例提供的丢包的测量装置是应用上述测量方法的装置,则上述测量方法是所有实施例均适用于该测量装置,且均能达到相同或相似的有益效果。It should be noted that the device for measuring packet loss provided by the embodiment of the present invention is a device applying the above measurement method, and the above measurement method is applicable to the measurement device in all embodiments, and all of the same or similar beneficial effects can be achieved.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should also be considered as the scope of protection of the present invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
上述技术方案无需改变相关TWAMP协议规范和流程,无需增加新的模式,就能得到每个方向上的丢包或丢包率,提高丢包测量的准确性。 The above technical solution does not need to change the relevant TWAMP protocol specifications and processes, and can obtain packet loss or packet loss rate in each direction without adding a new mode, thereby improving the accuracy of packet loss measurement.

Claims (15)

  1. 一种丢包的测量方法,包括:A method of measuring packet loss, including:
    双向主动测量协议TWAMP的测试会话中的第一节点向第二节点发送记录有预设测试报文的个数的测试报文;The first node in the test session of the two-way active measurement protocol TWAMP sends a test message with the number of preset test messages to the second node;
    所述第二节点对接收到的测试报文进行收包统计,得到所述第二节点接收到的预设测试报文的个数;The second node performs the packet collection statistics on the received test packet, and obtains the number of preset test packets received by the second node;
    所述第二节点对所述第二节点接收到的预设测试报文进行预处理,得到向所述第一节点反馈的预设测试报文的个数,将所述第二节点接收到的预设测试报文的个数和向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文;The second node performs pre-processing on the preset test packet received by the second node, and obtains the number of preset test packets that are fed back to the first node, and receives the received by the second node. The number of the preset test packets and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node;
    所述第一节点接收所述应答报文并对接收到的所述应答报文进行收包统计,得到所述第一节点接收到的预设测试报文的个数;Receiving, by the first node, the response packet, and performing the packet collection statistics on the received response packet, to obtain the number of preset test packets received by the first node;
    所述第一节点根据所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数,获取所述TWAMP的测试会话中的丢包量。The first node acquires the test session of the TWAMP according to the number of preset test packets sent and received by the first node and the number of preset test packets received and fed back by the second node. The amount of lost packets.
  2. 根据权利要求1所述的测量方法,其中,所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数采用类型-长度-值TLV格式存储;The measurement method according to claim 1, wherein the number of preset test messages sent and received by the first node and the number of preset test messages received and fed back by the second node are of a type- Length-value TLV format storage;
    所述TLV格式包括类型字段、长度字段和内容字段,其中,所述类型字段设置为定义所述TLV格式的类型,所述长度字段设置为定义所述内容字段的长度,所述内容字段设置为存储所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数。The TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
  3. 根据权利要求2所述的测量方法,其中,所述内容字段包括设置为存储第一节点发送的预设测试报文的个数的第一计数器、设置为存储第二节点接收到的预设测试报文的个数的第二计数器、设置为存储第二节点向第一节点反馈的预设测试报文的个数的第三计数器以及设置为存储第一节点收到的预设测试报文的个数的第四计数器。The measurement method according to claim 2, wherein the content field comprises a first counter configured to store a number of preset test messages sent by the first node, and configured to store a preset test received by the second node. a second counter of the number of the packets, a third counter configured to store the number of preset test messages fed back by the second node to the first node, and a preset to store the preset test message received by the first node The fourth counter of the number.
  4. 根据权利要求3所述的测量方法,其中,所述将所述第二节点接收到 的预设测试报文的个数和需向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文的步骤包括:The measuring method according to claim 3, wherein said receiving said second node The number of the preset test packets and the number of the preset test packets to be fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node. The steps include:
    所述第二节点将所述测试报文的第一计数器的内容写入所述应答报文的第一计数器中;The second node writes the content of the first counter of the test message into the first counter of the response message;
    所述第二节点将所述第二节点接收到的预设测试报文的个数写入所述应答报文的第二计数器中;The second node writes the number of preset test messages received by the second node into the second counter of the response message;
    所述第二节点将所述需向第一节点反馈的预设测试报文的个数写入所述应答报文的第三计数器中;The second node writes the number of preset test messages that need to be fed back to the first node into the third counter of the response message;
    所述第二节点将所述应答报文的第四计数器清零,并向所述第一节点反馈所述应答报文。The second node clears the fourth counter of the response message, and feeds back the response message to the first node.
  5. 根据权利要求4所述的测量方法,其中,所述第一节点测量一次丢包量的时间小于或者等于所述第一计数器、第二计数器、第三计数器和第四计数器中最小的翻转时间。The measuring method according to claim 4, wherein the time at which the first node measures the amount of packet loss is less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
  6. 根据权利要求1所述的测量方法,The measuring method according to claim 1,
    所述测试报文还包括:所述测试报文的序列号、所述测试报文的发送时间以及所述测试报文的填充数据包;The test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
    所述应答报文还包括:所述第二节点接收所述测试报文的时间、所述第二节点向所述第一节点反馈应答报文的时间以及所述应答报文的序列号。The response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
  7. 根据权利要求1所述的测量方法,所述方法还包括:The measuring method according to claim 1, further comprising:
    所述第一节点向第二节点发送测试报文之前,Before the first node sends a test packet to the second node,
    设置所述TWAMP的测试会话中的请求会话消息中的填充字段长度大于23个字节。The padding field length in the request session message in the test session of the TWAMP is set to be greater than 23 bytes.
  8. 一种丢包的测量装置,包括:A measuring device for packet loss, comprising:
    发送模块,设置为双向主动测量协议TWAMP的测试会话中的第一节点向第二节点发送记录有预设测试报文的个数的测试报文;The sending module, the first node in the test session set to the bidirectional active measurement protocol TWAMP, sends a test message recording the number of preset test messages to the second node;
    第一接收模块,设置为所述第二节点对接收到的测试报文进行收包统计,得到所述第二节点接收到的预设测试报文的个数;The first receiving module is configured to: the second node collects the received test packet, and obtains the number of the preset test packets received by the second node;
    反馈模块,设置为所述第二节点对所述第二节点接收到的预设测试报文进行预处理,得到向所述第一节点反馈的预设测试报文的个数,将所述第二 节点接收到的预设测试报文的个数和向第一节点反馈的预设测试报文的个数加入所述测试报文中构成应答报文,向所述第一节点反馈所述应答报文;a feedback module, configured to: the second node pre-processes a preset test packet received by the second node, and obtains a number of preset test packets that are fed back to the first node, where the number is Two The number of the preset test packets received by the node and the number of the preset test packets fed back to the first node are added to the test message to form a response message, and the response message is fed back to the first node. Text
    第二接收模块,设置为所述第一节点接收所述应答报文并对接收到的所述应答报文进行收包统计,得到所述第一节点接收到的预设测试报文的个数;The second receiving module is configured to receive, by the first node, the response packet, and perform packet collection statistics on the received response packet, to obtain the number of preset test packets received by the first node. ;
    获取模块,设置为所述第一节点根据所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数,获取所述TWAMP的测试会话中的丢包量。Obtaining, the acquiring, by the first node, the number of the preset test packets sent and received by the first node, and the number of preset test packets received and fed by the second node, The amount of packet loss in the TWAMP test session.
  9. 根据权利要求8所述的测量装置,其中,所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数采用类型-长度-值TLV格式存储;The measuring device according to claim 8, wherein the number of preset test messages sent and received by the first node and the number of preset test messages received and fed back by the second node are of a type - Length-value TLV format storage;
    所述TLV格式包括类型字段、长度字段和内容字段,其中,所述类型字段设置为定义所述TLV格式的类型,所述长度字段设置为定义所述内容字段的长度,所述内容字段设置为存储所述第一节点发送及接收的预设测试报文的个数和所述第二节点接收及反馈的预设测试报文的个数。The TLV format includes a type field, a length field, and a content field, wherein the type field is set to define a type of the TLV format, the length field is set to define a length of the content field, and the content field is set to And storing the number of preset test messages sent and received by the first node and the number of preset test messages received and fed by the second node.
  10. 根据权利要求9所述的测量装置,其中,所述内容字段包括设置为存储第一节点发送的预设测试报文的个数的第一计数器、设置为存储第二节点接收到的预设测试报文的个数的第二计数器、设置为存储第二节点向第一节点反馈的预设测试报文的个数的第三计数器以及设置为存储第一节点收到的预设测试报文的个数的第四计数器。The measurement device according to claim 9, wherein the content field comprises a first counter configured to store a number of preset test messages sent by the first node, and configured to store a preset test received by the second node. a second counter of the number of the packets, a third counter configured to store the number of preset test messages fed back by the second node to the first node, and a preset to store the preset test message received by the first node The fourth counter of the number.
  11. 根据权利要求10所述的测量装置,其中,所述反馈模块包括:The measuring device according to claim 10, wherein the feedback module comprises:
    第一写入单元,设置为所述第二节点将所述测试报文的第一计数器的内容写入所述应答报文的第一计数器中;a first writing unit, configured to: the second node writes a content of the first counter of the test message into a first counter of the response message;
    第二写入单元,设置为所述第二节点将所述第二节点接收到的预设测试报文的个数写入所述应答报文的第二计数器中;The second writing unit is configured to write, by the second node, the number of preset test messages received by the second node into the second counter of the response message;
    第三写入单元,设置为所述第二节点将所述需向第一节点反馈的预设测试报文的个数写入所述应答报文的第三计数器中;a third writing unit, configured to: the second node writes the number of preset test messages to be fed back to the first node into a third counter of the response message;
    反馈单元,设置为所述第二节点将所述应答报文的第四计数器清零,并向所述第一节点反馈所述应答报文。And a feedback unit, configured to: the second node clears the fourth counter of the response message, and feeds back the response message to the first node.
  12. 根据权利要求11所述的测量装置,其中,所述第一节点测量一次丢 包量的时间小于或者等于所述第一计数器、第二计数器、第三计数器和第四计数器中最小的翻转时间。The measuring device according to claim 11, wherein said first node measures one time lost The amount of time of the packet is less than or equal to the minimum flip time of the first counter, the second counter, the third counter, and the fourth counter.
  13. 根据权利要求8所述的测量装置,The measuring device according to claim 8,
    所述测试报文还包括:所述测试报文的序列号、所述测试报文的发送时间以及所述测试报文的填充数据包;The test packet further includes: a sequence number of the test packet, a sending time of the test packet, and a padding data packet of the test packet;
    所述应答报文还包括:所述第二节点接收所述测试报文的时间、所述第二节点向所述第一节点反馈应答报文的时间以及所述应答报文的序列号。The response message further includes: a time when the second node receives the test packet, a time when the second node feeds back the response message to the first node, and a sequence number of the response message.
  14. 根据权利要求8所述的测量装置,所述测量装置还包括:The measuring device according to claim 8, further comprising:
    设置模块,设置为设置所述TWAMP的测试会话中的请求会话消息中的填充字段长度大于23个字节。The setting module is set to set the padding field length in the request session message in the test session of the TWAMP to be greater than 23 bytes.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~7中任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1-7.
PCT/CN2015/074646 2014-10-29 2015-03-19 Packet loss measurement method and apparatus WO2015184890A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410594475.8A CN105634840B (en) 2014-10-29 2014-10-29 Method and device for measuring packet loss
CN201410594475.8 2014-10-29

Publications (1)

Publication Number Publication Date
WO2015184890A1 true WO2015184890A1 (en) 2015-12-10

Family

ID=54766115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074646 WO2015184890A1 (en) 2014-10-29 2015-03-19 Packet loss measurement method and apparatus

Country Status (2)

Country Link
CN (1) CN105634840B (en)
WO (1) WO2015184890A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113771A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Packet processing method and device
CN107666671A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 The method and device of incorrect link detection based on TWAMP
CN113992551A (en) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 Information reporting method and device
CN114301811A (en) * 2020-09-23 2022-04-08 中国移动通信有限公司研究院 Information processing method and device and tunnel endpoint network element

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465565B (en) * 2016-06-06 2019-08-30 中兴通讯股份有限公司 Link test method and apparatus and system
CN109104323A (en) * 2017-06-20 2018-12-28 中兴通讯股份有限公司 A kind of test method of packet loss parameter, the first equipment and the second equipment
CN108023787B (en) * 2017-11-24 2020-08-04 烽火通信科技股份有限公司 Ethernet service testing device and method based on FPGA
CN108390797A (en) * 2018-02-27 2018-08-10 盛科网络(苏州)有限公司 A method of active measurement agreement is realized based on chip
CN111262749B (en) 2018-11-30 2023-05-23 华为技术有限公司 Method and equipment for detecting network reliability
CN110233778A (en) * 2019-07-01 2019-09-13 北京云端智度科技有限公司 A kind of end-to-end link packet loss analysis method based on packet loss
CN114221888A (en) * 2021-12-16 2022-03-22 苏州盛科科技有限公司 Method, device and storage medium for improving message statistics accuracy in TWAMP detection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777126A (en) * 2005-12-12 2006-05-24 史文勇 System and method for conducting comprehensive measurement and association analysis to time delay and drop
CN101854268A (en) * 2009-04-04 2010-10-06 华为技术有限公司 Method, device and system of IP (Internet Protocol) network performance measurement as well as method, device and system of IP network service quality control
WO2012101464A1 (en) * 2011-01-28 2012-08-02 Telefonaktiebolaget L M Ericsson (Publ) Method for queuing data packets and node therefore
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7924739B2 (en) * 2008-12-22 2011-04-12 At&T Intellectual Property I, L.P. Method and apparatus for one-way passive loss measurements using sampled flow statistics
CN101605020A (en) * 2009-07-07 2009-12-16 中兴通讯股份有限公司 A kind of packet loss detection method, system and device
US8774043B2 (en) * 2011-06-08 2014-07-08 Citrix Systems, Inc. Methods and apparatus for using a layered gear to analyze and manage real-time network quality of service transmission for mobile devices on public networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777126A (en) * 2005-12-12 2006-05-24 史文勇 System and method for conducting comprehensive measurement and association analysis to time delay and drop
CN101854268A (en) * 2009-04-04 2010-10-06 华为技术有限公司 Method, device and system of IP (Internet Protocol) network performance measurement as well as method, device and system of IP network service quality control
WO2012101464A1 (en) * 2011-01-28 2012-08-02 Telefonaktiebolaget L M Ericsson (Publ) Method for queuing data packets and node therefore
CN102904775A (en) * 2012-09-29 2013-01-30 华为技术有限公司 Method, apparatus and system for measuring network packet loss

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113771A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Packet processing method and device
CN107666671A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 The method and device of incorrect link detection based on TWAMP
CN107666671B (en) * 2016-07-29 2022-08-16 中兴通讯股份有限公司 Method and device for detecting wrong connection based on TWAMP
CN114301811A (en) * 2020-09-23 2022-04-08 中国移动通信有限公司研究院 Information processing method and device and tunnel endpoint network element
CN113992551A (en) * 2021-09-09 2022-01-28 新华三信息安全技术有限公司 Information reporting method and device
CN113992551B (en) * 2021-09-09 2023-07-14 新华三信息安全技术有限公司 Information reporting method and device

Also Published As

Publication number Publication date
CN105634840A (en) 2016-06-01
CN105634840B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
WO2015184890A1 (en) Packet loss measurement method and apparatus
US8769039B2 (en) Method and apparatus of performing remote computer file exchange
EP2903213B1 (en) Throughput test method and apparatus
US20050076113A1 (en) Network analysis sample management process
WO2020207479A1 (en) Method and device for controlling network congestion
Li et al. {DETER}: Deterministic {TCP} replay for performance diagnosis
TW200818773A (en) Merging multi-line log entries
CN104144088A (en) Network delay measuring method with delay measuring accuracy improved
US20160173387A1 (en) Network Traffic Accelerator
WO2015169057A1 (en) Packet transmission method and device, and interconnection interface
WO2016078312A1 (en) Single board testing method and device
US11032147B2 (en) Acceleration of node configuration for TWAMP with a large number of test sessions
CN102104502A (en) Ethernet equipment performance test platform based on Linux system
US20230300051A1 (en) In-band Edge-to-Edge Round-Trip Time Measurement
KR20200116504A (en) Data processing methods, servers and data collection devices
US20130336129A1 (en) Multipurpose Use of Delay Measurement Message Buffer for Software Processing of Delay Measurement Response
US11916660B2 (en) TSN operation management system with time capture location protocol
CN110290020A (en) A kind of ethernet test instrument high-precision flow percentage production method and device
Elbouanani et al. Passive delay measurement for fidelity monitoring of distributed network emulation
WO2016184079A1 (en) Method and device for processing system log message
CN105611406B (en) One kind access net service provider monitors user to video server lag characteristic method
CN106341241B (en) The method and device of high packet loss cloud system Multicast File
CN103929488A (en) Method and device for data synchronization of distributed central monitoring system
WO2016197736A1 (en) Network fault detection method and device
WO2016065752A1 (en) Method and device for detecting link state, and storage medium

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: 15802411

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: 15802411

Country of ref document: EP

Kind code of ref document: A1