You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation only decodes the Transmit Timestamp and adopts it as the time when the NTP request was sent. It does not take into account the transmission latency between the device and the server, which can be important, especially when using Wi-Fi. The NTP protocol provides for that already, so why not do it?
There are 4 timestamps:
the Origin Timestamp (t0) which is taken when the client send the request packet
the Receive Timestamp (t1) which is taken when the server receives the request packet
the Transmit Timestamp (t2) which is taken when the server sends the response packet (t2 - t1 is the server processing time)
the Destination Timestamp (t4) which is taken when the client receives the response packet
The Origin Timestamp should be written in the request packet (bytes 20-28) before sending it and the Destination Timestamp should be measured when processing the response packet. t0 and t4 are taken using the same clock, which is different than the clock for t1 and t2. The transmission time is then:
What we want is the time it took between the sending of the response packet server and its reception by the client. The easiest approximation we can get is T / 2 (supposing it took the same time to send the request between client and server as to send the response between server and client).
The text was updated successfully, but these errors were encountered:
Current implementation only decodes the Transmit Timestamp and adopts it as the time when the NTP request was sent. It does not take into account the transmission latency between the device and the server, which can be important, especially when using Wi-Fi. The NTP protocol provides for that already, so why not do it?
There are 4 timestamps:
t2 - t1
is the server processing time)The Origin Timestamp should be written in the request packet (bytes 20-28) before sending it and the Destination Timestamp should be measured when processing the response packet. t0 and t4 are taken using the same clock, which is different than the clock for t1 and t2. The transmission time is then:
What we want is the time it took between the sending of the response packet server and its reception by the client. The easiest approximation we can get is
T / 2
(supposing it took the same time to send the request between client and server as to send the response between server and client).The text was updated successfully, but these errors were encountered: