Use NTP for logs, certificates and authentication on every device; use PTP where applications need precise timing, and check both when timestamps disagree.
NTP & PTP
NTP synchronises device clocks to within milliseconds over a routed network; PTP (IEEE 1588) synchronises to sub-microsecond accuracy using hardware timestamps on every hop, for industrial, broadcast and financial networks.
1. show ntp status — synchronised? Stratum below 16?
2. Not synchronised → show ntp associations: server reachable? Authentication keys match?
3. Offset large → wrong time zone or a bad source.
4. PTP: show ptp parent — expected grandmaster? show ptp port — ports in slave/master as designed?
5. Every hop PTP-aware?
time source reachable → authenticated → client selects the best source → clock synchronised (NTP: ms, PTP: sub-µs with hardware timestamps on every hop) → timestamps consistent across devices
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ntp associationsShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
How to read the output
show ntp associationsLook first: selection marker, peer, stratum, reach, delay/offset/jitter
Healthy: A suitable peer is selected and reach/offset are plausible.
Warning: No selected peer, reach decay, high offset or unsynchronized upstream.
Does not prove: Association presence alone does not prove local clock synchronization.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Commands & verification Verify boundary
show ntp associations— Inspect NTP peers and selection.
Step 2 Common mistakes Narrow the fault
- Using NTP where sub-microsecond accuracy is required (use PTP).
- One time source only.
Step 3 Evidence-first troubleshooting Narrow the fault
Verify source reachability, selected peer/master, stratum/clock state, offset/jitter and authentication where used. A reachable NTP server is not evidence that the local device selected it or that all devices share consistent time.
NTP: use several sources, authenticate them, and set ntp source. Stratum 16 means unsynchronised. PTP needs supporting hardware on every switch on the path (boundary or transparent clocks); a single non-PTP hop ruins accuracy.
show ntp associations— NTP servers, the selected one (*), offset and reachability.show ntp status— synchronised, stratum, offset.show clock detail— time and its source.show ptp clock/show ptp parent/show ptp port— PTP role, grandmaster and port states (supported platforms).
ReferenceWhat it is1 section · depth on demand
What it is
Interpret time synchronization configuration and operational differences between NTP and precision-time workflows such as PTP.
ReferenceHow it works1 section · depth on demand
Mechanism, scope & boundaries
Time synchronization provides a common temporal reference for logs, security and distributed operations. NTP exchanges time with selected peers/sources and continuously disciplines the local clock; PTP can provide tighter precision in designs that support timestamping and a suitable clock hierarchy.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Time synchronisation: NTP and where PTP fits
NTP is the general-purpose way to keep network clocks aligned, accurate to milliseconds over normal networks. RFC 5905 defines NTPv4 on UDP port 123. It has client/server, symmetric and broadcast modes, and organises servers by stratum: 1 is a primary server connected to a reference clock, 2–15 are secondary servers, and 16 means unsynchronised. Clients poll at intervals between 16 seconds and 36 hours. They measure offset, delay, dispersion and jitter, and use selection algorithms to discard "falsetickers" and keep the "truechimers".
NTP compared with PTP
| NTP (RFC 5905) | PTP (IEEE 1588) | |
|---|---|---|
| Typical accuracy | Milliseconds | Sub-microsecond with hardware support |
| Timestamping | Software, in the host | Hardware, in the NIC or switch |
| Network support | Works across any IP network | Best with PTP-aware switches (boundary or transparent clocks) |
| Use cases | Logs, AAA, certificates, routing protocols | Industrial control, broadcast media, mobile fronthaul, finance |
NTP values and their meaning (RFC 5905)
| Value | Meaning |
|---|---|
| Stratum 16 | Not synchronised |
| Leap indicator 3 | Clock unsynchronised |
| Kiss code DENY / RSTR | Stop sending to this server |
| Kiss code RATE | Poll less often |
| Root distance above 1 s (MAXDIST) | Too inaccurate to use |
R1(config)# ntp server 10.99.0.10 prefer
R1(config)# ntp server 10.99.0.11
R1(config)# ntp source Loopback0
R1(config)# ntp authentication-key 1 hmac-sha2-256 <key-string>
R1(config)# ntp trusted-key 1
R1(config)# ntp authenticate
R1# show ntp status | include synchronized|stratum|offset
Clock is synchronized, stratum 3, reference is 10.99.0.10
R1# show ntp associations
SW1(config)# ptp mode e2etransparent
SW1# show ptp clock
Design
| Practice | Reason |
|---|---|
| At least three upstream servers on core devices | The selection algorithm can outvote one bad clock |
| Authenticate NTP | Prevent forged time |
| Use a loopback source | Stable ACLs and server configuration |
| PTP only where applications need it | PTP needs end-to-end support to deliver its accuracy |
The PTP rows above are general knowledge about IEEE 1588. RFC 5905 only covers NTP.
Documented example, not captured output.
Quick reference
NTP and PTP solve the same problem — giving every device the same time — at very different accuracy. NTP works over normal IP networks with software timestamps and reaches milliseconds, which is enough for logs, certificates and authentication. PTP uses hardware timestamps and network devices that take part in the protocol to reach sub-microsecond accuracy, which media production, financial trading, mobile networks and industrial control require.
NTP design points:
- Use at least three or four sources, so a faulty one can be outvoted.
- Stratum indicates distance from a reference clock; it is not a quality score on its own.
- Authenticate NTP between internal servers and devices so time cannot be spoofed.
ntp authenticate
ntp authentication-key 1 hmac-sha2-256 <key>
ntp trusted-key 1
ntp server 10.0.0.123 key 1 prefer
ntp server 10.0.0.124 key 1
show ntp associations
show ntp status
A device that is not synchronised shows unsynchronized in show ntp status; certificate validation and log correlation fail long before anyone notices the clock drift.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Infrastructure → NTP & PTP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5905.html · confidence 94%Deep reference
Exam focus
Exam focus
Use the stored official objective wording as the scope boundary:
- ENCOR-3.3.a — Interpret NTP and PTP configurations. Interpret network time protocol configurations.
Study the action verb carefully: describe/explain requires a different depth than configure/verify, interpret or troubleshoot. Pcornel should not infer broader exam scope than these stored objectives.
Additional depth
NTP vs PTP
NTP provides general-purpose clock synchronization across IP networks and is commonly sufficient for logs, AAA and operational correlation. PTP is designed for much tighter time precision and can use hardware timestamping/clock roles in supported environments. For ENCOR, interpret configuration/role intent and know why precise timing matters rather than treating the protocols as interchangeable.