NTP Time Synchronization: How Computers Stay Accurate
Learn how Network Time Protocol checks and adjusts computer time, why clock drift happens, and when manual time changes are risky.

Computers do not keep perfect time by themselves. Their oscillators run slightly fast or slow, so operating systems use Network Time Protocol, usually called NTP, to compare their clocks with time servers and make corrections.
What NTP Measures
The client sends a request, records when it leaves and returns, and receives timestamps from a server. From those values it estimates both network delay and the difference between its local clock and the server's clock. Multiple samples help reject a slow or inconsistent network path.
Why Time Is Adjusted Gradually
For a small error, systems often slew the clock: they make it run slightly faster or slower until it catches up. That avoids a visible backward jump that could confuse timestamps. A very large error may require a step change, especially during startup.
Hierarchies, Not One Magic Clock
Time servers are arranged in levels called strata. A device close to a reference clock serves other machines, which in turn serve clients. Good configurations use several independent sources so one faulty server does not dominate the result.
What Can Break Synchronization
Blocked UDP traffic, captive portals, an incorrect system date, a bad DNS setting, or an organization policy can prevent sync. If a secure website reports a certificate problem, verify the device time rather than bypassing the warning.
Practical Use
Leave automatic time enabled on ordinary computers. NIST's Internet Time Service notes that common operating systems can periodically synchronize through NTP. For servers, monitoring clock offset is useful because accurate logs and coordinated jobs depend on it.