CN112398560A - Measuring method, measuring device and storage medium - Google Patents

Measuring method, measuring device and storage medium Download PDF

Info

Publication number
CN112398560A
CN112398560A CN201910758474.5A CN201910758474A CN112398560A CN 112398560 A CN112398560 A CN 112398560A CN 201910758474 A CN201910758474 A CN 201910758474A CN 112398560 A CN112398560 A CN 112398560A
Authority
CN
China
Prior art keywords
communication device
sync message
ptp sync
ptp
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910758474.5A
Other languages
Chinese (zh)
Inventor
杨红伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910758474.5A priority Critical patent/CN112398560A/en
Publication of CN112398560A publication Critical patent/CN112398560A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • 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/0852Delays
    • 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/0852Delays
    • H04L43/087Jitter

Landscapes

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

Abstract

The embodiment of the invention provides a measuring method, a measuring device and a storage medium, wherein the method comprises the following steps: sending a PTP Sync message to a second communication device, wherein the PTP Sync message is used for indicating the second communication device to measure the network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device. The embodiment of the invention has high precision, and can accurately measure the messages with different priorities and different lengths and the network delay and/or network jitter between any nodes.

Description

Measuring method, measuring device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a measurement method, a measurement device, and a storage medium.
Background
In the network transmission process, network delay and network jitter of end-to-end transmission of data packets are key indexes for measuring network quality. Some applications are very sensitive to network latency and network jitter, such as car networking services, interactive games, etc. Too high network delay and network jitter can affect user experience and even can not be used, so that accurate measurement of the network delay and the network jitter is very important. However, the conventional measurement method has low measurement accuracy and cannot meet the requirement of high-accuracy measurement.
Disclosure of Invention
The embodiment of the invention provides a measuring method, a measuring device and a storage medium, which aim to solve the problem of low measuring precision of the existing measuring method.
In a first aspect, to solve the above technical problem, an embodiment of the present invention provides a measurement method applied to a first communication device, including:
sending a PTP Sync high-precision time synchronization protocol synchronization message to a second communication device, wherein the PTP Sync message is used for instructing the second communication device to measure the network delay and/or the network jitter value of the PTP Sync message between the first communication device and the second communication device.
Optionally, a flag field is set in a header of the PTP Sync message, where the flag field is used to indicate that the PTP Sync message is used for delay measurement, or indicate that the PTP Sync message is a normal synchronization Sync message of PTP.
Optionally, before the sending the PTP Sync message to the second communication device, the method further includes:
and configuring the address of the second communication equipment, the priority of the PTP Sync message and/or the message length.
In a second aspect, an embodiment of the present invention further provides a measurement method, applied to a second communication device, including:
receiving a PTP Sync message sent by a first communication device, wherein the PTP Sync message is used for indicating a second communication device to measure network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device;
and determining the network delay and/or the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the PTP Sync message.
Optionally, a flag field is set in a header of the PTP Sync message, where the flag field is used to indicate that the PTP Sync message is used for delay measurement, or indicate that the PTP Sync message is a normal synchronization Sync message of PTP.
Optionally, the determining, according to the PTP Sync message, a network delay of the PTP Sync message between the first communication device and the second communication device includes:
acquiring the first time when the first communication equipment sends the PTP Sync message according to the PTP Sync message;
determining a second time when the second communication device receives the PTP Sync message;
and determining the network delay of the PTP Sync message between the first communication equipment and the second communication equipment according to the first time and the second time.
Optionally, the determining, according to the first time and the second time, a network delay of the PTP Sync message between the first communication device and the second communication device includes:
and determining the difference value between the second time and the first time as the network delay of the PTP Sync message between the first communication equipment and the second communication equipment.
Optionally, the determining, according to the PTP Sync packet, a network jitter value of the PTP Sync packet between the first communication device and the second communication device includes:
determining a first network delay obtained by the current measurement and a second network delay obtained by the next measurement according to the PTP Sync message;
and determining a network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the first network delay obtained by the current measurement and the second network delay obtained by the next measurement.
Optionally, the determining a network jitter value of the PTP Sync message between the first communication device and the second communication device according to a first network delay obtained by this measurement and a second network delay obtained by next measurement includes:
and determining the absolute value of the difference value between the second network delay and the first network delay as the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment.
In a third aspect, an embodiment of the present invention further provides a first communication device, including: a first processor and a first transceiver;
the first transceiver is configured to send a PTP Sync message to a second communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device.
In a fourth aspect, an embodiment of the present invention further provides a first communication device, including:
the sending module is used for sending a PTP Sync message to a second communication device, wherein the PTP Sync message is used for indicating the second communication device to measure the network delay and/or the network jitter value of the PTP Sync message between the first communication device and the second communication device.
In a fifth aspect, an embodiment of the present invention further provides a second communications device, including: a second processor and a second transceiver;
the second transceiver is configured to receive a PTP Sync message sent by a first communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device;
and the second processor is configured to determine, according to the PTP Sync message, a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device.
In a sixth aspect, an embodiment of the present invention further provides a second communications device, including:
the receiving module is used for receiving a PTP Sync message sent by a first communication device, wherein the PTP Sync message is used for indicating a second communication device to measure network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device;
and the determining module is used for determining the network delay and/or the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the PTP Sync message.
In a seventh aspect, an embodiment of the present invention further provides a communication device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the measurement method described above.
In an eighth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the measurement method as described above.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the present invention, the first communication device sends a PTP Sync message to the second communication device, and the PTP Sync message instructs the second communication device to measure the network delay and/or the network jitter of the PTP Sync message between the first communication device and the second communication device. Compared with the existing testing method, the measuring method of the embodiment of the invention has the following advantages:
1) the measurement accuracy is high: the precision of the PTP protocol time synchronization is ns level, and it can be understood that the testing precision of the PTP Sync message is also ns level, and the requirement of high-precision network quality measurement can be met;
2) the equipment is simple to realize: the mature PTP protocol message is borrowed, and the software and hardware of the network equipment are slightly changed;
3) network delay and/or network jitter of message forwarding with different priorities and different lengths can be accurately measured;
4) the measuring method is simple: the current network can be measured for a long time and continuously;
5) network delay and network jitter between any nodes can be measured: by configuring different destination IPs at the first communication device, network latency and/or network jitter of transmissions between the first communication device and different second communication devices can be measured.
Drawings
FIG. 1 is a diagram of a network architecture according to an embodiment of the present invention;
FIG. 2 is a flow chart of a measurement method according to an embodiment of the present invention;
FIG. 3 is a table of definitions of flag fields according to an embodiment of the present invention;
FIG. 4 is a second flowchart of a measurement method according to an embodiment of the present invention;
FIG. 5 is a third schematic flow chart of a measurement method according to an embodiment of the present invention;
FIG. 6 is a fourth flowchart of the measurement method according to the embodiment of the present invention
Fig. 7 is a schematic structural diagram of a first communication device according to an embodiment of the present invention;
fig. 8 is a second schematic structural diagram of the first communication device according to the embodiment of the present invention;
fig. 9 is a third schematic structural diagram of a first communication device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a second communication device according to an embodiment of the present invention;
fig. 11 is a second schematic structural diagram of a second communication device according to the embodiment of the present invention;
fig. 12 is a third schematic structural diagram of a second communication device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The terms first, second and the like in the description and in the claims of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
At present, a measurement scheme of network delay and network jitter mainly utilizes an Internet Packet explorer (Packet Internet Groper) operation of an Internet Control Message Protocol (ICMP) echo reply Message (echo response) Message, a data Packet sending device (i.e., a source device) measures network end-to-end delay from the beginning of sending a data Packet to the time length of receiving an ICMP echo Message replied by a data Packet receiving device, and calculates network jitter according to network delay variation, but the measurement method has low precision, and is generally in millisecond (ms) level.
However, some industrial control scenarios or time-sensitive new services of the fifth Generation communication technology network (5th-Generation, 5G), such as the car networking scenario, require high-precision network delay and network jitter measurement schemes, and the measurement precision is required to be in the microsecond (us) level or even the nanosecond (ns) level, that is, the above test methods cannot meet the requirements of some industrial control scenarios or time-sensitive new services of 5G.
In addition, another conventional testing method is to connect a source device and a sink device of a data packet through a network tester, where the tester sends a test packet to the source device, and sends the received test packet back to the tester according to the sink device, and the tester calculates a time length from packet sending to packet receiving, determines the time length from packet sending to packet receiving as a network delay, and calculates a network transmission jitter according to the network delay. The method for measuring network delay and network jitter by using the network tester is generally applied to laboratory tests and cannot measure the network in real time for a long time in the current network.
In order to solve the problems of low test accuracy and incapability of measuring in real time and for a long time in the existing network in the existing test method, referring to fig. 1, an embodiment of the present invention provides a network architecture, where the network architecture includes: a first communication device 1 and a second communication device 2 connected to the first communication device 1, the first communication device 1 and the second communication device 2 being in a time synchronization network, it being understood that the local time of the first communication device 1 is synchronized with the local time of the second communication device 2. The first communication device 1 may be a source device, and the second communication device 2 may be a terminal device. It is understood that the first communication device 1 is a packet transmitting device and the second communication device 2 is a packet receiving device.
Referring to fig. 2, an embodiment of the present invention further provides a measurement method, where an execution subject of the measurement method is a first communication device, and the first communication device may be a source device, and the measurement method specifically includes the following steps:
step 201: sending a Precision Time Protocol (PTP) synchronization (Sync) message to a second communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device.
In the embodiment of the invention, the network delay refers to the delay existing between the sending and receiving of the PTP Sync message. The network jitter refers to the variation degree of the network delay of the PTP Sync message. The network jitter is generally measured by using an absolute value of a difference value of two adjacent network delays of a PTP Sync message, and the network jitter of the PTP Sync message transmission can be calculated only by measuring the network delay of the PTP Sync message transmission first.
The PTP (1588v2) technology can be used in a mobile return network, an industrial control network, an audio and video transmission network and the like, and is used for realizing time synchronization among devices. And the PTP technology realizes that the time synchronization precision between the devices is in ns level, and can provide guarantee for high-precision network time delay and network jitter measurement. It can be understood that the measurement accuracy of the PTP Sync message is in ns level, and the PTP Sync message can be used in some industrial control scenarios or time-sensitive 5G scenarios to measure network delay and/or network jitter.
In the embodiment of the invention, the timestamp of the PTP Sync message for time delay measurement is the time for passing through the multi-hop equipment, and cannot be used for conventional time synchronization calculation in a PTP protocol, so that the PTP Sync message for time delay measurement is distinguished from the normal PTP Sync message. Therefore, a message header of the PTP Sync message is provided with a mark field, and the mark field is used for indicating the PTP Sync message to be used for time delay measurement or indicating the PTP Sync message to be a normal PTP Sync message.
For example: referring to fig. 3, a PTP message template field in a flag field (flagfield) in a PTP message header (header) may be modified to represent a PTP Sync message for delay measurement. If both PTP profile Specific 1 and PTP profile Specific 2 are set to 1, the PTP Sync message is indicated to be used for time delay measurement; if the default values of the PTP profile Specific 1 and the PTP profile Specific 2 are both 0, the PTP Sync message is a normal PTP Sync message.
In an embodiment of the present invention, the measurement message includes: a first time when the first device sends the Sync message. It can be understood that, when the first communication device transmits a PTP Sync message, the first time to transmit the PTP Sync message is recorded in the PTP Sync message.
On the basis of the above embodiment, another measurement method is further provided in the embodiment of the present invention, before step 101, the method further includes: and configuring the address of the second communication equipment, the priority of the PTP Sync message and/or the message length.
Because the data packets of different applications have different priorities and different message lengths, the network delay and network jitter of the data packets of different applications are different when the data packets are forwarded by the network equipment, while most of the existing measurement methods use test messages with fixed message lengths and priorities and cannot measure the network delay and/or network jitter of the data packets of different priorities and different message lengths; in addition, the priority of the PTP Sync message is the highest priority, and the message length of the PTP Sync message is also fixed, and the network delay of the PTP Sync message cannot reflect the forwarding delay of actual service messages with different priorities and different message lengths on a link.
In order to enable the measurement method of the embodiment of the present invention to measure the network delay and/or the network jitter of the packets with different priorities and different packet lengths, the priority of the measurement packet may be configured according to the priority of the actual service packet. Similarly, the message length of the measurement message may be configured according to the message length of the actual service message. Therefore, the network delay and/or network jitter of the messages with different priorities and different lengths can be measured by modifying the priorities and the message lengths of the PTP Sync messages, and the network delay and the network jitter during the forwarding of the service messages can be reduced to the greatest extent.
Further, the Address of the second communication device may be an Internet Protocol Address (IP) of the second communication device. The priority of the measurement packet is configured by a Differentiated Services Code Point (DSCP) value. The message length of the measurement message may be configured by an extension field (e.g., suffix), as shown in fig. 3.
The PTP Sync message has two types of encapsulation: when using PTP over Ethernet (Ethernet) and PTP over User Datagram Protocol (UDP), when using PTP over Ethernet to encapsulate, a PTP Sync message may pass through multiple forwarding devices between a first communication device and a second communication device, and a PTP model of the forwarding devices is a Boundary Clock (BC), the PTP Sync message may not pass through a BC device, the PTP Sync message may be terminated hop by hop, and thus end-to-end network delay may not be measured.
In order to solve the problem that the existing measurement method cannot measure the end-to-end network delay, before step 101, User Datagram Protocol (UDP) encapsulation may be performed on the PTP Sync message, and it can be understood that PTP over UDP encapsulation is performed on the PTP Sync message, so that the PTP Sync message can pass through a relay network between the first communication device and the second communication device.
In the embodiment of the present invention, the first communication device sends a PTP Sync message to the second communication device, and the PTP Sync message instructs the second communication device to measure the network delay and/or the network jitter of the PTP Sync message between the first communication device and the second communication device. Compared with the existing testing method, the measuring method of the embodiment of the invention has the following advantages:
1) the measurement accuracy is high: the precision of the PTP protocol time synchronization is ns level, and it can be understood that the testing precision of the PTP Sync message is also ns level, and the requirement of high-precision network quality measurement can be met;
2) the equipment is simple to realize: the mature PTP protocol message is borrowed, and the software and hardware of the network equipment are slightly changed;
3) network delay and/or network jitter of message forwarding with different priorities and different lengths can be accurately measured;
4) the measuring method is simple: the current network can be measured for a long time and continuously;
5) network delay and network jitter between any nodes can be measured: by configuring different destination IPs at the first communication device, network latency and/or network jitter of transmissions between the first communication device and different second communication devices can be measured.
Referring to fig. 4, an embodiment of the present invention further provides a measurement method, where an execution main body of the measurement method is a second communication device, and the second communication device may be a terminal device, and the measurement method specifically includes the following steps:
step 401: receiving a PTP Sync message sent by a first communication device, wherein the PTP Sync message is used for indicating a second communication device to measure network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device;
in the embodiment of the present invention, a header of the PTP Sync message is provided with a flag field, and the flag field is used to indicate that the PTP Sync message is used for delay measurement or indicate that the PTP Sync message is a normal PTP Sync message.
Step 402: and determining the network delay and/or the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the PTP Sync message.
In an embodiment of the present invention, the measurement message includes: a first time when the first device sends the Sync message. It can be understood that, when the first communication device transmits a PTP Sync message, the first time to transmit the PTP Sync message is recorded in the PTP Sync message.
Referring to fig. 5, when determining the network delay of the PTP Sync message between the first communication device and the second communication device, step 402 specifically includes the following steps:
step 4021: acquiring the first time when the first communication equipment sends the PTP Sync message according to the PTP Sync message;
step 4022: determining a second time when the second communication device receives the PTP Sync message;
step 4023: and determining the network delay of the PTP Sync message between the first communication equipment and the second communication equipment according to the first time and the second time.
Further, the difference between the second time and the first time may be determined as the network delay of the PTP Sync message between the first communication device and the second communication device.
Referring to fig. 6, when determining a network jitter value of the PTP Sync message between the first communication device and the second communication device, step 402 may specifically include the following steps:
step 4024: determining a first network delay obtained by the current measurement and a second network delay obtained by the next measurement according to the PTP Sync message;
step 4025: and determining a network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the first network delay obtained by the current measurement and the second network delay obtained by the next measurement.
Further, an absolute value of a difference between the second network delay and the first network delay may be determined as a network jitter value of the PTP Sync message between the first communication device and the second communication device.
In the embodiment of the present invention, the second communication device receives a PTP Sync message sent by the first communication device, and the second communication device determines, according to the PTP Sync message, a network delay and/or a network jitter of the PTP Sync message between the first communication device and the second communication device. Compared with the existing testing method, the measuring method of the embodiment of the invention has the following advantages:
1) the measurement accuracy is high: the precision of the PTP protocol time synchronization is ns level, and it can be understood that the testing precision of the PTP Sync message is also ns level, and the requirement of high-precision network quality measurement can be met;
2) the equipment is simple to realize: the mature PTP protocol message is borrowed, and the software and hardware of the network equipment are slightly changed;
3) network delay and/or network jitter when the messages with different priorities and different lengths are forwarded can be accurately measured;
4) the measuring method is simple: the current network can be measured for a long time and continuously;
5) network delay and network jitter between any nodes can be measured: by configuring different destination IPs at the first communication device, network latency and/or network jitter of transmissions between the first communication device and different second communication devices can be measured.
In addition, another measurement method is provided in the embodiments of the present invention, and the measurement method specifically includes the following steps:
step a: the first communication device and the second communication device are both located in the time synchronization network, the time synchronization network has realized full-network time synchronization through a PTP protocol, and it can be understood that the local time of the first communication device and the local time of the second communication device are synchronized;
step b: the first communication equipment uses a time delay measurement function, and configures the address of the second communication equipment, the priority of the PTP Sync message and the message length. Further, an IP address of the second device may be configured.
Step c: the method comprises the steps that a first communication device encapsulates a PTP Sync message according to configuration parameters, and the first communication device sends the PTP Sync message after recording a local timestamp t 1;
step d: when the intermediate forwarding network detects that the destination address of the PTP Sync message is not a local address, normal three-layer forwarding is carried out; it can be understood that, when the intermediate forwarding network detects that the destination IP of the PTP Sync message is not the local IP, normal three-layer forwarding is performed;
step e: the second communication equipment receives the PTP Sync message, determines whether the PTP Sync message is a message for measuring time delay or not according to a mark field of a message header of the PTP Sync message, and reports the second time t2 when the second communication equipment receives the PTP Sync message to a processor of the second communication equipment if the PTP Sync message is the message for measuring time delay.
For example: judging whether the message is a time delay measurement message or not according to the values of PTP profile Specific 1 and PTP profile Specific 2 in the PTP header, and sending t1 in the message and locally generated t2 to a processor of the second communication equipment;
step f: the processor of the second communication device calculates the value from t2 to t1 to obtain the time delay measurement result;
step g: the second communication equipment subtracts the last time delay value from the current time delay value to obtain a network jitter value;
step h: over a period of time measurements, the second communication device may count the maximum delay and jitter values, the minimum delay and jitter values, and the average delay and jitter values of the network over the period of time.
In order to solve the problem of low measurement accuracy of the existing measurement method, an embodiment of the present invention further provides a first communication device, where an implementation principle of the first communication device is similar to that of the above-described test method, and details of the similar parts are not repeated.
Referring to fig. 7, an embodiment of the present invention further provides a first communication device 700, including: a first processor 701 and a first transceiver 702;
the first transceiver 701 is configured to send a PTP Sync message to a second communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device 700 and the second communication device.
Optionally, a flag field is set in a header of the PTP Sync message, where the flag field is used to indicate that the PTP Sync message is used for delay measurement, or indicate that the PTP Sync message is a normal synchronization Sync message of PTP.
Optionally, the first processor 701 is configured to configure an address of the second communication device, a priority of the PTP Sync packet, and/or a packet length.
Referring to fig. 8, an embodiment of the present invention further provides a first communication device 800, including:
a sending module 801, configured to send a PTP Sync message to a second communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device.
Optionally, a flag field is set in a header of the PTP Sync message, where the flag field is used to indicate that the PTP Sync message is used for delay measurement, or indicate that the PTP Sync message is a normal synchronization Sync message of PTP.
Optionally, the first communication device 800 further includes:
and the configuration module is used for configuring the address of the second communication equipment, the priority of the PTP Sync message and/or the message length.
Fig. 9 is a schematic structural diagram of a first communication device according to another embodiment of the present invention, and as shown in fig. 8, the first communication device 900 includes: a processor 901, a transceiver 902, a memory 903, and a bus interface, wherein:
in this embodiment of the present invention, the first communication device 900 further includes: a computer program stored on the memory 903 and executable on the processor 901, the computer program when executed by the processor 901 performing the steps of:
sending a PTP Sync high-precision time synchronization protocol synchronization message to a second communication device, wherein the PTP Sync message is used for instructing the second communication device to measure the network delay and/or the network jitter value of the PTP Sync message between the first communication device and the second communication device.
In fig. 9, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 901 and various circuits of memory represented by memory 903 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 902 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium.
The processor 901 is responsible for managing a bus architecture and general processing, and the memory 903 may store data used by the processor 901 in performing operations.
It is noted that the first communication device as described above may implement the steps of the measurement method as described above.
Referring to fig. 10, an embodiment of the present invention further provides a second communications device 1000, including: a second processor 1001 and a second transceiver 1002;
the second transceiver 1002 is configured to receive a PTP Sync message sent by a first communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device;
the second processor 1001 is configured to determine, according to the PTP Sync packet, a network delay and/or a network jitter value of the PTP Sync packet between the first communication device and the second communication device.
Optionally, a flag field is set in a header of the PTP Sync message, where the flag field is used to indicate that the PTP Sync message is used for delay measurement, or indicate that the PTP Sync message is a normal synchronization Sync message of PTP.
Optionally, the second processor 1001 is further configured to obtain, according to the PTP Sync message, a first time at which the first communication device sends the PTP Sync message; determining a second time when the second communication device receives the PTP Sync message; and determining the network delay of the PTP Sync message between the first communication equipment and the second communication equipment according to the first time and the second time.
Optionally, the second processor 1001 is further configured to determine a difference between the second time and the first time as a network delay of the PTP Sync message between the first communication device and the second communication device.
Optionally, the second processor 1001 is further configured to determine, according to the PTP Sync message, a first network delay obtained by this measurement and a second network delay obtained by next measurement; and determining a network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the first network delay obtained by the current measurement and the second network delay obtained by the next measurement.
Optionally, the second processor 1001 is further configured to determine an absolute value of a difference between the second network delay and the first network delay as a network jitter value of the PTP Sync packet between the first communication device and the second communication device.
Referring to fig. 11, an embodiment of the present invention further provides a second communication device 1100, including:
a receiving module 1101, configured to receive a PTP Sync message sent by a first communication device, where the PTP Sync message is used to instruct a second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device;
a determining module 1102, configured to determine, according to the PTP Sync packet, a network delay and/or a network jitter value of the PTP Sync packet between the first communication device and the second communication device.
Optionally, a flag field is set in a header of the PTP Sync message, where the flag field is used to indicate that the PTP Sync message is used for delay measurement, or indicate that the PTP Sync message is a normal synchronization Sync message of PTP.
Optionally, the determining module 1102 includes:
the acquisition unit acquires the first time for the first communication equipment to send the PTP Sync message according to the PTP Sync message;
a first determining unit, configured to determine a second time when the second communication device receives the PTP Sync message;
a second determining unit, configured to determine, according to the first time and the second time, a network delay of the PTP Sync packet between the first communication device and the second communication device.
Optionally, the second determining unit includes:
a first determining subunit, configured to determine, as the network delay between the first communication device and the second communication device, the difference between the second time and the first time.
Optionally, the determining module 1102 includes:
a third determining unit, configured to determine, according to the PTP Sync message, a first network delay obtained by the current measurement and a second network delay obtained by the next measurement;
and a fourth determining unit, configured to determine a network jitter value of the PTP Sync message between the first communication device and the second communication device according to the first network delay obtained through the current measurement and the second network delay obtained through the next measurement.
Optionally, the fourth determining unit includes:
a second determining subunit, configured to determine an absolute value of a difference between the second network delay and the first network delay as a network jitter value of the PTP Sync packet between the first communication device and the second communication device.
Fig. 12 is a schematic structural diagram of a first communication device according to another embodiment of the present invention, and as shown in fig. 8, the first communication device 1200 includes: a processor 1201, a transceiver 1202, a memory 1203 and a bus interface, wherein:
in this embodiment of the present invention, the first communication device 1200 further includes: a computer program stored on the memory 1203 and executable on the processor 1201, the computer program when executed by the processor 1201 performing the steps of:
receiving a PTP Sync message sent by a first communication device, wherein the PTP Sync message is used for indicating a second communication device to measure network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device;
and determining the network delay and/or the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the PTP Sync message.
In fig. 12, the bus architecture may include any number of interconnected buses and bridges, with various circuits linking one or more processors, represented by the processor 1201, and memory, represented by the memory 1203. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1202 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium.
The processor 1201 is responsible for managing a bus architecture and general processing, and the memory 1203 may store data used by the processor 1201 in performing operations.
It should be noted that the second communication device as described above may implement the steps of the measurement method as described above.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the measurement method as described above.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network-side device) to perform some steps of the transceiving method according to various embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (15)

1. A measurement method applied to a first communication device, the method comprising:
sending a PTP Sync high-precision time synchronization protocol synchronization message to a second communication device, wherein the PTP Sync message is used for instructing the second communication device to measure the network delay and/or the network jitter value of the PTP Sync message between the first communication device and the second communication device.
2. The measurement method according to claim 1, wherein a flag field is set in a header of the PTP Sync message, and the flag field is used to indicate that the PTP Sync message is used for delay measurement or indicate that the PTP Sync message is a synchronization Sync message of a normal PTP.
3. The measurement method according to claim 1, wherein before said sending the PTP Sync message to the second communication device, the method further comprises:
and configuring the address of the second communication equipment, the priority of the PTP Sync message and/or the message length.
4. A measurement method applied to a second communication device is characterized by comprising the following steps:
receiving a PTP Sync message sent by a first communication device, wherein the PTP Sync message is used for indicating a second communication device to measure network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device;
and determining the network delay and/or the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the PTP Sync message.
5. The measurement method according to claim 4, wherein a flag field is set in a header of the PTP Sync message, and the flag field is used for indicating that the PTP Sync message is used for delay measurement or indicating that the PTP Sync message is a synchronous Sync message of a normal PTP.
6. The measurement method according to claim 4, wherein the determining, according to the PTP Sync message, a network delay of the PTP Sync message between the first communication device and the second communication device includes:
acquiring the first time when the first communication equipment sends the PTP Sync message according to the PTP Sync message;
determining a second time when the second communication device receives the PTP Sync message;
and determining the network delay of the PTP Sync message between the first communication equipment and the second communication equipment according to the first time and the second time.
7. The method according to claim 6, wherein the determining the network delay of the PTP Sync message between the first communication device and the second communication device according to the first time and the second time comprises:
and determining the difference value between the second time and the first time as the network delay of the PTP Sync message between the first communication equipment and the second communication equipment.
8. The method according to claim 4, wherein the determining a network jitter value of the PTP Sync message between the first communication device and the second communication device according to the PTP Sync message comprises:
determining a first network delay obtained by the current measurement and a second network delay obtained by the next measurement according to the PTP Sync message;
and determining a network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the first network delay obtained by the current measurement and the second network delay obtained by the next measurement.
9. The method according to claim 8, wherein the determining the network jitter value of the PTP Sync message between the first communication device and the second communication device according to a first network delay obtained by this measurement and a second network delay obtained by next measurement includes:
and determining the absolute value of the difference value between the second network delay and the first network delay as the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment.
10. A first communications device, comprising: a first processor and a first transceiver;
the first transceiver is configured to send a PTP Sync message to a second communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device.
11. A first communications device, comprising:
the sending module is used for sending a PTP Sync message to a second communication device, wherein the PTP Sync message is used for indicating the second communication device to measure the network delay and/or the network jitter value of the PTP Sync message between the first communication device and the second communication device.
12. A second communications device, comprising: a second processor and a second transceiver;
the second transceiver is configured to receive a PTP Sync message sent by a first communication device, where the PTP Sync message is used to instruct the second communication device to measure a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device;
and the second processor is configured to determine, according to the PTP Sync message, a network delay and/or a network jitter value of the PTP Sync message between the first communication device and the second communication device.
13. A second communications device, comprising:
the receiving module is used for receiving a PTP Sync message sent by a first communication device, wherein the PTP Sync message is used for indicating a second communication device to measure network delay and/or network jitter value of the PTP Sync message between the first communication device and the second communication device;
and the determining module is used for determining the network delay and/or the network jitter value of the PTP Sync message between the first communication equipment and the second communication equipment according to the PTP Sync message.
14. A communication device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the measurement method according to any one of claims 1 to 3; or the steps of the measurement method according to any of claims 4 to 9.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the measurement method according to one of claims 1 to 3, or which, when being executed by a processor, carries out the steps of the measurement method according to one of claims 4 to 9.
CN201910758474.5A 2019-08-16 2019-08-16 Measuring method, measuring device and storage medium Pending CN112398560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910758474.5A CN112398560A (en) 2019-08-16 2019-08-16 Measuring method, measuring device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910758474.5A CN112398560A (en) 2019-08-16 2019-08-16 Measuring method, measuring device and storage medium

