Date: Thu, 27 Feb 2020 06:43:29 +1100 From: Peter Jeremy <peter@rulingia.com> To: Dewayne Geraghty <dewaynegeraghty@gmail.com> Cc: freebsd-stable stable <freebsd-stable@freebsd.org> Subject: Re: ntp problems stratum 2 to 14? Message-ID: <20200226194329.GA85186@server.rulingia.com> In-Reply-To: <CAGnMC6q2V6tfA%2BbkSXVgTq1poaLgrkv4Hd=R6fNBAZASUZPu4A@mail.gmail.com> References: <CAGnMC6q2V6tfA%2BbkSXVgTq1poaLgrkv4Hd=R6fNBAZASUZPu4A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-Feb-26 16:37:43 +1100, Dewayne Geraghty <dewaynegeraghty@gmail.com>= wrote: >I usually run ntpd with both aslr and as user ntpd. While testing I >noticed that my server with a direct network cable to my main time keeper, >jumped from the expected stratum 2 to 14 as follows (I record the date so I >can synch with the debug log, also below): > >vm.loadavg=3D{ 0.09 0.10 0.18 } > >Wed 26 Feb 2020 15:16:38 AEDT > remote refid st t when poll reach delay offset > jitter >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > 10.0.7.6 203.35.83.242 2 u 44 64 377 0.147 -227.12 33.= 560 >*127.127.1.1 .LOCL. 14 l 59 128 377 0.000 0.000 0.= 000 >26 Feb 15:03:40 ntpd[8772]: LOCAL(1) 901a 8a sys_peer <=3D=3D bad Why is this bad? You've specified that this is a valid clock source so ntpd is free to use it if it decides it is the best source of time. >server 127.127.1.1 minpoll 7 maxpoll 7 >fudge 127.127.1.1 stratum 14 Synchronizing to the local clock (ie using 127.127.1.x as a reference) is almost never correct. What external (to NTP) source is being used to synchronize the local clock? >I'm also very surprised that the jitter on the server (under testing) is so >poor. The internet facing time server is >*x.y.z.t .ATOM. 1 u 73 512 7 23.776 34.905 95.961 >but its very old and not running aslr. The 23ms distance to the peer suggests that this is over the Internet. What sort of link do you have to the Internet and how heavily loaded is it? The NTP protocol includes the assumption that the client-server path delay is symmetric - this is often untrue for SOHO connections. And SOHO connections will often wind up saturated in one direction - which skews the apparent timestamps and shows up as high jitter values. > /usr/local/sbin/ntpd -c /etc/ntp.conf -g -g -u ntpd --nofork =2E.. >I get similar results with /usr/sbin/ntpd, I've been testing both and >happened to record details for the port ntpd. It's probably not relevant but it would be useful for you to say up front which ntpd you are having problems with and which version of the port you have installed. --=20 Peter Jeremy --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl5Wyl1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzSJvQ/+PuM5m/+F22QYrsQd7g8F4Zq0t+B/dqWj2h3zTOJnePBqdOvOJJhvP5u5 JE7qtO3BMf6wahEO6jfwxmEX/pcRKZCoQTjuQePv/offjzksA0PyqJoyzt5QBsfC s6kDrg2GOI3kk+UIC8l8LdnSZHltctBz/4MBgkwnouXHW+mRUU2XdBKhmMUydhKh 8EUdwHPoFqRGFESi2bEac4BT+Jeu44f5Zx2dHRciiHP9pfONNAe9tP71SQfaLGKM q+XGyxcgHChpGs9OhGlD08sIMeg+moZhUwHl6dbkbQ/VquaSAAHxNFXpFZEXF+el m5ucFCA/bFYN7a+DuFiUkCj7QqibIuyD087WSdUQADbWidE+B7JHtEZZlz8HeldH bRRnep65XHVTpWSRUUBoZXDfS3xfqGr/o9qrCkCvJNBYu/JGPsORgC+xzbRK5qx0 WK0b9mt9Clj9bt9mtyhiba2ga74mSVSDQCRKGhPpaWiqMXDw5BHNA0055M/p24QM e5OT5SK3yC9vBemQZkCNxeXZAt21j6t2oq+uivHcx0rdKuj8IckgLJs9SfkuiFEo TKaARGWibFvcfk4bcPkdRhh26LU8E120v6+RMTPazLsLpxTrvqC+a29V1bOQAyDZ kAAn6b3VcxgX20QeWyKHDZ6H0TECXX6+fwgCPqOomJ5hM/PeIp0= =xsl8 -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200226194329.GA85186>