Filter noisy samples
06Each peer has a recent sample history. Delay ordering and uncertainty tracking reduce the influence of network jitter.
The next stage receives more than a single raw clock reading.
Key idea: Filter each source before comparing sources.
Rules & examples
Filter each source before comparing sources.
- The filter retains the most recent sample tuples in an eight-stage history.
- Candidate samples are ordered by increasing delay and checked for freshness.
- Dispersion grows as measurements age; synchronization distance includes half the delay plus dispersion.
In NTPv4 an old association becomes unsuitable when its growing distance exceeds the threshold, rather than signaling timeout by rewriting its last stratum and leap fields.
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.
NTPv4 retains the last packet’s stratum and leap state. Aging uncertainty increases synchronization distance until the association is no longer fit for synchronization.
Read the updated RFC section ↗