Pcornel
Networking · Network & Protocols › IP Services & Monitoring

NTP Packet Evidence

Cheat sheet · https://pcornel.dk/topic.php?topic=331

Back to the Topic

Answer

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.

Remember

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.

First checks

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

Commands

show ntp associations
show ntp status

Verify in this order

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

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=331

Confirmation

Confirm action

Continue?