Addresses and clocks
NTP
Keeping clocks right by asking other clocks, in a hierarchy of strata from a reference clock down.
NTP (Network Time Protocol) keeps a computer's clock right by asking other clocks. A client sends a UDP packet to port 123 and, from four timestamps, computes its offset from the server and the round-trip delay. A server with a reference clock is stratum 1, a server following it stratum 2. A client asks several servers and outvotes a falseticker. A wrong clock breaks TLS certificates, one-time codes and Kerberos.
Read next
- TLS and certificates Encryption plus proof of identity: the server shows a certificate for the name, signed by a trusted authority.
- UDP Independent datagrams with ports and nothing else: no connection, no acknowledgement, no retries.
- PTP Sub-microsecond time sync on a LAN, timestamping packets as they cross the wire rather than when software reads them.
- NTS Authenticating an NTP server over TLS so a spoofed or man-in-the-middle time source is refused.