WO2011124165A2 - Method and device for detecting link loss ratio - Google Patents

Method and device for detecting link loss ratio Download PDF

Info

Publication number
WO2011124165A2
WO2011124165A2 PCT/CN2011/073892 CN2011073892W WO2011124165A2 WO 2011124165 A2 WO2011124165 A2 WO 2011124165A2 CN 2011073892 W CN2011073892 W CN 2011073892W WO 2011124165 A2 WO2011124165 A2 WO 2011124165A2
Authority
WO
WIPO (PCT)
Prior art keywords
packet
time interval
peer device
packet loss
packets sent
Prior art date
Application number
PCT/CN2011/073892
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011124165A3 (en
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 华为技术有限公司
Priority to PCT/CN2011/073892 priority Critical patent/WO2011124165A2/en
Priority to CN2011800007202A priority patent/CN102217236A/en
Publication of WO2011124165A2 publication Critical patent/WO2011124165A2/en
Publication of WO2011124165A3 publication Critical patent/WO2011124165A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a method and a device for detecting a link loss rate of a link. Background technique
  • LMM Loss Measurement Message
  • LMS Lost Packet Receive Response
  • the two devices send LMM packets every second and detect whether LMR packets are received.
  • the packet loss rate is calculated based on the LMR packets.
  • the specific calculation method includes: Device A carries the number of packets sent to device B in the LMM packet, and device B replies to the LMR packet to device A, and sends the device A that is actually received by device B in the LMR packet.
  • the number of packets, the number of packets sent by device A to device B, and the number of packets sent by device B to device A The parameters carried by device A according to the received LMR packets sent by device B and the actual number.
  • the number of packets sent by device B is calculated to calculate the packet loss rate.
  • the embodiment of the invention provides a method and a device for detecting a packet loss rate of a link, which are used to accurately reflect the packet loss rate of the link.
  • the embodiment of the present invention provides a method for detecting a packet loss rate of a link, including: receiving a packet loss calculation LMM packet sent by a peer device through a link, where the LMM packet carries the peer device Number of packets sent to the local device;
  • an embodiment of the present invention further provides a network device, including:
  • the receiving module is configured to receive a packet loss calculation LMM packet sent by the peer device through the link, where the LMM packet carries the number of packets sent by the peer device to the local device;
  • a calculation module configured to: according to the time interval of receiving the LMM message, the number of the packets sent by the peer device, and the number of the LMM message The number of packets sent by the peer device to the local device, and the packet loss rate of the link in the time interval is calculated.
  • the local device calculates the pair of the received message and the actually received pair in the time interval between receiving the LMM and the message.
  • the gap between the packets sent by the end device is used to obtain the packet loss rate of the link in the interval. This effectively solves the problem that the packet loss rate is not detected when the LMM/LMR packet is lost due to excessive network delay and congestion. Accurate problems make the detection of link loss rate more accurate.
  • FIG. 1 is a flowchart of a method for detecting a packet loss rate of a link according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for detecting a packet loss rate of a link according to another embodiment of the present invention
  • 3 is a schematic structural diagram of a network device according to another embodiment of the present invention.
  • FIG. 5 is a discrete diagram obtained by using a method for detecting a packet loss rate of a link provided by an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention. detailed description
  • FIG. 1 is a flowchart of a method for detecting a packet loss rate of a link according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • Step 101 The local device receives the LMM packet sent by the peer device through the link.
  • the LMM packet carries the number of packets sent by the peer device to the local device during the interval from the last time the LMM packet was sent to the local device to the local device.
  • the local device and the peer device establish a communication connection with each other through a link.
  • the local device can record the receiving time to facilitate the subsequent calculation of the time interval.
  • Step 102 The local device sends the number of the packets sent by the peer device and the LMM packet to the local end according to the time interval between the last time the LMM packet was received and the number of the packets received by the peer device. Number of packets of the device, and calculates the packet loss rate of the communication link during the time interval.
  • An embodiment of the present invention provides a method for detecting a packet loss rate of a link, where the local device calculates the pair of packets sent by the peer device within the time interval between receiving the LMM ⁇ text and the actually received pair.
  • the gap between the packets sent by the end device is used to obtain the packet loss rate of the link in the interval.
  • the method includes:
  • Step 201 The device A sends an LMM message to the device B through the communication link with the device B.
  • the LMM message carries: The device A sends the device to the device within a time interval from the last time the LMM message is sent to the device B.
  • the number of B messages (denoted as XI).
  • Step 202 The device B receives the LMM packet sent by the device A, and records the receiving time.
  • Step 205 The device sends an LMR file to the device.
  • the LMR packet carries at least: the number of packets (called Y1) that the device sends to the device A during the interval from the last time the LMR packet was sent to the device.
  • Y1 the number of packets that the device sends to the device A during the interval from the last time the LMR packet was sent to the device.
  • Step 206 The device A receives the LMR packet sent by the device B, and records the receiving time.
  • Step 207 The time interval between the LMR packet received by the device A and the last received LMR packet (recorded as T2) ), calculate the number of packets sent by device B actually received (denoted as Y2);
  • Step 209 If the calculated packet loss rate exceeds a preset value, select another link to communicate.
  • An embodiment of the present invention provides a method for detecting a packet loss rate of a link, where the local device calculates the pair of packets sent by the peer device within the time interval between receiving the LMM ⁇ text and the actually received pair. End The gap between the packets sent by the device is obtained. The packet loss rate of the link is obtained during the interval. This effectively solves the problem that the packet loss rate is incorrect when the LMM/LMR packet is lost due to excessive network delay and congestion. The problem is that the detection of the link loss rate is more accurate.
  • FIG. 4 is a discrete diagram obtained by detecting a link loss ratio of a link according to the prior art
  • FIG. 5 is a discrete diagram obtained by using a method for detecting a packet loss rate of a link provided by an embodiment of the present invention.
  • the error statistics of the query in each second are as shown in Table 1.
  • the number of errors according to the actual time interval is shown in Table 2. .
  • the method provided by the embodiment of the present invention can more accurately detect the link loss rate.
  • FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • the network device includes: a receiving module 601 and a computing module 602.
  • the receiving module 601 is configured to receive the LMM packet sent by the peer device through the link, where the LMM packet carries the number of packets sent by the peer device to the local device, and the calculation module 602 is configured to use the current and the upper device.
  • the packet loss rate of the road during this time interval is configured to receive the LMM packet sent by the peer device through the link, where the LMM packet carries the number of packets sent by the peer device to the local device, and the calculation module 602 is configured to use the current and the upper device.
  • the calculation module 602 includes: a difference calculation unit and a packet loss rate calculation unit.
  • the difference calculation unit is configured to calculate a difference between the number of packets sent by the peer device to the local device and the number of packets sent by the peer device; and a packet loss rate calculation unit, configured to calculate the difference Ratio between value and time interval Rate, thereby obtaining the packet loss rate of the link during this time interval.
  • the network device may further include: a sending module.
  • the sending module is configured to send, to the peer device, an LMR packet, where the LMR packet carries the number of packets sent by the peer device to the local device, and the peer device that the local device receives in the time interval sends the LSR packet.
  • the received packet rate is calculated by the number of packets sent by the local device to the peer device.
  • the network device may further include: a selecting module, configured to select another link to communicate if the packet loss rate calculated by the calculating module 602 exceeds a preset value.
  • the device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. , or it can be distributed to at least two network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Abstract

