Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

NTP & PTP

Direct answer

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.

When to use this

Use NTP for logs, certificates and authentication on every device; use PTP where applications need precise timing, and check both when timestamps disagree.

First 30 seconds

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?

Operational verification

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Key commandshow ntp associations
Scope / prerequisiteUse NTP for logs, certificates and authentication on every device; use PTP where applications need precise timing, and …
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How to read the output

show ntp associations

Look 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.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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 accuracyMillisecondsSub-microsecond with hardware support
TimestampingSoftware, in the hostHardware, in the NIC or switch
Network supportWorks across any IP networkBest with PTP-aware switches (boundary or transparent clocks)
Use casesLogs, AAA, certificates, routing protocolsIndustrial control, broadcast media, mobile fronthaul, finance

NTP values and their meaning (RFC 5905)

ValueMeaning
Stratum 16Not synchronised
Leap indicator 3Clock unsynchronised
Kiss code DENY / RSTRStop sending to this server
Kiss code RATEPoll 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

PracticeReason
At least three upstream servers on core devicesThe selection algorithm can outvote one bad clock
Authenticate NTPPrevent forged time
Use a loopback sourceStable ACLs and server configuration
PTP only where applications need itPTP 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 5905

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%
Depth when you need it

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.

Confirmation

Confirm action

Continue?