Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"It's like deja vu all over again." -- Yogi Berra


devel / comp.protocols.time.ntp / iburst and burst options in NTP

SubjectAuthor
* iburst and burst options in NTPMohammed Siddiqi
`* Re: iburst and burst options in NTPDavid Woolley
 `* Re: [questions] Re: iburst and burst options in NTPHarlan Stenn
  `- Re: [questions] Re: iburst and burst options in NTPMohammed Siddiqi

1
iburst and burst options in NTP

<25858b7e-7c1e-4b55-ab91-2a64d34d7e98n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:620a:414a:b0:75b:264e:a1c7 with SMTP id k10-20020a05620a414a00b0075b264ea1c7mr3946991qko.12.1685726254871;
Fri, 02 Jun 2023 10:17:34 -0700 (PDT)
X-Received: by 2002:a05:622a:1992:b0:3ef:6035:465 with SMTP id
u18-20020a05622a199200b003ef60350465mr3420177qtc.8.1685726254610; Fri, 02 Jun
2023 10:17:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Fri, 2 Jun 2023 10:17:34 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=165.225.208.222; posting-account=YRBAKAoAAAA2Is9JWyrGOLHqEGQkoe_U
NNTP-Posting-Host: 165.225.208.222
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <25858b7e-7c1e-4b55-ab91-2a64d34d7e98n@googlegroups.com>
Subject: iburst and burst options in NTP
From: siddiqi.m@gmail.com (Mohammed Siddiqi)
Injection-Date: Fri, 02 Jun 2023 17:17:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5519
 by: Mohammed Siddiqi - Fri, 2 Jun 2023 17:17 UTC

I am currently working on making sure NTP works according to the RFC 5905 and we use NTP.org implementation of ntpd. I have been going through the RFC and NTP.org’s documentation and have a query regarding the use of iburst and burst options.

Extract from RFC-5905 (RFC 5905: Network Time Protocol Version 4: Protocol and Algorithms Specification (rfc-editor.org))

13.2. Poll Process Operations

As described previously, once each second the clock-adjust process is
called. This routine calls the poll routine for each association in
turn. If the time for the next poll message is greater than the
seconds counter, the routine returns immediately. Symmetric (modes
1, 2), client (mode 3), and broadcast server (mode 5) associations
routinely send packets. A broadcast client (mode 6) association runs
the routine to update the reach and unreach variables, but does not
send packets. The poll process calls the transmit process to send a
packet. If in a burst (burst > 0), nothing further is done except
call the poll update routine to set the next poll interval.

If not in a burst, the reach variable is shifted left by one bit,
with zero replacing the rightmost bit. If the server has not been
heard for the last three poll intervals, the clock filter routine is
called to increase the dispersion. An example is shown in
Appendix A.5.7.3.

If the BURST flag is lit and the server is reachable and a valid
source of synchronization is available, the client sends a burst of
BCOUNT (8) packets at each poll interval. The interval between
packets in the burst is two seconds. This is useful to accurately
measure jitter with long poll intervals. If the IBURST flag is lit
and this is the first packet sent when the server has been
unreachable, the client sends a burst. This is useful to quickly
reduce the synchronization distance below the distance threshold and
synchronize the clock.

Extract from NTP.org (https://www.ntp.org/documentation/4.2.8-series/poll/)

As an option of the server command, instead of a single packet, the poll process can send a burst of several packets at 2-s intervals. This is designed to reduce the time to synchronize the clock at initial startup (iburst) and/or to reduce the phase noise at the longer poll intervals (burst). The iburst option is effective only when the server is unreachable, while the burst option is effective only when the server is reachable. The two options are independent of each other and both can be enabled at the same time.

For the iburst option the number of packets in the burst is six, which is the number normally needed to synchronize the clock; for the burst option, the number of packets in the burst is determined by the difference between the current poll exponent and the minimum poll exponent as a power of 2. For instance, with the default minimum poll exponent of 6 (64 s), only one packet is sent for every poll, while the full number of eight packets is sent at poll exponents of 9 (512 s) or more. This insures that the average headway will never exceed the minimum headway.

I am confused about how exactly the iburst and burst options work. My questions are:
1. How many packets are sent from the client when we are using iburst option? 6 OR 8?
2. If the IBURST flag is lit and this is the first packet sent when the server has been unreachable, the client sends a burst. How many packets are sent in this situation?
3. How many packets are sent from the client when using the burst option?
4. When using burst option, does the client send 8 packets in a burst at each poll interval? Or does it follow this “for the burst option, the number of packets in the burst is determined by the difference between the current poll exponent and the minimum poll exponent as a power of 2.”?
5. The BCOUNT variable count is 8 according to RFC5905? Does this apply to iburst as well or only when using burst?
6. If possible, can you please give me an example to explain the operation of iburst and burst and numbers of packets being sent using each option?

I would be grateful if anyone from the experts here could please provide your advice on this and help me understand the protocol better so that we follow the correct protocol rules.

Thank you.

Re: iburst and burst options in NTP

<u5dvvq$3ajg5$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david@ex.djwhome.demon.invalid (David Woolley)
Newsgroups: comp.protocols.time.ntp
Subject: Re: iburst and burst options in NTP
Date: Sat, 3 Jun 2023 01:03:05 +0100
Organization: No affiliation
Lines: 13
Message-ID: <u5dvvq$3ajg5$1@dont-email.me>
References: <25858b7e-7c1e-4b55-ab91-2a64d34d7e98n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Date: Sat, 3 Jun 2023 00:03:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e06c7008e21f93920924c8f53057d1fb";
logging-data="3493381"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wiZjVZxfumM6Y8+r+6KrFopJL6ZiJUko="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:DlhsJJdcxgXDivQeATtGAKLRkBU=
Content-Language: en-GB
In-Reply-To: <25858b7e-7c1e-4b55-ab91-2a64d34d7e98n@googlegroups.com>
 by: David Woolley - Sat, 3 Jun 2023 00:03 UTC

On 02/06/2023 18:17, Mohammed Siddiqi wrote:
> I am currently working on making sure NTP works according to the RFC 5905 and we use NTP.org implementation of ntpd. I have been going through the RFC and NTP.org’s documentation
If you want a definitive implementation of the RFC, you need the ntp.org
version that was current at the time of its publication, and represents
the reference implementation. The current source code will include
improvements.
I suspect Dave Mills considered the RFC to be more like a research
paper, describing things as they were at the point at which it was
written, rather than as a standard, frozen for all time.

Re: [questions] Re: iburst and burst options in NTP

<e4ea2dd1-2a94-9c79-c14f-75d6730b05e9@nwtime.org>

  copy mid

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

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: stenn@nwtime.org (Harlan Stenn)
Newsgroups: comp.protocols.time.ntp
Subject: Re: [questions] Re: iburst and burst options in NTP
Date: Sat, 3 Jun 2023 10:48:00 -0000 (UTC)
Organization: Taughannock Networks, Trumansburg NY
Message-ID: <e4ea2dd1-2a94-9c79-c14f-75d6730b05e9@nwtime.org>
References: <25858b7e-7c1e-4b55-ab91-2a64d34d7e98n@googlegroups.com> <u5dvvq$3ajg5$1@dont-email.me>
Reply-To: questions@lists.ntp.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 3 Jun 2023 10:48:00 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="83184"; mail-complaints-to="abuse@iecc.com"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv: 102.0) Gecko/20100101 Thunderbird/102.11.0
To: questions@lists.ntp.org
Return-Path: <questions+bounces-179-ntpquestions=iecc.com@lists.ntp.org>
Delivered-To: ntpquestions@iecc.com
Delivered-To: questions@lists.ntp.org
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on gal.iecc.com
X-Spam-Status: No, score=-0.1 required=4.4 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.0
Authentication-Results: iecc.com; spf=pass spf.mailfrom=questions+bounces-179-ntpquestions=iecc.com@lists.ntp.org spf.helo=mail0.chi1.ntfo.org smtp.remote-ip="204.93.207.17"; dkim=pass header.d=nwtime.org header.s=mail header.a=rsa-sha256 header.b="lKJYtk6J"; dmarc=pass header.from=nwtime.org polrec.p=none polrec.pct=100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nwtime.org; s=mail; t=1685789091; bh=FgUi823fP/tZprGy6erP4C6k/jor1ppzbEp1yWCS5xs=; h=Message-ID:Date:Reply-To:List-unsubscribe:List-Id:MIME-Version:To: References:From:Subject:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=lKJYtk6Jk9Mb/YQcwMRmTztITbND4PUgIRxDzXeEzrtzu5zs0oSW2bhoKWoyYouCL /X+GpHSwFPB99+ccPxYtLvvxiw/tx1H2lAPJUIoaijdgtpXso43LomaXBEYIzlVy0M sgOIPwkSIBMZsU7KaJVEzdMpSOyUKB0uVEBhveFU=
X-Original-To: questions@lists.ntp.org
List-unsubscribe: mailto: questions+unsubscribe@lists.ntp.org
X-BeenThere: questions@lists.ntp.org
List-Id: questions.lists.ntp.org
Precedence: list
Content-Language: en-US
In-Reply-To: <u5dvvq$3ajg5$1@dont-email.me>
X-DCC-iecc-Metrics: gal.iecc.com 1107; Body=1 Fuz1=1 Fuz2=1
Mail-to-news: iecc.com
 by: Harlan Stenn - Sat, 3 Jun 2023 10:48 UTC

On 6/2/2023 5:03 PM, David Woolley wrote:
> On 02/06/2023 18:17, Mohammed Siddiqi wrote:
>> I am currently working on making sure NTP works according to the RFC
>> 5905 and we use NTP.org implementation of ntpd. I have been going
>> through the RFC and NTP.org’s documentation
>
> If you want a definitive implementation of the RFC, you need the ntp.org
> version that was current at the time of its publication, and represents
> the reference implementation.  The current source code will include
> improvements.
>
> I suspect Dave Mills considered the RFC to be more like a research
> paper, describing things as they were at the point at which it was
> written, rather than as a standard, frozen for all time.

That is pretty much all true, David.

To be slightly picky about it, please see:

https://support.ntp.org/Dev/ReleaseTimeline

The first alpha code release of ntp4 was in September of 1997, and the
first production release was in August of 2001.

There were 3 major ntp4 code releases before
draft-ietf-ntp-ntpv4-proto-00 in July of 2005, and 3 more major code
releases before RFC 5905 and 5906 were published, in June of 2010.

The process of reconciling the code and the Standard took 5 years, and
as I recall that when there was a discrepancy between the code and the
proposed Standard, about 90% of the time the Standard was changed.

We've had one major release of the code since then, and are in
preparation for another.

Dave Mills has ALWAYS been more interested in performance and behavior
than in following the Standard. This makes perfect sense to many of us,
as we're more interested in good timekeeping and behavior than we are in
"following a specification".

I don't know if anybody has ever audited the code and RFCs 5805 and 5806
to "find the closest match."

I know there have been some diversions between the Standard and the
code. From "our" POV, the code does a better job of timekeeping than
the Standard.

Oh, and Dave also considers the 2nd edition of his book, "Computer
Network Time Synchronization", to be a better specification than the RFCs.

An example of the above would be
https://bugs.ntp.org/show_bug.cgi?id=2085, which took nearly 2 years'
time to resolve. In particular, the comments contain a lot of
information about the intricasies and subtlety involved.
--
Harlan Stenn <stenn@nwtime.org>
http://networktimefoundation.org - be a member!
--
This is questions@lists.ntp.org
Subscribe: questions+subscribe@lists.ntp.org
Unsubscribe: questions+unsubscribe@lists.ntp.org

Re: [questions] Re: iburst and burst options in NTP

<f8fcd053-964c-43ff-939c-3a97a4324d5dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:620a:17a2:b0:74d:f7d0:6a5f with SMTP id ay34-20020a05620a17a200b0074df7d06a5fmr701522qkb.0.1686245993674;
Thu, 08 Jun 2023 10:39:53 -0700 (PDT)
X-Received: by 2002:ac8:5bd6:0:b0:3f8:404:9b7b with SMTP id
b22-20020ac85bd6000000b003f804049b7bmr2005392qtb.10.1686245993452; Thu, 08
Jun 2023 10:39:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Thu, 8 Jun 2023 10:39:53 -0700 (PDT)
In-Reply-To: <e4ea2dd1-2a94-9c79-c14f-75d6730b05e9@nwtime.org>
Injection-Info: google-groups.googlegroups.com; posting-host=165.225.208.222; posting-account=YRBAKAoAAAA2Is9JWyrGOLHqEGQkoe_U
NNTP-Posting-Host: 165.225.208.222
References: <25858b7e-7c1e-4b55-ab91-2a64d34d7e98n@googlegroups.com>
<u5dvvq$3ajg5$1@dont-email.me> <e4ea2dd1-2a94-9c79-c14f-75d6730b05e9@nwtime.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f8fcd053-964c-43ff-939c-3a97a4324d5dn@googlegroups.com>
Subject: Re: [questions] Re: iburst and burst options in NTP
From: siddiqi.m@gmail.com (Mohammed Siddiqi)
Injection-Date: Thu, 08 Jun 2023 17:39:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4268
 by: Mohammed Siddiqi - Thu, 8 Jun 2023 17:39 UTC

On Saturday, June 3, 2023 at 6:48:02 AM UTC-4, Harlan Stenn wrote:
> On 6/2/2023 5:03 PM, David Woolley wrote:
> > On 02/06/2023 18:17, Mohammed Siddiqi wrote:
> >> I am currently working on making sure NTP works according to the RFC
> >> 5905 and we use NTP.org implementation of ntpd. I have been going
> >> through the RFC and NTP.org’s documentation
> >
> > If you want a definitive implementation of the RFC, you need the ntp.org
> > version that was current at the time of its publication, and represents
> > the reference implementation. The current source code will include
> > improvements.
> >
> > I suspect Dave Mills considered the RFC to be more like a research
> > paper, describing things as they were at the point at which it was
> > written, rather than as a standard, frozen for all time.
> That is pretty much all true, David.
>
> To be slightly picky about it, please see:
>
> https://support.ntp.org/Dev/ReleaseTimeline
>
> The first alpha code release of ntp4 was in September of 1997, and the
> first production release was in August of 2001.
>
> There were 3 major ntp4 code releases before
> draft-ietf-ntp-ntpv4-proto-00 in July of 2005, and 3 more major code
> releases before RFC 5905 and 5906 were published, in June of 2010.
>
> The process of reconciling the code and the Standard took 5 years, and
> as I recall that when there was a discrepancy between the code and the
> proposed Standard, about 90% of the time the Standard was changed.
>
> We've had one major release of the code since then, and are in
> preparation for another.
>
> Dave Mills has ALWAYS been more interested in performance and behavior
> than in following the Standard. This makes perfect sense to many of us,
> as we're more interested in good timekeeping and behavior than we are in
> "following a specification".
>
> I don't know if anybody has ever audited the code and RFCs 5805 and 5806
> to "find the closest match."
>
> I know there have been some diversions between the Standard and the
> code. From "our" POV, the code does a better job of timekeeping than
> the Standard.
>
> Oh, and Dave also considers the 2nd edition of his book, "Computer
> Network Time Synchronization", to be a better specification than the RFCs..
>
> An example of the above would be
> https://bugs.ntp.org/show_bug.cgi?id=2085, which took nearly 2 years'
> time to resolve. In particular, the comments contain a lot of
> information about the intricasies and subtlety involved.
> --
> Harlan Stenn <st...@nwtime.org>
> http://networktimefoundation.org - be a member!
> --
> This is ques...@lists.ntp.org
> Subscribe: questions...@lists.ntp.org
> Unsubscribe: questions+...@lists.ntp.org

Thanks a lot for your replies!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor