Time calibration accuracy detection method, device, system and storage medium

By introducing the reverse accurate time protocol (OPTP) into the PTP network, the master network device detects the time calibration accuracy of the slave network device, solving the deviation and reliability hidden dangers of the time synchronization method of the PTP protocol, and achieving higher time synchronization reliability and maintainability.

CN112929115BActive Publication Date: 2025-04-22ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911240514.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-06
Publication Date
2025-04-22
Estimated Expiration
2039-12-06

AI Technical Summary

Technical Problem

The time synchronization method of the existing PTP protocol has unpredictable deviations and reliability risks, and cannot prove the time calibration performance by itself.

Method used

The custom reverse precision time protocol (OPTP) is used for time calibration accuracy detection, and the calibration accuracy detection message is sent to the slave network device through the master network device, the calibration accuracy detection message is obtained, and the calibration accuracy is compared with the reference precision time to automatically detect the time calibration accuracy.

Benefits of technology

It realizes automatic detection of time calibration accuracy when network equipment cannot know its own time calibration performance, improving the reliability and maintainability of time synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112929115B_ABST
    Figure CN112929115B_ABST
Patent Text Reader

Abstract

The present application proposes a method, device, system and storage medium for detecting time calibration accuracy. The method is applied to a master network device, including: sending a calibration accuracy detection message to a slave network device; obtaining the calibrated precise time sent by the slave network device for the calibration accuracy detection message according to the reverse precise time protocol OPTP; comparing the calibrated precise time with its own reference precise time to obtain the time calibration accuracy that matches the calibrated precise time; and sending the time calibration accuracy to the slave network device. In the case where the slave network device cannot know its own time calibration performance, the time calibration accuracy of the slave network device is automatically detected according to the customized OPTP protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, system and storage medium for detecting time calibration accuracy. Background Art

[0002] With the development of communication networks, the networking modes in the network are becoming more and more flexible. 5G is booming as a major trend in the communication industry. Connecting 5G base stations through optical network units (ONUs) under wired networks is a mainstream application. In the past, base stations generally used global positioning system (GPS) receiving modules to provide accurate time references for base stations. However, the deployment density of 5G base stations makes it difficult to accept the high-cost deployment method of GPS receiving modules. In this regard, the precise time can be transmitted through the Precision Time Protocol (PTP) to replace the GPS receiving module.

[0003] In the prior art, the network networking of the PTP protocol follows a master-slave topology. Although the slave network device can synchronize to the precise time from the master network device through the PTP protocol and calibrate its own time, it cannot self-certify the accuracy of the precise time after calibration. Moreover, any hardware anomaly or failure may cause the precise time synchronized by the slave network device to change and produce unpredictable deviations from expectations. Therefore, the current precise time synchronization method based on the PTP protocol has a large degree of reliability and maintainability risks. Summary of the invention

[0004] The present application provides a time calibration accuracy detection method, device, system and storage medium to achieve automatic detection of the time calibration accuracy of a slave network device according to a custom Opposite Precision Time Protocol (OPTP) protocol when the slave network device is unable to know its own time calibration performance.

[0005] The embodiment of the present application provides a method for detecting time calibration accuracy, which is applied to a primary network device, including:

[0006] Sending a calibration accuracy detection message to a slave network device;

[0007] According to the reverse precise time protocol OPTP, obtaining the calibrated precise time sent by the network device for the calibration precision detection message;

[0008] Compare the calibrated precise time with its own reference precise time to obtain a time calibration accuracy that matches the calibrated precise time;

[0009] Sends time calibration accuracy to slave network devices.

[0010] The embodiment of the present application provides another method for detecting time calibration accuracy, which is applied to a slave network device, including:

[0011] Receiving a calibration accuracy detection message sent by a main network device;

[0012] According to the OPTP protocol, the calibrated precise time for the calibration accuracy detection message is sent to the primary network device;

[0013] The time calibration accuracy sent by the receiving main network device matches the calibrated precise time.

[0014] The present application provides a primary network device, including:

[0015] PTP master interface, used to send calibration accuracy detection messages to slave network devices;

[0016] At least one processor is used to obtain the calibrated precise time sent by the slave network device for the calibration accuracy detection message according to the OPTP protocol; compare the calibrated precise time with its own reference precise time to obtain the time calibration accuracy matching the calibrated precise time, and send the time calibration accuracy to the PTP master interface;

[0017] The PTP master interface is also used to send the time calibration accuracy to the slave network devices.

[0018] An embodiment of the present application provides a slave network device, including:

[0019] PTP slave interface, used to receive calibration accuracy detection messages sent by the master network device;

[0020] An OPTP master interface, used to send a calibrated accurate time for a calibration accuracy detection message to a master network device according to the OPTP protocol;

[0021] The PTP slave interface is also used to receive the time calibration accuracy sent by the master network device that matches the calibrated precise time.

[0022] An embodiment of the present application provides a time calibration accuracy detection system, including: a master network device and a slave network device in the embodiment of the present application, wherein the master network device is connected to the slave network device.

[0023] An embodiment of the present application provides a storage medium, which stores a computer program. When the computer program is executed by a processor, the method for detecting the time calibration accuracy in the embodiment of the present application is implemented.

[0024] The time calibration accuracy detection method, device, system and storage medium provided in the embodiments of the present application enable the master network device to obtain the calibrated precise time of the slave network device according to the customized OPTP protocol, and then obtain the time calibration accuracy that matches the calibrated precise time by comparing the calibrated precise time with its own reference precise time. This enables the slave network device to automatically detect the time calibration accuracy of the slave network device when the slave network device is unable to know its own time calibration performance, and inform the slave network device so that the slave network device can know the size of its own calibration deviation. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of a flow chart of a method for detecting time calibration accuracy according to an embodiment of the present application;

[0026] Figure 2 A schematic diagram of the interaction of an OPTP protocol message according to an embodiment of the present application;

[0027] Figure 3 Another schematic flow chart of a method for detecting time calibration accuracy according to an embodiment of the present application;

[0028] Figure 4 A schematic diagram of the structure of a PTP network according to an embodiment of the present application;

[0029] Figure 5 A schematic diagram of the structure of a main network device according to an embodiment of the present application;

[0030] Figure 6 A schematic diagram of the structure of a slave network device according to an embodiment of the present application;

[0031] Figure 7 A schematic diagram of the structure of a network device according to an embodiment of the present application;

[0032] Figure 8 This is a flowchart for implementing an application scenario of an embodiment of the present application;

[0033] Fig. 9 A schematic diagram of the structure of a time calibration accuracy detection system according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clear, the 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 in the embodiments of the present application can be combined with each other arbitrarily without conflict.

[0035] Figure 1The present invention is a flow chart of a method for detecting the time calibration accuracy of an embodiment of the present invention. The method can be applied to a situation where a master network device detects the time calibration accuracy of a slave network device. The method can be executed by the master network device provided by the present invention and used in conjunction with the slave network device. Figure 1 As shown, the method includes:

[0036] Step 110: Send a calibration accuracy detection message to the slave network device.

[0037] It should be noted that the master network device refers to the device that provides accurate time in the PTP network, and the slave network device refers to the device that receives accurate time in the PTP network. The PTP network of the embodiment of the present application is mainly composed of an ordinary clock device (OC) and a boundary clock device (BC). Among them, OC and BC can be used as both master network devices and slave network devices. When used as a master network device, multiple interfaces can be allowed to provide accurate time to the outside, and these interfaces are PTP master interfaces. When used as a slave network device, only one interface is allowed to receive accurate time, and this interface is a PTP slave interface.

[0038] In one example, the calibration accuracy detection message refers to a start detection message, which is used to notify the slave network device to start calibration accuracy detection. The calibration accuracy detection message can be sent to the slave network device through a PTP extended management message. The PTP extended management message adds a newly defined TLV (Type-Length-Value, type-data length-data value) format management data packet named ENABLE_PORT_TEST in accordance with the IEEE1588 protocol to implement calibration accuracy detection message transmission.

[0039] In a specific implementation, for the definition of ENABLE_PORT_TEST, based on the IEEE 1588 protocol, a specified type in the reserved area can be selected, for example, type 4003 in 4003-5FFF to notify the network device to start the detection of time calibration accuracy. The description of the ENABLE_PORT_TEST management data packet is as follows: management identifier name (managementId name): ENABLE_PORT_TEST; management identifier (managementId value): 0x4003; operation type (actions): command (COMMAND); applied to (Applies to): interface (PORT); data field (DataField): empty; other protocol fields of the PTP extended management message refer to the IEEE 1588 protocol.

[0040] Step 120: According to the reverse precise time protocol OPTP, obtain the calibrated precise time sent by the network device in response to the calibration accuracy detection message.

[0041] 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 will send a calibration accuracy detection message to the slave network device at a preset interval. For each calibration accuracy detection message, after determining that the slave network device accepts the calibration accuracy detection, it is necessary to obtain the calibrated precise time sent by the slave network device for the calibration accuracy detection message according to the OPTP protocol, so that the master network device can further judge the time calibration accuracy of the slave network device based on the calibrated precise time.

[0042] Among them, the calibrated precise time is obtained after the network device calibrates its own precise time according to the synchronized precise time, and the synchronized precise time is calculated based on the interacted PTP messages after the network device performs PTP message synchronization interaction with the main network device according to the PTP protocol.

[0043] In one example, according to the reverse precise time protocol OPTP, obtaining the calibrated precise time sent from the network device for the calibration accuracy detection message may include: receiving the OPTP protocol message sent from the network device; and obtaining the calibrated precise time by performing phase-lock calibration on the OPTP protocol message.

[0044] In one example, the OPTP protocol message corresponds to the Precision Time Protocol (PTP) message one-to-one, and the precise time field value in the OPTP protocol message is different from the precise time field value in the PTP protocol message.

[0045] In a specific implementation, the OPTP protocol completely refers to the PTP protocol, and only adds a difference in the precise time domain value in the message characteristics to distinguish the normal working precise time domain from the precise time domain used for detection, avoiding conflicts when coexisting with the original PTP protocol on the network.

[0046] like Figure 2 As shown in the figure, the OPTP protocol messages and PTP protocol messages exchanged between the master network device and the slave network device are symmetrical, that is, the PTP synchronization message (Sync), delay request message (Delay_Req) ​​and delay reply message (Delay_Resp) all have corresponding OPTP protocol messages sent in the opposite direction. In addition to the precise time domain value that is different from the PTP protocol, the protocol mechanism of the OPTP protocol is consistent with that of the PTP protocol. The calculation of the precise time of the OPTP protocol also follows the IEEE 1588 protocol standard.

[0047] In an example, it may also include: pre-setting a preset precise time domain value for the OPTP protocol message; if a protocol message is received, determining whether the value of the precise time domain of the protocol message is the preset precise 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.

[0048] Exemplarily, 255 can be set in advance as the precise time domain value for the operation of the OPTP protocol, and other values ​​not equal to 255 can be set as the precise time domain value for the operation of the PTP protocol. Thus, when the precise time domain value of the received protocol message is equal to 255, it can be determined that the current time calibration accuracy detection process is in progress, and the protocol message can be processed as an OPTP protocol message. When the precise time domain value of the protocol message is not equal to 255, it can be determined that the current time calibration process is in a normal time calibration process, and the protocol message can be processed as a PTP protocol message.

[0049] Step 130: Compare the calibrated precise time with its own reference precise time to obtain a time calibration accuracy that matches the calibrated precise time.

[0050] It should be noted that since the slave network device calibrates its own precise time based on the benchmark precise time of the master network device obtained synchronously, the time calibration deviation between the calibrated precise time and the benchmark precise time can be obtained by performing a difference calculation between the benchmark precise time of the master network device and the calibrated precise time, that is, the time calibration accuracy that matches the calibrated precise time.

[0051] Step 140: Send the time calibration accuracy to the slave network device.

[0052] In one example, after the time calibration accuracy is notified to the slave network device, a stop detection message needs to be sent to the slave network device so that the slave network device stops exchanging OPTP protocol messages with the master network device.

[0053] In an example, the stop detection message may be carried in a PTP extended management message, and the transmission of the stop detection message is achieved by adding a newly defined TLV format management data packet named DISABLE_PORT_TEST.

[0054] The time calibration accuracy detection method, device, system and storage medium provided in the embodiments of the present application enable the master network device to obtain the calibrated precise time of the slave network device according to the customized OPTP protocol, and then obtain the time calibration accuracy that matches the calibrated precise time by comparing the calibrated precise time with its own reference precise time. This enables the slave network device to automatically detect the time calibration accuracy of the slave network device when the slave network device is unable to know its own time calibration performance, and inform the slave network device so that the slave network device can know the size of its own calibration deviation.

[0055] Figure 3 Another flow chart of the time calibration accuracy detection method of the embodiment of the present application is shown in FIG. 1 , which can be applied to the case where the master network device detects the time calibration accuracy of the slave network device. The method can be executed by the slave network device provided by the present application and used in conjunction with the master network device. Figure 3 As shown, the method includes:

[0056] Step 310: Receive a calibration accuracy detection message sent by the main network device.

[0057] It should be noted that the slave network device receives a TLV format management data packet named ENABLE_PORT_TEST sent by the master network device through the PTP slave interface, obtains a calibration accuracy detection message from the data packet, and determines that the master network device needs to detect its own time calibration accuracy.

[0058] Step 320: According to the OPTP protocol, the calibrated precise time for the calibration accuracy detection message is sent to the primary network device.

[0059] It should be noted that after receiving the calibration accuracy detection message, the slave network device needs to determine whether to perform a calibration accuracy detection. If a calibration accuracy detection is performed, the calibrated precise time for the calibration accuracy detection message is sent to the master network device, so that the master network device can compare the calibrated precise time with its own reference precise time to obtain a time calibration accuracy that matches the calibrated precise time.

[0060] like Figure 2 As shown, the slave network device sends the calibrated precise time of the calibration accuracy detection message to the master network device by exchanging OPTP protocol messages, namely, PTP synchronization message (OPTP Sync), delay request message (OPTP Delay_Req) ​​and delay reply message (OPTP Delay_Resp) with the master network device.

[0061] Step 330: Receive the time calibration accuracy sent by the primary network device that matches the calibrated precise time.

[0062] In one example, after receiving the time calibration accuracy sent by the main network device that matches the calibrated precise time, it can also include: reporting the time calibration accuracy to the management platform so that the management platform performs an alarm or time phase calibration according to the time calibration accuracy.

[0063] It should be noted that after receiving the time calibration accuracy calculated by the main network device from the network device, the time calibration deviation relative to the main network device can be known. Based on the time calibration deviation, the precise time of the device can be further calibrated. The time calibration accuracy can also be reported to the management platform so that the management platform can issue an alarm or time phase calibration based on the time calibration accuracy.

[0064] The time calibration accuracy detection method, device, system and storage medium provided in the embodiments of the present application are as follows: after the slave network device receives the calibration accuracy detection message sent by the master network device and decides to accept the time calibration accuracy detection, the slave network device sends the calibrated precise time for the calibration accuracy detection message to the master network device according to the OPTP protocol, so that the master network device determines the time calibration accuracy of the slave network device according to the calibrated precise time, thereby allowing the slave network device to know its own time calibration accuracy.

[0065] Figure 4 A schematic diagram of the structure of a PTP network according to an embodiment of the present application.

[0066] like Figure 4 As shown, during the normal PTP synchronization operation of network devices 1 to 5 in the PTP network, the PTP master interface of the upstream master network device periodically uses the OPTP method to detect the performance of the downstream slave network device in synchronizing precise time. For example, if network device 4 needs to know its own time calibration accuracy, network device 2, as its relative master network device, will perform calibration accuracy detection on network device 4 and tell network device 4 the obtained time calibration accuracy; if network device 2 needs to know its own precise time performance, network device 1, as its relative master network device, will perform calibration accuracy detection on network device 2 and tell network device 2 the obtained time calibration accuracy. It can be seen that each network device in the PTP network can know its own time calibration accuracy relative to its own master network device.

[0067] It should be noted that the time calibration accuracy detection method of the embodiment of the present application is also applicable to Synchronous Ethernet (Synce) and Packet Translate Network (PTN), and is not limited to PTP network.

[0068] Figure 5 A schematic diagram of the structure of a main network device according to an embodiment of the present application is shown in FIG. Figure 5 As shown, the main network device includes:

[0069] PTP master interface 510, used to send calibration accuracy detection messages to slave network devices;

[0070] At least one processor 520 is used to obtain the calibrated precise time sent by the slave network device for the calibration accuracy detection message according to the OPTP protocol; compare the calibrated precise time with its own reference precise time to obtain the time calibration accuracy matching the calibrated precise time, and send the time calibration accuracy to the PTP master interface;

[0071] The PTP master interface 510 is also used to send the time calibration accuracy to the slave network device.

[0072] The master network device provided in this embodiment is used to implement the detection method for time calibration accuracy applied to the master network device of the present application. The implementation principle and technical effect of the master network device provided in this embodiment are similar to the detection method for time calibration accuracy applied to the slave network device of the present application, and will not be repeated here.

[0073] In one example, at least one processor 520 includes:

[0074] OPTP slave interface 521, used for receiving OPTP protocol messages sent from a network device;

[0075] A digital phase-locked loop 522 is used to perform phase-lock calibration on the OPTP protocol message to obtain the accurate time after calibration;

[0076] The phase comparator 523 is used to compare the calibrated precise time with its own reference precise time to obtain the time calibration accuracy that matches the calibrated precise time, and send the time calibration accuracy to the PTP main interface.

[0077] In one example, the OPTP protocol message corresponds to the Precision Time Protocol (PTP) message one-to-one, and the precise time field value in the OPTP protocol message is different from the precise time field value in the PTP protocol message.

[0078] In one example, at least one processor 520 is also used to: pre-set a preset precise time domain value for the OPTP protocol message; if a protocol message is received, determine whether the value of the precise time domain of the protocol message is the preset precise time domain value, if so, determine that the protocol message is an OPTP protocol message, otherwise, determine that the protocol message is a PTP protocol message.

[0079] Figure 6 A schematic diagram of the structure of a slave network device according to an embodiment of the present application is shown in FIG. Figure 6 As shown, the slave network device includes:

[0080] The PTP slave interface 610 is used to receive a calibration accuracy detection message sent by the master network device;

[0081] The OPTP master interface 620 is used to send the calibrated accurate time for the calibration accuracy detection message to the master network device according to the OPTP protocol;

[0082] The PTP slave interface 610 is also used to receive the time calibration accuracy sent by the master network device that matches the calibrated precise time.

[0083] The slave network device provided in this embodiment is used to implement the detection method for the time calibration accuracy applied to the slave network device of the present application. The implementation principle and technical effect of the slave network device provided in this embodiment are similar to the detection method for the time calibration accuracy applied to the slave network device of the present application, and will not be repeated here.

[0084] In one example, the PTP slave interface 610 is also used to: after receiving the time calibration accuracy sent by the main network device that matches the precise time after calibration, report the time calibration accuracy to the management platform, so that the management platform can issue an alarm or perform time phase calibration based on the time calibration accuracy.

[0085] Figure 7 A schematic diagram of the structure of a network device according to an embodiment of the present application is shown in FIG. Figure 7 As shown, the network device adds an OPTP interface processing module, a phase comparator and a digital phase-locked loop based on the existing PTP interface processing module. Among them, normal precise time network synchronization is achieved through the PTP interface processing module, and the detection of time calibration accuracy is achieved through the OPTP interface processing module.

[0086] like Figure 7 As shown, 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 OPTP protocol messages. The OPTP interface processing module includes an OPTP master interface and an OPTP slave interface. The OPTP master interface and the OPTP slave interface are respectively on the slave network device and the master network device. The two are connected to each other through the PTN network and can send and receive OPTP protocol messages. They can be implemented by programming with programmable devices.

[0087] like Figure 7 As shown, the digital phase-locked loop connects the OPTP slave interface and the phase comparator, is used to phase-lock and calibrate the OPTP protocol message and calculate the precise time after calibration, and sends the time to the phase comparator for comparison, which can be implemented by programming with a programmable device.

[0088] like Figure 7As shown, the phase comparator is used to compare the reference precise time of the main network device with the calibrated precise time calculated according to the OPTP protocol message, which can be implemented by a programmable device with the aid of a high-frequency clock signal combined with logic programming.

[0089] In one example, when the network device acts as a slave network device, it recovers the precise time from the PTP network through the PTP slave interface of the PTP interface processing module, calibrates its own precise time based on the precise time, sends the calibrated precise time to the OPTP master interface of the OPTP interface processing module, and sends the calibrated precise time to the corresponding master network device through the OPTP master interface.

[0090] In one example, when the network device acts as a master network device, the precise time is output to the PTP network through the PTP master interface of the PTP interface processing module. According to the OPTP protocol, the OPTP protocol message is received through the OPTP slave interface and sent to the digital phase-locked loop. The OPTP protocol message is phase-locked and calibrated through the digital phase-locked loop to obtain the calibrated precise time and send it to the phase comparator. The calibrated precise time is compared with its own reference precise time through the phase comparator to obtain a calibration deviation that matches the calibrated precise time for reading by the management platform.

[0091] The embodiment of the present application processes the OPTP master-slave protocol interaction by adding a corresponding OPTP interface processing module in the network device, and realizes the calculation and comparison of precise time by adding a digital phase-locked loop and a phase comparator, thereby realizing the measurement of the time calibration accuracy of the slave network device, and solving the problem that the slave network device cannot prove the quality of its precise time performance.

[0092] Figure 8 This is a flowchart of an implementation scenario of an embodiment of the present application. Figure 8 As shown, for a pair of master network devices and slave network devices, the method may include the following steps:

[0093] 1) The master network device sends a start detection message to the slave network device through the PTP master interface to notify the slave network device to start calibration accuracy detection.

[0094] In one example, the start detection message is carried in a PTP extended management message. The PTP extended management message adds a newly defined TLV format management data packet named ENABLE_PORT_TEST according to the IEEE1588 protocol to implement the transmission of the start detection message.

[0095] In a specific implementation, for the definition of ENABLE_PORT_TEST, based on the IEEE 1588 protocol, a specified type in the reserved area can be selected, for example, type 4003 in 4003-5FFF to notify the network device to start the detection of time calibration accuracy. The description of the ENABLE_PORT_TEST management data packet is as follows: management identifier name (managementId name): ENABLE_PORT_TEST; management identifier (managementId value): 0x4003; operation type (actions): command (COMMAND); applied to (Applies to): interface (PORT); data field (DataField): empty; other protocol fields of the PTP extended management message refer to the IEEE 1588 protocol.

[0096] 2) Receive a start detection message from the slave network device, activate the OPTP master interface, start entering the master working mode, and send a response message to the calibration accuracy detection message to the master network device.

[0097] In one example, the response message is defined according to the IEEE 1588 protocol, and a TLV format management data packet named MANAGEMENT_ERROR_STATUS may be used to return the response message to the master network device to inform the master network device whether the calibration accuracy detection can be started.

[0098] 3) After receiving the response message, the master network device determines whether detection can be started. If yes, the OPTP slave interface is activated, the slave working mode is entered, and step 4) is executed; otherwise, step 5) is executed to send a stop detection message to the slave network device.

[0099] 4) The master network device interacts with the slave network device through the OPTP protocol, obtains the calibrated precise time through the digital phase-locked loop and sends it to the phase comparator, and compares the calibrated precise time with its own reference precise time through the phase comparator to obtain the time calibration accuracy.

[0100] 5) The master network device stops the OPTP slave interface, notifies the slave network device of the time calibration accuracy, and sends a stop detection message to the slave network device.

[0101] In one example, the stop detection message is carried in the PTP extended management message, which is used to notify the slave network device to stop the OPTP master interface. The PTP extended management message adds a newly defined TLV format management data packet named DISABLE_PORT_TEST in accordance with the IEEE1588 protocol to implement the transmission of the stop detection message.

