|
2 | 2 | title: "PTP Time Synchronization" |
3 | 3 | author: troglobit |
4 | 4 | date: 2026-04-07 10:00:00 +0200 |
| 5 | +last_modified_at: 2026-09-14 12:00:00 +0100 |
5 | 6 | categories: [examples] |
6 | 7 | tags: [ptp, ieee1588, gptp, timing, cli, marvell] |
| 8 | +image: |
| 9 | + path: /assets/img/ptp-topology.svg |
| 10 | + alt: A grandmaster and a time-receiver synchronised over PTP on eth0 |
| 11 | + show_in_post: false |
7 | 12 | --- |
8 | 13 |
|
9 | 14 | The Precision Time Protocol (PTP, IEEE 1588) synchronizes clocks across a |
@@ -67,8 +72,14 @@ to verify before committing to a setup. |
67 | 72 |
|
68 | 73 | ### Ordinary Clock — Time-Receiver |
69 | 74 |
|
70 | | -The simplest setup: one device tracks time from another. Configure the |
71 | | -**time-receiver** first. |
| 75 | +The simplest setup: one device tracks time from another. |
| 76 | + |
| 77 | +{: #fig1 width="700" } |
| 78 | +_**Figure 1**: Two ordinary clocks, back to back on `eth0`. The |
| 79 | +grandmaster wins the election on `priority1`, the receiver is pinned |
| 80 | +with `time-receiver-only`._ |
| 81 | + |
| 82 | +Configure the **time-receiver** first. |
72 | 83 |
|
73 | 84 | ```console |
74 | 85 | admin@receiver:/> configure |
@@ -114,6 +125,7 @@ PTP Instance 0 Ordinary Clock · domain 0 |
114 | 125 | Clock class : cc-time-receiver-only |
115 | 126 | GM clock class : cc-primary-sync |
116 | 127 | Time source : internal-oscillator |
| 128 | + Mode : time-receiver only |
117 | 129 | PTP timescale : yes |
118 | 130 | UTC offset : 37 s |
119 | 131 | Time traceable : yes |
|
0 commit comments