The invention provides a method and device for detecting a link loss ratio. The method includes: receiving a Loss Measurement Message (LMM) sent from an opposite side device through a link, wherein the LMM carries the number of the messages sent from the opposite side device to the local side device during the interval between the last time and the current time for sending an LMM from the opposite side device to the local side device; and according to the interval between the current time and the last time to receive the LMM, the number of the received messages sent from the opposite side device during the interval, and the number, carried in the LMM, of the messages which are sent from the opposite side device to the local side device, computing the loss ratio of the link during the interval. The device includes a reception module and a computation module.

Description

检测链路丢包率的方法和设备  Method and device for detecting link packet loss rate
技术领域 Technical field
本发明实施例涉及通信技术 , 尤其涉及一种检测链路丟包率的方法和设 备。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a method and a device for detecting a link loss rate of a link. Background technique
现有技术中, 如果两台设备之间建立了双向业务, 可以通过发送丟包计 算信息 ( Loss Measurement Message, 简称为: LMM )报文和接收丟包计算 回复( Loss Measurement Relay, 简称为: LMR )报文来计算两台设备之间链 路的丟包率。  In the prior art, if a two-way service is established between the two devices, the Loss Measurement Message (LMM) message and the Lost Packet Receive Response (LMS) can be calculated. The message is used to calculate the packet loss rate of the link between the two devices.
两台设备每隔一秒钟发送一次 LMM报文并同时检测是否接收到 LMR 报文, 根据 LMR报文计算丟包率。 具体的计算方法包括: 设备 A在 LMM 报文中携带其发送给设备 B的报文个数, 设备 B回复 LMR报文给设备 A, 在 LMR报文中携带设备 B实际接收到的设备 A发送的报文个数、设备 A发 送给设备 B的报文个数、 以及设备 B发送给设备 A的报文个数, 设备 A根 据接收到的设备 B发送的 LMR报文中携带的参数以及实际接收到的设备 B 发送的报文个数计算丟包率。  The two devices send LMM packets every second and detect whether LMR packets are received. The packet loss rate is calculated based on the LMR packets. The specific calculation method includes: Device A carries the number of packets sent to device B in the LMM packet, and device B replies to the LMR packet to device A, and sends the device A that is actually received by device B in the LMR packet. The number of packets, the number of packets sent by device A to device B, and the number of packets sent by device B to device A. The parameters carried by device A according to the received LMR packets sent by device B and the actual number. The number of packets sent by device B is calculated to calculate the packet loss rate.
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: 当设备之间的物理链路发生拥塞而造成报文的延时很大, 但报文并没有 丟失; 或者, 物理链路拥塞, 同时链路刚好将 LMM报文或者 LMR报文丟弃 时, 通过 LMR报文计算出来的丟包率就不能够正确反映链路的丟包情况。 发明内容  In the process of implementing the present invention, the inventor has found that at least the following problems exist in the prior art: when the physical link between the devices is congested, the delay of the message is large, but the message is not lost; or, the physical chain When the link is congested and the LMM packet or LMR packet is discarded, the packet loss rate calculated by the LMR packet cannot correctly reflect the packet loss. Summary of the invention
本发明实施例提供一种检测链路丟包率的方法和设备, 用以准确反映链路 的丟包率。 一方面, 本发明实施例提供一种检测链路丟包率的方法, 包括: 接收对端设备通过链路发送的丟包计算信息 LMM报文,所述 LMM报文中 携带所述对端设备发送给本端设备的报文个数; The embodiment of the invention provides a method and a device for detecting a packet loss rate of a link, which are used to accurately reflect the packet loss rate of the link. In an aspect, the embodiment of the present invention provides a method for detecting a packet loss rate of a link, including: receiving a packet loss calculation LMM packet sent by a peer device through a link, where the LMM packet carries the peer device Number of packets sent to the local device;
根据与上一次接收到 LMM报文的时间间隔、在所述时间间隔内接收到的所 述对端设备发送的报文个数、以及所述 LMM报文中携带的所述对端发送给本端 设备的报文个数, 计算所述链路在所述时间间隔内的丟包率。  And sending, according to the time interval of receiving the LMM packet, the number of the packets sent by the peer device, and the peer end carried in the LMM packet The number of packets of the end device, and the packet loss rate of the link in the time interval is calculated.
另一方面, 本发明实施例还提供一种网络设备, 包括:  On the other hand, an embodiment of the present invention further provides a network device, including:
接收模块,用于接收对端设备通过链路发送的丟包计算信息 LMM报文,所 述 LMM报文中携带所述对端设备发送给本端设备的报文个数;  The receiving module is configured to receive a packet loss calculation LMM packet sent by the peer device through the link, where the LMM packet carries the number of packets sent by the peer device to the local device;
计算模块,用于根据与上一次接收到 LMM报文的时间间隔、在所述时间间 隔内接收到的所述对端设备发送的报文个数、以及所述 LMM报文中携带的所述 对端设备发送给本端设备的报文个数, 计算所述链路在所述时间间隔内的丟包 率。  a calculation module, configured to: according to the time interval of receiving the LMM message, the number of the packets sent by the peer device, and the number of the LMM message The number of packets sent by the peer device to the local device, and the packet loss rate of the link in the time interval is calculated.
本发明实施例提供的检测链路丟包率的方法和设备, 通过本端设备计算两 次接收到 LMM ^艮文之间的时间间隔内对端设备发送的 ^艮文与实际接收到的对 端设备发送的报文之间的差距, 获得链路在该时间间隔内的丟包率, 有效解决 了网络延时过大、 发生拥塞而造成 LMM/LMR报文丟失时的丟包率检测不准确 的问题, 使得链路丟包率的检测更加准确。 附图说明  The method and the device for detecting the packet loss rate of the link provided by the embodiment of the present invention, the local device calculates the pair of the received message and the actually received pair in the time interval between receiving the LMM and the message. The gap between the packets sent by the end device is used to obtain the packet loss rate of the link in the interval. This effectively solves the problem that the packet loss rate is not detected when the LMM/LMR packet is lost due to excessive network delay and congestion. Accurate problems make the detection of link loss rate more accurate. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1为本发明一个实施例提供的检测链路丟包率的方法流程图;  FIG. 1 is a flowchart of a method for detecting a packet loss rate of a link according to an embodiment of the present invention;
图 2为本发明又一实施例提供的检测链路丟包率的方法流程图; 图 3为本发明又一实施例提供的网络设备的结构示意图; 2 is a flowchart of a method for detecting a packet loss rate of a link according to another embodiment of the present invention; 3 is a schematic structural diagram of a network device according to another embodiment of the present invention;
图 4为采用现有技术检测链路丟包率获得的离散图;  4 is a discrete diagram obtained by detecting a link loss rate of a link by using a prior art;
图 5为采用本发明实施例提供的检测链路丟包率的方法获得的离散图; 图 6为本发明一个实施例提供的网络设备的结构示意图。 具体实施方式  5 is a discrete diagram obtained by using a method for detecting a packet loss rate of a link provided by an embodiment of the present invention; FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明一个实施例提供的检测链路丟包率的方法流程图, 如图 1所 示, 该方法包括:  FIG. 1 is a flowchart of a method for detecting a packet loss rate of a link according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
步骤 101: 本端设备接收对端设备通过链路发送的 LMM报文;  Step 101: The local device receives the LMM packet sent by the peer device through the link.
其中,该 LMM报文中携带有对端设备从上一次向本端设备发送 LMM报文 到本次向本端设备发送 LMM报文的时间间隔内发送给本端设备的报文个数。  The LMM packet carries the number of packets sent by the peer device to the local device during the interval from the last time the LMM packet was sent to the local device to the local device.
需要说明的是, 本端设备与对端设备通过链路建立彼此的通信连接。 本端 设备在接收到对端设备发送的 LMM报文时,可以记录接收时间, 以便于后续计 算时间间隔。  It should be noted that the local device and the peer device establish a communication connection with each other through a link. When receiving the LMM packet sent by the peer device, the local device can record the receiving time to facilitate the subsequent calculation of the time interval.
步骤 102: 本端设备根据本次与上一次接收到 LMM报文的时间间隔、 在该 时间间隔内实际接收到的对端设备发送的报文个数以及 LMM报文中携带的发 送给本端设备的报文个数, 计算该通信链路在该时间间隔内的丟包率。  Step 102: The local device sends the number of the packets sent by the peer device and the LMM packet to the local end according to the time interval between the last time the LMM packet was received and the number of the packets received by the peer device. Number of packets of the device, and calculates the packet loss rate of the communication link during the time interval.
本发明实施例提供了一种检测链路丟包率的方法, 通过本端设备计算两次 接收到 LMM ^艮文之间的时间间隔内对端设备发送的 ^艮文与实际接收到的对端 设备发送的报文之间的差距, 获得链路在该时间间隔内的丟包率, 有效解决了 网络延时过大、 发生拥塞而造成 LMM/LMR报文丟失时的丟包率检测不准确的 问题, 使得链路丟包率的检测更加准确。 An embodiment of the present invention provides a method for detecting a packet loss rate of a link, where the local device calculates the pair of packets sent by the peer device within the time interval between receiving the LMM^艮text and the actually received pair. The gap between the packets sent by the end device is used to obtain the packet loss rate of the link in the interval. This effectively solves the problem that the packet loss rate is not detected when the LMM/LMR packet is lost due to excessive network delay and congestion. precise The problem is that the detection of the link loss rate is more accurate.
图 2为本发明又一实施例提供的检测链路丟包率的方法,该方法建立在图 3 所示的网络设备结构之上, 如图 2所示, 该方法包括:  2 is a method for detecting a packet loss rate of a link according to another embodiment of the present invention. The method is built on the network device structure shown in FIG. 3. As shown in FIG. 2, the method includes:
步骤 201: 设备 A通过与设备 B之间的通信链路发送 LMM报文给设备 B; 该 LMM报文中携带有: 设备 A距离上一次发送 LMM报文给设备 B的时 间间隔内发送给设备 B的报文个数(记为 XI ) 。  Step 201: The device A sends an LMM message to the device B through the communication link with the device B. The LMM message carries: The device A sends the device to the device within a time interval from the last time the LMM message is sent to the device B. The number of B messages (denoted as XI).
步骤 202: 设备 B接收到设备 A发送的 LMM报文, 记录接收时间; 步骤 203:设备 B根据本次接收到 LMM报文与上一次接收到 LMM报文之 间的时间间隔(记为 T1 ) , 计算实际接收到的设备 A发送的报文个数(记为 X2 ) ;  Step 202: The device B receives the LMM packet sent by the device A, and records the receiving time. Step 203: The time interval between the device receiving the LMM packet and the last received LMM packet (recorded as T1) , calculate the number of packets sent by device A actually received (recorded as X2);
步骤 204: 根据参数 XI和 X2计算时间间隔 T1内该通信链路的丟包率; 具体的计算方法为: 时间间隔 T1内链路的丟包率= ( X1-X2 ) /Tl。  Step 204: Calculate the packet loss rate of the communication link in the time interval T1 according to parameters XI and X2; the specific calculation method is: time interval T1 inner link loss rate = (X1-X2) / Tl.
步骤 205: 设备 Β发送 LMR 文给设备 Α;  Step 205: The device sends an LMR file to the device.
该 LMR报文中至少可以携带有: 设备 Β距离上一次发送 LMR报文给设备 Α的时间间隔内发生给设备 A的报文个数(记为 Y1 ) 。 当然还可以包括 XI和 X2。  The LMR packet carries at least: the number of packets (called Y1) that the device sends to the device A during the interval from the last time the LMR packet was sent to the device. Of course, you can also include XI and X2.
步骤 206: 设备 A接收到设备 B发送的 LMR报文, 记录接收时间; 步骤 207: 设备 A根据本次接收到的 LMR报文与上一次接收到 LMR报文 之间的时间间隔(记为 T2 ) , 计算实际接收到的设备 B发送的报文个数(记为 Y2 ) ;  Step 206: The device A receives the LMR packet sent by the device B, and records the receiving time. Step 207: The time interval between the LMR packet received by the device A and the last received LMR packet (recorded as T2) ), calculate the number of packets sent by device B actually received (denoted as Y2);
步骤 208: 根据参数 Y1和 Y2计算时间间隔 T2内通信链路的丟包率; 具体的计算方法为: 时间间隔 T2内链路的丟包率= ( Y1-Y2 ) /T2。  Step 208: Calculate the packet loss rate of the communication link in the time interval T2 according to the parameters Y1 and Y2; the specific calculation method is: Time interval T2 The packet loss rate of the link = (Y1-Y2) / T2.
还可以根据接收到的 XI和 Χ2计算时间间隔 T1内链路的丟包率。  It is also possible to calculate the packet loss rate of the link within the time interval T1 based on the received XI and Χ2.
步骤 209: 如果计算出的丟包率超过预设值, 选择其他链路进行通信。  Step 209: If the calculated packet loss rate exceeds a preset value, select another link to communicate.
本发明实施例提供了一种检测链路丟包率的方法, 通过本端设备计算两次 接收到 LMM ^艮文之间的时间间隔内对端设备发送的 ^艮文与实际接收到的对端 设备发送的报文之间的差距, 获得链路在该时间间隔内的丟包率, 有效解决了 网络延时过大、 发生拥塞而造成 LMM/LMR报文丟失时的丟包率检测不准确的 问题, 使得链路丟包率的检测更加准确。 An embodiment of the present invention provides a method for detecting a packet loss rate of a link, where the local device calculates the pair of packets sent by the peer device within the time interval between receiving the LMM^艮text and the actually received pair. End The gap between the packets sent by the device is obtained. The packet loss rate of the link is obtained during the interval. This effectively solves the problem that the packet loss rate is incorrect when the LMM/LMR packet is lost due to excessive network delay and congestion. The problem is that the detection of the link loss rate is more accurate.
下面结合具体实例说明本发明提供的检测链路丟包率的方法的准确性。图 4 为采用现有技术检测链路丟包率获得的离散图, 图 5 为采用本发明实施例提供 的检测链路丟包率的方法获得的离散图。 其中, 按照现有技术的检测方法, 每 一秒中查询误码统计数值如表 1 所示, 按照本发明实施例提供的检测方法, 根 据实际的时间间隔统计误码个数如表 2所示。  The accuracy of the method for detecting link packet loss rate provided by the present invention is described below with reference to specific examples. 4 is a discrete diagram obtained by detecting a link loss ratio of a link according to the prior art, and FIG. 5 is a discrete diagram obtained by using a method for detecting a packet loss rate of a link provided by an embodiment of the present invention. According to the detection method of the prior art, the error statistics of the query in each second are as shown in Table 1. According to the detection method provided by the embodiment of the present invention, the number of errors according to the actual time interval is shown in Table 2. .
表 1  Table 1
Figure imgf000007_0001
Figure imgf000007_0001
通过比较图 4和图 5可知, 采用本发明实施例提供的方法可以更加准确地 检测链路丟包率。  By comparing with FIG. 4 and FIG. 5, the method provided by the embodiment of the present invention can more accurately detect the link loss rate.
图 6为本发明一个实施例提供的网络设备的结构示意图, 如图 6所示, 该 网络设备包括: 接收模块 601和计算模块 602。 其中, 接收模块 601用于接收对 端设备通过链路发送的 LMM报文,该 LMM报文中携带对端设备发送给本端设 备的报文个数;计算模块 602用于根据本次与上一次接收到 LMM报文的时间间 隔、在时间间隔内接收到的对端设备发送的报文个数、以及 LMM报文中携带的 对端设备发送给本端设备的报文个数, 计算链路在该时间间隔内的丟包率。  FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention. As shown in FIG. 6, the network device includes: a receiving module 601 and a computing module 602. The receiving module 601 is configured to receive the LMM packet sent by the peer device through the link, where the LMM packet carries the number of packets sent by the peer device to the local device, and the calculation module 602 is configured to use the current and the upper device. The interval at which the LMM packet is received, the number of packets sent by the peer device received in the interval, and the number of packets sent by the peer device to the local device in the LMM packet. The packet loss rate of the road during this time interval.
其中, 计算模块 602 包括: 差值计算单元和丟包率计算单元。 差值计算单 元用于计算对端设备发送给本端设备的报文个数与接收到的对端设备发送的报 文个数之间的差值; 丟包率计算单元, 用于计算上述差值与时间间隔之间的比 率 , 从而得到链路在该时间间隔内的丟包率。 The calculation module 602 includes: a difference calculation unit and a packet loss rate calculation unit. The difference calculation unit is configured to calculate a difference between the number of packets sent by the peer device to the local device and the number of packets sent by the peer device; and a packet loss rate calculation unit, configured to calculate the difference Ratio between value and time interval Rate, thereby obtaining the packet loss rate of the link during this time interval.
进一步的, 该网络设备还可以包括: 发送模块。 该发送模块用于向对端设 备发送 LMR报文,该 LMR报文中携带有对端设备发送给本端设备的报文个数、 本端设备在上述时间间隔内接收到的对端设备发送的报文个数、 本端设备距离 上一次发送 LMR报文给对端设备的时间间隔内发送给对端设备的报文个数, 以 使对端设备根据上述各参数以及在该时间间隔内接收到的本端设备发送给对端 设备的报文个数计算丟包率。  Further, the network device may further include: a sending module. The sending module is configured to send, to the peer device, an LMR packet, where the LMR packet carries the number of packets sent by the peer device to the local device, and the peer device that the local device receives in the time interval sends the LSR packet. The number of packets and the number of packets sent by the local device to the peer device within the interval from the last time the LMR packet was sent to the peer device, so that the peer device can use the above parameters and the time interval. The received packet rate is calculated by the number of packets sent by the local device to the peer device.
进一步的, 该网络设备还可以包括: 选择模块, 用于如果计算模块 602计 算得到的丟包率超过预设值, 选择其他链路进行通信。  Further, the network device may further include: a selecting module, configured to select another link to communicate if the packet loss rate calculated by the calculating module 602 exceeds a preset value.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
以上所描述的装置实施例仅仅是示意性的, 其中作为分离部件说明的单元 可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以 不是物理单元, 即可以位于一个地方, 或者也可以分布到至少两个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目 的。 本领域普通技术人员在不付出创造性的劳动的情况下, 即可以理解并实施。  The device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. , or it can be distributed to at least two network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种检测链路丟包率的方法, 其特征在于, 包括:  A method for detecting a packet loss rate of a link, comprising:
接收对端设备通过链路发送的丟包计算信息 LMM报文, 所述 LMM报文 中携带所述对端设备从上一次到本次向本端设备发送 LMM报文的时间间隔内 发送给本端设备的报文个数;  Receiving a packet loss calculation LMM message sent by the peer device through the link, where the LMM message carries the time interval sent by the peer device from the last time to the local device to send the LMM message to the local device. Number of packets of the end device;
根据本次与上一次接收到 LMM报文的时间间隔、 在所述时间间隔内接收 到的所述对端设备发送的报文个数、 以及所述 LMM报文中携带的所 十端设 备发送给本端设备的报文个数, 计算所述链路在所述时间间隔内的丟包率。  The number of the packets sent by the peer device and the ten-end device carried in the LMM packet are sent according to the time interval of the last time the LMM packet is received, the number of the packets sent by the peer device in the time interval. The number of packets sent to the local device, and the packet loss rate of the link in the time interval is calculated.
2、根据权利要求 1所述的检测链路丟包率的方法, 其特征在于, 所述根据 本次与上一次接收到 LMM ^艮文的时间间隔、 在所述时间间隔内接收到的所述 对端设备发送的报文个数、 以及所述 LMM报文中携带的所述对端设备发送给 本端设备的报文个数, 计算所述链路在所述时间间隔内的丟包率, 包括:  The method for detecting a packet loss rate according to claim 1, wherein the time interval received according to the current time and the last time the LMM is received is received within the time interval. The number of the packets sent by the peer device and the number of packets sent by the peer device to the local device in the LMM packet, and the packet loss in the time interval is calculated. Rate, including:
计算所述对端设备发送给本端设备的报文个数与接收到的对端设备发送的 报文个数之间的差值;  Calculating a difference between the number of packets sent by the peer device to the local device and the number of packets sent by the peer device;
计算所述差值与所述时间间隔之间的比率得到所述链路在所述时间间隔内 的丟包率。  Calculating a ratio between the difference and the time interval results in a packet loss rate of the link during the time interval.
3、根据权利要求 1或 2所述的检测链路丟包率的方法, 其特征在于, 所述 计算所述链路在所述时间间隔内的丟包率之后, 所述方法还包括:  The method for detecting a packet loss rate of a link according to claim 1 or 2, wherein after the calculating a packet loss rate of the link in the time interval, the method further includes:
向所述对端设备发送丟包回复信息 LMR报文,所述 LMR报文中携带有所 述对端设备发送给本端设备的报文个数、 所述本端设备在所述时间间隔内接收 到的所述对端设备发送的报文个数、 所述本端设备距离上一次发送 LMR报文 给所述对端设备的时间间隔内发送给所述对端设备的报文个数, 以使所述对端 设备根据上述各参数以及接收到的本端设备发送给所述对端设备的报文个数计 算丟包率。  And sending, to the peer device, a packet loss reply information LMR packet, where the LMR packet carries the number of packets sent by the peer device to the local device, and the local device is in the time interval. The number of the packets sent by the peer device, and the number of packets sent by the local device to the peer device within a time interval from the last time the LMR packet is sent to the peer device. The packet loss rate is calculated by the peer device according to the foregoing parameters and the number of received packets sent by the local device to the peer device.
4、根据权利要求 1或 2所述的检测链路丟包率的方法, 其特征在于, 所述 方法还包括: 如果所述丟包率超过预设值, 选择其他链路进行通信。 The method for detecting a packet loss rate according to claim 1 or 2, wherein the method further comprises: if the packet loss rate exceeds a preset value, selecting another link to perform communication.
5、 一种网络设备, 其特征在于, 包括: 5. A network device, comprising:
接收模块, 用于接收对端设备通过链路发送的丟包计算信息 LMM报文, 所述 LMM报文中携带所述对端设备发送给本端设备的报文个数;  a receiving module, configured to receive a packet loss calculation information LMM packet sent by the peer device through the link, where the LMM packet carries the number of packets sent by the peer device to the local device;
计算模块, 用于根据与上一次接收到 LMM报文的时间间隔、 在所述时间 间隔内接收到的所述对端设备发送的报文个数、 以及所述 LMM报文中携带的 所述对端设备发送给本端设备的报文个数, 计算所述链路在所述时间间隔内的 丟包率。  a calculation module, configured to: according to the time interval of receiving the LMM message, the number of the packets sent by the peer device, and the number of the LMM message The number of packets sent by the peer device to the local device, and the packet loss rate of the link in the time interval is calculated.
6、 根据权利要求 5所述的网络设备, 其特征在于, 所述计算模块包括: 差值计算单元, 用于计算所述对端设备发送给本端设备的报文个数与接收 到的对端设备发送的报文个数之间的差值;  The network device according to claim 5, wherein the calculation module comprises: a difference calculation unit, configured to calculate a number of packets sent by the peer device to the local device, and a received pair The difference between the number of packets sent by the end device;
丟包率计算单元, 用于计算所述差值与所述时间间隔之间的比率得到所述 链路在所述时间间隔内的丟包率。  The packet loss rate calculation unit is configured to calculate a ratio between the difference value and the time interval to obtain a packet loss rate of the link in the time interval.
7、 根据权利要求 5或 6所述的网络设备, 其特征在于, 还包括:  The network device according to claim 5 or 6, further comprising:
发送模块, 用于向所述对端设备发送丟包回复信息 LMR报文, 所述 LMR 报文中携带有所述对端设备发送给本端设备的报文个数、 所述本端设备在所述 时间间隔内接收到的所述对端设备发送的报文个数、 所述本端设备距离上一次 发送 LMR报文给所述对端设备的时间间隔内发送给所述对端设备的报文个数, 以使所述对端设备根据上述各参数以及所述时间间隔内接收到的本端设备发送 给所述对端设备的报文个数计算丟包率。  a sending module, configured to send, to the peer device, a packet loss reply information LMR packet, where the LMR packet carries the number of packets sent by the peer device to the local device, where the local device is And the number of the packets sent by the peer device in the time interval, and the local device sends the LMR packet to the peer device within a time interval from the last time the LMR packet is sent to the peer device. The number of the packets is such that the peer device calculates the packet loss rate according to the foregoing parameters and the number of packets sent by the local device to the peer device in the time interval.
8、 根据权利要求 5或 6所述的网络设备, 其特征在于, 还包括:  The network device according to claim 5 or 6, further comprising:
选择模块, 用于如果所述计算模块计算得到的丟包率超过预设值, 选择 其他链路进行通信。  And a selection module, configured to select another link to communicate if the packet loss rate calculated by the calculation module exceeds a preset value.
PCT/CN2011/073892 2011-05-10 2011-05-10 Method and device for detecting link loss ratio WO2011124165A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/073892 WO2011124165A2 (en) 2011-05-10 2011-05-10 Method and device for detecting link loss ratio
CN2011800007202A CN102217236A (en) 2011-05-10 2011-05-10 Method and device for detecting link loss ratio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/073892 WO2011124165A2 (en) 2011-05-10 2011-05-10 Method and device for detecting link loss ratio

Publications (2)

Publication Number Publication Date
WO2011124165A2 true WO2011124165A2 (en) 2011-10-13
WO2011124165A3 WO2011124165A3 (en) 2012-04-12

Family

ID=44746745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073892 WO2011124165A2 (en) 2011-05-10 2011-05-10 Method and device for detecting link loss ratio

Country Status (2)

Country Link
CN (1) CN102217236A (en)
WO (1) WO2011124165A2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891780B (en) * 2012-10-10 2015-05-13 烽火通信科技股份有限公司 Method and system for measuring Ethernet packet loss rate based on transmitting timestamp
CN102882747B (en) * 2012-10-10 2015-08-19 烽火通信科技股份有限公司 Based on Ethernet packet loss rate method of measurement and the system of transmission, time of reception stamp
CN103067791A (en) * 2012-12-11 2013-04-24 深圳市梦网科技发展有限公司 Network dynamic adaptation monitoring video transmission method
CN105991357A (en) * 2015-02-06 2016-10-05 中兴通讯股份有限公司 Packet loss determination processing and determining methods and packet loss determination processing and determining devices
CN106411625A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Link message packet loss measurement method and system, target node and initiator node
CN106487605B (en) * 2015-08-26 2020-06-30 中兴通讯股份有限公司 Packet loss rate detection method and device
US20180123927A1 (en) * 2016-10-27 2018-05-03 Nanning Fugui Precision Industrial Co., Ltd. Method and device for detecting network packet loss based on software defined network
CN108075943A (en) * 2016-11-15 2018-05-25 华为技术有限公司 Test packet building method and device
CN113328903B (en) * 2020-02-29 2023-02-03 华为技术有限公司 Method, device and system for detecting transmission quality
CN114928561A (en) * 2021-02-03 2022-08-19 华为技术有限公司 Method for detecting packet loss rate, communication device and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640629A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Method for monitoring link packet loss and bidirectional forwarding detector
US20100135180A1 (en) * 2008-12-01 2010-06-03 Fujitsu Limited Method of measuring packet loss rate, packet loss rate measuring device and storage medium
CN101800679A (en) * 2010-03-10 2010-08-11 华为技术有限公司 Message packet loss detection method and system
CN101926154A (en) * 2008-02-05 2010-12-22 富士通株式会社 Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
WO2011003478A1 (en) * 2009-07-10 2011-01-13 Telefonaktiebolaget Lm Ericsson (Publ) Loss measurement for multicast data delivery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101926154A (en) * 2008-02-05 2010-12-22 富士通株式会社 Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
CN101640629A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Method for monitoring link packet loss and bidirectional forwarding detector
US20100135180A1 (en) * 2008-12-01 2010-06-03 Fujitsu Limited Method of measuring packet loss rate, packet loss rate measuring device and storage medium
WO2011003478A1 (en) * 2009-07-10 2011-01-13 Telefonaktiebolaget Lm Ericsson (Publ) Loss measurement for multicast data delivery
CN101800679A (en) * 2010-03-10 2010-08-11 华为技术有限公司 Message packet loss detection method and system

Also Published As

Publication number Publication date
CN102217236A (en) 2011-10-12
WO2011124165A3 (en) 2012-04-12

Similar Documents

Publication Publication Date Title
WO2011124165A2 (en) Method and device for detecting link loss ratio
EP2961102B1 (en) Method and device for monitoring network performance
TWI528755B (en) A controller for delay measurement, a delay measurement system and a delay measurement method in sdn
WO2009098757A1 (en) Method for measuring frame loss, system for measuring frame loss, and device for measuring frame loss
JP2018521610A5 (en)
JP2009538101A (en) Network time protocol precision time stamp service
US11102273B2 (en) Uplink performance management
US20160373199A1 (en) Methods and nodes for synchronisation of networks
US9755926B2 (en) Efficiently utilizing probe packets within a network
WO2016033897A1 (en) Network link monitoring method and device, network system and storage medium
CN108259364B (en) Network congestion determination method and device
WO2016177065A1 (en) Delay measurement method and device
CN104618922B (en) Measurement result matching process and device in a kind of RTT measurement and positionings system
WO2012071851A1 (en) Method and apparatus for adjusting bidirectional forwarding detection transmission interval according to network jitter
CN113923140B (en) Round trip delay measuring method, system and storage medium
WO2016050153A1 (en) Network fault detection method and related network element
JP2015023463A (en) Packet analyzing device, packet analyzing method, and packet analyzing program
JP4536026B2 (en) Network quality measuring method, measuring device and program
JP5485204B2 (en) Network quality measurement method, delay fluctuation estimation device, network monitoring system, and program
CN107864026B (en) Aggregation link frame loss measuring device and method
US20160143082A1 (en) Method for detecting a message from a group of packets transmitted in a connection
WO2014000509A1 (en) Transmission monitoring method and device
JP6432377B2 (en) Message log removing apparatus, message log removing method, and message log removing program
WO2014089764A1 (en) Method, system and relative apparatus for measuring path delay
JP4331702B2 (en) One-way transfer delay time estimation apparatus, method, and program

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000720.2

Country of ref document: CN

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

Ref document number: 11765083

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11765083

Country of ref document: EP

Kind code of ref document: A2