You hit send, and a packet races across the internet in milliseconds. Somewhere along the way it picks up a timestamp. That timestamp is only useful if the two computers involved — sender and receiver — agree on what time it is.
They almost certainly don't. Every crystal oscillator runs at a slightly different speed, so clocks drift from the moment they are set. Leave a computer alone for a day and its clock may be off by seconds; leave it for a year and the error compounds to minutes. Distributed systems that use stale timestamps get confused: databases log events in the wrong order, security certificates appear expired before they are, financial trades arrive seemingly before they were placed.
NTP — the Network Time Protocol, designed by David L. Mills and first published as RFC 958 in 1985 — is how the internet fixes this. It is a layered hierarchy of time servers (called strata) that broadcast corrections derived ultimately from atomic clocks, and a clever measurement technique that strips network jitter out of the answer. The result: your laptop's clock is usually within a few milliseconds of true time, even though every packet it sends takes a different path and arrives after a different delay.
Comments
Loading comments...