NTP & Clock Synchronization
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Comparing timestamps across machines requires a shared clock, and network delay makes that comparison inexact. NTP turns a sequence of timestamped packets into an offset and delay estimate.
On the wire
An NTP client sends a packet with its transmit timestamp, and the server returns origin, receive, and transmit timestamps in the reply. The client computes offset and round-trip delay from the four timestamps, then disciplines its local clock with a filtered, slewed adjustment.
When it breaks
Asymmetric routes bias the delay estimate and shift the computed offset, so the clock drifts from true time despite successful queries. A firewall blocking UDP 123 leaves the clock unsynchronized, which breaks certificate validation and log ordering.
NTP clock estimate
Advance the event timeline to see RTT samples, duplicate ACKs and retransmission behavior.
SRTT is updated with exponential weighting
Caps bytes in flight regardless of congestion window
t1=0, t2=40, t3=45, t4=85 ms → offset 0.0 ms, delay 80 ms.