NTP: How the Internet Knows What Time it Is
Published: April 5, 2026 | Category: Engineering Standards
Every smartphone, laptop, and server in the world needs to stay in sync. Without a shared sense of time, files would have incorrect timestamps, security certificates would fail, and encrypted communication would break. The solution is Network Time Protocol (NTP).
The Invention of David Mills
NTP was first implemented in 1985 by David L. Mills at the University of Delaware. It is one of the oldest internet protocols still in active use. Mills designed it to overcome the inherent "jitter" and lag of the internet, allowing computers to reach a consensus on the time even when they are thousands of miles apart.
The Stratum System
NTP uses a hierarchical "stratum" system to distribute time:
- Stratum 0: These are high-precision timekeeping devices, such as atomic clocks, GPS receivers, or radio clocks. They are not connected to the network directly.
- Stratum 1: Computers directly connected to Stratum 0 devices. These are your primary time servers.
- Stratum 2: Servers that receive time from Stratum 1 servers. Most consumer-facing time servers (like `time.google.com`) are Stratum 2.
The Math of the Round-Trip
How does NTP account for the time it takes a packet to travel? It uses a clever four-timestamp method. By recording when a request was sent, when it was received by the server, when the server responded, and when the response was finally received, NTP can calculate the exact "round-trip delay" and adjust the local clock accordingly.
Leap Seconds and Smearing
When a leap second occurs, some NTP servers "smear" the extra second over the course of the day (slowly adjusting the clock by fractions of a second) to prevent systems from crashing or repeating a second.
Conclusion
NTP is the oxygen of the internet. It is a silent, constant process that ensures our digital reality remains unified. On the Epoch Clock, the number you see is only accurate because your computer—or the server hosting this page—is talking to an NTP server right now.