Preventing the Collision of Requests From Slave Clocks in the Precision Time Protocol (PTP)

The Precision Time Protocol (PTP) distributes a time reference across a network. It specifically addresses demanding environments, where it can reach sub microsecond precision using appropriate technologies. Its scalability is primarily limited by packet delay variations induced by packet collisions. While it is possible to avoid collisions with non-PTP packets using traffic management technologies, collision between PTP packets is an open problem in large systems with critical clock precision requirements. We propose a coordination algorithm that avoids the occurrence of such collisions. It assumes that the master clock, which is the timing reference source, can send a packet in multicast to the slaves: this is not a restrictive hypothesis, since PTP itself takes advantage of this kind of connectivity, and it is also compatible with typical wireless environments. The algorithm operates without introducing additional traffic, it ensures an upper bound to the time between two successive synchronizations of any given slave, it does not alter the structure of the standard PTP messages, it envisions a dynamic number of slaves, it tolerates the replacement of the master with a hot spare in case of failure, and does not rely on specialized hardware. The algorithm has a footprint that does not insist on activities that are already time sensitive, and its operation is mostly concentrated on the master. The algorithm inherits security and fault tolerance limits from PTP: in particular this refers to malicious nodes, and to broken devices that may jam the network.

[1]  Jennifer L. Welch,et al.  Random Walk for Self-Stabilizing Group Communication in Ad Hoc Networks , 2006, IEEE Trans. Mob. Comput..

[2]  Roy Friedman,et al.  RaWMS - Random Walk Based Lightweight Membership Service for Wireless Ad Hoc Networks , 2008, TOCS.

[3]  J. Meditch,et al.  Stability and Optimization of the CSMA and CSMA/CD Channels , 1983, IEEE Trans. Commun..

[4]  Augusto Ciuffoletti Collision avoidance for Delay_req messages in broadcast media , 2009, 2009 International Symposium on Precision Clock Synchronization for Measurement, Control and Communication.

[5]  Kang B. Lee,et al.  Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems , 2004 .

[6]  Kang Lee,et al.  IEEE 1588 standard for a precision clock synchronization protocol for networked measurement and control systems , 2002, 2nd ISA/IEEE Sensors for Industry Conference,.

[7]  László Lovász,et al.  Random Walks on Graphs: A Survey , 1993 .

[8]  Jeff Burch,et al.  Verifying the performance of transparent clocks in PTP systems , 2009, 2009 International Symposium on Precision Clock Synchronization for Measurement, Control and Communication.

[9]  Augusto Ciuffoletti The wandering token: Congestion avoidance of a shared resource , 2010, Future Gener. Comput. Syst..

[10]  Judith Kelner,et al.  Providing Quality of Service for Clock Synchronization , 2004, ICT.

[11]  L. Asz Random Walks on Graphs: a Survey , 2022 .

[12]  Edsger W. Dijkstra,et al.  Self-stabilizing systems in spite of distributed control , 1974, CACM.