From these four timestamps the system can calculate two values:
- The "Delay", the time that was needed to transfer the packet in the network, and
- the "Offset", the time difference of the two computer clocks.
These values are calculated as follows:
| Offset = |
( t2 - t1 ) + ( t3 - t4 ) ----------------- 2 |
| Delay = |
( t4 - t1 ) - ( t2 - t3 ) |
Here you can see that NTP averages the Delay because it assumes that the trip of the packet is the same in both directions,
that means differences influence the Offset as an error.
In local networks the round-trip delay is only a small part of the offset and therefor the offset calculation is already precise.
In bigger networks the offsets and delays are filtered more often, to compensate the delay variations.
The offset is calculated from the packet with the smallest delay out of the last eight packets.
Additionally an other value is calculated from the same packets:
The "Dispersion" value,
an averaged value of the offset deviation from the eight last data packets to the actual offset.
The offsets with a smaller delay are weighted more.