Time synchronization method

A technology of time synchronization and time, which is applied in the direction of synchronization device, synchronization error correction, time division multiplexing system, etc., can solve the problems of limiting the actual deployment of time synchronization schemes, and achieve the effect of reducing clock drift and shortening the cycle

CN107888315AActive Publication Date: 2018-04-06TSINGHUA UNIV
3 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2018-04-06

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a time synchronization method. The method includes the following steps: sending an SYN message to a server mode port during a first frame gap and recording a lower part of a sending moment to ensure that the server mode port records the lower part of the moment at which the SYN message is received, and returning an ACK message during a second frame gap, wherein the ACK message includes the lower part of the moment at which the SYN message is received and the lower part of the moment at which the ACK message is returned; receiving the ACK message returned by the server mode port, acquiring the lower part of the moment at which the server mode port receives the SYN message and the lower part of the moment at which the server mode port returns the ACK message accordingto the ACK message, and recording the lower part of the moment at which the ACK message is received; and calculating the error of a local clock and correcting the time of the local clock according tothe lower parts of all moments. According to the time synchronization method provided by the invention, the frame gaps are used as transmission carriers of time synchronization information, and thus the equipment can still achieve the microsecond-level time synchronization accuracy in the case of using only standard clock crystal oscillators.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of time synchronization, and more specifically, to a time synchronization method. Background technique

[0002] In the time-sensitive Ethernet, in order to ensure that each end node cooperates with each other and completes tasks cooperatively, the entire system requires all nodes to have high-precision time synchronization. It is generally believed that time-sensitive Ethernet requires microsecond-level time synchronization accuracy. The current high-precision time synchronization solution based on Ethernet is the Precision Time Synchronization Protocol (English full name PrecisionTime Protocol, PTP for short). PTP exchanges synchronization messages by sending and receiving Ethernet data frames. This synchronization information interaction process will generate additional data packets. In order to control the negative impact on the available bandwidth of the network, the time synchronization period of PTP is...

Examples

Embodiment Construction

[0045] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0046] see figure 1 , is the time synchronization method of the port of the client mode of an embodiment of the present invention, comprises: S1, sends SYN message to the port of server mode during the first frame interval, and records the low order part of the moment of sending SYN message, so that all The port in the server mode records the low-order part of the time when the SYN message is received, and returns an ACK message during the second frame gap, and the ACK message contains the low-order part of the time when the port in the server mode receives the SYN message and returns an ACK The low part of the message time; S2, receiving the ACK message returned by the p...