WO2016150021A1 - Packet forwarding delay measurement method, device and system - Google Patents

Packet forwarding delay measurement method, device and system Download PDF

Info

Publication number
WO2016150021A1
WO2016150021A1 PCT/CN2015/082106 CN2015082106W WO2016150021A1 WO 2016150021 A1 WO2016150021 A1 WO 2016150021A1 CN 2015082106 W CN2015082106 W CN 2015082106W WO 2016150021 A1 WO2016150021 A1 WO 2016150021A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
receiving
sending
module
acquiring
Prior art date
Application number
PCT/CN2015/082106
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 WO2016150021A1 publication Critical patent/WO2016150021A1/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 data communications, and in particular, to a method, device, and system for measuring packet forwarding delay.
  • DM Delay Measurement
  • Ethernet OAM Operation Administration and Maintenance
  • MPLS-TP Multi-Protocol Label Switching Transport Profile
  • a DM information frame is sent between two network devices.
  • the two network devices include a transmitting end R1 and a receiving end R2, and the frame is sent from the transmitting end R1 to the receiving end R2 (there may be other devices in the middle), when transmitting,
  • the sending end R1 puts the timestamp T1 of the sending message in the message
  • the above method for calculating the delay is simple, but the device needs to support the time synchronization of the IEEE1588 (Institute of Electrical and Electronics Engineers IEEE1588 network measurement and control system precision clock synchronization protocol standard) function, otherwise the time at both ends is not synchronized, and the calculation is performed.
  • the delay is meaningless.
  • even if the time synchronization of the devices at both ends if the processing of the packets in the device is in different modules, there is a problem that the delay calculation is inaccurate due to the phase difference between the modules.
  • the embodiment of the present invention provides a method, a device, and a system for measuring a packet forwarding delay, which solves the problem that the delay of packet forwarding between two ends is not synchronized due to time and exists on at least one end.
  • the module processes the message to generate a time offset between the modules, which makes the delay calculation inaccurate.
  • the embodiment of the present invention adopts the following technical solutions:
  • a method for measuring packet forwarding delay includes:
  • the time deviation includes: a first time deviation and/or a second time deviation; the first time deviation is a first sending module and a first process for processing a message in the sending end Receiving a time deviation between the modules, wherein the second time deviation is a time deviation between the second receiving module and the second sending module that processes the message in the receiving end;
  • Acquiring the time offset between the at least two modules that process the packet in the at least one of the two ends of the sending end and the receiving end includes: acquiring the first time offset and/or the second time offset.
  • the acquiring process of the first time offset includes:
  • the first time offset is calculated according to the first transmission time, the first reception time, the second transmission time, and the second reception time.
  • the acquiring process of the second time deviation includes:
  • the second time offset is calculated according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time.
  • the calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the first time deviation, to obtain the a first sending and receiving time value of the sending end; subtracting the processing time from the first sending and receiving time value to obtain the packet forwarding delay;
  • the method for calculating the packet forwarding delay includes: calculating a difference between the processing time and the second time offset, and obtaining a second sending and receiving time value of the receiving end; And subtracting the time difference from the time difference to obtain the packet forwarding delay;
  • the calculation method of the message forwarding delay includes: calculating a difference between the time difference and the first time deviation, and obtaining the sending end a first transceiver time value; calculating a difference between the processing time and the second time offset to obtain a second transceiver time value of the receiving end; and subtracting the second transceiver time value from the first transceiver time value
  • the packet is forwarded with a delay.
  • a measuring device for packet forwarding delay includes:
  • the obtaining module is configured to obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, and is further configured to obtain a processing time of the measuring end by the receiving end, And setting a time offset between at least two modules that process the packet in at least one of the two ends of the sending end and the receiving end;
  • the calculating module is configured to calculate a packet forwarding delay between the sending end and the receiving end according to the time difference, the processing time, and the time offset.
  • the time deviation includes: a first time deviation and/or a second time deviation; the first time deviation is a first sending module and a first process for processing a message in the sending end Receiving a time deviation between the modules, wherein the second time deviation is a time deviation between the second receiving module and the second sending module that processes the message in the receiving end;
  • the acquiring module the time deviation between the at least two modules that process the packet in the at least one of the two ends of the sending end and the receiving end, specifically: acquiring the first time offset and/or the second time offset .
  • the acquiring process of the first time deviation specifically includes:
  • the first time offset is calculated according to the first transmission time, the first reception time, the second transmission time, and the second reception time.
  • the acquiring process of the second time deviation includes:
  • the second time offset is calculated according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time.
  • the calculating module specifically includes: a first sending and receiving time calculating submodule, configured to calculate between the time difference and the first time deviation Poor, obtaining a first transceiver time value of the sending end; a delay calculation sub-module, configured to subtract the processing time from the first transceiver time value to obtain the packet forwarding delay;
  • the calculating module specifically includes: a second transceiver time calculation submodule, configured to calculate a difference between the processing time and the second time offset, to obtain a a second transmission and reception time value; a delay calculation submodule, configured to subtract the second transmission and reception time value from the time difference to obtain the packet forwarding delay;
  • the calculating module specifically includes: a first transceiver time calculation submodule, configured to calculate a difference between the time difference and the first time deviation, Obtaining a first sending and receiving time value of the sending end; the second sending and receiving time calculating submodule is configured to calculate a difference between the processing time and the second time deviation, to obtain a second sending and receiving time value of the receiving end; delay calculation And the submodule is configured to obtain the packet forwarding delay by subtracting the second transceiving time value from the first transceiving time value.
  • a measurement system for packet forwarding delay includes a transmitting end and a receiving end, and the transmitting end includes the measuring device for packet forwarding delay according to any one of the above.
  • the embodiment of the invention provides a method, a device and a system for measuring a packet forwarding delay, which are obtained by acquiring a time difference between a transmitting end transmitting a measurement message to a receiving end and receiving a measurement response message fed back by the receiving end, and receiving end Calculating the processing time between the transmitting end and the receiving end by calculating the processing time of the measurement packet and the time deviation between at least two modules processing the packet in at least one of the transmitting end and the receiving end Delay.
  • the problem of time synchronization is first eliminated by the bidirectional DM, and the time delay between the two ends is calculated by acquiring the time deviation between at least two modules that process the packet in at least one end, and the delay is improved.
  • the accuracy of the delay between the sender and the receiver is calculated, so that the engineering personnel can understand the forwarding state in the network more clearly, and thus make a more accurate judgment.
  • FIG. 1 is a flowchart of a method for measuring a packet forwarding delay according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a packet corresponding to a timestamp T1 when the timestamp is recorded according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic diagram of a message corresponding to a timestamp T2 recorded according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic diagram of a message corresponding to a timestamp T5 recorded according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic diagram of a message corresponding to a timestamp T6 recorded according to Embodiment 1 of the present invention.
  • FIG. 6 is a schematic diagram of a message corresponding to a timestamp T7 recorded according to Embodiment 1 of the present invention.
  • FIG. 7 is a schematic diagram of a message corresponding to a timestamp T8 recorded according to Embodiment 1 of the present invention.
  • FIG. 8 is a schematic diagram of a packet corresponding to a timestamp T3 recorded according to Embodiment 1 of the present invention.
  • FIG. 9 is a schematic diagram of a message corresponding to a timestamp T4 recorded according to Embodiment 1 of the present invention.
  • FIG. 10 is a schematic diagram of a message corresponding to a timestamp T9 recorded according to Embodiment 1 of the present invention.
  • FIG. 11 is a schematic diagram of a message corresponding to a timestamp T10 recorded according to Embodiment 1 of the present invention.
  • FIG. 12 is a schematic diagram of a message corresponding to a packet when a timestamp T11 is recorded according to Embodiment 1 of the present invention.
  • FIG. 13 is a schematic diagram of a packet corresponding to a packet when a timestamp T12 is recorded according to Embodiment 1 of the present invention.
  • FIG. 14 is a schematic structural diagram of a device for measuring packet forwarding delay according to Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart of a method for measuring a packet forwarding delay according to Embodiment 1 of the present invention. see FIG.
  • S101 Obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, obtain a processing time of the measurement message by the receiving end, and obtain the sending end. And a time offset between at least two modules that process the packet in at least one of the two ends of the receiving end;
  • the method for obtaining the time difference includes: obtaining a packet sending time of the measurement packet sent by the sending end to the receiving end, and acquiring a receiving time of the measurement response message fed back by the receiving end by the sending end, and then receiving the receiving time Time subtracting the message transmission time to obtain the time difference;
  • the method for obtaining the processing time includes: obtaining, by the receiving end, a packet receiving time of the measurement packet sent by the sending end, and acquiring, by the receiving end, a sending time of the measurement response message to the sending end, and then The sending time is subtracted from the packet receiving time to obtain a processing time of the receiving end;
  • the obtaining the time deviation includes at least: setting the time deviation between at least two modules that can process the message between the sending end and/or the receiving end by an engineering staff. Deviation value; or using a time measurement tool between the modules to measure the time deviation between at least two modules processing the message between the sender and/or the receiver to obtain a time offset value; or, by Transmitting a message between the at least two modules, and recording each key time value in the transmission process, and calculating a time deviation value between the at least two modules;
  • S102 Calculate a packet forwarding delay between the sending end and the receiving end according to the time difference, the processing time, and the time offset.
  • the packet forwarding delay includes: a unilateral delay and a bilateral delay; in the case that the network between the transmitting end and the receiving end is symmetric, the unilateral delay between the two ends is half of the bilateral delay, In the invention, it is assumed that the transmitting end and the receiving end are network-symmetrical.
  • the specific calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the processing time, and subtracting the difference between the time difference and the processing time according to the judgment of the time deviation Add the time deviation.
  • the time offset includes: a first time offset and/or a second time offset; the first time offset is between the first sending module and the first receiving module that processes the packet in the sending end Time deviation, the second time deviation is a time deviation between the second receiving module and the second sending module that processes the message in the receiving end; and the obtaining the sending end and receiving in the step S101
  • the time offset between the at least two modules that process the packet in the at least one end of the two ends includes: acquiring the first time offset and/or the second time offset.
  • the acquiring the first time deviation includes: acquiring a first transmission time that the first receiving module transmits the measurement response message to the first sending module, and acquiring the first receiving module Receiving a second receiving time of the measurement response message that is sent by the first sending module, and acquiring, by the first sending module, a first receiving time of receiving the measurement response message sent by the first receiving module, and acquiring the Transmitting, by the first sending module, the measurement response message to the second transmission time of the first receiving module; calculating, according to the first transmission time, the first receiving time, the second transmission time, and the second receiving time a time deviation; the specific calculation process of the first time deviation includes: calculating a difference between the second reception time and the first transmission time, obtaining t1; calculating a difference between the second transmission time and the first reception time, obtaining t2; Calculating the difference between the second receiving time and the second transmission time, obtaining t3; the first time deviation is: t3-(t1-t2).
  • the acquiring process of the second time offset includes: acquiring a third transmission time that the second receiving module transmits the measurement message to the second sending module, and acquiring, by the second receiving module, the Receiving, by the second sending module, the fourth receiving time of the measurement message that is sent by the sending module, acquiring the third receiving time of the second sending module, and acquiring the second receiving module, and acquiring the second sending module Transmitting the measurement message to the second transmission time of the second receiving module; and calculating the second time offset according to the third transmission time, the third receiving time, the fourth transmission time, and the fourth receiving time.
  • the specific calculation process of the second time offset includes: calculating a difference between the fourth receiving time and the third transmission time to obtain t4; calculating a difference between the fourth transmission time and the third receiving time to obtain t5; calculating the fourth receiving The difference between the time and the third transmission time gives t6; the second time deviation is: t6-(t5-t4).
  • the packet forwarding delay obtained by the first deviation and/or the second deviation specifically includes:
  • the specific calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the first time deviation, and obtaining a first sending and receiving time of the sending end And subtracting the processing time from the first transceiver time value to obtain the packet forwarding delay;
  • the specific calculation method of the packet forwarding delay includes: calculating a difference between the processing time and the second time deviation, and obtaining a second sending and receiving time value of the receiving end And subtracting the second transmission and reception time value from the time difference to obtain the packet forwarding delay;
  • the specific calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the first time deviation, to obtain the sending a first transceiver time value of the terminal; calculating a difference between the processing time and the second time offset to obtain a second transceiver time value of the receiving end; and subtracting the second transceiver time value from the first transceiver time value The packet is forwarded to the delay.
  • the network device includes a transmitting end R1 and a receiving end R2, and includes in R1: a first sending module M1 and a first receiving module M2; and in R2, a second sending module M3 and a second receiving module M4;
  • the packet forwarding delay between R1 and R2 is calculated between R1 and R2.
  • the schematic diagram of the corresponding packet when recording each timestamp in Figure 2-13 Specifically include:
  • a DMM (Delay Measurement Message) message is sent from the first sending module M1 of R1 to R2, and carries a transmission timestamp T1.
  • the DMM message is as shown in FIG. 2, and the second receiving module of R2 receives the message.
  • the receiving timestamp T2 is displayed, as shown in FIG. 3;
  • the DMM packet is internally transmitted in R2, and the transmission process includes: when the second receiving module M4 sends the DMM packet to the second sending module M3, it sends a timestamp T5, as shown in FIG. 4, the second sending module M3 After receiving the DMM packet, the receiving timestamp T6 is displayed, as shown in FIG. 5, and then the DMM packet is sent to the second receiving module M4, and the sending timestamp T7 is sent when sending, as shown in FIG. When the receiving module M4 receives the DMM packet, it receives the receiving timestamp T8, as shown in FIG. 7.
  • the transmission and reception between M3 and M4 is symmetrical, and the transmission delay between the messages M3 and M4 is [(T8-T5)-(T7-T6)]/2, so that M4 can be obtained between M3 and M3.
  • the second time deviation is (T6-T5)-[(T8-T5)-(T7-T6)]/2;
  • the DMM message is sent to the control plane, and the control plane sends a DMR (DelayMeasurement Reply) message, which is sent out from R2 by the second sending module M4.
  • DMR DelayMeasurement Reply
  • R1 receives the DMR message sent by R2, and receives the receiving timestamp T4.
  • the DMR message is internally transmitted in R2, and the first receiving module M2 sends the DMR message to the first sending.
  • the module M1 is configured with a sending timestamp T9.
  • the first sending module M1 receives the DMR message and then receives the receiving timestamp T10, as shown in FIG. 11, and then sends the DMR message to the first.
  • the receiving module M2 sends a timestamp T11 to the sending.
  • the first receiving module M2 receives the receiving timestamp T12 when receiving the DMR message, as shown in FIG. 13; the message is in the internal component M1 of R1.
  • the one-way forwarding delay is the value of the two-way delay Divide by 2.
  • the time difference between at least two modules processing the packet in at least one end between the transmitting end and the receiving end is used to calculate the packet between the transmitting end and the receiving end by combining other time values.
  • the forwarding delay improves the accuracy of the delay calculation and facilitates the judgment and processing of the equipment by the engineering personnel.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 14 is a schematic structural diagram of a device for measuring a packet forwarding delay according to Embodiment 2 of the present invention.
  • the packet forwarding delay measuring apparatus 20 includes: an obtaining module 201 and a computing module.
  • the obtaining module 201 is configured to obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, and is further configured to obtain the receiving end to measure the message
  • the processing time is further set to obtain a time offset between at least two modules that process the packet in at least one of the two ends of the sending end and the receiving end;
  • the calculating module 202 is configured to process according to the time difference
  • the time and time deviation calculates a packet forwarding delay between the sender and the receiver.
  • the measuring device 20 of the packet forwarding delay is generally disposed in the transmitting end or in a server or the like.
  • the time deviation includes: a first time deviation and/or a second time deviation; the first time deviation is between the first sending module and the first receiving module that processes the message in the sending end Time deviation, the second time deviation is a time deviation between the second receiving module and the second sending module that processes the packet in the receiving end; the obtaining module 201 is configured to acquire the sending end and
  • the time offset between the at least two modules that process the packet in the at least one of the two ends of the receiving end includes: acquiring the first time offset and/or the second time offset.
  • the invention also provides a measurement system for packet forwarding delay, comprising a transmitting end and a receiving end, wherein the transmitting end comprises the measuring device for packet forwarding delay.
  • the delay of the packet forwarding between the sender and the receiver is calculated by the setting of the measurement device of the packet forwarding delay at the transmitting end, and the obtained delay value is more accurate.
  • the invention provides a method, a device and a system for measuring a packet forwarding delay, which are obtained by acquiring time deviations between at least two modules processing at least one end of the packet and combining other time points to calculate the two ends.
  • the delay between the two increases the accuracy of the delay between the sender and the receiver.
  • the foregoing technical solution provided by the present invention can be applied to the measurement of the packet forwarding delay, and obtains the time difference between the measurement message sent by the transmitting end to the receiving end and the measurement response message fed back by the receiving end, and the receiving end is opposite. Calculating the processing time of the measurement packet and the time offset between the at least two modules processing the packet in at least one of the two ends of the transmitting end and the receiving end to calculate the packet forwarding delay between the transmitting end and the receiving end .
  • the problem of time synchronization is first eliminated by the bidirectional DM, and the time delay between the two ends is calculated by acquiring the time deviation between at least two modules that process the packet in at least one end, and the delay is improved. Calculate the delay accuracy between the sender and the receiver.

Abstract

Provided are a packet forwarding delay measurement method, device and system. The packet forwarding delay measurement method comprises: obtaining a time difference between a sending end sending a measurement packet to a receiving end and receiving a measurement response packet fed back by the receiving end, obtaining a processing time for the receiving end with regard to the measurement packet, and obtaining a time deviation between at least two modules in at least one end within the two ends of the sending end and the receiving end, said modules processing the packet; calculating a packet forwarding delay between the sending end and the receiving end according to the time difference, the processing time and the time deviation. The present invention solves the problem in the prior art that with regard to a packet forwarding delay between two ends, delay calculation is not accurate due to times not being synchronised, and a time deviation between modules produced by there being a plurality of modules processing a packet on at least one end. The present invention increases the accuracy of calculating the delay between the sending end and the receiving end.

Description

一种报文转发时延的测量方法、装置及系统Method, device and system for measuring message forwarding delay 技术领域Technical field
本发明涉及数据通信领域,尤其涉及一种报文转发时延的测量方法、装置及系统。The present invention relates to the field of data communications, and in particular, to a method, device, and system for measuring packet forwarding delay.
背景技术Background technique
在数据通信领域中,报文在网络中被转发,每个节点都需要一定的时间进行处理,在一些情况下我们需要知道报文在网络设备中转发所经历的延时,掌握网络中的转发状况。目前对于帧或者报文的延时测量也有一些技术。如以太OAM(Operation Administration and Maintenance,操作、管理、维护)的DM(Delay Measurement,时延测量)功能,MPLS-TP(Multi-Protocol Label Switching Transport Profile,传送多协议标记交换)OAM中的DM功能。以太OAM、MPLS-TP OAM中实现帧或者报文转发时延的测量原理是类似的,可看成是同一种技术。并且帧时延的测试有两种方式即单向DM和双向DM,下面对其原理进行一些说明。对于单向DM,两个网络设备间发送DM信息帧,两个网络设备包括发送端R1和接收端R2,帧从发送端R1中发送到接收端R2(中间可以有其他设备),发送时,发送端R1上在报文中打上发送的时间戳T1,接收端R2接收到报文时打上报文的接收时间戳T2,这样帧延时的计算具体为:帧延时=T2-T1。In the field of data communication, packets are forwarded in the network, and each node needs a certain amount of time to process. In some cases, we need to know the delay experienced by packets in the network device and master the forwarding in the network. situation. There are currently some techniques for delay measurement of frames or messages. DM (Delay Measurement) function such as Ethernet OAM (Operation Administration and Maintenance), DM function in MPLS-TP (Multi-Protocol Label Switching Transport Profile) OAM . The measurement principle of implementing frame or packet forwarding delay in Ethernet OAM and MPLS-TP OAM is similar and can be regarded as the same technology. There are two ways to test the frame delay, namely unidirectional DM and bidirectional DM. The following describes some of its principles. For a unidirectional DM, a DM information frame is sent between two network devices. The two network devices include a transmitting end R1 and a receiving end R2, and the frame is sent from the transmitting end R1 to the receiving end R2 (there may be other devices in the middle), when transmitting, The sending end R1 puts the timestamp T1 of the sending message in the message, and the receiving end R2 receives the receiving timestamp T2 of the message when receiving the message, so that the calculation of the frame delay is specifically: frame delay=T2-T1.
上述这种计算时延的方法很简单,但是需要设备支持IEEE1588(Institute of Electrical and Electronics Engineers IEEE1588网络测量和控制系统的精密时钟同步协议标准)功能进行时间同步,否则两端的时间不同步,计算出来的延时是没有意义的。另外,即使两端设备的时间同步,若在设备中对报文的处理是在不同的模块中,这样也会由于模块之间存在相位差,使得时延计算不准确的问题。The above method for calculating the delay is simple, but the device needs to support the time synchronization of the IEEE1588 (Institute of Electrical and Electronics Engineers IEEE1588 network measurement and control system precision clock synchronization protocol standard) function, otherwise the time at both ends is not synchronized, and the calculation is performed. The delay is meaningless. In addition, even if the time synchronization of the devices at both ends, if the processing of the packets in the device is in different modules, there is a problem that the delay calculation is inaccurate due to the phase difference between the modules.
发明内容Summary of the invention
本发明实施例提供了一种报文转发时延的测量方法、装置及系统,解决了现有技术中对于两端之间报文转发的时延由于时间不同步,以及在至少一端上存在不同模块对报文进行处理产生模块之间的时间偏差而使得时延计算不准确的问题。The embodiment of the present invention provides a method, a device, and a system for measuring a packet forwarding delay, which solves the problem that the delay of packet forwarding between two ends is not synchronized due to time and exists on at least one end. The module processes the message to generate a time offset between the modules, which makes the delay calculation inaccurate.
为了解决上述问题,本发明实施例采用以下技术方案:In order to solve the above problem, the embodiment of the present invention adopts the following technical solutions:
一种报文转发时延的测量方法,包括: A method for measuring packet forwarding delay includes:
获取发送端向接收端发送测量报文与接收所述接收端反馈的测量响应报文之间的时间差,获取所述接收端对所述测量报文的处理时间,并获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差;Acquiring a time difference between a measurement message sent by the sending end to the receiving end and receiving the measurement response message fed back by the receiving end, obtaining a processing time of the measuring end by the receiving end, and acquiring the sending end and receiving a time offset between at least two modules that process the message in at least one of the two ends;
根据所述时间差、处理时间及时间偏差计算所述发送端与接收端之间的报文转发时延。And calculating, according to the time difference, the processing time, and the time offset, a packet forwarding delay between the sending end and the receiving end.
在本发明实施例中,所述时间偏差包括:第一时间偏差和/或第二时间偏差;所述第一时间偏差为所述发送端中对报文进行处理的第一发送模块和第一接收模块之间的时间偏差,所述第二时间偏差为所述接收端中对报文进行处理的第二接收模块和第二发送模块之间的时间偏差;In the embodiment of the present invention, the time deviation includes: a first time deviation and/or a second time deviation; the first time deviation is a first sending module and a first process for processing a message in the sending end Receiving a time deviation between the modules, wherein the second time deviation is a time deviation between the second receiving module and the second sending module that processes the message in the receiving end;
获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差具体包括:获取第一时间偏差和/或第二时间偏差。Acquiring the time offset between the at least two modules that process the packet in the at least one of the two ends of the sending end and the receiving end includes: acquiring the first time offset and/or the second time offset.
在本发明实施例中,所述第一时间偏差的获取过程包括:In the embodiment of the present invention, the acquiring process of the first time offset includes:
获取所述第一接收模块将所述测量响应报文传输给所述第一发送模块的第一传输时间,并获取所述第一接收模块接收所述第一发送模块反馈的所述测量响应报文的第二接收时间;Acquiring the first transmission time that the first receiving module transmits the measurement response message to the first sending module, and acquiring the measurement response report that the first receiving module receives the feedback from the first sending module Second receiving time of the text;
获取所述第一发送模块接收所述第一接收模块发送的测量响应报文的第一接收时间,并获取所述第一发送模块将所述测量响应报文传输给所述第一接收模块的第二传输时间;Obtaining a first receiving time that the first sending module receives the measurement response message sent by the first receiving module, and acquiring, by the first sending module, the measurement response message to the first receiving module Second transmission time;
根据所述第一传输时间、第一接收时间、第二传输时间及第二接收时间计算第一时间偏差。The first time offset is calculated according to the first transmission time, the first reception time, the second transmission time, and the second reception time.
在本发明实施例中,所述第二时间偏差的获取过程包括:In the embodiment of the present invention, the acquiring process of the second time deviation includes:
获取所述第二接收模块将所述测量报文传输给所述第二发送模块的第三传输时间,并获取所述第二接收模块接收所述第二发送模块反馈的所述测量报文的第四接收时间;Obtaining, by the second receiving module, the third transmission time that the measurement message is transmitted to the second sending module, and acquiring, by the second receiving module, the measurement message that is sent by the second sending module Fourth receiving time;
获取所述第二发送模块接收所述第二接收模块发送的测量报文的第三接收时间,并获取所述第二发送模块将所述测量报文传输给所述第二接收模块的第四传输时间;Obtaining, by the second sending module, a third receiving time of the measurement message sent by the second receiving module, and acquiring, by the second sending module, the measurement message to the fourth receiving module Transmission time
根据所述第三传输时间、第三接收时间、第四传输时间及第四接收时间计算所述第二时间偏差。 The second time offset is calculated according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time.
在本发明实施例中,若所述时间偏差包括第一时间偏差,则所述报文转发时延的计算方法包括:计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;将所述第一收发时间值减去所述处理时间得到所述报文转发时延;In the embodiment of the present invention, if the time deviation includes a first time deviation, the calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the first time deviation, to obtain the a first sending and receiving time value of the sending end; subtracting the processing time from the first sending and receiving time value to obtain the packet forwarding delay;
若所述时间偏差包括第二时间偏差,则所述报文转发时延的计算方法包括:计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;将所述时间差减去所述第二收发时间值得到所述报文转发时延;If the time deviation includes a second time offset, the method for calculating the packet forwarding delay includes: calculating a difference between the processing time and the second time offset, and obtaining a second sending and receiving time value of the receiving end; And subtracting the time difference from the time difference to obtain the packet forwarding delay;
若所述时间偏差包括第一时间偏差和第二时间偏差,则所述报文转发时延的计算方法包括:计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;将所述第一收发时间值减去所述第二收发时间值得到所述报文转发时延。If the time deviation includes a first time deviation and a second time deviation, the calculation method of the message forwarding delay includes: calculating a difference between the time difference and the first time deviation, and obtaining the sending end a first transceiver time value; calculating a difference between the processing time and the second time offset to obtain a second transceiver time value of the receiving end; and subtracting the second transceiver time value from the first transceiver time value The packet is forwarded with a delay.
一种报文转发时延的测量装置,包括:A measuring device for packet forwarding delay includes:
获取模块,设置为获取发送端向接收端发送测量报文与接收所述接收端反馈的测量响应报文之间的时间差,还设置为获取所述接收端对所述测量报文的处理时间,还设置为获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差;The obtaining module is configured to obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, and is further configured to obtain a processing time of the measuring end by the receiving end, And setting a time offset between at least two modules that process the packet in at least one of the two ends of the sending end and the receiving end;
计算模块,设置为根据所述时间差、处理时间及时间偏差计算所述发送端与接收端之间的报文转发时延。The calculating module is configured to calculate a packet forwarding delay between the sending end and the receiving end according to the time difference, the processing time, and the time offset.
在本发明实施例中,所述时间偏差包括:第一时间偏差和/或第二时间偏差;所述第一时间偏差为所述发送端中对报文进行处理的第一发送模块和第一接收模块之间的时间偏差,所述第二时间偏差为所述接收端中对报文进行处理的第二接收模块和第二发送模块之间的时间偏差;In the embodiment of the present invention, the time deviation includes: a first time deviation and/or a second time deviation; the first time deviation is a first sending module and a first process for processing a message in the sending end Receiving a time deviation between the modules, wherein the second time deviation is a time deviation between the second receiving module and the second sending module that processes the message in the receiving end;
所述获取模块设置为获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差具体包括:获取第一时间偏差和/或第二时间偏差。And the obtaining, by the acquiring module, the time deviation between the at least two modules that process the packet in the at least one of the two ends of the sending end and the receiving end, specifically: acquiring the first time offset and/or the second time offset .
在本发明实施例中,所述第一时间偏差的获取过程具体包括:In the embodiment of the present invention, the acquiring process of the first time deviation specifically includes:
获取所述第一接收模块将所述测量响应报文传输给所述第一发送模块的第一传输时间,并获取所述第一接收模块接收所述第一发送模块反馈的所述测量响应报文的第二接收时间; Acquiring the first transmission time that the first receiving module transmits the measurement response message to the first sending module, and acquiring the measurement response report that the first receiving module receives the feedback from the first sending module Second receiving time of the text;
获取所述第一发送模块接收所述第一接收模块发送的测量响应报文的第一接收时间,并获取所述第一发送模块将所述测量响应报文传输给所述第一接收模块的第二传输时间;Obtaining a first receiving time that the first sending module receives the measurement response message sent by the first receiving module, and acquiring, by the first sending module, the measurement response message to the first receiving module Second transmission time;
根据所述第一传输时间、第一接收时间、第二传输时间及第二接收时间计算第一时间偏差。The first time offset is calculated according to the first transmission time, the first reception time, the second transmission time, and the second reception time.
在本发明实施例中,所述第二时间偏差的获取过程包括:In the embodiment of the present invention, the acquiring process of the second time deviation includes:
获取所述第二接收模块将所述测量报文传输给所述第二发送模块的第三传输时间,并获取所述第二接收模块接收所述第二发送模块反馈的所述测量报文的第四接收时间;Obtaining, by the second receiving module, the third transmission time that the measurement message is transmitted to the second sending module, and acquiring, by the second receiving module, the measurement message that is sent by the second sending module Fourth receiving time;
获取所述第二发送模块接收所述第二接收模块发送的测量报文的第三接收时间,并获取所述第二发送模块将所述测量报文传输给所述第二接收模块的第四传输时间;Obtaining, by the second sending module, a third receiving time of the measurement message sent by the second receiving module, and acquiring, by the second sending module, the measurement message to the fourth receiving module Transmission time
根据所述第三传输时间、第三接收时间、第四传输时间及第四接收时间计算所述第二时间偏差。The second time offset is calculated according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time.
在本发明实施例中,若所述时间偏差包括第一时间偏差,则所述计算模块具体包括:第一收发时间计算子模块,设置为计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;时延计算子模块,设置为将所述第一收发时间值减去所述处理时间得到所述报文转发时延;In the embodiment of the present invention, if the time deviation includes a first time deviation, the calculating module specifically includes: a first sending and receiving time calculating submodule, configured to calculate between the time difference and the first time deviation Poor, obtaining a first transceiver time value of the sending end; a delay calculation sub-module, configured to subtract the processing time from the first transceiver time value to obtain the packet forwarding delay;
若所述时间偏差包括第二时间偏差,则所述计算模块具体包括:第二收发时间计算子模块,设置为计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;时延计算子模块,设置为将所述时间差减去所述第二收发时间值得到所述报文转发时延;If the time offset includes the second time offset, the calculating module specifically includes: a second transceiver time calculation submodule, configured to calculate a difference between the processing time and the second time offset, to obtain a a second transmission and reception time value; a delay calculation submodule, configured to subtract the second transmission and reception time value from the time difference to obtain the packet forwarding delay;
若所述时间偏差包括第一时间偏差和第二时间偏差,则所述计算模块具体包括:第一收发时间计算子模块,设置为计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;第二收发时间计算子模块,设置为计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;时延计算子模块,设置为将所述第一收发时间值减去所述第二收发时间值得到所述报文转发时延。If the time deviation includes a first time deviation and a second time deviation, the calculating module specifically includes: a first transceiver time calculation submodule, configured to calculate a difference between the time difference and the first time deviation, Obtaining a first sending and receiving time value of the sending end; the second sending and receiving time calculating submodule is configured to calculate a difference between the processing time and the second time deviation, to obtain a second sending and receiving time value of the receiving end; delay calculation And the submodule is configured to obtain the packet forwarding delay by subtracting the second transceiving time value from the first transceiving time value.
一种报文转发时延的测量系统,包括发送端和接收端,所述发送端包括如上述任一项所述的报文转发时延的测量装置。 A measurement system for packet forwarding delay includes a transmitting end and a receiving end, and the transmitting end includes the measuring device for packet forwarding delay according to any one of the above.
本发明实施例的有益效果:Advantageous effects of embodiments of the present invention:
本发明实施例提供了一种报文转发时延的测量方法、装置及系统,通过获取发送端向接收端发送测量报文与接收该接收端反馈的测量响应报文之间的时间差、接收端对所述测量报文的处理时间,以及发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差来计算发送端与接收端之间的报文转发时延。在本发明中,首先通过双向DM来消除时间同步的问题,且还通过获取至少一端中对报文进行处理的至少两个模块之间存在的时间偏差来计算两端之间的时延,提高了计算发送端与接收端之间的时延准确度,使得工程人员能够对网络中的转发状态了解的更加清楚,从而做出比较准确的判断。The embodiment of the invention provides a method, a device and a system for measuring a packet forwarding delay, which are obtained by acquiring a time difference between a transmitting end transmitting a measurement message to a receiving end and receiving a measurement response message fed back by the receiving end, and receiving end Calculating the processing time between the transmitting end and the receiving end by calculating the processing time of the measurement packet and the time deviation between at least two modules processing the packet in at least one of the transmitting end and the receiving end Delay. In the present invention, the problem of time synchronization is first eliminated by the bidirectional DM, and the time delay between the two ends is calculated by acquiring the time deviation between at least two modules that process the packet in at least one end, and the delay is improved. The accuracy of the delay between the sender and the receiver is calculated, so that the engineering personnel can understand the forwarding state in the network more clearly, and thus make a more accurate judgment.
附图说明DRAWINGS
图1为本发明实施例一提供的报文转发时延的测量方法的流程图;1 is a flowchart of a method for measuring a packet forwarding delay according to Embodiment 1 of the present invention;
图2为本发明实施例一提供的在记录时间戳T1时对应的报文示意图;2 is a schematic diagram of a packet corresponding to a timestamp T1 when the timestamp is recorded according to Embodiment 1 of the present invention;
图3为本发明实施例一提供的在记录时间戳T2时对应的报文示意图;FIG. 3 is a schematic diagram of a message corresponding to a timestamp T2 recorded according to Embodiment 1 of the present invention;
图4为本发明实施例一提供的在记录时间戳T5时对应的报文示意图;FIG. 4 is a schematic diagram of a message corresponding to a timestamp T5 recorded according to Embodiment 1 of the present invention;
图5为本发明实施例一提供的在记录时间戳T6时对应的报文示意图;FIG. 5 is a schematic diagram of a message corresponding to a timestamp T6 recorded according to Embodiment 1 of the present invention;
图6为本发明实施例一提供的在记录时间戳T7时对应的报文示意图;FIG. 6 is a schematic diagram of a message corresponding to a timestamp T7 recorded according to Embodiment 1 of the present invention;
图7为本发明实施例一提供的在记录时间戳T8时对应的报文示意图;FIG. 7 is a schematic diagram of a message corresponding to a timestamp T8 recorded according to Embodiment 1 of the present invention;
图8为本发明实施例一提供的在记录时间戳T3时对应的报文示意图;FIG. 8 is a schematic diagram of a packet corresponding to a timestamp T3 recorded according to Embodiment 1 of the present invention;
图9为本发明实施例一提供的在记录时间戳T4时对应的报文示意图;FIG. 9 is a schematic diagram of a message corresponding to a timestamp T4 recorded according to Embodiment 1 of the present invention;
图10为本发明实施例一提供的在记录时间戳T9时对应的报文示意图;FIG. 10 is a schematic diagram of a message corresponding to a timestamp T9 recorded according to Embodiment 1 of the present invention;
图11为本发明实施例一提供的在记录时间戳T10时对应的报文示意图;FIG. 11 is a schematic diagram of a message corresponding to a timestamp T10 recorded according to Embodiment 1 of the present invention;
图12为本发明实施例一提供的报文在记录时间戳T11时对应的报文示意图;FIG. 12 is a schematic diagram of a message corresponding to a packet when a timestamp T11 is recorded according to Embodiment 1 of the present invention;
图13为本发明实施例一提供的报文在记录时间戳T12时对应的报文示意图;FIG. 13 is a schematic diagram of a packet corresponding to a packet when a timestamp T12 is recorded according to Embodiment 1 of the present invention;
图14为本发明实施例二提供的报文转发时延的测量装置的结构示意图。 FIG. 14 is a schematic structural diagram of a device for measuring packet forwarding delay according to Embodiment 2 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
如图1所示,为本发明实施例一提供的报文转发时延的测量方法的流程图;请参见图1,FIG. 1 is a flowchart of a method for measuring a packet forwarding delay according to Embodiment 1 of the present invention; see FIG.
S101:获取发送端向接收端发送测量报文与接收所述接收端反馈的测量响应报文之间的时间差,获取所述接收端对所述测量报文的处理时间,并获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差;S101: Obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, obtain a processing time of the measurement message by the receiving end, and obtain the sending end. And a time offset between at least two modules that process the packet in at least one of the two ends of the receiving end;
所述时间差的获取方式包括:获取发送端向接收端发送测量报文的报文发送时间,并获取所述发送端接收所述接收端反馈的测量响应报文的接收时间,再将所述接收时间减去所述报文发送时间得到所述时间差;The method for obtaining the time difference includes: obtaining a packet sending time of the measurement packet sent by the sending end to the receiving end, and acquiring a receiving time of the measurement response message fed back by the receiving end by the sending end, and then receiving the receiving time Time subtracting the message transmission time to obtain the time difference;
所述处理时间的获取方式包括:获取所述接收端接收所述发送端发送的测量报文的报文接收时间,并获取所述接收端向发送端反馈测量响应报文的发送时间,再将所述发送时间减去所述报文接收时间得到所述接收端的处理时间;The method for obtaining the processing time includes: obtaining, by the receiving end, a packet receiving time of the measurement packet sent by the sending end, and acquiring, by the receiving end, a sending time of the measurement response message to the sending end, and then The sending time is subtracted from the packet receiving time to obtain a processing time of the receiving end;
所述时间偏差的获取方式至少包括:可以由工程人员通过经验主动对所述发送端和/或接收端之间的对报文进行处理的至少两个模块之间的时间偏差进行设置得到的时间偏差值;或者是使用模块之间的时间测量工具对发送端和/或接收端之间的对报文进行处理的至少两个模块之间的时间偏差进行测量,得到时间偏差值;或者,通过报文在所述至少两个模块之间进行传输,并记录其传输过程中的各个关键时间值,计算得到所述至少两个模块之间的时间偏差值等;The obtaining the time deviation includes at least: setting the time deviation between at least two modules that can process the message between the sending end and/or the receiving end by an engineering staff. Deviation value; or using a time measurement tool between the modules to measure the time deviation between at least two modules processing the message between the sender and/or the receiver to obtain a time offset value; or, by Transmitting a message between the at least two modules, and recording each key time value in the transmission process, and calculating a time deviation value between the at least two modules;
S102:根据所述时间差、处理时间及时间偏差计算所述发送端与接收端之间的报文转发时延;S102: Calculate a packet forwarding delay between the sending end and the receiving end according to the time difference, the processing time, and the time offset.
所述报文转发时延包括:单边时延和双边时延;在发送端与接收端的网络对称的情况下,所述两端之间的单边时延为双边时延的一半,在本发明中,假设发送端与接收端为网络对称的情况。所述报文转发时延的具体计算方法包括:计算所述时间差与所述处理时间的差,再根据对所述时间偏差的判断,将所述时间差与所述处理时间的差减去或者是加上所述时间偏差。 The packet forwarding delay includes: a unilateral delay and a bilateral delay; in the case that the network between the transmitting end and the receiving end is symmetric, the unilateral delay between the two ends is half of the bilateral delay, In the invention, it is assumed that the transmitting end and the receiving end are network-symmetrical. The specific calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the processing time, and subtracting the difference between the time difference and the processing time according to the judgment of the time deviation Add the time deviation.
具体地,所述时间偏差包括:第一时间偏差和/或第二时间偏差;所述第一时间偏差为所述发送端中对报文进行处理的第一发送模块和第一接收模块之间的时间偏差,所述第二时间偏差为所述接收端中对报文进行处理的第二接收模块和第二发送模块之间的时间偏差;所述步骤S101中的获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差具体包括:获取所述第一时间偏差和/或所述第二时间偏差。Specifically, the time offset includes: a first time offset and/or a second time offset; the first time offset is between the first sending module and the first receiving module that processes the packet in the sending end Time deviation, the second time deviation is a time deviation between the second receiving module and the second sending module that processes the message in the receiving end; and the obtaining the sending end and receiving in the step S101 The time offset between the at least two modules that process the packet in the at least one end of the two ends includes: acquiring the first time offset and/or the second time offset.
优选地,所述第一时间偏差的获取过程包括:获取所述第一接收模块将所述测量响应报文传输给所述第一发送模块的第一传输时间,并获取所述第一接收模块接收所述第一发送模块反馈的所述测量响应报文的第二接收时间;获取所述第一发送模块接收所述第一接收模块发送的测量响应报文的第一接收时间,并获取所述第一发送模块将所述测量响应报文传输给所述第一接收模块的第二传输时间;根据所述第一传输时间、第一接收时间、第二传输时间及第二接收时间计算第一时间偏差;所述第一时间偏差的具体计算过程包括:计算第二接收时间与第一传输时间之间的差,得到t1;计算第二传输时间与第一接收时间的差,得到t2;计算第二接收时间与第二传输时间的差,得到t3;第一时间偏差为:t3-(t1-t2)。Preferably, the acquiring the first time deviation includes: acquiring a first transmission time that the first receiving module transmits the measurement response message to the first sending module, and acquiring the first receiving module Receiving a second receiving time of the measurement response message that is sent by the first sending module, and acquiring, by the first sending module, a first receiving time of receiving the measurement response message sent by the first receiving module, and acquiring the Transmitting, by the first sending module, the measurement response message to the second transmission time of the first receiving module; calculating, according to the first transmission time, the first receiving time, the second transmission time, and the second receiving time a time deviation; the specific calculation process of the first time deviation includes: calculating a difference between the second reception time and the first transmission time, obtaining t1; calculating a difference between the second transmission time and the first reception time, obtaining t2; Calculating the difference between the second receiving time and the second transmission time, obtaining t3; the first time deviation is: t3-(t1-t2).
所述第二时间偏差的获取过程包括:获取所述第二接收模块将所述测量报文传输给所述第二发送模块的第三传输时间,并获取所述第二接收模块接收所述第二发送模块反馈的所述测量报文的第四接收时间;获取所述第二发送模块接收所述第二接收模块发送的测量报文的第三接收时间,并获取所述第二发送模块将所述测量报文传输给所述第二接收模块的第四传输时间;根据所述第三传输时间、第三接收时间、第四传输时间及第四接收时间计算所述第二时间偏差。所述第二时间偏差的具体计算过程包括:计算第四接收时间与第三传输时间之间的差,得到t4;计算第四传输时间与第三接收时间的差,得到t5;计算第四接收时间与第三传输时间的差,得到t6;第二时间偏差为:t6-(t5-t4)。The acquiring process of the second time offset includes: acquiring a third transmission time that the second receiving module transmits the measurement message to the second sending module, and acquiring, by the second receiving module, the Receiving, by the second sending module, the fourth receiving time of the measurement message that is sent by the sending module, acquiring the third receiving time of the second sending module, and acquiring the second receiving module, and acquiring the second sending module Transmitting the measurement message to the second transmission time of the second receiving module; and calculating the second time offset according to the third transmission time, the third receiving time, the fourth transmission time, and the fourth receiving time. The specific calculation process of the second time offset includes: calculating a difference between the fourth receiving time and the third transmission time to obtain t4; calculating a difference between the fourth transmission time and the third receiving time to obtain t5; calculating the fourth receiving The difference between the time and the third transmission time gives t6; the second time deviation is: t6-(t5-t4).
由所述第一偏差和/或第二偏差得到所述报文转发时延具体包括:The packet forwarding delay obtained by the first deviation and/or the second deviation specifically includes:
若所述时间偏差包括第一时间偏差,则所述报文转发时延的具体计算方法包括:计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;将所述第一收发时间值减去所述处理时间得到所述报文转发时延;If the time deviation includes the first time deviation, the specific calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the first time deviation, and obtaining a first sending and receiving time of the sending end And subtracting the processing time from the first transceiver time value to obtain the packet forwarding delay;
若所述时间偏差包括第二时间偏差,则所述报文转发时延的具体计算方法包括:计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;将所述时间差减去所述第二收发时间值得到所述报文转发时延; If the time deviation includes the second time deviation, the specific calculation method of the packet forwarding delay includes: calculating a difference between the processing time and the second time deviation, and obtaining a second sending and receiving time value of the receiving end And subtracting the second transmission and reception time value from the time difference to obtain the packet forwarding delay;
若所述时间偏差包括第一时间偏差和第二时间偏差,则所述报文转发时延的具体计算方法包括:计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;将所述第一收发时间值减去所述第二收发时间值得到所述报文转发时延。If the time deviation includes the first time deviation and the second time deviation, the specific calculation method of the packet forwarding delay includes: calculating a difference between the time difference and the first time deviation, to obtain the sending a first transceiver time value of the terminal; calculating a difference between the processing time and the second time offset to obtain a second transceiver time value of the receiving end; and subtracting the second transceiver time value from the first transceiver time value The packet is forwarded to the delay.
例如,网络设备中包括发送端R1和接收端R2,在R1中包括:第一发送模块M1和第一接收模块M2;在R2中包括:第二发送模块M3和第二接收模块M4;下面通过对测量报文在R1和R2之间来计算R1与R2之间的报文转发时延,请结合图2-图13中记录各个时间戳时对应的报文示意图。具体包括:For example, the network device includes a transmitting end R1 and a receiving end R2, and includes in R1: a first sending module M1 and a first receiving module M2; and in R2, a second sending module M3 and a second receiving module M4; For the measurement packet, the packet forwarding delay between R1 and R2 is calculated between R1 and R2. Please refer to the schematic diagram of the corresponding packet when recording each timestamp in Figure 2-13. Specifically include:
R1上产生DMM(Delay Measurement Message)报文从R1的第一发送模块M1发送到R2,携带发送时间戳T1,此时,所述DMM报文如图2所示,R2的第二接收模块接收到DMM报文后打上接收时间戳T2,如图3所示;A DMM (Delay Measurement Message) message is sent from the first sending module M1 of R1 to R2, and carries a transmission timestamp T1. At this time, the DMM message is as shown in FIG. 2, and the second receiving module of R2 receives the message. After receiving the DMM packet, the receiving timestamp T2 is displayed, as shown in FIG. 3;
所述DMM报文在R2进行内部传输,其传输过程包括:第二接收模块M4将DMM报文发送给第二发送模块M3时打上发送时间戳T5,如图4所示,第二发送模块M3收到所述DMM报文后打上接收时间戳T6,如图5所示,然后再将DMM报文发送给第二接收模块M4,发送时打上发送时间戳T7,如图6所示,第二接收模块M4收到DMM报文的时候打上接收时间戳T8,如图7所示。M3、M4间的收发是对称的,则报文在M3、M4之间的传输延时为[(T8-T5)-(T7-T6)]/2,这样就可以得出M4相对M3之间的第二时间偏差为(T6-T5)-[(T8-T5)-(T7-T6)]/2;The DMM packet is internally transmitted in R2, and the transmission process includes: when the second receiving module M4 sends the DMM packet to the second sending module M3, it sends a timestamp T5, as shown in FIG. 4, the second sending module M3 After receiving the DMM packet, the receiving timestamp T6 is displayed, as shown in FIG. 5, and then the DMM packet is sent to the second receiving module M4, and the sending timestamp T7 is sent when sending, as shown in FIG. When the receiving module M4 receives the DMM packet, it receives the receiving timestamp T8, as shown in FIG. 7. The transmission and reception between M3 and M4 is symmetrical, and the transmission delay between the messages M3 and M4 is [(T8-T5)-(T7-T6)]/2, so that M4 can be obtained between M3 and M3. The second time deviation is (T6-T5)-[(T8-T5)-(T7-T6)]/2;
随后所述DMM报文上送控制面,控制面发送DMR(DelayMeasurement Reply)报文,经第二发送模块M4从R2中发送出去。发送的时候打上发送时间戳T3,如图8所示(其它时间戳从DMM报文复制过来);Then, the DMM message is sent to the control plane, and the control plane sends a DMR (DelayMeasurement Reply) message, which is sent out from R2 by the second sending module M4. Send the timestamp T3 when sending, as shown in Figure 8 (other timestamps are copied from the DMM message);
R1接收到R2发送过来的DMR报文,打上接收时间戳T4,如图2中的9所示,DMR报文在R2内部进行内部传输,第一接收模块M2将DMR报文发送给第一发送模块M1时打上发送时间戳T9,如图10所示,第一发送模块M1收到所述DMR报文后打上接收时间戳T10,如图11所示,然后再将DMR报文发送给第一接收模块M2,发送时打上发送时间戳T11,如图12所示,第一接收模块M2收到DMR报文的时候打上接收时间戳T12,如图13所示;报文在R1内部部件M1、M2上传输,生成T9、T10、T11、T12四个时间戳。类似可以得到R1上生成的时间戳T4之间的时间偏差为:(T12-T11)-[(T12-T9)–(T11-T10)]/2;R1 receives the DMR message sent by R2, and receives the receiving timestamp T4. As shown in 9 of FIG. 2, the DMR message is internally transmitted in R2, and the first receiving module M2 sends the DMR message to the first sending. The module M1 is configured with a sending timestamp T9. As shown in FIG. 10, the first sending module M1 receives the DMR message and then receives the receiving timestamp T10, as shown in FIG. 11, and then sends the DMR message to the first. The receiving module M2 sends a timestamp T11 to the sending. As shown in FIG. 12, the first receiving module M2 receives the receiving timestamp T12 when receiving the DMR message, as shown in FIG. 13; the message is in the internal component M1 of R1. Transmission on M2, generating four timestamps of T9, T10, T11, and T12. Similarly, the time deviation between the time stamps T4 generated on R1 can be obtained as: (T12-T11)-[(T12-T9)–(T11-T10)]/2;
通过前面得到的这些时间戳就可以计算出报文在R1、R2上的双向转发时延。即R1与R2之间的报文转发时延=(T4–T1)–{(T12-T11)-[(T12-T9)–(T11-T10)]/2}–(T3 –T2)+{(T6-T5)-[(T8-T5)-(T7-T6)]/2};当R1与R2之间的网络对称时,单向转发时延就是双向时延的值除以2。The two-way forwarding delay of the packet on R1 and R2 can be calculated by using the timestamps obtained in the foregoing. That is, the packet forwarding delay between R1 and R2 = (T4 - T1) - {(T12-T11) - [(T12-T9) - (T11-T10)] / 2} - (T3 –T2)+{(T6-T5)-[(T8-T5)-(T7-T6)]/2}; When the network between R1 and R2 is symmetric, the one-way forwarding delay is the value of the two-way delay Divide by 2.
在本实施例中,通过获取发送端和接收端之间至少一端中对报文进行处理的至少两个模块之间的时间偏差来结合其他时间值来计算发送端与接收端之间的报文转发时延,提高了时延计算的准确度,方便了工程人员对设备的判断与处理。In this embodiment, the time difference between at least two modules processing the packet in at least one end between the transmitting end and the receiving end is used to calculate the packet between the transmitting end and the receiving end by combining other time values. The forwarding delay improves the accuracy of the delay calculation and facilitates the judgment and processing of the equipment by the engineering personnel.
实施例二:Embodiment 2:
如图14所示,为本发明实施例二提供的报文转发时延的测量装置的结构示意图,请参见图30,所述报文转发时延的测量装置20包括:获取模块201和计算模块202;所述获取模块201设置为获取发送端向接收端发送测量报文与接收所述接收端反馈的测量响应报文之间的时间差,还设置为获取所述接收端对所述测量报文的处理时间,还设置为获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差;所述计算模块202设置为根据所述时间差、处理时间及时间偏差计算所述发送端与接收端之间的报文转发时延。所述报文转发时延的测量装置20一般设置在所述发送端中,或者设置在服务器中等。FIG. 14 is a schematic structural diagram of a device for measuring a packet forwarding delay according to Embodiment 2 of the present invention. Referring to FIG. 30, the packet forwarding delay measuring apparatus 20 includes: an obtaining module 201 and a computing module. The obtaining module 201 is configured to obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, and is further configured to obtain the receiving end to measure the message The processing time is further set to obtain a time offset between at least two modules that process the packet in at least one of the two ends of the sending end and the receiving end; the calculating module 202 is configured to process according to the time difference The time and time deviation calculates a packet forwarding delay between the sender and the receiver. The measuring device 20 of the packet forwarding delay is generally disposed in the transmitting end or in a server or the like.
优选地,所述时间偏差包括:第一时间偏差和/或第二时间偏差;所述第一时间偏差为所述发送端中对报文进行处理的第一发送模块和第一接收模块之间的时间偏差,所述第二时间偏差为所述接收端中对报文进行处理的第二接收模块和第二发送模块之间的时间偏差;所述获取模块201设置为获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差具体包括:获取所述第一时间偏差和/或所述第二时间偏差。所述第一时间偏差及所述第二时间偏差的计算方法在方法实施例中已经说明,因此,在此不再累述。Preferably, the time deviation includes: a first time deviation and/or a second time deviation; the first time deviation is between the first sending module and the first receiving module that processes the message in the sending end Time deviation, the second time deviation is a time deviation between the second receiving module and the second sending module that processes the packet in the receiving end; the obtaining module 201 is configured to acquire the sending end and The time offset between the at least two modules that process the packet in the at least one of the two ends of the receiving end includes: acquiring the first time offset and/or the second time offset. The calculation method of the first time deviation and the second time deviation has been described in the method embodiment, and therefore, it will not be described here.
本发明还提供了一种报文转发时延的测量系统,包括发送端和接收端,所述发送端包括所述的报文转发时延的测量装置。通过在发送端进行报文转发时延的测量装置的设置,使得在本系统中,计算所述发送端与接收端之间的报文转发时延时,得到的时延值更加准确。The invention also provides a measurement system for packet forwarding delay, comprising a transmitting end and a receiving end, wherein the transmitting end comprises the measuring device for packet forwarding delay. In the system, the delay of the packet forwarding between the sender and the receiver is calculated by the setting of the measurement device of the packet forwarding delay at the transmitting end, and the obtained delay value is more accurate.
本发明提供了一种报文转发时延的测量方法、装置及系统,通过获取至少一端中对报文进行处理的至少两个模块之间存在的时间偏差及结合其他时间点来计算两端之间的时延,提高了计算发送端与接收端之间的时延准确度。The invention provides a method, a device and a system for measuring a packet forwarding delay, which are obtained by acquiring time deviations between at least two modules processing at least one end of the packet and combining other time points to calculate the two ends. The delay between the two increases the accuracy of the delay between the sender and the receiver.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在 不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. For those of ordinary skill in the art to which the present invention pertains, A number of simple derivations or substitutions may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明提供的上述技术方案,可以应用于报文转发时延的测量,通过获取发送端向接收端发送测量报文与接收该接收端反馈的测量响应报文之间的时间差、接收端对所述测量报文的处理时间,以及发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差来计算发送端与接收端之间的报文转发时延。在本发明中,首先通过双向DM来消除时间同步的问题,且还通过获取至少一端中对报文进行处理的至少两个模块之间存在的时间偏差来计算两端之间的时延,提高了计算发送端与接收端之间的时延准确度。 The foregoing technical solution provided by the present invention can be applied to the measurement of the packet forwarding delay, and obtains the time difference between the measurement message sent by the transmitting end to the receiving end and the measurement response message fed back by the receiving end, and the receiving end is opposite. Calculating the processing time of the measurement packet and the time offset between the at least two modules processing the packet in at least one of the two ends of the transmitting end and the receiving end to calculate the packet forwarding delay between the transmitting end and the receiving end . In the present invention, the problem of time synchronization is first eliminated by the bidirectional DM, and the time delay between the two ends is calculated by acquiring the time deviation between at least two modules that process the packet in at least one end, and the delay is improved. Calculate the delay accuracy between the sender and the receiver.

Claims (11)

  1. 一种报文转发时延的测量方法,包括:A method for measuring packet forwarding delay includes:
    获取发送端向接收端发送测量报文与接收所述接收端反馈的测量响应报文之间的时间差,获取所述接收端对所述测量报文的处理时间,并获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差;Acquiring a time difference between a measurement message sent by the sending end to the receiving end and receiving the measurement response message fed back by the receiving end, obtaining a processing time of the measuring end by the receiving end, and acquiring the sending end and receiving a time offset between at least two modules that process the message in at least one of the two ends;
    根据所述时间差、处理时间及时间偏差计算所述发送端与接收端之间的报文转发时延。And calculating, according to the time difference, the processing time, and the time offset, a packet forwarding delay between the sending end and the receiving end.
  2. 如权利要求1所述的报文转发时延的测量方法,其中,所述时间偏差包括:第一时间偏差和/或第二时间偏差;所述第一时间偏差为所述发送端中对报文进行处理的第一发送模块和第一接收模块之间的时间偏差,所述第二时间偏差为所述接收端中对报文进行处理的第二接收模块和第二发送模块之间的时间偏差;The method for measuring a packet forwarding delay according to claim 1, wherein the time offset comprises: a first time offset and/or a second time offset; wherein the first time offset is a report in the sender And a time deviation between the first sending module and the first receiving module, where the second time deviation is a time between the second receiving module and the second sending module that processes the packet in the receiving end deviation;
    获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差具体包括:获取所述第一时间偏差和/或所述第二时间偏差。Acquiring the time offset between the at least two modules that process the packet in the at least one of the two ends of the sending end and the receiving end includes: acquiring the first time offset and/or the second time offset.
  3. 如权利要求2所述的报文转发时延的测量方法,其中,所述第一时间偏差的获取过程包括:The method for measuring a packet forwarding delay according to claim 2, wherein the acquiring the first time offset comprises:
    获取所述第一接收模块将所述测量响应报文传输给所述第一发送模块的第一传输时间,并获取所述第一接收模块接收所述第一发送模块反馈的所述测量响应报文的第二接收时间;Acquiring the first transmission time that the first receiving module transmits the measurement response message to the first sending module, and acquiring the measurement response report that the first receiving module receives the feedback from the first sending module Second receiving time of the text;
    获取所述第一发送模块接收所述第一接收模块发送的测量响应报文的第一接收时间,并获取所述第一发送模块将所述测量响应报文传输给所述第一接收模块的第二传输时间;Obtaining a first receiving time that the first sending module receives the measurement response message sent by the first receiving module, and acquiring, by the first sending module, the measurement response message to the first receiving module Second transmission time;
    根据所述第一传输时间、第一接收时间、第二传输时间及第二接收时间计算第一时间偏差。The first time offset is calculated according to the first transmission time, the first reception time, the second transmission time, and the second reception time.
  4. 如权利要求2所述的报文转发时延的测量方法,其中,所述第二时间偏差的获取过程包括: The method for measuring a packet forwarding delay according to claim 2, wherein the acquiring the second time offset comprises:
    获取所述第二接收模块将所述测量报文传输给所述第二发送模块的第三传输时间,并获取所述第二接收模块接收所述第二发送模块反馈的所述测量报文的第四接收时间;Obtaining, by the second receiving module, the third transmission time that the measurement message is transmitted to the second sending module, and acquiring, by the second receiving module, the measurement message that is sent by the second sending module Fourth receiving time;
    获取所述第二发送模块接收所述第二接收模块发送的测量报文的第三接收时间,并获取所述第二发送模块将所述测量报文传输给所述第二接收模块的第四传输时间;Obtaining, by the second sending module, a third receiving time of the measurement message sent by the second receiving module, and acquiring, by the second sending module, the measurement message to the fourth receiving module Transmission time
    根据所述第三传输时间、第三接收时间、第四传输时间及第四接收时间计算所述第二时间偏差。The second time offset is calculated according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time.
  5. 如权利要求2-4任一项所述的报文转发时延的测量方法,其中,若所述时间偏差包括第一时间偏差,则所述报文转发时延的计算方法包括:计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;将所述第一收发时间值减去所述处理时间得到所述报文转发时延;The method for measuring a packet forwarding delay according to any one of claims 2 to 4, wherein if the time offset includes a first time offset, the method for calculating the packet forwarding delay comprises: calculating the Obtaining a difference between the time difference and the first time deviation, obtaining a first sending and receiving time value of the sending end; and subtracting the processing time from the first sending and receiving time value to obtain the packet forwarding delay;
    若所述时间偏差包括第二时间偏差,则所述报文转发时延的计算方法包括:计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;将所述时间差减去所述第二收发时间值得到所述报文转发时延;If the time deviation includes a second time offset, the method for calculating the packet forwarding delay includes: calculating a difference between the processing time and the second time offset, and obtaining a second sending and receiving time value of the receiving end; And subtracting the time difference from the time difference to obtain the packet forwarding delay;
    若所述时间偏差包括第一时间偏差和第二时间偏差,则所述报文转发时延的具体方法包括:计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;将所述第一收发时间值减去所述第二收发时间值得到所述报文转发时延。If the time offset includes the first time offset and the second time offset, the specific method of the packet forwarding delay includes: calculating a difference between the time difference and the first time offset, to obtain the sending end a first transceiver time value; calculating a difference between the processing time and the second time offset to obtain a second transceiver time value of the receiving end; and subtracting the second transceiver time value from the first transceiver time value The packet is forwarded with a delay.
  6. 一种报文转发时延的测量装置,包括:A measuring device for packet forwarding delay includes:
    获取模块,设置为获取发送端向接收端发送测量报文与接收所述接收端反馈的测量响应报文之间的时间差,还设置为获取所述接收端对所述测量报文的处理时间,还设置为获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差;The obtaining module is configured to obtain a time difference between a measurement message sent by the sending end to the receiving end and a measurement response message sent by the receiving end, and is further configured to obtain a processing time of the measuring end by the receiving end, And setting a time offset between at least two modules that process the packet in at least one of the two ends of the sending end and the receiving end;
    计算模块,设置为根据所述时间差、处理时间及时间偏差计算所述发送端与接收端之间的报文转发时延。The calculating module is configured to calculate a packet forwarding delay between the sending end and the receiving end according to the time difference, the processing time, and the time offset.
  7. 如权利要求6所述的报文转发时延的测量装置,其中,所述时间偏差包括:第一时间偏差和/或第二时间偏差;所述第一时间偏差为所述发送端中对报文进行处理的第一发送模块和第一接收模块之间的时间偏差,所述第二时间偏差为所述接收端中对报文进行处理的第二接收模块和第二发送模块之间的时间偏差; The apparatus for measuring packet forwarding delay according to claim 6, wherein the time offset comprises: a first time offset and/or a second time offset; wherein the first time offset is a report in the sender And a time deviation between the first sending module and the first receiving module, where the second time deviation is a time between the second receiving module and the second sending module that processes the packet in the receiving end Deviation
    所述获取模块设置为获取所述发送端和接收端两端中至少一端中对报文进行处理的至少两个模块之间的时间偏差具体包括:获取所述第一时间偏差和/或所述第二时间偏差。And the obtaining, by the acquiring module, the time offset between the at least two modules that process the packet in the at least one of the two ends of the sending end and the receiving end, specifically: acquiring the first time offset and/or the Second time deviation.
  8. 如权利要求7所述的报文转发时延的测量装置,其中,所述第一时间偏差的获取过程包括:The apparatus for measuring a packet forwarding delay according to claim 7, wherein the acquiring process of the first time offset comprises:
    获取所述第一接收模块将所述测量响应报文传输给所述第一发送模块的第一传输时间,并获取所述第一接收模块接收所述第一发送模块反馈的所述测量响应报文的第二接收时间;Acquiring the first transmission time that the first receiving module transmits the measurement response message to the first sending module, and acquiring the measurement response report that the first receiving module receives the feedback from the first sending module Second receiving time of the text;
    获取所述第一发送模块接收所述第一接收模块发送的测量响应报文的第一接收时间,并获取所述第一发送模块将所述测量响应报文传输给所述第一接收模块的第二传输时间;Obtaining a first receiving time that the first sending module receives the measurement response message sent by the first receiving module, and acquiring, by the first sending module, the measurement response message to the first receiving module Second transmission time;
    根据所述第一传输时间、第一接收时间、第二传输时间及第二接收时间计算第一时间偏差。The first time offset is calculated according to the first transmission time, the first reception time, the second transmission time, and the second reception time.
  9. 如权利要求7所述的报文转发时延的测量装置,其中,所述第二时间偏差的获取过程包括:The apparatus for measuring a packet forwarding delay according to claim 7, wherein the acquiring process of the second time offset comprises:
    获取所述第二接收模块将所述测量报文传输给所述第二发送模块的第三传输时间,并获取所述第二接收模块接收所述第二发送模块反馈的所述测量报文的第四接收时间;Obtaining, by the second receiving module, the third transmission time that the measurement message is transmitted to the second sending module, and acquiring, by the second receiving module, the measurement message that is sent by the second sending module Fourth receiving time;
    获取所述第二发送模块接收所述第二接收模块发送的测量报文的第三接收时间,并获取所述第二发送模块将所述测量报文传输给所述第二接收模块的第四传输时间;Obtaining, by the second sending module, a third receiving time of the measurement message sent by the second receiving module, and acquiring, by the second sending module, the measurement message to the fourth receiving module Transmission time
    根据所述第三传输时间、第三接收时间、第四传输时间及第四接收时间计算所述第二时间偏差。The second time offset is calculated according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time.
  10. 如权利要求7-9任一项所述的报文转发时延的测量装置,其中,若所述时间偏差包括第一时间偏差,则所述计算模块具体包括:第一收发时间计算子模块,设置为计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;时延计算子模块,设置为将所述第一收发时间值减去所述处理时间得到所述报文转发时延;The apparatus for measuring a packet forwarding delay according to any one of claims 7-9, wherein, if the time offset includes a first time offset, the calculating module specifically includes: a first transceiver time calculation submodule, Set to calculate a difference between the time difference and the first time deviation, to obtain a first transceiver time value of the sending end; a delay calculation submodule, configured to subtract the first transceiver time value from the processing The time is obtained by the packet forwarding delay;
    若所述时间偏差包括第二时间偏差,则所述计算模块具体包括:第二收发时间计算子模块,设置为计算所述处理时间与所述第二时间偏差的差,得到所 述接收端的第二收发时间值;时延计算子模块,设置为将所述时间差减去所述第二收发时间值得到所述报文转发时延;If the time deviation includes a second time deviation, the calculation module specifically includes: a second transceiver time calculation sub-module, configured to calculate a difference between the processing time and the second time deviation, to obtain a a second transmission and reception time value of the receiving end; a delay calculation submodule, configured to subtract the second transmission and reception time value from the time difference to obtain the packet forwarding delay;
    若所述时间偏差包括第一时间偏差和第二时间偏差,则所述计算模块具体包括:第一收发时间计算子模块,设置为计算所述时间差与所述第一时间偏差之间的差,得到所述发送端的第一收发时间值;第二收发时间计算子模块,设置为计算所述处理时间与所述第二时间偏差的差,得到所述接收端的第二收发时间值;时延计算子模块,设置为将所述第一收发时间值减去所述第二收发时间值得到所述报文转发时延。If the time deviation includes a first time deviation and a second time deviation, the calculating module specifically includes: a first transceiver time calculation submodule, configured to calculate a difference between the time difference and the first time deviation, Obtaining a first sending and receiving time value of the sending end; the second sending and receiving time calculating submodule is configured to calculate a difference between the processing time and the second time deviation, to obtain a second sending and receiving time value of the receiving end; delay calculation And the submodule is configured to obtain the packet forwarding delay by subtracting the second transceiving time value from the first transceiving time value.
  11. 一种报文转发时延的测量系统,包括发送端和接收端,所述发送端包括如权利要求6至10任一项所述的报文转发时延的测量装置。 A measurement system for message forwarding delay includes a transmitting end and a receiving end, and the transmitting end includes the measuring device for packet forwarding delay according to any one of claims 6 to 10.
PCT/CN2015/082106 2015-03-24 2015-06-23 Packet forwarding delay measurement method, device and system WO2016150021A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510129946.2A CN106161121B (en) 2015-03-24 2015-03-24 Method, device and system for measuring message forwarding time delay
CN201510129946.2 2015-03-24

Publications (1)

Publication Number Publication Date
WO2016150021A1 true WO2016150021A1 (en) 2016-09-29

Family

ID=56977013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082106 WO2016150021A1 (en) 2015-03-24 2015-06-23 Packet forwarding delay measurement method, device and system

Country Status (2)

Country Link
CN (1) CN106161121B (en)
WO (1) WO2016150021A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327478A (en) * 2020-02-28 2020-06-23 北京天维信通科技有限公司 Network measurement method and device, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107196821A (en) * 2017-05-24 2017-09-22 深圳市乃斯网络科技有限公司 The method of calibration and system of time delay in network link
CN108449228B (en) * 2018-03-05 2020-03-17 新华三技术有限公司 Message processing method and network equipment
CN110858811B (en) 2018-08-24 2022-01-18 华为技术有限公司 Method for measuring time delay and network equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025556A (en) * 2009-09-21 2011-04-20 中兴通讯股份有限公司 Method and device for measuring accurate delay of operation, administration and maintenance (OAM) packet
CN102227110A (en) * 2011-06-17 2011-10-26 华为技术有限公司 Measurement one way delay method and equipment thereof, and communication system
US8229705B1 (en) * 2008-08-05 2012-07-24 Marvell Israel (M.I.S.I.) Ltd. Performance monitoring in computer networks
CN102655463A (en) * 2011-03-02 2012-09-05 中兴通讯股份有限公司 LMP (Link Manager Protocol)-based network link delay measurement method and device
US20130336129A1 (en) * 2012-06-15 2013-12-19 Fujitsu Limited Multipurpose Use of Delay Measurement Message Buffer for Software Processing of Delay Measurement Response

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5018663B2 (en) * 2008-06-17 2012-09-05 富士通株式会社 Delay time measuring device, delay time measuring program, and delay time measuring method
CN102638339B (en) * 2012-04-20 2014-12-24 杭州华三通信技术有限公司 Method and device for realizing precision time synchronization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8229705B1 (en) * 2008-08-05 2012-07-24 Marvell Israel (M.I.S.I.) Ltd. Performance monitoring in computer networks
CN102025556A (en) * 2009-09-21 2011-04-20 中兴通讯股份有限公司 Method and device for measuring accurate delay of operation, administration and maintenance (OAM) packet
CN102655463A (en) * 2011-03-02 2012-09-05 中兴通讯股份有限公司 LMP (Link Manager Protocol)-based network link delay measurement method and device
CN102227110A (en) * 2011-06-17 2011-10-26 华为技术有限公司 Measurement one way delay method and equipment thereof, and communication system
US20130336129A1 (en) * 2012-06-15 2013-12-19 Fujitsu Limited Multipurpose Use of Delay Measurement Message Buffer for Software Processing of Delay Measurement Response

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327478A (en) * 2020-02-28 2020-06-23 北京天维信通科技有限公司 Network measurement method and device, equipment and storage medium

Also Published As

Publication number Publication date
CN106161121A (en) 2016-11-23
CN106161121B (en) 2020-05-22

Similar Documents

Publication Publication Date Title
US8873588B2 (en) Network distributed packet-based synchronization
US10680924B2 (en) Method, a computer program product, and a carrier for indicating one-way latency in a data network
KR102031268B1 (en) Method and apparatus for communicating time information between time-aware devices
US9438364B2 (en) Method for synchronizing distributed clocks by the precision time protocol, in a telecommunication network
CN103929293B (en) Asymmetrically-delayed time synchronization method and system
WO2018006686A1 (en) Method, apparatus and device for optimizing time synchronization between communication network devices
US9553713B2 (en) Method and system for transmitting clock reference streams with timestamps directly to audio/video end nodes in an audio/video bridging network
WO2016150021A1 (en) Packet forwarding delay measurement method, device and system
US20150117471A1 (en) Method and apparatus for securing clock synchronization in a network
US9270607B2 (en) Method and devices for packet selection
KR20170105573A (en) Time synchronization method, apparatus, system and storage medium in OTN network
CN105703892A (en) Method of realizing PTP nanosecond precision based on hardware time stamp
WO2015131626A1 (en) Time synchronization method and apparatus for network devices and time synchronization server
CN105262555A (en) Time synchronization method, programmable logic device, single board and network element
Exel et al. Asymmetry mitigation in IEEE 802.3 Ethernet for high-accuracy clock synchronization
KR20100062786A (en) Time synchronized system and time synchronization method in the next generation convergence network
CN109379160A (en) A kind of clock alignment server and method
TWI726448B (en) Nanosecond accuracy of timestamping by leveraging alignment marker and method for producing the same
CN108155965A (en) SDH transmits IEC61588 methods
CN111835447A (en) Clock deviation measuring and synchronizing method based on end delay in industrial internet
JP2015117941A (en) Communication system and time synchronization method
KR20100048124A (en) Time synchronization method in bridged local area network
JP2018125768A (en) Data transmission device and program
EP3080951B1 (en) Method and devices for packet selection
Yang et al. Implementation of MPLS Network Delay Measurement with 1588 Precision Time Synchronization Protocol

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

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

Country of ref document: EP

Kind code of ref document: A1