Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

NTP (Network Time Protocol)

Direct answer

NTP selects usable time sources and synchronizes the system clock. Read association reach, selected peer and system status separately. PTP domains/grandmaster/clock-role behavior belongs to the separate PTP Topic.

When to use this

Use this Topic for missing NTP replies, rejected sources, unstable synchronization or inconsistent timestamps; separate transport, source validity, clock discipline and consumer formatting.

First 30 seconds

Read association history and selected source, then confirm system synchronization. Correlate route/source, polling interval and offset without changing the clock or authentication.

Operational verification

route/source/UDP123 → valid peer replies → association history → selected source → synchronized system status → stable clock consumers

Failure signatureDevice clock drifts and logs or certificates show wrong times

Log timestamps do not match other devices; certificate validation or authentication fails because of time.

Possible stored cause: The NTP server is unreachable from the configured source, authentication fails, or the server itself is unsynchronised.
Evidence · next step

Inspect associations/peer selection and correlate timestamps in downstream logs.

Continue only after interpreting the current observation.
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 · Cisco IOS / IOS XE · IOS/IOS XE
Key commandntp server <ip>
Scope / prerequisiteUse this Topic for missing NTP replies, rejected sources, unstable synchronization or inconsistent timestamps; separate…
Show · 4Reference · 6
What next?3 suggested next steps
Child topics (this level)4
Catalog command links10
Evidence2
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

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.

show ntp associations detail

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.

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

Log timestamps do not match other devices; certificate validation or authentication fails because of time.

Step 1 First 30 seconds Verify boundary

Immediate answer: Read association history and selected source, then confirm system synchronization. Correlate route/source, polling interval and offset without changing the clock or authentication.

Verification chain: route/source/UDP123 → valid peer replies → association history → selected source → synchronized system status → stable clock consumers

Boundary: A configuration line or a single local display does not show the downstream result. Preserve observations before any intervention.

Step 2 NTP: illustrative reach and controlled outage test Verify boundary

Illustrative interpretation, not captured output:

ObservationWhat to conclude
reach 377Octal history indicates replies for the last eight poll slots; not 377 packets or a synchronization guarantee
reach 0 immediately after association creationNo successful history yet; compare time and polling before diagnosing a lasting outage
Selected association plus synchronized show ntp statusCurrent selection and system synchronization agree; accuracy still needs its own context

Use an isolated test device with an approved time source. Record several samples and configured polling intervals. For a negative test, block only that lab device's server exchange and observe the history age as polls fail. Other available sources and clock holdover can keep the system synchronized for a time; do not predict immediate unsynchronization. Restore the exact filter and confirm replies, selection and system status stabilize again.

Save exact prior server/source/authentication/filter settings. Do not test by changing production clocks or authentication keys. Examples describe expected observations, not an executed lab or a new technical verification.

Step 3 Verification and output interpretation Verify boundary

Use show ntp associations and show ntp status (or the canonical device equivalents) together. Association output should show reachable intended sources, sensible stratum/delay/offset/jitter and a selected synchronization peer. Status output should identify synchronized state, reference source and current stratum. Compare values over time rather than treating one offset sample as a permanent condition. If logs from multiple devices are being correlated, verify each device’s actual synchronized state rather than merely comparing configured NTP server addresses. For authentication, show the association is accepted with the intended key/trust relationship.

Step 4 NTP: no replies, rejected candidate or unstable clock Narrow the fault

1. No usable replies: inspect the configured source/VRF, route, UDP/123 policy, server state and NTP association observations. A low reach immediately after startup is not automatically a persistent fault; compare samples against the polling interval.

2. Replies arrive but no selected source: inspect authentication, access restrictions, server synchronization/stratum and association detail. A rejected candidate is different from an unreachable server.

3. Source selected but system not stably synchronized: inspect show ntp status and time-series offset, delay and dispersion; inspect jitter where the implementation exposes it. Do not combine fields from different times or assume a field absent from this release exists.

4. Clock appears correct but logs disagree: separate underlying UTC synchronization from time-zone/display settings and the timestamps of the consuming system. Lower stratum is hierarchy, not an independent accuracy guarantee.

Do not force the clock, clear associations or disable authentication just to hide the symptom. These interventions can change evidence and affect dependent services. Avoid exposing authentication key material in logs or examples.

Step 5 NTP quick diagnostic branches Narrow the fault

Start by comparing association detail with system status for the same source and polling window. No replies point toward route/source/VRF, UDP policy, peer availability or authentication validity. Replies with no selected source need candidate-validity investigation. Selection with unstable system status needs offset/delay/dispersion observations over time, not a forced clock setting.

When the clock is synchronized but timestamps still differ, inspect the consumer and display timezone. Use the separate observation/recovery checklist for a full collection sequence. Do not repeat the entire checklist at every branch or substitute PTP role/domain checks for NTP state.

Step 6 NTP observation and recovery checklist Narrow the fault

1. Capture show clock detail and the device/time context.

2. Read show ntp associations and supported association detail for source, reach and selection.

3. Read show ntp status for system synchronization; compare several samples and polling intervals.

4. Investigate route/source/VRF, UDP/123, peer validity and authentication without exposing keys.

5. Verify stable UTC synchronization separately from time-zone formatting and downstream log consumers.

Use only the isolated outage/recovery procedure in this Topic for a negative test; do not move production clocks or globally disable authentication.

Evidence references

Evidence · 2 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

other · 1command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Failure signatures

Recognize the symptom, then prove the boundary

Observed symptom → candidate boundary → discriminating check → original-test closure. A signature narrows the search; it never proves root cause by itself.

NTP associations exist but no peer is selected
1 · Observe

Configured/known associations are visible, yet the local clock has no usable selected source.

2 · Candidate boundaries

reachability/reach decay · upstream unsynchronized · authentication · stratum/selection sanity

3 · Discriminate

check reach/selection marker → verify upstream synchronization → compare offset/jitter and authentication state

4 · Proof limit

Association presence does not prove clock synchronization.

Repeat the original failing test after the minimum controlled change before calling recovery verified.
Operational depth

NTP operational boundary

Boundary-first guidance: prove the nearest state before moving outward.

Fast answer

Separate reachability, association, selection and clock discipline. An NTP association alone does not prove synchronized time.

Boundary chain

IP reachability → UDP/123 path → association → candidate selection → stratum/reference → clock discipline

Healthy

A selected peer/reference is reachable and the local clock reports synchronized state with plausible offset/stratum.

Broken

Reachability, authentication, unsynchronized upstream, source-interface and selection issues are isolated independently.

Does not prove

Seeing a peer in the association table does not prove it is selected or that the device clock is synchronized.

Key points

A displayed time, reachable server or reach 377 alone does not prove synchronization. Reach is octal poll history. Compare selected source with system status and offset/delay/dispersion over time. Authentication configuration is not an observed authentication result.

Key checks

Read show clock detail, show ntp associations, supported association detail and show ntp status. Compare polling history, peer selection and system state over time. Inspect source/VRF, UDP/123, authentication and server validity without exposing keys; separate UTC state from display timezone.

ReferenceWhat it is2 sections · depth on demand

What it is

NTP synchronizes device clocks to selected time sources and reports hierarchy through stratum and reference state.

NTP clock synchronization scope

NTP associates with candidate time sources, selects a usable reference and disciplines the system clock. Inspect peer exchange, source selection and system status separately. The displayed local time also includes formatting/time-zone choices that are not NTP selection state.

This Topic covers NTP. PTP grandmaster election, clock roles, domains and hardware timestamping belong in the separate [PTP Topic](topic.php?topic=664&view=deep), not in an NTP verification chain.

ReferenceWhy it matters2 sections · depth on demand

When to use it

Use it to make logs, certificates, AAA records and distributed troubleshooting share trustworthy time.

When to investigate NTP

Use this Topic when NTP replies are missing, a candidate is rejected, no source is selected, system synchronization is unstable or application/log timestamps diverge. Freeze device, source/VRF and time window. Determine whether the first issue is transport, NTP validity/selection, system-clock discipline or a timestamp consumer before changing configuration.

ReferenceHow it works1 section · depth on demand

NTP: observe selection before changing authentication

Scope: Cisco IOS / IOS XE NTP client/server association and system-clock synchronization. PTP grandmaster, domain and hardware timestamping are a different protocol; see [PTP](topic.php?topic=664&view=deep).

ntp authenticate changes configuration. It is not a read-only status command and does not by itself show a peer is authenticated or selected. Read show ntp associations, show ntp associations detail and show ntp status; correlate with show clock detail and sanitized source/VRF/server configuration. Confirm supported fields and units on the deployed release.

Association reachability, peer selection and system synchronization are distinct observations. A plausible local clock or a reachable configured server does not establish synchronization. Authentication requirements, key agreement, access policy and route/source selection must be checked against actual peer state, not inferred from a single configuration line.

Reference: Cisco NTP association/status interpretation.

ReferenceImportant terms & boundaries5 sections · depth on demand

Key operational limits

  • Association does not equal synchronization
  • Lower stratum describes distance from a reference clock, not absolute quality by itself
  • Source interface, VRF, routing, ACL and UDP 123 can affect reachability
  • Authentication validates the configured source; it does not encrypt NTP.

NTP operational boundaries

  • Clock display, association reachability, source selection and system synchronization are separate observations.
  • reach is an octal polling-history field; inspect it with polling interval and elapsed time.
  • Lower stratum is not an absolute accuracy score.
  • Source/VRF, route, UDP/123 policy, authentication and server synchronization affect usable candidates.
  • Inspect offset, delay and dispersion in the command's stated units; jitter visibility depends on the implementation.
  • PTP domain/grandmaster fields are not NTP observations. NTP authentication changes and clock adjustments are interventions, not passive checks.

In depth

NTP on Cisco IOS XE: client, peer and server roles

The Catalyst 9300 administration guide describes the NTP association modes:

ModeCommandBehaviour
Clientntp server <ip>The device polls servers and picks one; the server keeps no client state
Symmetric activentp peer <ip>Both devices poll each other; for mutually redundant servers
Broadcast clientntp broadcast client (interface)Listens without polling; same subnet as the broadcaster
Authoritative serverntp masterServes time without an outside source

The guide warns that ntp master can override valid sources and cause instability when used on several devices. It also notes that Cisco's implementation doesn't provide stratum 1 service.

C9300(config)# ntp authentication-key 1 hmac-sha2-256 <key-string>
C9300(config)# ntp authenticate
C9300(config)# ntp trusted-key 1
C9300(config)# ntp server 10.10.50.5 key 1 prefer
C9300(config)# ntp server 10.10.50.6 key 1
C9300(config)# ntp source Loopback0
C9300(config)# access-list 10 permit 10.10.50.5
C9300(config)# access-list 10 permit 10.10.50.6
C9300(config)# ntp access-group peer 10
C9300# show ntp associations
  address         ref clock       st   when   poll reach  delay  offset   disp
*~10.10.50.5      192.0.2.123      2     41     64   377  0.812  -0.214  1.104
+~10.10.50.6      192.0.2.124      2     17     64   377  0.903   0.318  1.212
 * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
C9300# show ntp status
Clock is synchronized, stratum 3, reference is 10.10.50.5

Documented details

TopicDetail
DefaultsNo associations, authentication off, broadcast off, no access control
Source addressSet by the outgoing interface unless ntp source or the per-server source keyword is used
Access groupspeer, serve, serve-only, query-only with a standard ACL; once any group is configured, only listed access is granted
Authentication algorithmsmd5, cmac-aes-128, hmac-sha1, hmac-sha2-256; the guide doesn't recommend MD5
SelectionA device never synchronises to an unsynchronised source and ignores one far off from the others

Reading show ntp associations

reach 377 (octal) means the last eight polls were answered. * marks the selected source. A low reach value or a missing * means the device isn't synchronising.

Troubleshooting

SymptomCause
Clock is unsynchronizedServer unreachable, ACL blocking UDP 123, or authentication key mismatch
Synchronisation takes longNormal: NTP needs several polls before it trusts a source
Wrong time shown, NTP synchronisedTime zone or summer-time configuration

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.

State model and protocol mechanics

Network Time Protocol exchanges timestamp samples so a client can estimate clock offset and network delay relative to candidate sources. Stratum expresses distance from an authoritative reference clock, not “quality” as a standalone score. A device can maintain multiple associations while selecting one system peer/source to discipline its clock; other associations may remain candidates, falsetickers or unusable depending on reachability and sample quality. Jitter and dispersion describe uncertainty/stability over time. Large clock errors, authentication mismatch or poor network behavior can prevent synchronization even when UDP/123 packets are exchanged. Accurate time is operationally important because logs, certificates, authentication systems and event correlation depend on a consistent timeline.

Limits and common misconceptions

An NTP server replying to ping does not show UDP/123 or NTP selection works. A reachable NTP association does not necessarily mean the local clock is synchronized to it. Lower stratum does not automatically mean lower latency, lower jitter or better administrative trust. Correct timezone display does not show clock synchronization, and an accurate-looking wall clock is weak evidence without synchronization state. NTP can improve temporal consistency but does not replace application-level transaction ordering or monotonic timers. Keep network reachability, NTP association, selected reference and local clock state separate.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Use multiple reliable time sources where appropriate and prefer a clear hierarchy rather than every device independently choosing arbitrary Internet servers. Configure source interfaces/VRFs when management routing requires them, and use authentication where trust requirements call for it. Treat stratum configuration and preferred-source knobs as policy, not a substitute for source quality. Consider the behavior of large time corrections: some systems step the clock while others slew it, and abrupt changes can affect applications. Network devices that serve downstream clients should themselves have a stable upstream reference. Keep timezone/display settings separate from the underlying UTC clock synchronization mechanism.

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 IP Services → Time Synchronization → NTP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc5905.html · confidence 94%
2026-09-13 · vendor docCisco IOS XE 17.x 17.x

Official Cisco vendor documentation reviewed for bounded reference claims: NTP associations, source and synchronization state. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/syst-mgmt/b-system-management.pdf · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
network time protocolNTP stratumshow ntp associations
Embedded reference data

Quick lookup tables

NTP evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show ntp statusremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?route/source → NTP association → candidate selection → synchronized clock → timestamp consumersapplication success

NTP · operational reference

Compact state and interpretation boundaries for fast lookup.

NTP field/stateInterpretation
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

NTP Fast Check

Peer reachability, selected source, stratum og offset.

Quick checks

  • show clock
  • show ntp associations
  • show ntp status
  • Verify source/interface/VRF
  • Check UDP/123 path

Red flags

  • Large offset
  • No selected peer
  • Reachability 0
  • Wrong source/VRF
Confirmation

Confirm action

Continue?