Re: [chrony-users] Root delay and Root dispersion values in `chronyc ntpdata' |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Root delay and Root dispersion values in `chronyc ntpdata'
- From: Chris Perl <cperl@xxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2017 09:28:40 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=zM/1zF6LkLgnhestkBGbfcqWKLsot26DAmNySnxFvMo=; b=Epx6K3r0SB5xp8vTo4uoYEf0Y6qqGOOLp2+vA0vD0K4zOEU8kj5wotHjdER2WsFQ4n aYv6I2wnZdcbDS7MJkjvDuXh4hILGiXQi+IdjDsOG1/cWVny78WecTCeEmg8UajffNRO 41ttQ+EACGwyyygOoyxckLBfBM80Ko9Izu7dM=
On Mon, Jun 26, 2017 at 4:37 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> The root delay and dispersion fields printed by the ntpdata command
> are the values from the received packet. They should be the same as
> printed by tcpdump. Can you post tcpdump -v -x output?
I guess I must have confused myself somehow. Looking at tcpdump again
does indeed show that the values coming from the server to the client
are 15us for both "Root delay" and "Root dispersion."
> The reason why they are always 15 microseconds is that the fields have
> a 32-bit fixed-point format with ~15 microsecond resolution and
> chronyd as a server rounds them up. So, if it calculates its delay and
> dispersion as 1 microsecond, they will still be rounded to 15
> microseconds. It's a limitation of the NTPv4 protocol. I'd like to
> improve this in NTPv5 when the NTP WG starts working on a new version.
>
> If you wanted to get a more accurate root distance on the client, you
> could set the delay of the SHM refclock on the server to 0 and add
> half of the delay to the precision instead. I think it might have a
> small effect on the timekeeping performance though.
That is very helpful. Thanks!
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.