[0102] In a specific implementation, for the definition of DISABLE_PORT_TEST, based on the IEEE 1588 protocol, a specified type in the reserved area can be selected, for example, type 4004 in 4003-5FFF to notify the slave network device to stop the detection of time calibration accuracy. The description of the DISABLE_PORT_TEST management data packet is as follows: management identifier name (managementId name): DISABLE_PORT_TEST; management identifier (managementId value): 0x4004; operation type (actions): command (COMMAND); applied to (Applies to): interface (PORT); data field (DataField): time calibration deviation, occupying 10 bytes of space, the first 8 bytes are in nanoseconds (ns), the highest bit is used for the sign bit, and the last two bytes are reserved. A positive sign indicates that the phase is delayed compared to the reference, and a negative sign indicates that the phase is advanced compared to the reference.

[0103] 6) After receiving the time calibration accuracy and stop detection message, the slave network device returns a response to the master network device according to the TLV format management data packet named MANAGEMENT_ERROR_STATUS in the IEEE 1588 protocol, and stops the operation of the OPTP master interface of the slave network device.

[0104] In one example, the obtained time calibration accuracy is reported from the network device to the management platform, so that the management platform can issue an alarm or further calibrate the time phase.

[0105] 7) This test is completed.

[0106] Fig. 9 This is a structural diagram of a time calibration accuracy detection system according to an embodiment of the present application. The system includes: a master network device 910 and a slave network device 920 according to an embodiment of the present application, wherein the master network device 910 is connected to the slave network device 920.

[0107] The time calibration accuracy detection system provided in this embodiment is used to implement the time calibration accuracy detection method of the present application. The implementation principle and technical effect of the time calibration accuracy detection system provided in this embodiment are similar to those of the time calibration accuracy detection method of the present application, and will not be repeated here.

[0108] An embodiment of the present application provides a storage medium on which a computer program is stored. When the program is executed by a processor, any method for detecting time calibration accuracy applied to a main network device in the embodiment of the present application is implemented.

[0109] Among them, the time calibration accuracy detection method is applied to the master network device, including: sending a calibration accuracy detection message to the slave network device; obtaining the calibrated precise time sent by the slave network device in response to the calibration accuracy detection message according to the reverse precise time protocol OPTP; comparing the calibrated precise time with its own reference precise time to obtain the time calibration accuracy that matches the calibrated precise time; and sending the time calibration accuracy to the slave network device.

[0110] The above are merely exemplary embodiments of the present application and are not intended to limit the protection scope of the present application.

[0111] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor or other computing device, although the present application is not limited thereto.

[0112] Embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, 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 instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.

[0113] The block diagram of any logic flow in the drawings of the present 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. A computer program may be stored on a memory. The memory may have any type suitable for 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 memory devices and systems (digital versatile discs (DVD) or compact disks (CD)), etc. Computer-readable media may include non-transient storage media. A data processor may be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FGPAs) and a processor based on a multi-core processor architecture.

[0114] By way of exemplary and non-limiting examples, a detailed description of exemplary embodiments of the present application has been provided above. However, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art when considered in conjunction with the accompanying drawings and claims, but will not depart from the scope of the present invention. Therefore, the proper scope of the present invention will be determined according to the claims.

Claims

1. A method for detecting time calibration accuracy, characterized in that: Applicable to main network equipment, including: Sending a calibration accuracy detection message to a slave network device, wherein the calibration accuracy detection message is used to notify the slave network device to start calibration accuracy detection; According to the reverse precise time OPTP protocol message sent by the slave network device, the calibrated precise time sent by the slave network device for the calibration accuracy detection message is obtained, wherein the OPTP protocol message corresponds to the Precision Time Protocol PTP message one-to-one, and the calibrated precise time is obtained after the slave network device calibrates its own precise time according to the synchronous precise time, and the synchronous precise time is calculated according to the PTP message after the slave network device performs PTP message synchronization interaction with the master network device according to the PTP protocol; Comparing the calibrated precise time with its own reference precise time to obtain a time calibration accuracy that matches the calibrated precise time; The time calibration accuracy is sent to the slave network device.

2. The method according to claim 1, characterized in that Acquiring, according to the reverse precise time OPTP protocol message sent by the slave network device, the calibrated precise time sent by the slave network device in response to the calibration accuracy detection message, comprising: Receiving the OPTP protocol message sent from the network device; The calibrated precise time is obtained by performing phase-lock calibration on the OPTP protocol message.

3. The method according to claim 2, characterized in that The precise time domain value in the OPTP protocol message is different from the precise time domain value in the PTP protocol message.

4. The method according to claim 2 or 3, characterized in that: Also includes: Preset the precise time domain value for OPTP protocol messages in advance; If a protocol message is received, it is determined whether the value of the precise time domain of the protocol message is a preset precise time domain value. If so, it is determined that the protocol message is an OPTP protocol message; otherwise, it is determined that the protocol message is a PTP protocol message.

5. A method for detecting time calibration accuracy, characterized in that: Applicable to slave network devices, including: Receiving a calibration accuracy detection message sent by the master network device, wherein the calibration accuracy detection message is used to notify the slave network device to start calibration accuracy detection; According to the OPTP protocol, the calibrated precise time for the calibration accuracy detection message is sent to the master network device, the OPTP protocol message corresponds to the Precision Time Protocol PTP message one-to-one, the calibrated precise time is obtained by the slave network device calibrating its own precise time according to the synchronized precise time, and the synchronized precise time is calculated according to the interacted PTP message after the slave network device performs PTP message synchronization interaction with the master network device according to the PTP protocol; A time calibration accuracy matching the calibrated precise time is received and sent by the primary network device.

6. The method according to claim 5, characterized in that After receiving the time calibration accuracy sent by the master network device and matching the calibrated precise time, the method further includes: The time calibration accuracy is reported to a management platform, so that the management platform issues an alarm or performs time phase calibration according to the time calibration accuracy.

7. A master network device, characterized in that: include: A PTP master interface, used to send a calibration accuracy detection message to a slave network device, wherein the calibration accuracy detection message is used to notify the slave network device to start calibration accuracy detection; At least one processor is configured to obtain the calibrated precise time sent by the slave network device for the calibration accuracy detection message according to the reverse precise time OPTP protocol message sent by the slave network device, wherein the OPTP protocol message corresponds to the Precision Time Protocol PTP message one-to-one, and the calibrated precise time is obtained after the slave network device calibrates its own precise time according to the synchronous precise time, and the synchronous precise time is calculated according to the PTP message after the slave network device performs PTP message synchronization interaction with the master network device according to the PTP protocol; compare the calibrated precise time with its own reference precise time to obtain a time calibration accuracy that matches the calibrated precise time, and send the time calibration accuracy to the PTP master interface; The PTP master interface is also used to send the time calibration accuracy to the slave network device.

8. The master network device according to claim 7, characterized in that: At least one processor includes: An OPTP slave interface, used for receiving an OPTP protocol message sent by the slave network device; A digital phase-locked loop, used to perform phase-lock calibration on the OPTP protocol message to obtain the precise time after calibration; The phase comparator is used to compare the calibrated precise time with its own reference precise time to obtain a time calibration accuracy that matches the calibrated precise time, and send the time calibration accuracy to the PTP main interface.

9. A slave network device, characterized in that: include: A PTP slave interface, used to receive a calibration accuracy detection message sent by a master network device, wherein the calibration accuracy detection message is used to notify the slave network device to start calibration accuracy detection; An OPTP master interface, used for sending the calibrated precise time for the calibration accuracy detection message to the master network device according to the OPTP protocol, wherein the OPTP protocol message corresponds to the Precision Time Protocol (PTP) message one-to-one, and the calibrated precise time is obtained after the slave network device calibrates its own precise time according to the synchronized precise time, and the synchronized precise time is calculated according to the interacted PTP message after the slave network device performs PTP message synchronization interaction with the master network device according to the PTP protocol; The PTP slave interface is also used to receive the time calibration accuracy sent by the master network device and matching the calibrated precise time.

10. A time calibration accuracy detection system, characterized in that: include: The master network device according to claim 8 and the slave network device according to claim 9, wherein the master network device is connected to the slave network device.

11. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method for detecting the time calibration accuracy as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • A clock synchronization method based on an AFDX network

    CN109842456A

  • Methods and systems for estimating frequency synchronization accuracy

    US9673970B1