Publications (1)

Publication Number Publication Date
CN112398560A true CN112398560A (en) 2021-02-23

Family

ID=74602029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910758474.5A Pending CN112398560A (en) 2019-08-16 2019-08-16 Measuring method, measuring device and storage medium

Country Status (1)

Country Link
CN (1) CN112398560A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022204875A1 (en) * 2021-03-29 2022-10-06 华为技术有限公司 Measurement method and network device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
US20100085989A1 (en) * 2008-10-02 2010-04-08 Cortina Systems, Inc. Systems and methods for packet based timing offset determination using timing adjustment information
CN108075935A (en) * 2016-11-15 2018-05-25 华为技术有限公司 Measure the method and apparatus of time delay

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534222A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 End-to-end network delay jitter measuring method, device and system thereof
US20100085989A1 (en) * 2008-10-02 2010-04-08 Cortina Systems, Inc. Systems and methods for packet based timing offset determination using timing adjustment information
CN108075935A (en) * 2016-11-15 2018-05-25 华为技术有限公司 Measure the method and apparatus of time delay

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022204875A1 (en) * 2021-03-29 2022-10-06 华为技术有限公司 Measurement method and network device

Similar Documents

Publication Publication Date Title
US9742514B2 (en) Method, apparatus, and system for generating timestamp
EP1953937B1 (en) Clock synchronization aid device for communication station(s) of a wireless network, and associated clock synchronization device
KR101481396B1 (en) Method for synchronizing master and slave clocks of packet-switched network with aggregated connections between nodes, and associated synchronization devices
EP1931084B1 (en) A method for getting the link estimating parameters
CN110278065B (en) Method and equipment for compensating time delay
US20100246487A1 (en) Radio base station apparatus and synchronization method thereof
KR20180004092A (en) Asymmetric double-sided two-way ranging in an ultrawideband communication system
EP3474499B1 (en) Network performance detection method and apparatus
CN112583477B (en) Delay measurement method, delay measurement system and storage medium
KR20110081910A (en) Link band estimating apparatus
US20100293243A1 (en) method and apparatus for measuring directionally differentiated (one-way) network latency
CN110708206A (en) Method and equipment for measuring air interface time delay of base station
KR101801801B1 (en) Slot frame virtualization System and Method for TSCH based industrial wireless network
JP2023130494A (en) Communication method and optical module
US11444831B2 (en) Methods, systems, and computer readable media for measuring schedule update time for a time aware shaper implementation
CN112187557B (en) Method for measuring and reporting and network node
CN112398560A (en) Measuring method, measuring device and storage medium
CN102025571B (en) The method and apparatus that multipoint link packet loss is measured
US8243607B2 (en) Packet delay characteristic measuring apparatus and method
CN112039621B (en) Time synchronization method and system
EP2627040B1 (en) Method for eliminating systematical error components in a set of one-way delay measurement results for communications between two or more computing systems in a communication network, apparatus for performing the method and computer program product
CN111884751A (en) Smart grid time synchronization method and device based on PTP
CN103401813B (en) A kind of asymmetric delay compensation method and switch
CN109120469B (en) Line transmission delay calculation method and device
KR20100048124A (en) Time synchronization method in bridged local area network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210223