Packets & sanity checks
05Packet fields describe mode, version, stratum, quality, and timestamps. The peer process rejects unusable or mismatched data.
A timestamp mismatch prevents this packet from becoming a clock update.
Key idea: Check packet context before accepting timing evidence.
Rules & examples
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.
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
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.