CN112929115A - Method, device and system for detecting time calibration precision and storage medium - Google Patents

Method, device and system for detecting time calibration precision and storage medium Download PDF

Info

Publication number
CN112929115A
CN112929115A CN201911240514.3A CN201911240514A CN112929115A CN 112929115 A CN112929115 A CN 112929115A CN 201911240514 A CN201911240514 A CN 201911240514A CN 112929115 A CN112929115 A CN 112929115A
Authority
CN
China
Prior art keywords
time
network device
protocol
calibration
optp
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
CN201911240514.3A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201911240514.3A priority Critical patent/CN112929115A/en
Publication of CN112929115A publication Critical patent/CN112929115A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

The application provides a detection method, equipment, a system and a storage medium for time calibration precision, wherein the method is applied to main network equipment and comprises the following steps: sending a calibration accuracy detection message to the slave network device; acquiring calibrated accurate time sent by the slave network equipment aiming at the calibration accuracy detection message according to a reverse accurate time protocol (OPTP); comparing the calibrated accurate time with the self reference accurate time to obtain the time calibration accuracy matched with the calibrated accurate time; sending the time alignment accuracy to the slave network device. The method and the device realize automatic detection of the time calibration precision of the slave network equipment according to the user-defined OPTP under the condition that the slave network equipment cannot know the time calibration performance of the slave network equipment.

Description

Method, device and system for detecting time calibration precision and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a storage medium for detecting time calibration accuracy.
Background
With the development of communication networks, networking modes in networks are more and more flexible, 5G is developing vigorously as a major trend of the communication industry, and it is a mainstream application to connect a 5G base station through an Optical NetWork Unit (ONU) in a wired NetWork, and a receiving module of a Global Positioning System (GPS) is generally adopted by past base stations to provide a precise Time reference for the base station, but the deployment density of the 5G base station is difficult to accept a high-cost deployment manner of a GPS receiving module, and for this purpose, precise Time can be transmitted through a precise NetWork Time Protocol (PTP) to replace the GPS receiving module.
In the prior art, a network networking of a PTP protocol follows a master-slave topology structure, a slave network device can synchronize from a master network device to a precise time through the PTP protocol and calibrate its own time, but the accuracy of the calibrated precise time cannot be self-verified, and an abnormality or a failure in any hardware may cause the precise time synchronized by the slave network device to change and generate an unpredictable deviation from an expectation, so that a current precise time synchronization mode according to the PTP protocol has a great degree of hidden danger of reliability and maintainability.
Disclosure of Invention
The application provides a method, a device, a system and a storage medium for detecting Time calibration accuracy, so as to automatically detect the Time calibration accuracy of a slave network device according to a self-defined reverse Precision Time Protocol (OPTP) Protocol under the condition that the slave network device cannot know the Time calibration performance of the slave network device.
The embodiment of the application provides a detection method of time calibration precision, which is applied to a main network device and comprises the following steps:
sending a calibration accuracy detection message to the slave network device;
acquiring calibrated accurate time sent by the slave network equipment aiming at the calibration accuracy detection message according to a reverse accurate time protocol (OPTP);
comparing the calibrated accurate time with the self reference accurate time to obtain the time calibration accuracy matched with the calibrated accurate time;
the time alignment accuracy is sent to the slave network device.
The embodiment of the present application provides another method for detecting time calibration accuracy, which is applied to a slave network device, and includes:
receiving a calibration precision detection message sent by a main network device;
according to an OPTP protocol, sending calibrated accurate time aiming at a calibration accuracy detection message to main network equipment;
and receiving the time calibration precision which is sent by the main network equipment and is matched with the calibrated precise time.
An embodiment of the present application provides a master network device, including:
the PTP master interface is used for sending a calibration precision detection message to the slave network equipment;
at least one processor configured to acquire, according to an opt protocol, a calibrated accurate time sent from a network device for a calibration accuracy detection message; comparing the calibrated precise time with the self reference precise time to obtain time calibration precision matched with the calibrated precise time, and sending the time calibration precision to the PTP main interface;
and the PTP master interface is also used for sending the time calibration precision to the slave network equipment.
An embodiment of the present application provides a slave network device, including:
the PTP slave interface is used for receiving a calibration precision detection message sent by the main network equipment;
the OPTP main interface is used for sending the calibrated accurate time aiming at the calibration accuracy detection message to the main network equipment according to the OPTP protocol;
the PTP slave interface is also used for receiving the time calibration precision which is sent by the main network equipment and is matched with the calibrated precise time.
The embodiment of the present application provides a detection system for time calibration accuracy, including: the master network device and the slave network device in the embodiment of the application are connected.
The embodiment of the application provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the method for detecting the time calibration precision in the embodiment of the application is realized.
According to the detection method, the detection device, the detection system and the storage medium for the time calibration precision, the master network device obtains the calibrated accurate time of the slave network device according to the self-defined OPTP protocol, and then the calibrated accurate time is compared with the self reference accurate time to obtain the time calibration precision matched with the calibrated accurate time, so that the time calibration precision of the slave network device is automatically detected and informed to the slave network device under the condition that the slave network device cannot know the self time calibration performance, and the slave network device can know the self calibration deviation.
Drawings
Fig. 1 is a schematic flowchart of a method for detecting time alignment accuracy according to an embodiment of the present disclosure;
fig. 2 is an interaction diagram of an opt protocol packet according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a method for detecting the time alignment accuracy according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a PTP network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a master network device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a slave network device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 8 is a flowchart of an implementation of an application scenario according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a detection system for time alignment accuracy according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic flowchart of a method for detecting time calibration accuracy according to an embodiment of the present application, where the method is applicable to a case where a master network device detects time calibration accuracy of a slave network device. The method may be performed by a master network device as provided herein for use with a slave network device. As shown in fig. 1, the method includes:
step 110, sending a calibration accuracy detection message to the slave network device.
It should be noted that the master network device refers to a device in the PTP network that provides precise time, and the slave network device refers to a device in the PTP network that receives precise time. The PTP network of the embodiment of the present application mainly includes an Ordinary clock device (OC) and a Boundary clock device (BC). The OC and BC may be used as master network devices or slave network devices. When acting as a master network device, multiple interfaces may be allowed to provide precise time out, these interfaces being PTP master interfaces, and when acting as slave network devices, only one interface is allowed to receive precise time, this interface being a PTP slave interface.
In one example, the calibration accuracy detection message refers to a start detection message for notifying the start of calibration accuracy detection from the network device. The calibration precision detection message can be sent to the slave network device through the PTP extension management message, and the PTP extension management message is added with a newly defined TLV (Type-Length-Value) format management data packet named ENABLE _ PORT _ TEST according to an IEEE1588 protocol to realize the transmission of the calibration precision detection message.
In one implementation, for the definition of ENABLE _ PORT _ TEST, a specified type in the reserved area, e.g., 4003 type in 4003-5 FFF, can be selected to inform the detection of the accuracy of time alignment from the network device based on the IEEE1588 protocol. The enabled _ PORT _ TEST management packet is described as follows: management identification name (managementId name): ENABLE _ PORT _ TEST; management identity (managementId value): 0x 4003; type of operation (actions): COMMANDs (COMMAND); action (applications to): an interface (PORT); data Field (Data Field): empty; other protocol fields of the PTP extension management message are referred to IEEE1588 protocol.
And step 120, acquiring the calibrated accurate time sent by the slave network device aiming at the calibration accuracy detection message according to a reverse accurate time protocol (OPTP).
It should be noted that, in order to detect the time calibration accuracy of the slave network device in real time, the master network device may send a calibration accuracy detection message to the slave network device at an interval of preset time, and after determining that the slave network device receives the calibration accuracy detection for each calibration accuracy detection message, the post-calibration accurate time sent by the slave network device for the calibration accuracy detection message needs to be acquired according to the oppp protocol, so that the master network device further determines the time calibration accuracy of the slave network device according to the post-calibration accurate time.
The calibrated accurate time is obtained by calibrating the accurate time of the slave network device according to the synchronous accurate time, and the synchronous accurate time is calculated according to an interactive PTP message after the slave network device synchronously interacts with the master network device according to a PTP protocol.
In one example, acquiring the post-calibration precision time sent from the network device for the calibration precision detection message according to a reverse precision time protocol, OPTP, may include: receiving an OPTP protocol message sent from network equipment; and performing phase-locked calibration on the OPTP protocol message to obtain the calibrated accurate time.
In one example, the oppp protocol messages correspond to precision time protocol PTP messages one to one, and the precision time domain values in the oppp protocol messages are different from the precision time domain values in the PTP protocol messages.
In a specific implementation, the oppp protocol completely refers to the PTP protocol, and only one difference of different precise time domain values is added to the message characteristics to distinguish a normal working precise time domain from a precise time domain for detection, thereby avoiding a conflict generated when the network coexists with the original PTP protocol.
As shown in fig. 2, the interactive oppp protocol message and PTP protocol message of the master network device and the slave network device form symmetry, that is, the PTP synchronization message (Sync), the Delay request message (Delay _ Req), and the Delay reply message (Delay _ Resp) all have corresponding oppp protocol messages to be sent in reverse. The OPTP protocol is consistent with PTP except that the precision time domain value which is specially distinguished from PTP protocol is different. The calculation of the precise time of the OPTP protocol also follows the IEEE1588 protocol standard.
In one example, the method may further include: presetting a preset accurate time domain value for an OPTP protocol message in advance; if the protocol message is received, judging whether the value of the accurate time domain of the protocol message is a preset accurate time domain value, if so, determining that the protocol message is an OPTP protocol message, otherwise, determining that the protocol message is a PTP protocol message.
For example, 255 may be set as the precise time domain value for the operation of the oppp protocol in advance, and other values not equal to 255 may be set as the precise time domain value for the operation of the PTP protocol, so that when the precise time domain value of the received protocol packet is equal to 255, it may be determined that the protocol packet is currently in the detection process of the time calibration precision, and the protocol packet is processed as the oppp protocol packet, and when the precise time domain value of the protocol packet is not equal to 255, it may be determined that the protocol packet is currently in the normal time calibration process, and the protocol packet is processed as the PTP protocol packet.
And step 130, comparing the calibrated accurate time with the self reference accurate time to obtain the time calibration accuracy matched with the calibrated accurate time.
It should be noted that, since the slave network device calibrates the accurate time of the slave network device according to the reference accurate time of the master network device obtained synchronously, the time calibration deviation between the calibrated accurate time and the reference accurate time, that is, the time calibration precision matched with the calibrated accurate time, can be obtained by performing the difference operation between the reference accurate time of the master network device and the calibrated accurate time.
Step 140, sending the time calibration accuracy to the slave network device.
In one example, after notifying the slave network device of the time alignment accuracy, a stop detection message needs to be sent to the slave network device to stop the slave network device from interacting with the OPTP protocol packet with the master network device.
In one example, the stop detection message may be carried in a PTP extended management message, and the stop detection message may be delivered by adding a newly defined TLV format management packet named DISABLE _ PORT _ TEST.
According to the detection method, the detection device, the detection system and the storage medium for the time calibration precision, the master network device obtains the calibrated accurate time of the slave network device according to the self-defined OPTP protocol, and then the calibrated accurate time is compared with the self reference accurate time to obtain the time calibration precision matched with the calibrated accurate time, so that the time calibration precision of the slave network device is automatically detected and informed to the slave network device under the condition that the slave network device cannot know the self time calibration performance, and the slave network device can know the self calibration deviation.
Fig. 3 is another schematic flow chart of the method for detecting time calibration accuracy according to the embodiment of the present application, and the method may be applied to a case where the master network device detects time calibration accuracy of the slave network device. The method may be performed by a slave network device provided herein for use with a master network device. As shown in fig. 3, the method includes:
step 310, receiving a calibration accuracy detection message sent by the master network device.
It should be noted that the slave network device receives, through the PTP slave interface, a TLV format management packet named ENABLE _ PORT _ TEST sent by the master network device, acquires a calibration accuracy detection message from the TLV format management packet, and determines that the master network device needs to detect its own time calibration accuracy.
Step 320, sending the calibrated precision time for the calibration precision detection message to the primary network device according to the OPTP protocol.
It should be noted that, after receiving the calibration precision detection message, the slave network device needs to determine whether to perform calibration precision detection, and if so, send the calibrated precision time for the calibration precision detection message to the master network device, so that the master network device obtains the time calibration precision matched with the calibrated precision time by comparing the calibrated precision time with the reference precision time of the master network device.
As shown in fig. 2, the slave network device interacts with the master network device through an opt protocol message, that is, a PTP synchronization message (OPTP Sync), a Delay request message (OPTP Delay _ Req), and a Delay reply message (OPTP Delay _ Resp), and sends the calibrated accurate time for the calibration accuracy detection message to the master network device.
And step 330, receiving the time calibration precision matched with the calibrated precise time and sent by the main network device.
In one example, after receiving the time calibration accuracy matching the calibrated accurate time sent by the main network device, the method may further include: and reporting the time calibration precision to a management platform so that the management platform can carry out alarm or time phase calibration according to the time calibration precision.
It should be noted that after receiving the time calibration accuracy calculated by the master network device from the network device, the slave network device can obtain the time calibration deviation of the slave network device relative to the master network device, and can further calibrate the slave network device according to the time calibration deviation, or report the time calibration accuracy to the management platform, so that the management platform can perform alarm or time phase calibration according to the time calibration accuracy.
According to the detection method, the detection device, the detection system and the storage medium for the time calibration precision, the slave network device receives the calibration precision detection message sent by the master network device, and sends the calibrated precision time aiming at the calibration precision detection message to the master network device according to the OPTP protocol after determining to receive the time calibration precision detection, so that the master network device determines the time calibration precision of the slave network device according to the calibrated precision time, and the slave network device can know the time calibration precision of the slave network device.
Fig. 4 is a schematic structural diagram of a PTP network according to an embodiment of the present application.
As shown in fig. 4, in a normal PTP synchronization process of the network devices 1 to 5 in the PTP network, a PTP master interface of an upstream master network device detects the performance of accurate synchronization time of a downstream slave network device in an oppp manner at regular time. For example, if the network device 4 needs to know its own time calibration accuracy, the network device 2, as its relatively master network device, may perform calibration accuracy detection on the network device 4, and notify the obtained time calibration accuracy to the network device 4; if the network device 2 needs to know its precise time performance, the network device 1, as its master network device, will perform calibration accuracy detection on the network device 2 and inform the network device 2 of the obtained time calibration accuracy. It can be seen that each network device of the PTP network is able to know its time alignment accuracy with respect to its master network device.
It should be noted that the method for detecting time calibration accuracy in the embodiment of the present application is also applicable to synchronous Ethernet (sync) and Packet Transport Network (PTN), and is not limited to PTP network.
Fig. 5 is a schematic structural diagram of a master network device according to an embodiment of the present application, and as shown in fig. 5, the master network device includes:
a PTP master interface 510, configured to send a calibration accuracy detection message to a slave network device;
at least one processor 520 configured to obtain a calibrated precise time sent from the network device for the calibration precision detection message according to the opt protocol; comparing the calibrated precise time with the self reference precise time to obtain time calibration precision matched with the calibrated precise time, and sending the time calibration precision to the PTP main interface;
the PTP master interface 510 is also used to transmit the time alignment accuracy to the slave network devices.
The master network device provided in this embodiment is used to implement the detection method applied to the time calibration precision of the master network device in this application, and the implementation principle and technical effect of the master network device provided in this embodiment are similar to those of the detection method applied to the time calibration precision of the slave network device in this application, and are not described herein again.
In one example, the at least one processor 520 includes:
an OPTP slave interface 521, configured to receive an OPTP protocol packet sent from a network device;
the digital phase-locked loop 522 is used for performing phase-locked calibration on the OPTP protocol message to obtain the calibrated accurate time;
the phase comparator 523 is configured to compare the calibrated precise time with a reference precise time of the phase comparator, obtain a time calibration precision matched with the calibrated precise time, and send the time calibration precision to the PTP master interface.
In one example, the oppp protocol messages correspond to precision time protocol PTP messages one to one, and the precision time domain values in the oppp protocol messages are different from the precision time domain values in the PTP protocol messages.
In one example, the at least one processor 520 is further configured to: presetting a preset accurate time domain value for an OPTP protocol message in advance; if the protocol message is received, judging whether the value of the accurate time domain of the protocol message is a preset accurate time domain value, if so, determining that the protocol message is an OPTP protocol message, otherwise, determining that the protocol message is a PTP protocol message.
Fig. 6 is a schematic structural diagram of a slave network device according to an embodiment of the present application, and as shown in fig. 6, the slave network device includes:
the PTP slave interface 610 is configured to receive a calibration accuracy detection message sent by the master network device;
an OPTP host interface 620, configured to send, to the host network device, the calibrated accurate time for the calibration accuracy detection message according to the OPTP protocol;
the PTP slave interface 610 is further configured to receive a time calibration accuracy matched with the calibrated accurate time sent by the master network device.
The slave network device provided in this embodiment is used to implement the detection method applied to the time calibration accuracy of the slave network device of this application, and the implementation principle and technical effect of the slave network device provided in this embodiment are similar to the detection method applied to the time calibration accuracy of the slave network device of this application, and details are not repeated here.
In one example, the PTP slave interface 610, is further configured to: and after receiving the time calibration precision which is sent by the main network equipment and is matched with the calibrated precise time, reporting the time calibration precision to the management platform so that the management platform can carry out alarm or time phase calibration according to the time calibration precision.
Fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present application, and as shown in fig. 7, the network device is additionally provided with an OPTP interface processing module, a phase comparator and a digital phase-locked loop on the basis of an existing PTP interface processing module. The normal accurate time network synchronization is realized through a PTP interface processing module, and the detection of the time calibration accuracy is realized through an OPTP interface processing module.
As shown in fig. 7, the OPTP interface processing module is directly connected to the external PTN network, and shares a physical interface with the PTP interface processing module to send or receive an OPTP protocol packet. The OPTP interface processing module comprises an OPTP main interface and an OPTP slave interface, the OPTP main interface and the OPTP slave interface are respectively arranged on the slave network equipment and the master network equipment, the OPTP main interface and the OPTP slave interface are mutually connected through a PTN network, and can send and receive OPTP protocol messages and can be realized by programming a programmable device.
As shown in fig. 7, the digital phase-locked loop connects the OPTP slave interface and the phase comparator, and is used to phase-lock the phase calibration OPTP protocol message, calculate the calibrated precise time, and send the time to the phase comparator for comparison, which can be implemented by programming using a programmable device.
As shown in fig. 7, the phase comparator is used to compare the reference accurate time of the main network device with the calibrated accurate time calculated according to the opt protocol packet, and may be implemented by a programmable device assisted by a high-frequency clock signal in combination with logic programming.
In one example, when the network device is used as a slave network device, the PTP slave interface of the PTP interface processing module recovers the precise time from the PTP network, calibrates the precise time of the network device according to the precise time, sends the calibrated precise time to the OPTP master interface of the opt interface processing module, and sends the calibrated precise time to the corresponding master network device through the OPTP master interface.
In one example, when the network device is used as a main network device, the PTP master interface of the PTP interface processing module outputs the precise time to the PTP network, according to the oppp protocol, the oppp protocol message is received from the interface and sent to the digital phase-locked loop through the oppp, the digital phase-locked loop performs phase-locked calibration on the oppp protocol message, the calibrated precise time is obtained and sent to the phase comparator, the calibrated precise time is compared with the reference precise time of the phase comparator, the calibration deviation matched with the calibrated precise time is obtained, and the calibration deviation is read by the management platform.
The method and the device have the advantages that the OPTP master-slave protocol interaction is processed by adding the corresponding OPTP interface processing module in the network equipment, the calculation and comparison of the accurate time are realized by adding the digital phase-locked loop and the phase comparator, the measurement of the time calibration precision of the slave network equipment is realized, and the problem that the slave network equipment cannot self-prove the quality of the accurate time performance is solved.
Fig. 8 is a flowchart of an implementation scenario according to an embodiment of the present application. As shown in fig. 8, the method may include, for a pair of master and slave network devices, the steps of:
1) the master network device sends a start detection message to the slave network device through the PTP master interface to inform the slave network device to start calibration accuracy detection.
In one example, the start detection message is carried in a PTP extended management message, and the PTP extended management message adds a newly defined TLV format management data packet named ENABLE _ PORT _ TEST according to an IEEE1588 protocol to implement transmission of the start detection message.
In one implementation, for the definition of ENABLE _ PORT _ TEST, a specified type in the reserved area, e.g., 4003 type in 4003-5 FFF, can be selected to inform the detection of the accuracy of time alignment from the network device based on the IEEE1588 protocol. The enabled _ PORT _ TEST management packet is described as follows: management identification name (managementId name): ENABLE _ PORT _ TEST; management identity (managementId value): 0x 4003; type of operation (actions): COMMANDs (COMMAND); action (applications to): an interface (PORT); data Field (Data Field): empty; other protocol fields of the PTP extension management message are referred to IEEE1588 protocol.
2) The slave network device receives a start detection message, activates the OPTP master interface, starts to enter a master operating mode, and sends a response message to the master network device for the calibration accuracy detection message.
In one example, the response message is defined according to IEEE1588 protocol, and a TLV format MANAGEMENT packet named manage _ ERROR _ STATUS may be used to return the response message to the master network device to inform the master network device whether the detection of the calibration accuracy may be started.
3) After receiving the response message, the master network device determines whether detection can be started. If yes, activating an OPTP slave interface, entering a slave working mode, and executing the step 4); otherwise, step 5) is executed to send a stop detection message to the slave network device.
4) The master network equipment and the slave network equipment interact in an OPTP protocol mode, the calibrated accurate time is obtained through a digital phase-locked loop and sent to a phase comparator, and the calibrated accurate time and the self reference accurate time are compared through the phase comparator to obtain the time calibration precision.
5) The master network device stops the operation of the OPTP slave interface, informs the slave network device of the time alignment accuracy, and sends a stop detection message to the slave network device.
In one example, the detection stopping message is carried in a PTP extension management message, and is used to notify the slave network device to stop the operation of the OPTP master interface, and the PTP extension management message adds a newly defined TLV format management data packet named DISABLE _ PORT _ TEST according to an IEEE1588 protocol to implement the transmission of the detection stopping message.
In one specific implementation, for the definition of DISABLE _ PORT _ TEST, on the basis of IEEE1588 protocol, a specific type in the reserved area, for example, type 4004 in 4003 to 5FFF, may be selected to notify the slave network device to stop the detection of the time alignment accuracy. The description of the DISABLE _ PORT _ TEST management packet is as follows: management identification name (managementId name): DISABLE _ PORT _ TEST; management identity (managementId value): 0x 4004; type of operation (actions): COMMANDs (COMMAND); action (applications to): an interface (PORT); data Field (Data Field): time alignment offsets, occupying 10 bytes of space, the first 8 bytes in units of nanoseconds (ns), the most significant bit for the sign bit, and the last two bytes reserved. Sign positive indicates that the phase is retarded compared to the reference and sign negative indicates that the phase is advanced compared to the reference.
6) And after receiving the time calibration precision and the detection stopping message, the slave network equipment returns a response to the master network equipment according to a TLV format MANAGEMENT data packet named as MANAGEMENT _ ERROR _ STATUS in an IEEE1588 protocol, and stops the operation of an OPTP master interface of the slave network equipment.
In one example, the obtained time calibration accuracy is reported from the network device to the management platform for alarming or further calibrating the time phase by the management platform.
7) And finishing the detection.
Fig. 9 is a schematic structural diagram of a detection system for time alignment accuracy according to an embodiment of the present application, where the system includes: a master network device 910 and a slave network device 920 in this embodiment, the master network device 910 is connected to the slave network device 920.
The detection system of time calibration precision provided by this embodiment is used to implement the detection method of time calibration precision of this application, and the implementation principle and technical effect of the detection system of time calibration precision provided by this embodiment are similar to those of the detection method of time calibration precision of this application, and are not described here again.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for detecting the time calibration accuracy applied to a main network device in any embodiment of the present application is implemented.
The detection method of the time calibration precision is applied to the main network equipment and comprises the following steps: sending a calibration accuracy detection message to the slave network device; acquiring calibrated accurate time sent by the slave network equipment aiming at the calibration accuracy detection message according to a reverse accurate time protocol (OPTP); comparing the calibrated accurate time with the self reference accurate time to obtain the time calibration accuracy matched with the calibrated accurate time; the time alignment accuracy is sent to the slave network device.
The above description is only exemplary embodiments of the present application, and is not intended to limit the scope of the present application.
In general, the various embodiments of the application may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the application is not limited thereto.
Embodiments of the application may be implemented by a data processor of a mobile device executing computer program instructions, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.
Any logic flow block diagrams in the figures of this application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions. The computer program may be stored on a memory. The Memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, Read-Only Memory (ROM), Random Access Memory (RAM), optical storage devices and systems (Digital Video Disc (DVD) or Compact Disc (CD)), etc. The computer readable medium may include a non-transitory storage medium. The data processor may be of any type suitable to the local technical environment, such as but not limited to general purpose computers, special purpose computers, microprocessors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Programmable logic devices (FGPAs), and processors based on a multi-core processor architecture.
The foregoing has provided by way of exemplary and non-limiting examples a detailed description of exemplary embodiments of the present application. Various modifications and adaptations to the foregoing embodiments may become apparent to those skilled in the relevant arts in view of the following drawings and the appended claims without departing from the scope of the invention. Therefore, the proper scope of the invention is to be determined according to the claims.

Claims (11)

1. A method for detecting time calibration accuracy is applied to a main network device, and comprises the following steps:
sending a calibration accuracy detection message to the slave network device;
acquiring calibrated accurate time sent by the slave network equipment aiming at the calibration accuracy detection message according to a reverse accurate time protocol (OPTP);
comparing the calibrated accurate time with the self reference accurate time to obtain the time calibration accuracy matched with the calibrated accurate time;
sending the time alignment accuracy to the slave network device.
2. The method of claim 1, wherein obtaining the calibrated precise time sent by the slave network device for the calibration precision detection message according to a reverse precise time protocol (OPTP), comprises:
receiving the OPTP protocol message sent by the slave network equipment;
and performing phase-locking calibration on the OPTP protocol message to obtain the calibrated accurate time.
3. The method according to claim 2, wherein the OPTP protocol messages correspond to Precision Time Protocol (PTP) messages one-to-one, and the precision time domain values in the OPTP protocol messages are different from the precision time domain values in the PTP protocol messages.
4. The method of claim 2 or 3, further comprising:
presetting a preset accurate time domain value for an OPTP protocol message in advance;
if a protocol message is received, judging whether the value of the accurate time domain of the protocol message is a preset accurate time domain value, if so, determining that the protocol message is an OPTP protocol message, otherwise, determining that the protocol message is a PTP protocol message.
5. A method for detecting time alignment accuracy is applied to a slave network device, and comprises the following steps:
receiving a calibration precision detection message sent by a main network device;
sending calibrated accurate time for the calibration accuracy detection message to the main network device according to an OPTP protocol;
and receiving the time calibration precision which is sent by the main network equipment and matched with the calibrated precise time.
6. The method of claim 5, further comprising, after receiving the time alignment accuracy matching the post-alignment precision time sent by the primary network device:
and reporting the time calibration precision to a management platform so that the management platform carries out alarm or time phase calibration according to the time calibration precision.
7. A primary network device, comprising:
the PTP master interface is used for sending a calibration precision detection message to the slave network equipment;
at least one processor configured to obtain, according to an opt protocol, a calibrated precise time sent by the slave network device for the calibration precision detection message; comparing the calibrated precise time with the self reference precise time to obtain time calibration precision matched with the calibrated precise time, and sending the time calibration precision to a PTP main interface;
a PTP master interface, further configured to send the time alignment accuracy to the slave network device.
8. The primary network device of claim 7, wherein the at least one processor comprises:
an OPTP slave interface, configured to receive the OPTP protocol packet sent by the slave network device;
the digital phase-locked loop is used for carrying out phase-locked calibration on the OPTP protocol message to obtain the calibrated accurate time;
and the phase comparator is used for comparing the calibrated accurate time with the self reference accurate time to obtain the time calibration precision matched with the calibrated accurate time, and sending the time calibration precision to the PTP main interface.
9. A slave network device, comprising:
the PTP slave interface is used for receiving a calibration precision detection message sent by the main network equipment;
an OPTP master interface, configured to send, to the master network device, calibrated precision time for the calibration precision detection message according to an OPTP protocol;
the PTP slave interface is further used for receiving the time calibration precision which is sent by the main network equipment and is matched with the calibrated precise time.
10. A detection system for time-aligned accuracy, comprising: a master network device according to claim 8 and a slave network device according to claim 9, the master network device being connected to the slave network device.
11. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of detecting time alignment accuracy of any one of claims 1-4.
CN201911240514.3A 2019-12-06 2019-12-06 Method, device and system for detecting time calibration precision and storage medium Pending CN112929115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911240514.3A CN112929115A (en) 2019-12-06 2019-12-06 Method, device and system for detecting time calibration precision and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911240514.3A CN112929115A (en) 2019-12-06 2019-12-06 Method, device and system for detecting time calibration precision and storage medium

Publications (1)

Publication Number Publication Date
CN112929115A true CN112929115A (en) 2021-06-08

Family

ID=76161443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911240514.3A Pending CN112929115A (en) 2019-12-06 2019-12-06 Method, device and system for detecting time calibration precision and storage medium

Country Status (1)

Country Link
CN (1) CN112929115A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630640A (en) * 2021-07-27 2021-11-09 中央广播电视总台 Flow precision analysis method and device for media equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150092793A1 (en) * 2013-10-01 2015-04-02 Khalifa University of Science, Technology, and Research Method and devices for synchronization
JP2015068806A (en) * 2013-10-01 2015-04-13 株式会社日立製作所 Time synchronization system and time synchronization device
CN105610537A (en) * 2016-01-08 2016-05-25 烽火通信科技股份有限公司 System and method for synchronizing GPON OLT and previous-level clock in ToD service scene
US9673970B1 (en) * 2016-02-25 2017-06-06 Khalifa University Of Science, Technology And Research Methods and systems for estimating frequency synchronization accuracy
CN109379160A (en) * 2018-12-30 2019-02-22 广东大普通信技术有限公司 A kind of clock alignment server and method
CN109842456A (en) * 2019-03-25 2019-06-04 中国航空无线电电子研究所 A kind of clock synchronizing method based on AFDX network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150092793A1 (en) * 2013-10-01 2015-04-02 Khalifa University of Science, Technology, and Research Method and devices for synchronization
JP2015068806A (en) * 2013-10-01 2015-04-13 株式会社日立製作所 Time synchronization system and time synchronization device
CN105610537A (en) * 2016-01-08 2016-05-25 烽火通信科技股份有限公司 System and method for synchronizing GPON OLT and previous-level clock in ToD service scene
US9673970B1 (en) * 2016-02-25 2017-06-06 Khalifa University Of Science, Technology And Research Methods and systems for estimating frequency synchronization accuracy
CN109379160A (en) * 2018-12-30 2019-02-22 广东大普通信技术有限公司 A kind of clock alignment server and method
CN109842456A (en) * 2019-03-25 2019-06-04 中国航空无线电电子研究所 A kind of clock synchronizing method based on AFDX network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630640A (en) * 2021-07-27 2021-11-09 中央广播电视总台 Flow precision analysis method and device for media equipment and readable storage medium
CN113630640B (en) * 2021-07-27 2023-11-17 中央广播电视总台 Method and device for analyzing flow precision of media equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US11838110B2 (en) Method of remotely monitoring the timing performance of a PTP slave
CN103856360B (en) A kind of synchronization link fault detection method and device
US11251891B2 (en) Method for identifying an incorrect time stamp of an ethernet message and control unit for a motor vehicle
US7783736B2 (en) Definition of an active stratum-1 server in a coordinated timing network
CA2675644C (en) Facilitating recovery in a coordinated timing network
JP7401656B2 (en) METHODS, APPARATUS AND SYSTEM AND STORAGE MEDIA FOR SELECTING CLOCK SOURCES
US9112626B2 (en) Employing configuration information to determine the role of a server in a coordinated timing network
US20210328698A1 (en) Clock synchronization method and apparatus, and storage medium
US20220248353A1 (en) Synchronization method and device
WO2022151993A1 (en) Method, device and system for detecting time synchronization performance
CN112929115A (en) Method, device and system for detecting time calibration precision and storage medium
WO2019242321A1 (en) Time synchronization method, device, network device and computer readable storage medium
CN112104432B (en) Time verification method, system, base station and bearing network in mobile communication network
WO2022127924A1 (en) Method and device for selecting clock source
WO2016091050A1 (en) Time synchronization method and device
CN110098971A (en) A kind of network link asymmetry measurement method and network node
US20220337384A1 (en) Clock Port Attribute Recovery Method, Device, and System
KR20190002906A (en) Clocks timing fault recovery method and apparatus in precision time protocol system
US20240171295A1 (en) Communication apparatus, control method for communication apparatus, and storage medium
JP2019110410A (en) Network device
US20230208544A1 (en) Method, apparatus, and system for processing time synchronization fault and storage medium
CN102790703A (en) Method and system for monitoring time faults
CN118826935A (en) Time synchronization fault processing method and device, electronic equipment and storage medium
CN104135764A (en) Method and system of fault detection of time synchronization node as well as time synchronization node

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