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.

Related RFCs and changes

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

DIAGRAM§ 7.3 ↗
RFC 5905 · § 7.3EXAMPLE
4 / 4
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 exchangeIllustrative NTP header and saved stateLI / VN / ModeStratumPollPrecisionRoot delay / dispersion / reference IDOrigin timestamp: T1Receive timestamp: T2Transmit timestamp: T3Saved request statelast transmit = T1origin ≠ savedDISCARDDiscard a response with a mismatched origin
04
Reject an unrelated reply.

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

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

Check packet context before accepting timing evidence.

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

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.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. A hierarchy of clocks
  2. Modes & associations
  3. Four timestamps
  4. Offset & round-trip delay
  5. Packets & sanity checks
  6. Filter noisy samples
  7. Select, cluster, combine
  8. Discipline & poll control
  9. Eras, leap indicators & KoD
  10. Authentication & later updates

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 ↗