Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The nicest thing about the Alto is that it doesn't run faster at night.


devel / comp.protocols.time.ntp / Re: Choice of reference obscure -

SubjectAuthor
* Choice of reference obscure -Derek B
+* Re: Choice of reference obscure -chris
|`* Re: Choice of reference obscure -David Taylor
| `* Re: Choice of reference obscure -Derek B
|  +* Re: Choice of reference obscure -William Unruh
|  |+* Re: Choice of reference obscure -William Unruh
|  ||`- Re: Choice of reference obscure -William Unruh
|  |`- Re: Choice of reference obscure -Jim Pennino
|  +- Re: Choice of reference obscure -Jim Pennino
|  `* Re: Choice of reference obscure -chris
|   `* Re: Choice of reference obscure -Jim Pennino
|    `* Re: Choice of reference obscure -chris
|     `* Re: Choice of reference obscure -Derek B
|      `* Re: Choice of reference obscure -David Woolley
|       `* Re: Choice of reference obscure -William Unruh
|        `* Re: Choice of reference obscure -David Woolley
|         +* Re: Choice of reference obscure -David Taylor
|         |`* Re: Choice of reference obscure -Derek B
|         | `- Re: Choice of reference obscure -David Woolley
|         `- Re: Choice of reference obscure -William Unruh
`* Re: Choice of reference obscure -David Woolley
 `- Re: Choice of reference obscure -Miroslav Lichvar

1
Choice of reference obscure -

<4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=278&group=comp.protocols.time.ntp#278

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:620a:40ce:b0:67d:4ebe:f3c2 with SMTP id g14-20020a05620a40ce00b0067d4ebef3c2mr4351037qko.631.1649220801120;
Tue, 05 Apr 2022 21:53:21 -0700 (PDT)
X-Received: by 2002:a05:6870:f5a2:b0:d9:a39d:1e42 with SMTP id
eh34-20020a056870f5a200b000d9a39d1e42mr3307953oab.19.1649220800777; Tue, 05
Apr 2022 21:53:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!45.76.7.193.MISMATCH!3.us.feeder.erje.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Tue, 5 Apr 2022 21:53:20 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=202.124.96.215; posting-account=1zIU2QoAAAAR6nqDQ69ULrb9wZUZFOC3
NNTP-Posting-Host: 202.124.96.215
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
Subject: Choice of reference obscure -
From: decibel47@gmail.com (Derek B)
Injection-Date: Wed, 06 Apr 2022 04:53:21 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: Derek B - Wed, 6 Apr 2022 04:53 UTC

I am confused as to why my Debian Pi below chooses ntp4.ntp.net.nz over my local Stratum 1 servers which both show better delay, offset and jitter results.

Keen to learn your thoughts.
=============================
pi@raspberrypi:~ $ ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
-ns2.snap.net.nz 201.226.228.222 4 u 1287 1024 334 6.616 5.159 1.149
-163.47.220.60 ( 202.46.177.18 2 u 938 1024 377 18.330 4.893 0.407
-192.168.178.248 .GPS. 1 u 714 1024 377 0.734 1.339 0.126
+192.168.178.232 .GPS. 1 u 27 1024 377 0.821 1.218 0.144
192.168.178.1 192.168.178.123 3 u 316 1024 377 0.542 0.215 0.792
-ntp1.ntp.net.nz .GPS. 1 u 867 1024 377 70.523 5.686 0.936
-ntp2.ntp.net.nz .GPS. 1 u 67 1024 377 22.032 5.404 0.648
+ntp3.ntp.net.nz .GPS. 1 u 973 1024 377 15.764 2.315 1.673
*ntp4.ntp.net.nz .GPS. 1 u 879 1024 377 11.574 2.434 0.726
pi@raspberrypi:~ $

Re: Choice of reference obscure -

<t2jruo$1673$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=279&group=comp.protocols.time.ntp#279

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-nospam@tridac.net (chris)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Wed, 06 Apr 2022 12:01:44 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t2jruo$1673$1@gioia.aioe.org>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="39139"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Wed, 6 Apr 2022 11:01 UTC

On 04/06/22 05:53, Derek B wrote:
> I am confused as to why my Debian Pi below chooses ntp4.ntp.net.nz over my local Stratum 1 servers which both show better delay, offset and jitter results.
>
> Keen to learn your thoughts.
> =============================
> pi@raspberrypi:~ $ ntpq -p
> remote refid st t when poll reach delay offset jitter
> ==============================================================================
> -ns2.snap.net.nz 201.226.228.222 4 u 1287 1024 334 6.616 5.159 1.149
> -163.47.220.60 ( 202.46.177.18 2 u 938 1024 377 18.330 4.893 0.407
> -192.168.178.248 .GPS. 1 u 714 1024 377 0.734 1.339 0.126
> +192.168.178.232 .GPS. 1 u 27 1024 377 0.821 1.218 0.144
> 192.168.178.1 192.168.178.123 3 u 316 1024 377 0.542 0.215 0.792
> -ntp1.ntp.net.nz .GPS. 1 u 867 1024 377 70.523 5.686 0.936
> -ntp2.ntp.net.nz .GPS. 1 u 67 1024 377 22.032 5.404 0.648
> +ntp3.ntp.net.nz .GPS. 1 u 973 1024 377 15.764 2.315 1.673
> *ntp4.ntp.net.nz .GPS. 1 u 879 1024 377 11.574 2.434 0.726
> pi@raspberrypi:~ $

The best way to ensure your local server takes priority is to setup to
use a pps signal. Here's the reuslt from the local setup here:

root@ntp-host:~ # ntpq -pn
remote refid st t when poll reach delay offset jitter
===================================================================
o127.127.22.0 .PPS. 0 l 2 8 377 0.000 0.001 0.001
*192.9.200.168 .GPS. 1 u 58 64 377 0.174 -0.004 0.005
+192.9.200.169 .GPS. 1 u 3 64 377 0.343 -0.007 0.029
-158.43.128.33 .GPS. 1 u 29 64 317 14.445 0.062 0.447

The first line is the pps signal, second two are local time server
hosts and the 4th is s single external host used as a sanity check.
Not sure how PPS i/p is done on an rpi, but the gps module should have
a pps logic output somewhere...

Chris

Re: Choice of reference obscure -

<t2k9a6$fkp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=280&group=comp.protocols.time.ntp#280

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Wed, 6 Apr 2022 15:49:41 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <t2k9a6$fkp$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org>
Reply-To: david-taylor@blueyonder.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Apr 2022 14:49:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ae59d753a335d952370918dda7652731";
logging-data="16025"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kN2pG0j4MXwGcRyQVcVHZAmDpClgl26M="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:GeO1WMcfC+YqWdF8DNKw3r70hXM=
In-Reply-To: <t2jruo$1673$1@gioia.aioe.org>
Content-Language: en-GB
 by: David Taylor - Wed, 6 Apr 2022 14:49 UTC

On 06/04/2022 12:01, chris wrote:
> Not sure how PPS i/p is done on an rpi, but the gps module should have
> a pps logic output somewhere...
>
> Chris

I have some (perhaps somewhat dated) notes here:

https://www.satsignal.eu/ntp/Raspberry-Pi-quickstart.html

Basically GPIO 18 can be connected to a 3.3V PPS line, and the kernel will
accept it as triggering interrupts. NTP and GPSd can handle that.

Cheers,
David
--
Cheers,
David
Web: http://www.satsignal.eu

Re: Choice of reference obscure -

<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=281&group=comp.protocols.time.ntp#281

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:6214:2482:b0:443:9696:4c1 with SMTP id gi2-20020a056214248200b00443969604c1mr10061278qvb.114.1649305592633;
Wed, 06 Apr 2022 21:26:32 -0700 (PDT)
X-Received: by 2002:a05:6870:9604:b0:de:a876:fbba with SMTP id
d4-20020a056870960400b000dea876fbbamr5202223oaq.239.1649305592224; Wed, 06
Apr 2022 21:26:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Wed, 6 Apr 2022 21:26:31 -0700 (PDT)
In-Reply-To: <t2k9a6$fkp$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.124.96.215; posting-account=1zIU2QoAAAAR6nqDQ69ULrb9wZUZFOC3
NNTP-Posting-Host: 202.124.96.215
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
Subject: Re: Choice of reference obscure -
From: decibel47@gmail.com (Derek B)
Injection-Date: Thu, 07 Apr 2022 04:26:32 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: Derek B - Thu, 7 Apr 2022 04:26 UTC

Thank you but no; I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?

Apparently not.

Re: Choice of reference obscure -

<t2mtjm$l2d$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=282&group=comp.protocols.time.ntp#282

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unruh@invalid.ca (William Unruh)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 7 Apr 2022 14:48:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <t2mtjm$l2d$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
Injection-Date: Thu, 7 Apr 2022 14:48:22 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e553dc3548e944403c7fa02ad8930793";
logging-data="21581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Mu1w541E7+R7QslRjahx9"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:/ZeqaAY99mSJYPCiy/0Hf0JDveM=
 by: William Unruh - Thu, 7 Apr 2022 14:48 UTC

On 2022-04-07, Derek B <decibel47@gmail.com> wrote:

> Thank you but no;
"Thank you but no" what? You do not want your clock to driven by PPS?
You do not want anyone telling you anything? It really helps to keep
enough context to let others know what you are talking about.

>I wish to understand the internal decisions made by the algorithm that determines the preferred reference.

But your original post did not even tell us which source was which so it
is really hard to know what you are talking about.

> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?

Since your evidence is supposed to be your own system so it is surely
not irrelevant.

Another item is history. chrony does not go hopping around frm source to
source just because the stats become a bit better on one rather than the
other at this time.

And offset is a very bad thing to use. For example, if the system uses
itself to discipline itself, the offset will always be 0, even if the
clock is out by a year and the standard deviation will be small.

Another is voting-- even if one clock has better stats, if its time
disagrees with all of the other clocks (given its stats) then it will be
ignored.

You have the logs (eg the statistics log) so you can see what is happening over time.
>
> Apparently not.

You do have the source code. You can see what the selection algorithm is.

Re: Choice of reference obscure -

<t2mv4q$j11$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=283&group=comp.protocols.time.ntp#283

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unruh@invalid.ca (William Unruh)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 7 Apr 2022 15:14:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <t2mv4q$j11$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2mtjm$l2d$1@dont-email.me>
Injection-Date: Thu, 7 Apr 2022 15:14:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e553dc3548e944403c7fa02ad8930793";
logging-data="19489"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m/r8pSfFyaGdJKqXMI1FI"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:gOuI7ImX4oSgbIzeGAK4kFCaCsA=
 by: William Unruh - Thu, 7 Apr 2022 15:14 UTC

On 2022-04-07, William Unruh <unruh@invalid.ca> wrote:
>
> On 2022-04-07, Derek B <decibel47@gmail.com> wrote:
>
>> Thank you but no;
> "Thank you but no" what? You do not want your clock to driven by PPS?
> You do not want anyone telling you anything? It really helps to keep
> enough context to let others know what you are talking about.
>
>>I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
>
> But your original post did not even tell us which source was which so it
> is really hard to know what you are talking about.
>
>
>> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?
>
> Since your evidence is supposed to be your own system so it is surely
> not irrelevant.
>
> Another item is history. chrony does not go hopping around frm source to
> source just because the stats become a bit better on one rather than the
> other at this time.
>
> And offset is a very bad thing to use. For example, if the system uses
> itself to discipline itself, the offset will always be 0, even if the
> clock is out by a year and the standard deviation will be small.
>
> Another is voting-- even if one clock has better stats, if its time
> disagrees with all of the other clocks (given its stats) then it will be
> ignored.
>
> You have the logs (eg the statistics log) so you can see what is happening over time.
>>
>> Apparently not.
>
> You do have the source code. You can see what the selection algorithm is.
PS: it is sources.c that contains the selection.

Re: Choice of reference obscure -

<7df3ii-33ek.ln1@gonzo.specsol.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=284&group=comp.protocols.time.ntp#284

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jimp@gonzo.specsol.net (Jim Pennino)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 7 Apr 2022 09:17:13 -0700
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <7df3ii-33ek.ln1@gonzo.specsol.net>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com> <t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me> <fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
Injection-Info: reader02.eternal-september.org; posting-host="60977d21a089fe00bc47dd138a51bfa5";
logging-data="19801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1906V+b8tqKIdxdRtjeQga4"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-107-generic (x86_64))
Cancel-Lock: sha1:dSFvO2/T4tzh+Bb48DLomDwrlJI=
 by: Jim Pennino - Thu, 7 Apr 2022 16:17 UTC

Derek B <decibel47@gmail.com> wrote:
> Thank you but no; I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?
>
> Apparently not.

The simplified answer is that the decision is based on long term and
complex statistics and not single snapshots in time.

If you were to plot all the logged data it may, or may not, become
obvious why a particular server was picked.

A complete explaination of how the algorithms work is far too complex
for a USENET post.

Look at:

https://www.eecis.udel.edu/~mills/ntp/html/warp.html

Likely the most relevant topics to your question are Clock Filter
Algorithm, Clock Select Algorithm and Clock Cluster Algorithm.

Re: Choice of reference obscure -

<t2n4hp$u71$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=285&group=comp.protocols.time.ntp#285

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-nospam@tridac.net (chris)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 07 Apr 2022 17:46:49 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t2n4hp$u71$1@gioia.aioe.org>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com> <t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me> <fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="30945"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Thu, 7 Apr 2022 16:46 UTC

On 04/07/22 05:26, Derek B wrote:
> Thank you but no; I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?
>
> Apparently not.

If you have just a few sources, that may hold true, but with a whole
list of sources, it may take a long time to work that out via it's
internal algorithms. I would try again with 3 or 4 remote servers
and see if that converges in less time. Also, istr, there is a prefer
keyword that can be used in the ntp.conf file, but never used it here.
The convergence algorithm may also get confused with a long list of
servers, especially if the list of members changes over a short
period. ntp can take hours or even days to optimise everything.

Having said that, if i'm running pps, the list soon converges onto
the best server, so perhaps that is relevant...

Chris

Re: Choice of reference obscure -

<34i3ii-cshk.ln1@gonzo.specsol.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=286&group=comp.protocols.time.ntp#286

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jimp@gonzo.specsol.net (Jim Pennino)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 7 Apr 2022 10:03:33 -0700
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <34i3ii-cshk.ln1@gonzo.specsol.net>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com> <t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me> <fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com> <t2mtjm$l2d$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="60977d21a089fe00bc47dd138a51bfa5";
logging-data="11622"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bYooNvwokKTzd+pqqSwlT"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-107-generic (x86_64))
Cancel-Lock: sha1:Ac0AMC3r5P7hSv/VeXBKjEuJY9g=
 by: Jim Pennino - Thu, 7 Apr 2022 17:03 UTC

William Unruh <unruh@invalid.ca> wrote:
>

<snip>

> You do have the source code. You can see what the selection algorithm is.

Highly unlikely as the vast majority of people would be installing using
a pre-compiled package that does NOT include source code.

Yes, one can download the source, but why do that and attempt to reverse
engineer the source code when documentation exists on www.ntp.org?

Re: Choice of reference obscure -

<h5m3ii-4ulk.ln1@gonzo.specsol.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=287&group=comp.protocols.time.ntp#287

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jimp@gonzo.specsol.net (Jim Pennino)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 7 Apr 2022 11:12:35 -0700
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <h5m3ii-4ulk.ln1@gonzo.specsol.net>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com> <t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me> <fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com> <t2n4hp$u71$1@gioia.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="60977d21a089fe00bc47dd138a51bfa5";
logging-data="21895"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SSh6vxXLqoNcj7Jxi31z1"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-107-generic (x86_64))
Cancel-Lock: sha1:rnnee7ahtwkmWIUWE6lQ0RVl28o=
 by: Jim Pennino - Thu, 7 Apr 2022 18:12 UTC

chris <chris-nospam@tridac.net> wrote:
> On 04/07/22 05:26, Derek B wrote:
>> Thank you but no; I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
>> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?
>>
>> Apparently not.
>
> If you have just a few sources, that may hold true, but with a whole
> list of sources, it may take a long time to work that out via it's
> internal algorithms. I would try again with 3 or 4 remote servers
> and see if that converges in less time. Also, istr, there is a prefer
> keyword that can be used in the ntp.conf file, but never used it here.
> The convergence algorithm may also get confused with a long list of
> servers, especially if the list of members changes over a short
> period. ntp can take hours or even days to optimise everything.
>
> Having said that, if i'm running pps, the list soon converges onto
> the best server, so perhaps that is relevant...
>
> Chris
If you have pps, then do use the prefer and iburst keywords with this
server(s) on your client machines.

If you have pps, there is no need for more than 3 or 4 total servers
in any machine's configuration.

FYI I run two pps servers, one is a Pi with a GNSS receiver and the
other is a Ubuntu machine with an oven controlled precision crystal
oscillator reference GNSS receiver.

The pps servers configurations includes 3 network servers which serve no
purpose other than to keep the selection algorithms sane. Do not have
the pps servers reference each other.

All the client machines use the two pps servers and two network servers,
which also server no purpose other than to keep the selection algorithms
sane. The pps servers have the prefer and iburst keywords.

Because of the way the selection algorithms work, you need at least 3
servers in any given client's configuration, so I have 4 just in case
one of the remote servers is dead on a restart.

I log all statistics and do graphing of all the machines on a web server
so I have a good idea what everything is doing.

If I reboot a client, it typically takes a minute or so to select one
of the pps machines, about a half hour to get to the 10's of millisecond
accuracy, and a couple of hours to get to the 10's of microsecond
accuracy.

Re: Choice of reference obscure -

<t2nco8$bk2$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=288&group=comp.protocols.time.ntp#288

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unruh@invalid.ca (William Unruh)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Thu, 7 Apr 2022 19:06:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <t2nco8$bk2$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2mtjm$l2d$1@dont-email.me> <t2mv4q$j11$1@dont-email.me>
Injection-Date: Thu, 7 Apr 2022 19:06:48 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e553dc3548e944403c7fa02ad8930793";
logging-data="11906"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QKkaYadMStoFE761WihGu"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:fklhgBzPO/UtwfnfQUr6uGvT9MU=
 by: William Unruh - Thu, 7 Apr 2022 19:06 UTC

Sorry I did not read your post carefully enough and thought you were
using chrony, not ntpd. Thus my comment below is irrelevant to you. The
idea still applies however-- the source code for ntpd will answer your
question, but I cannot point you to the relevant code.

On 2022-04-07, William Unruh <unruh@invalid.ca> wrote:
> On 2022-04-07, William Unruh <unruh@invalid.ca> wrote:
>>
>> On 2022-04-07, Derek B <decibel47@gmail.com> wrote:
>>
>>> Thank you but no;
>> "Thank you but no" what? You do not want your clock to driven by PPS?
>> You do not want anyone telling you anything? It really helps to keep
>> enough context to let others know what you are talking about.
>>
>>>I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
>>
>> But your original post did not even tell us which source was which so it
>> is really hard to know what you are talking about.
>>
>>
>>> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?
>>
>> Since your evidence is supposed to be your own system so it is surely
>> not irrelevant.
>>
>> Another item is history. chrony does not go hopping around frm source to
>> source just because the stats become a bit better on one rather than the
>> other at this time.
>>
>> And offset is a very bad thing to use. For example, if the system uses
>> itself to discipline itself, the offset will always be 0, even if the
>> clock is out by a year and the standard deviation will be small.
>>
>> Another is voting-- even if one clock has better stats, if its time
>> disagrees with all of the other clocks (given its stats) then it will be
>> ignored.
>>
>> You have the logs (eg the statistics log) so you can see what is happening over time.
>>>
>>> Apparently not.
>>
>> You do have the source code. You can see what the selection algorithm is.
> PS: it is sources.c that contains the selection.
>
>

Re: Choice of reference obscure -

<t2pi5e$a7c$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=289&group=comp.protocols.time.ntp#289

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david@ex.djwhome.demon.invalid (David Woolley)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Fri, 8 Apr 2022 15:51:26 +0100
Organization: No affiliation
Lines: 32
Message-ID: <t2pi5e$a7c$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Apr 2022 14:51:26 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7fb3c0f6ed051d112f825bcb5b54c6f0";
logging-data="10476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/H7aV4q4kC0m92fbmxanU4aAOKoVLJK2Q="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:r6uNEF//P8ByRR9V2ICbQ0nge4c=
In-Reply-To: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
Content-Language: en-GB
 by: David Woolley - Fri, 8 Apr 2022 14:51 UTC

On 06/04/2022 05:53, Derek B wrote:
> I am confused as to why my Debian Pi below chooses ntp4.ntp.net.nz over my local Stratum 1 servers which both show better delay, offset and jitter results.
>
> Keen to learn your thoughts.
> =============================
> pi@raspberrypi:~ $ ntpq -p
> remote refid st t when poll reach delay offset jitter
> ==============================================================================
> -ns2.snap.net.nz 201.226.228.222 4 u 1287 1024 334 6.616 5.159 1.149
> -163.47.220.60 ( 202.46.177.18 2 u 938 1024 377 18.330 4.893 0.407
> -192.168.178.248 .GPS. 1 u 714 1024 377 0.734 1.339 0.126
> +192.168.178.232 .GPS. 1 u 27 1024 377 0.821 1.218 0.144
> 192.168.178.1 192.168.178.123 3 u 316 1024 377 0.542 0.215 0.792
> -ntp1.ntp.net.nz .GPS. 1 u 867 1024 377 70.523 5.686 0.936
> -ntp2.ntp.net.nz .GPS. 1 u 67 1024 377 22.032 5.404 0.648
> +ntp3.ntp.net.nz .GPS. 1 u 973 1024 377 15.764 2.315 1.673
> *ntp4.ntp.net.nz .GPS. 1 u 879 1024 377 11.574 2.434 0.726
> pi@raspberrypi:~ $
>

ntpq -p doesn't display everything about the peers. In particular, it
doesn't display the upstream statistics, such as root delay and root
dispersion, which are used to select the system peer; it only reports
the last hop figures.

offset is never used as a quality figure, except if it is far enough out
to declare a falseticker (using it would introduce confirmation bias).

Also, the system peer is not the only source of time; it is basically
used as the source for the downstream values of the missing parameters.
However the same root distance, etc., information is used to weight
the, in your case, three survivors.

Re: Choice of reference obscure -

<t2riio$le6$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=290&group=comp.protocols.time.ntp#290

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!aioe.org!jazQyxryRFiI4FEZ51SAvA.user.46.165.242.75.POSTED!not-for-mail
From: chris-nospam@tridac.net (chris)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Sat, 09 Apr 2022 10:10:48 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t2riio$le6$1@gioia.aioe.org>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com> <t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me> <fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com> <t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="21958"; posting-host="jazQyxryRFiI4FEZ51SAvA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; SunOS sun4u; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.9.2
 by: chris - Sat, 9 Apr 2022 09:10 UTC

On 04/07/22 19:12, Jim Pennino wrote:
> chris<chris-nospam@tridac.net> wrote:
>> On 04/07/22 05:26, Derek B wrote:
>>> Thank you but no; I wish to understand the internal decisions made by the algorithm that determines the preferred reference.
>>> The fact that I mentioned my own GPS is irrelevant, surely the better the delay, offset, jitter, should win out?
>>>
>>> Apparently not.
>>
>> If you have just a few sources, that may hold true, but with a whole
>> list of sources, it may take a long time to work that out via it's
>> internal algorithms. I would try again with 3 or 4 remote servers
>> and see if that converges in less time. Also, istr, there is a prefer
>> keyword that can be used in the ntp.conf file, but never used it here.
>> The convergence algorithm may also get confused with a long list of
>> servers, especially if the list of members changes over a short
>> period. ntp can take hours or even days to optimise everything.
>>
>> Having said that, if i'm running pps, the list soon converges onto
>> the best server, so perhaps that is relevant...
>>
>> Chris
>
> If you have pps, then do use the prefer and iburst keywords with this
> server(s) on your client machines.
>
> If you have pps, there is no need for more than 3 or 4 total servers
> in any machine's configuration.
>
> FYI I run two pps servers, one is a Pi with a GNSS receiver and the
> other is a Ubuntu machine with an oven controlled precision crystal
> oscillator reference GNSS receiver.
>
> The pps servers configurations includes 3 network servers which serve no
> purpose other than to keep the selection algorithms sane. Do not have
> the pps servers reference each other.
>
> All the client machines use the two pps servers and two network servers,
> which also server no purpose other than to keep the selection algorithms
> sane. The pps servers have the prefer and iburst keywords.
>
> Because of the way the selection algorithms work, you need at least 3
> servers in any given client's configuration, so I have 4 just in case
> one of the remote servers is dead on a restart.
>
> I log all statistics and do graphing of all the machines on a web server
> so I have a good idea what everything is doing.
>
> If I reboot a client, it typically takes a minute or so to select one
> of the pps machines, about a half hour to get to the 10's of millisecond
> accuracy, and a couple of hours to get to the 10's of microsecond
> accuracy.
>

Here, i'm using a mini itx box, FreeBSD 12, two network interfaces.
The private subnet talks to a couple of refurbished commercial time
servers in 1u boxes. PPS comes either from one of the two time servers,
or from the lab 10MHz GPS frequency standard, which also has a PPS
output. The PPS goes to the serial port on the mini itx host, which
also has a firewall rule set on the internet facing side. The whole
thing is on a ups, as are the isp routers. System currently showing
an uptime of around 10 months. May be overkill, but it's an
experimental system and was fun to build and setup...

Chris

Re: Choice of reference obscure -

<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=291&group=comp.protocols.time.ntp#291

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:622a:c3:b0:2e3:4bd0:16c2 with SMTP id p3-20020a05622a00c300b002e34bd016c2mr21787556qtw.575.1649587346234;
Sun, 10 Apr 2022 03:42:26 -0700 (PDT)
X-Received: by 2002:a05:6870:c886:b0:e2:0:2ed2 with SMTP id
er6-20020a056870c88600b000e200002ed2mr11743815oab.232.1649587345989; Sun, 10
Apr 2022 03:42:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Sun, 10 Apr 2022 03:42:25 -0700 (PDT)
In-Reply-To: <t2riio$le6$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=202.124.96.215; posting-account=1zIU2QoAAAAR6nqDQ69ULrb9wZUZFOC3
NNTP-Posting-Host: 202.124.96.215
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com> <t2n4hp$u71$1@gioia.aioe.org>
<h5m3ii-4ulk.ln1@gonzo.specsol.net> <t2riio$le6$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
Subject: Re: Choice of reference obscure -
From: decibel47@gmail.com (Derek B)
Injection-Date: Sun, 10 Apr 2022 10:42:26 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: Derek B - Sun, 10 Apr 2022 10:42 UTC

OK, so which command gives a better indication of how peers are evaluated?
One of these?
ntpq> help
ntpq commands:
:config drefid mreadlist readvar
addvars exit mreadvar reslist
apeers help mrl rl
associations host mrulist rmvars
authenticate hostnames mrv rv
authinfo ifstats ntpversion saveconfig
cl iostats opeers showvars
clearvars kerninfo passociations sysinfo
clocklist keyid passwd sysstats
clockvar keytype peers timeout
config-from-file lassociations poll timerstats
cooked lopeers pstats version
cv lpassociations quit writelist
debug lpeers raw writevar
delay monstats readlist

Re: Choice of reference obscure -

<t2ujdj$to9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=292&group=comp.protocols.time.ntp#292

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david@ex.djwhome.demon.invalid (David Woolley)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Sun, 10 Apr 2022 13:43:30 +0100
Organization: No affiliation
Lines: 31
Message-ID: <t2ujdj$to9$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
<t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 10 Apr 2022 12:43:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="067775c4cc2c2e2c0cba8b5c46dfde45";
logging-data="30473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19D0en6xUGQRpBPpexWgUyYnmGJs7t703A="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:1lYaxId/l1uaVWKFcOL4tYc2aWA=
In-Reply-To: <a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
Content-Language: en-GB
 by: David Woolley - Sun, 10 Apr 2022 12:43 UTC

On 10/04/2022 11:42, Derek B wrote:
> OK, so which command gives a better indication of how peers are evaluated?

I assume you posted this to the wrong sub-thread. The standard Debian
install doesn't include the reference implementation of NTP, and I'm not
sure I can package install it without changing the daemon used, so I
can't dry run the commands, but I would expect mreadlist or multiple
invocations of readlist, preceded by associations (to get the
association IDs), would give most of the information used.

> One of these?
> ntpq> help
> ntpq commands:
> :config drefid mreadlist readvar
> addvars exit mreadvar reslist
> apeers help mrl rl
> associations host mrulist rmvars
> authenticate hostnames mrv rv
> authinfo ifstats ntpversion saveconfig
> cl iostats opeers showvars
> clearvars kerninfo passociations sysinfo
> clocklist keyid passwd sysstats
> clockvar keytype peers timeout
> config-from-file lassociations poll timerstats
> cooked lopeers pstats version
> cv lpassociations quit writelist
> debug lpeers raw writevar
> delay monstats readlist
>

Re: Choice of reference obscure -

<t2ut13$eqo$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=293&group=comp.protocols.time.ntp#293

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unruh@invalid.ca (William Unruh)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Sun, 10 Apr 2022 15:27:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <t2ut13$eqo$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
<t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
<t2ujdj$to9$1@dont-email.me>
Injection-Date: Sun, 10 Apr 2022 15:27:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1c5a5f479d35ef2c29e776849280a633";
logging-data="15192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9tz8WqPFDTwN++iawa8ts"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:hwxnml3wEWUSGtTZ+wNozjH6p7Y=
 by: William Unruh - Sun, 10 Apr 2022 15:27 UTC

On 2022-04-10, David Woolley <david@ex.djwhome.demon.invalid> wrote:
> On 10/04/2022 11:42, Derek B wrote:
>> OK, so which command gives a better indication of how peers are evaluated?
>
> I assume you posted this to the wrong sub-thread. The standard Debian
> install doesn't include the reference implementation of NTP, and I'm not

ntpd is the reference implementation of NTP.

> sure I can package install it without changing the daemon used, so I
> can't dry run the commands, but I would expect mreadlist or multiple
> invocations of readlist, preceded by associations (to get the
> association IDs), would give most of the information used.
>
>
>> One of these?
>> ntpq> help
>> ntpq commands:
>> :config drefid mreadlist readvar
>> addvars exit mreadvar reslist
>> apeers help mrl rl
>> associations host mrulist rmvars
>> authenticate hostnames mrv rv
>> authinfo ifstats ntpversion saveconfig
>> cl iostats opeers showvars
>> clearvars kerninfo passociations sysinfo
>> clocklist keyid passwd sysstats
>> clockvar keytype peers timeout
>> config-from-file lassociations poll timerstats
>> cooked lopeers pstats version
>> cv lpassociations quit writelist
>> debug lpeers raw writevar
>> delay monstats readlist
>>
>

Re: Choice of reference obscure -

<t2v3qr$p2h$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=294&group=comp.protocols.time.ntp#294

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david@ex.djwhome.demon.invalid (David Woolley)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Sun, 10 Apr 2022 18:23:38 +0100
Organization: No affiliation
Lines: 13
Message-ID: <t2v3qr$p2h$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
<t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
<t2ujdj$to9$1@dont-email.me> <t2ut13$eqo$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 10 Apr 2022 17:23:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="067775c4cc2c2e2c0cba8b5c46dfde45";
logging-data="25681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eRh0wgN0vt8Uk1DRZjonPk1IZoUVIgDA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:GnbkdH7wszUF8LTJtJLii559IPo=
In-Reply-To: <t2ut13$eqo$1@dont-email.me>
Content-Language: en-GB
 by: David Woolley - Sun, 10 Apr 2022 17:23 UTC

On 10/04/2022 16:27, William Unruh wrote:
> ntpd is the reference implementation of NTP.

Standard Debian comes with systemd-timesyncd, and SNTP client, so it
does not include the reference implementation.

The nearest they offer to the reference implementation is secntpd. I
get the impression that this is a fork, but I haven't looked in detail.
That is the package that includes ntpq. I can't therefore easily
install ntpq without risking replacing the current time synch daemon,
which is good enough for my current purposes, so I can't easily dry run
ntpq, with my current system, even though I've used it on work systems,
in the past.

Re: Choice of reference obscure -

<t2v6j3$dlj$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=295&group=comp.protocols.time.ntp#295

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david-taylor@blueyonder.co.uk.invalid (David Taylor)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Sun, 10 Apr 2022 19:10:43 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <t2v6j3$dlj$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
<t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
<t2ujdj$to9$1@dont-email.me> <t2ut13$eqo$1@dont-email.me>
<t2v3qr$p2h$1@dont-email.me>
Reply-To: david-taylor@blueyonder.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 10 Apr 2022 18:10:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5bb80c4f7f297e48313c2cc043e29d3e";
logging-data="14003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GfpdWTmDn5S3T+ei1wgKSh3yA29zvGnw="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:lI+50zvjl0nzcYWfIySBO7T2/eQ=
In-Reply-To: <t2v3qr$p2h$1@dont-email.me>
Content-Language: en-GB
 by: David Taylor - Sun, 10 Apr 2022 18:10 UTC

On 10/04/2022 18:23, David Woolley wrote:
> On 10/04/2022 16:27, William Unruh wrote:
>> ntpd is the reference implementation of NTP.
> Standard Debian comes with systemd-timesyncd, and SNTP client, so it
> does not include the reference implementation.
>
> The nearest they offer to the reference implementation is secntpd. I
> get the impression that this is a fork, but I haven't looked in detail.
> That is the package that includes ntpq. I can't therefore easily
> install ntpq without risking replacing the current time synch daemon,
> which is good enough for my current purposes, so I can't easily dry run
> ntpq, with my current system, even though I've used it on work systems,
> in the past.

Same on the Raspberry Pi - no reference NTP. I just:

sudo apt-get install ntp

and all works as expected.
--
Cheers,
David
Web: http://www.satsignal.eu

Re: Choice of reference obscure -

<t2v758$ihi$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=296&group=comp.protocols.time.ntp#296

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unruh@invalid.ca (William Unruh)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Sun, 10 Apr 2022 18:20:24 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <t2v758$ihi$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
<t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
<t2ujdj$to9$1@dont-email.me> <t2ut13$eqo$1@dont-email.me>
<t2v3qr$p2h$1@dont-email.me>
Injection-Date: Sun, 10 Apr 2022 18:20:24 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1c5a5f479d35ef2c29e776849280a633";
logging-data="18994"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eF4iv+rOnAdKifCfdw87S"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:mhq+sXWYs30CGZPAuzEcZbdjoo8=
 by: William Unruh - Sun, 10 Apr 2022 18:20 UTC

On 2022-04-10, David Woolley <david@ex.djwhome.demon.invalid> wrote:
> On 10/04/2022 16:27, William Unruh wrote:
>> ntpd is the reference implementation of NTP.
>
> Standard Debian comes with systemd-timesyncd, and SNTP client, so it
> does not include the reference implementation.

Thanks. Did not realise that. However I think what the OP meant by
reference is the clock which ntp program marks with a *, the time standard it
selects as the clock is will strive to duplicate.
>
> The nearest they offer to the reference implementation is secntpd. I
> get the impression that this is a fork, but I haven't looked in detail.
> That is the package that includes ntpq. I can't therefore easily
> install ntpq without risking replacing the current time synch daemon,
> which is good enough for my current purposes, so I can't easily dry run
> ntpq, with my current system, even though I've used it on work systems,
> in the past.

Re: Choice of reference obscure -

<00e8ee79-c9d2-41c5-8b65-a5d7df64bfa1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=297&group=comp.protocols.time.ntp#297

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a37:f50b:0:b0:680:d577:baf6 with SMTP id l11-20020a37f50b000000b00680d577baf6mr20063197qkk.328.1649639072018;
Sun, 10 Apr 2022 18:04:32 -0700 (PDT)
X-Received: by 2002:a05:6870:f5a2:b0:d9:a39d:1e42 with SMTP id
eh34-20020a056870f5a200b000d9a39d1e42mr13614159oab.19.1649639071767; Sun, 10
Apr 2022 18:04:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Sun, 10 Apr 2022 18:04:31 -0700 (PDT)
In-Reply-To: <t2v6j3$dlj$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.124.96.215; posting-account=1zIU2QoAAAAR6nqDQ69ULrb9wZUZFOC3
NNTP-Posting-Host: 202.124.96.215
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com> <t2n4hp$u71$1@gioia.aioe.org>
<h5m3ii-4ulk.ln1@gonzo.specsol.net> <t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com> <t2ujdj$to9$1@dont-email.me>
<t2ut13$eqo$1@dont-email.me> <t2v3qr$p2h$1@dont-email.me> <t2v6j3$dlj$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <00e8ee79-c9d2-41c5-8b65-a5d7df64bfa1n@googlegroups.com>
Subject: Re: Choice of reference obscure -
From: decibel47@gmail.com (Derek B)
Injection-Date: Mon, 11 Apr 2022 01:04:32 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 32
 by: Derek B - Mon, 11 Apr 2022 01:04 UTC

On Monday, April 11, 2022 at 6:10:45 AM UTC+12, David Taylor wrote:
> On 10/04/2022 18:23, David Woolley wrote:
> > On 10/04/2022 16:27, William Unruh wrote:
> >> ntpd is the reference implementation of NTP.
> > Standard Debian comes with systemd-timesyncd, and SNTP client, so it
> > does not include the reference implementation.
> >
> > The nearest they offer to the reference implementation is secntpd. I
> > get the impression that this is a fork, but I haven't looked in detail.
> > That is the package that includes ntpq. I can't therefore easily
> > install ntpq without risking replacing the current time synch daemon,
> > which is good enough for my current purposes, so I can't easily dry run
> > ntpq, with my current system, even though I've used it on work systems,
> > in the past.
> Same on the Raspberry Pi - no reference NTP. I just:
>
> sudo apt-get install ntp
>
> and all works as expected.
> --
> Cheers,
> David
> Web: http://www.satsignal.eu
============================================
OK, I have now done that; where to now?

pi@raspberrypi:~ $ sudo apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntp is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 131 not upgraded.
pi@raspberrypi:~ $

Re: Choice of reference obscure -

<t30tbc$k89$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=298&group=comp.protocols.time.ntp#298

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david@ex.djwhome.demon.invalid (David Woolley)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Mon, 11 Apr 2022 10:45:15 +0100
Organization: No affiliation
Lines: 10
Message-ID: <t30tbc$k89$1@dont-email.me>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2jruo$1673$1@gioia.aioe.org> <t2k9a6$fkp$1@dont-email.me>
<fa74188b-817c-412c-bf0e-6245b1ee0be7n@googlegroups.com>
<t2n4hp$u71$1@gioia.aioe.org> <h5m3ii-4ulk.ln1@gonzo.specsol.net>
<t2riio$le6$1@gioia.aioe.org>
<a4881ba5-a996-4e64-8a6a-6688c7b58655n@googlegroups.com>
<t2ujdj$to9$1@dont-email.me> <t2ut13$eqo$1@dont-email.me>
<t2v3qr$p2h$1@dont-email.me> <t2v6j3$dlj$1@dont-email.me>
<00e8ee79-c9d2-41c5-8b65-a5d7df64bfa1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Apr 2022 09:45:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cf63f767dff67c55b7e8a8eb98a96ac6";
logging-data="20745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MPQKVNlr7xFdv/jSQl0l7/nBXIXy5cR4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:gQs80ahUsi70+fMQPoMkg8NLODs=
In-Reply-To: <00e8ee79-c9d2-41c5-8b65-a5d7df64bfa1n@googlegroups.com>
Content-Language: en-GB
 by: David Woolley - Mon, 11 Apr 2022 09:45 UTC

On 11/04/2022 02:04, Derek B wrote:

> 0 upgraded, 0 newly installed, 0 to remove and 131 not upgraded.

It was already installed. What I was saying about my system is that I
had to rely on the documentation of ntpq to know what options to use, as
I'd otherwise break the "if it isn't broken, don't fix it rule".

What you do now is try ntpq with the same options as you could have
used before your null install.

Re: Choice of reference obscure -

<t30v7k$v1b$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=299&group=comp.protocols.time.ntp#299

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!aioe.org!wqF6YW3b7B3ExDozbCCFcA.user.46.165.242.75.POSTED!not-for-mail
From: mlichvar@redhat.com (Miroslav Lichvar)
Newsgroups: comp.protocols.time.ntp
Subject: Re: Choice of reference obscure -
Date: Mon, 11 Apr 2022 10:17:24 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t30v7k$v1b$1@gioia.aioe.org>
References: <4de1b3ca-04a0-4e7d-bf98-abc9f2eeb991n@googlegroups.com>
<t2pi5e$a7c$1@dont-email.me>
Injection-Info: gioia.aioe.org; logging-data="31787"; posting-host="wqF6YW3b7B3ExDozbCCFcA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: slrn/1.0.3 (Linux)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Miroslav Lichvar - Mon, 11 Apr 2022 10:17 UTC

On 2022-04-08, David Woolley <david@ex.djwhome.demon.invalid> wrote:
> ntpq -p doesn't display everything about the peers. In particular, it
> doesn't display the upstream statistics, such as root delay and root
> dispersion, which are used to select the system peer; it only reports
> the last hop figures.

Yes, it would help to see the "ntpq -c rv" output for all the servers.

> offset is never used as a quality figure, except if it is far enough out
> to declare a falseticker (using it would introduce confirmation bias).

The offset is also used in the clustering algorithm:
https://www.eecis.udel.edu/~mills/ntp/html/cluster.html

--
Miroslav Lichvar

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor