This is an old revision of the document!
Here’s the same PTP explanation formatted in proper DokuWiki ASCII-style markup:
```
Precision Time Protocol (PTP), defined in IEEE 1588, delivers sub-microsecond and even nanosecond-level time synchronization across a network. Compared to NTP, which typically provides millisecond-level accuracy, PTP is hardware-assisted and deterministic.
If you're familiar with NTP, think of PTP as a high-precision, hardware-timestamped evolution designed for:
NTP uses software timestamps and is vulnerable to OS and network delays. This leads to variability and drift. Accuracy is typically 1–50 ms, which is insufficient for ultra-low-latency applications.
PTP solves this by:
With these, the slave computes offset:
Offset = ((T2 - T1) - (T4 - T3)) / 2
Where T1/T2 are timestamps from GM and T3/T4 from the slave.
| Feature | NTP | PTP (IEEE 1588v2) |
|---|---|---|
| Accuracy | ~10–50 ms | ~100 ns (with HW TS) |
| Timestamping | Software (OS layer) | Hardware (NIC/ASIC) |
| Path Compensation | Assumed symmetric | Explicit measurement |
| Use Cases | IT/general syncing | Trading, 5G, SCADA |
| HW Support Needed | No | Yes (for full accuracy) |
PTP brings deterministic, hardware-assisted timing into network infrastructure. In HFT, telecom, or any system relying on precise time, it's essential. Think of PTP not as “better NTP,” but as a protocol designed for a completely different class of use cases — where every nanosecond counts. ```
Let me know if you'd like this added to your notes or exported as a `.txt` or `.pdf` file.