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.
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.