An Enhanced Method for Nanosecond Time Synchronization in IEEE 1588 Precision Time Protocol

Fei Li,Wenyi Liu,Yueyan Qi,Qiang Li,Gaigai Liu
DOI: https://doi.org/10.3390/pr11051328
IF: 3.5
2023-04-26
Processes
Abstract:The performance of time-critical systems depends heavily on time synchronization accuracy. Therefore, it is crucial to have a synchronization method that can achieve high time synchronization accuracy. In this paper, we propose a new underlying transmission architecture and new synchronization messages. On the basis of these, aiming at the time error problem of the slave clock, we propose an enhanced time synchronization method based on new synchronization messages. Furthermore, we evaluate the performance of the enhanced time synchronization method on the OMNeT++ simulator. In addition, we compare the impact of different crystal oscillator accuracies and different crystal oscillator frequencies on time synchronization accuracy, respectively. Simulation results show that the time offset is at most ±1 clock period using the enhanced time synchronization method. We realize the purpose of timing the master clock and the slave clock by counting the period of the clock signal. Therefore, we needed to round down the time count to an integer. This is the reason why −1 and 1 appear at the same time. When the crystal oscillator frequency used is 80 MHz, the system can achieve a time synchronization accuracy of ±12.5 ns; that is, a nanosecond-level time synchronization accuracy can be achieved. With the reduction of the crystal oscillator accuracy of the slave clock, the synchronization accuracy of ±1 clock period can still be achieved. With the increase in the crystal oscillator frequency, the time synchronization accuracy that can be achieved also improves. The method proposed in this paper provides a new way of thinking and has certain guiding significance for improving the time synchronization accuracy of time-critical systems.
engineering, chemical
What problem does this paper attempt to address?
This paper is primarily dedicated to improving the accuracy of time synchronization in time-critical systems, specifically enhancing the time synchronization method of the IEEE 1588 Precision Time Protocol (PTP). The issues and solutions proposed in the paper can be summarized as follows: ### Problems the Paper Attempts to Solve 1. **Time Error Issue**: In time-critical systems, time errors arise due to the instability of local clocks (especially slave clocks) and the influence of external environmental factors. This leads to clock offsets between nodes, affecting system performance. 2. **Path Asymmetry Issue**: Different transmission delays on different paths can cause errors in time offset calculations. 3. **Limitations of Existing Methods**: Existing literature typically improves time synchronization accuracy by compensating for influencing factors without changing the basic synchronization message structure of IEEE 1588 PTP. This paper attempts to approach the problem from a new perspective. ### Solutions 1. **New Transmission Architecture**: A new underlying transmission architecture is proposed, which does not rely on the Ethernet frame format. Instead, it designs a shorter and more efficient frame structure (10 bytes in length) to reduce bandwidth waste and shorten transmission time. 2. **New Synchronization Messages**: Based on the new transmission architecture, three new types of synchronization messages (A1, 51, and A2 messages) are defined, which can achieve time synchronization more efficiently. 3. **Enhanced Time Synchronization Method**: To address the time error issue of slave clocks, an enhanced time synchronization method based on the new synchronization messages is proposed. This method can achieve time synchronization with nanosecond-level accuracy. Through the above improvements, this study not only reduces the transmission time of synchronization messages and increases bandwidth utilization but also significantly enhances the synchronization accuracy of time-critical systems. Experimental results show that, in the best case, this method can achieve a time synchronization accuracy of ±12.5 nanoseconds. Additionally, the paper analyzes the impact of different crystal oscillator accuracies and frequencies on time synchronization accuracy.