NTP

Network Time ProtocolApplication layer · OSI 7

Synchronizing computer clocks across the network

Step 1 of 5: Notice a quarter-second drift. Hardware quartz oscillators drift by seconds per week. This laptop's clock is running 0.250 seconds behind true time, so it contacts time.example.net after resolving its IP.
0.0 s / 15.9 s
Your laptop192.168.1.10
RequestResponse

Overview

Quartz crystals inside computers slowly drift, yet certificates, logins, and logs rely on accurate time. measures clock offset and round-trip latency from just one UDP request and reply carrying four timestamps.

Network Time Protocol (RFC 5905) uses 48-byte datagrams over port 123. Over the open internet NTP reaches tens of milliseconds of accuracy (often sub-millisecond on a LAN), adjusting local clocks smoothly.

Key facts

Layer
Application (UDP port 123)
Packet size
48 bytes
Timestamps
T1, T2, T3, T4
Accuracy
Tens of ms online; <1 ms on LAN
Defined in
RFC 5905

Four timestamps aligned the clock

One 48-byte request and reply delivered four timestamps that measured both the 24 ms round-trip network delay and the 250 ms clock error, letting the laptop adjust smoothly.

RFC 5905 NTPv4 4-timestamp calculation over UDP port 123 measured 24.0 ms delay and +250.0 ms offset.

Computed offset
+250.0 ms (clock was slow)
Network RTT
24.0 ms
Time source
Stratum 2 server
Transport
UDP port 123 (48 B)

Try it yourself

Check local NTP synchronization status

View the configured time peer, measured clock offset, and last poll status.

w32tm /query /status