Hello, everyone!
Today, I'd like to share with you some information about IEEE 1588v2.
Concepts of IEEE 1588v2
The Precision Time Protocol (PTP), also called 1588, is a standard defined by the Institute of Electrical and Electronics Engineers (IEEE) for the Precision Clock Synchronization Protocol for Networked Measurement and Control Systems.
IEEE 1588v2 is a time synchronization protocol. IEEE 1588v2 ensures high-precision time synchronization between devices and is also used in clock synchronization between devices.
A physical network can be logically divided into multiple clock domains. In each clock domain, there is synchronized time, with which all devices in the domain are synchronized. The synchronized time of one clock domain is independent of that of another clock domain.
IEEE 1588v2 Clock Synchronization Mechanism
In an IEEE 1588v2 system, all clocks are organized based on the master/slave synchronization hierarchy, with the grandmaster clock at the top of the hierarchy. Clock synchronization is implemented by exchanging IEEE 1588v2 packets. The slave clock calculates its offset and delay compared with the master clock based on the timestamp information carried in the IEEE 1588v2 packet and then synchronizes its local clock with the master clock.
The following shows the IEEE 1588v2 synchronization principle:

T1: Indicates the time when the master clock sends a synchronization packet.
T2: Indicates the time when the slave clock receives the synchronization packet.
T3: Indicates the time when the slave clock sends a request packet.
T4: Indicates the time when the master clock receives a request packet.
After receiving request packets, the master clock returns a response that carries T4. In this manner, the slave clock obtains T1, T2, T3, and T4 from which the offset and delay between the master and slave clocks can be derived using the following formulas:
T2-T1=Delay-Offset
T4-T3=Delay+Offset
Offset=[(T4-T3)-(T2-T1)]/2
Delay=[(T4-T3)+(T2-T1)]/2
The slave clock synchronizes its local clock with the master clock based on the delay derived.
That's all I want to analyze.
Welcome you to discuss and leave a message, thank you!


