Visual RFC.
ALL RFCs / RFC 5905
Read the RFC ↗
RFC 5905 / MEASURING THE NETWORK

Packets & sanity checks

05

Packet fields describe mode, version, stratum, quality, and timestamps. The peer process rejects unusable or mismatched data.

RFC 5905 · § 7.3EXAMPLE
4 / 4
04
Reject an unrelated reply.

A timestamp mismatch prevents this packet from becoming a clock update.

Packets & sanity checksAn NTP packet is broken into fields, then the origin timestamp is compared to saved request state; a mismatched reply is explicitly discarded.A reply must match its exchangeSeparate invalid reply · saved request snapshotLI / VN / ModeStratumPollPrecisionRoot delay / dispersion / reference IDOrigin timestamp: T_otherReceive timestamp: T2Transmit timestamp: T3Saved request statelast transmit = T1T_other ≠ T1DISCARDDiscard a response with a mismatched origin

Key idea: Check packet context before accepting timing evidence.

Terms

Look up a term in the glossary ↗

Rules & examples
  • The origin timestamp must correspond to the request state for the exchange.
  • The on-wire checks detect duplicate, replayed, and bogus packets using timestamp state.
  • Mode, synchronization state, quality bounds, and any configured authentication are part of acceptance processing.

A checksum detects accidental corruption, not a malicious sender. Timestamp correlation also does not replace cryptographic authentication against an attacker able to observe or modify traffic.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

Two clocks may disagree.

A device compares timestamps with another clock. Network delay makes that comparison imperfect. The drawing separates the clock reading from the trip the message takes.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 5905

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