RE: [chrony-users] Understand why system clock is bad even though chrony offsets look fine |
[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]
If you have no control of the server, how do you even know that your time is off and not the server’s time? An application should never crash due to an unexpected timestamp in a received
packet, that’s bad programming. Apart from that, if your machine synchronises itself over the internet, 50us is well within the accuracy that you can achieve. If you really need to compare timestamps with microsec
resolution, both systems should synchronise to the same local NTP source, preferably a GPS receiver. Regards, Frank From: Abhijith Sethuraj <abhijithsethuraj4@xxxxxxxxx>
*EXTERNAL source* > How did you measure that 50us error? Can you use that source of time > for synchronization? Unfortunately, we can't use that as a source. This difference is what an application noticed when it was looking at a timestamp that's there inside a data packet (think of it as tx timestamp from a server that we don't have control over)
and what's obtained from system clock via gettimeofday() right when it received the data packet. The reason why we noticed this was because the timestamp from system clock turned out to be lesser than the tx timestamp, which makes the app crash. The network
delays through switches and servers likely come to around 50us, which is how we measured it. What do you think is a good indication to catch these issues? Should we look at frequency/freq adjustment of system clock? So far we were only relying on offsets from
ref clock, but this issue made us think of time error (root distance) as well. Is there anything else that you would recommend we monitor on our end to catch these issues? Also, if root distance is ~1ms, does that imply that the value of current time that
I get from gettimeofday() essentially has an error of ~1ms or is this just inferring to the error in measurements from source (and that the user-space app need not consider this)? Thanks, Abhijith On Mon, Apr 22, 2024 at 12:05 PM Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
|
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |