Use it when a device reaches its NTP server and still does not synchronise, and to read show ntp associations.
NTP Packet Evidence
An NTP packet is 48 bytes: four timestamps from which the client computes its clock offset and the path delay, plus the server's standing — leap indicator, stratum and reference ID.
1. show ntp associations — what is reach for each server?
2. Reach 0 → no replies: UDP 123, routing, or the source address.
3. Reach 377 but no * → the server reports stratum 16 or is marked x (disagrees with the others).
4. Just configured → wait several minutes.
5. One server only → configure three or more.
request (mode 3) sent to UDP 123 → reply (mode 4) returns → server synchronised and at a lower stratum → several consistent exchanges → server selected → clock synchronised
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ntp statusVerification & 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 Verification workflow Verify boundary
show ntp status
show ntp associations
show ntp associations detail
debug ntp packet
show ntp status says whether the clock is synchronised, the stratum, the reference and the current offset. The associations table lists each server with its reference ID, stratum, the time since the last reply, the poll interval, a reach value, delay and offset. The marks in front show the selection: * the chosen server, + a candidate, ~ configured, x a false ticker. Reach is an octal record of the last eight attempts — 377 means all eight were answered, 0 none. The detail view adds the header fields received from each server.
In a capture, filter on ntp. Confirm that each mode 3 request is followed by a mode 4 reply, and read the reply's leap indicator, stratum and reference ID.
Known-good: one server marked *, reach at 377, a small and steady offset, and status "synchronized".
Step 2 Failure isolation workflow Narrow the fault
- Reach is 0. No replies arrive: UDP 123 is blocked, the server is unreachable, or the request leaves from an address the server does not accept.
- Replies arrive, but the server is never selected. Its stratum is 16 or its leap indicator 3 — the server itself is unsynchronised.
- A server is marked
x. Its time disagrees with the others; check that server, or the path to it. - Reach climbs and falls back. Intermittent packet loss on the path.
- The offset is steady but the clock is visibly wrong by a fixed amount. An asymmetric path, or a timezone setting mistaken for a clock error.
- The reply's reference ID reads RATE or DENY. The server is refusing: the client asks too often or is not permitted.
- Still unsynchronised minutes after configuration. Normal at first; if it persists, the initial offset may be too large — set the clock by hand and let NTP take over.
- Only one server is configured and it is wrong. With a single source the client cannot detect that; configure three or more.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A client refuses a server that is itself unsynchronised (leap indicator 3, stratum 16) or whose time disagrees with the others. In show ntp associations, * marks the chosen server and reach 377 means the last eight polls were answered. Synchronising takes minutes.
show ntp status— synchronised or not, stratum, reference, offset.show ntp associations— each server: reference, stratum, reach, delay, offset; marks*,+,~,x.show ntp associations detail— the header fields received.- Capture filter
ntp— mode 3 requests and mode 4 replies.
ReferenceWhat it is1 section · depth on demand
Mental model
An NTP packet is 48 bytes. It carries four timestamps, from which a client works out how far its clock is from the server's and how long the packets took, together with the server's own standing: how close it is to a reference clock and whether it is synchronised at all.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Reaching an NTP server is not the same as synchronising with it. A client deliberately refuses a server that declares itself unsynchronised or whose answers are inconsistent, and the reason is visible in the packet's header fields. Those fields are also what show ntp associations summarises.
ReferenceHow it works1 section · depth on demand
How it works
| Field | Meaning |
|---|---|
| Leap indicator | 0 normally; 3 means the sender's clock is not synchronised |
| Version | 3 or 4 |
| Mode | 3 = client request, 4 = server reply; 1 and 2 = symmetric peers; 5 = broadcast |
| Stratum | Distance from a reference clock: 1 = directly attached, 2–15 = that many steps away; 0 or 16 = unsynchronised or a special message |
| Poll | The interval between requests, as a power of two in seconds |
| Root delay, root dispersion | Total delay and estimated error back to the reference clock |
| Reference ID | For stratum 1, a short code naming the clock source (such as GPS); otherwise the upstream server. In a refusal, a code such as RATE or DENY |
| Reference timestamp | When the sender's clock was last set |
| Origin timestamp (T1) | When the client sent the request |
| Receive timestamp (T2) | When the server received it |
| Transmit timestamp (T3) | When the server sent the reply |
The client notes the arrival time of the reply itself (T4).
The calculation.
- Round-trip delay = (T4 − T1) − (T3 − T2)
- Clock offset = ((T2 − T1) + (T3 − T4)) ÷ 2
The offset formula assumes the packet takes equally long in both directions. If the path is asymmetric, half the difference appears as an error in the clock.
Why a reachable server may be rejected.
- Its leap indicator is 3 or its stratum 16: it is not synchronised itself.
- Its stratum is not lower than what the client could offer — a client does not follow a server that is further from the source than itself.
- Its time disagrees with the majority of the other servers; it is discarded as a false ticker.
- Root delay or dispersion is too large.
Pace. A client starts by asking every 64 seconds and lengthens the interval up to 1024 seconds as it stabilises. It needs several good exchanges before it selects a server, so synchronisation takes minutes. A very large initial offset is not corrected gradually; the clock has to be set approximately right first.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
NTP packet evidence
An NTP packet carries the fields a client needs to judge both the time and the server's quality. RFC 5905 defines the important ones:
- Leap indicator: 3 means the clock is unsynchronised.
- Mode: client, server, symmetric or broadcast.
- Stratum: 0 for kiss-of-death packets, 1 for a primary server, 2–15 for secondary servers, 16 for unsynchronised.
- Poll interval: as a power of two, between 16 s and 36 h.
- Root delay and root dispersion: the server's distance from its reference.
- Reference ID and four timestamps: from these the client calculates offset and delay.
The packet travels over UDP port 123.
Packet fields
| Field | Meaning | What to look for |
|---|---|---|
| LI | Leap indicator | 3 = unsynchronised server |
| VN | Version | 4 for NTPv4 (3 is common too) |
| Mode | 3 = client, 4 = server, 1/2 = symmetric, 5 = broadcast | A request with mode 3, a reply with mode 4 |
| Stratum | Distance from the reference clock | 16 = unusable; 0 = kiss code in the reference ID |
| Poll | log2 seconds | 6 = 64 s |
| Precision | log2 seconds | Clock resolution |
| Root delay / dispersion | Accuracy budget | Large values = poor source |
| Reference ID | Upstream server, or a code (GPS, PPS, DENY, RATE) | Kiss codes |
| Timestamps T1–T4 | Origin, receive, transmit, destination | Offset and delay calculation |
Offset and delay from the timestamps
| Quantity | Formula |
|---|---|
| Offset θ | ((T2 − T1) + (T3 − T4)) / 2 |
| Delay δ | (T4 − T1) − (T3 − T2) |
Here T1 is the client's send time, T2 the server's receive time, T3 the server's send time and T4 the client's receive time.
host$ sudo tcpdump -ni eth0 -v -c 2 udp port 123
12:01:00.000 IP 10.255.0.1.123 > 10.99.0.10.123: NTPv4, Client, length 48
12:01:00.002 IP 10.99.0.10.123 > 10.255.0.1.123: NTPv4, Server, length 48
Leap indicator: (0), Stratum 2 (secondary reference), poll 6 (64s), precision -23
Root Delay: 0.001205, Root dispersion: 0.010436, Reference-ID: 192.0.2.123
host$ ntpdate -q 10.99.0.10
host$ chronyc sources -v
R1# show ntp associations detail | include stratum|reach|root|offset
Kiss-of-death
Stratum 0 in a reply, with a reference ID such as RATE or DENY, is a kiss code. RATE asks the client to poll less often. DENY and RSTR tell it to stop using the server. A client that ignores them may be blocked by the server's operator.
Documented example, not captured output.
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 Network & Protocols → NTP Packet Evidence. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5905.html · confidence 94%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.