3 ms·
It's worth knowing that NTP's round-trip delay compensation is not at all magic — it works like this (see RFC 5905, section 8): 1. Client records "origin" time
by garethrees 9y ago
It's worth knowing that NTP's round-trip delay compensation is not at all magic — it works like this (see RFC 5905, section 8):
1. Client records "origin" timestamp T1 when its sends a query to the server.
2. Server records "receive" timestamp T2 when it receives the query from the client.
3. Server records "transmit" timestamp T3 when it sends a response back to the client (the response includes T2 and T3).
4. Client records "destination" timestamp T4 when it receives the response from the server.
Round-trip delay = (T4 - T1) - (T3 - T2)
And that's it. You could do this with "date" too!