Visual RFC.
ALL RFCs / RFC 5905
Read the RFC ↗
RFC 5905 / CHOOSING GOOD TIME

Filter noisy samples

06

Each peer has a recent sample history. Delay ordering and uncertainty tracking reduce the influence of network jitter.

RFC 5905 · § 10EXAMPLE
3 / 3
03
Describe the peer with uncertainty.

The next stage receives more than a single raw clock reading.

Filter noisy samplesEight noisy observations are plotted. The low-delay sample is highlighted, and the selected estimate includes increasing uncertainty as it ages.Choose evidence from a noisy streamIllustrative per-peer samples, not measured dataoffsetsample →12345lowest delay678Sample 5: delay 22 ms · offset 7 msDistance = delay / 2 + dispersionCarry uncertainty with the filtered estimate

Key idea: Filter each source before comparing sources.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
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.

What changed
RFC 1305 association timeout behaviorRFC 5905 §10

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 ↗

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 ↗