Re: [Ntp] Antw: Re: Antw: [EXT] Re: Quick review of WGLC for status change for draft-ietf-ntp-update-registries

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> Wed, 17 August 2022 10:36 UTC

Return-Path: <Ulrich.Windl@rz.uni-regensburg.de>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9458C14CE2F for <ntp@ietfa.amsl.com>; Wed, 17 Aug 2022 03:36:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.907
X-Spam-Level:
X-Spam-Status: No, score=-6.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zJ1-7RWgg61L for <ntp@ietfa.amsl.com>; Wed, 17 Aug 2022 03:36:02 -0700 (PDT)
Received: from mx2.uni-regensburg.de (mx2.uni-regensburg.de [IPv6:2001:638:a05:137:165:0:3:bdf8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C7F2FC1522A2 for <ntp@ietf.org>; Wed, 17 Aug 2022 03:35:07 -0700 (PDT)
Received: from mx2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id C57026000070 for <ntp@ietf.org>; Wed, 17 Aug 2022 12:35:01 +0200 (CEST)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx2.uni-regensburg.de (Postfix) with ESMTP id 2A08A6000047 for <ntp@ietf.org>; Wed, 17 Aug 2022 12:34:59 +0200 (CEST)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Wed, 17 Aug 2022 12:34:59 +0200
Message-Id: <62FCC452020000A10004C634@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.4.1
Date: Wed, 17 Aug 2022 12:34:58 +0200
From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>, Heiko Gerstung <heiko.gerstung@meinberg.de>, stenn@nwtime.org
References: <PH0PR06MB7061FA7A5B338D262B3A2963C2999@PH0PR06MB7061.namprd06.prod.outlook.com> <da155c84-2c70-2e3b-59eb-03e380806cf2@nwtime.org> <PH0PR06MB70611F2331D8255F7E2B6604C2999@PH0PR06MB7061.namprd06.prod.outlook.com> <0b4c7efa-3977-b588-0974-33b6a9437e52@nwtime.org> <YvDWC27qKnODlD52@localhost> <0b57b7db-772e-f5e6-e6a0-a433673f3d77@nwtime.org> <YvED7T5R0UsRWbv3@localhost> <b64c6a0a-ea2e-0a19-4bb9-38bfaa2e5032@nwtime.org> <656D355F-E06A-4005-B9D6-90885FA8509D@akamai.com> <1a4bae28-f0f3-e675-899a-bad597b4ee29@nwtime.org> <F74A7B5B-3D77-42AF-BD7E-1A874CCD2D66@akamai.com> <67545c9a-3291-bbe6-c876-4c762c80c710@nwtime.org> <FF22AEFE-ED61-405E-AB40-B7901D0CD588@meinberg.de> <f79cecd6-92b0-595b-e449-6b6f8944ae66@nwtime.org> <133C5633-E4D5-42AF-8215-E3FDE28C5BF9@meinberg.de> <4f833218-231f-8c47-e529-b3ba00f6554e@nwtime.org> <62FB5EDB020000A10004C5CD@gwsmtp.uni-regensburg.de> <a89aeba9-5e88-2214-634f-7a9a7106eec3@nwtime.org> <22DC6703-ADFA-45BA-B26D-3DB7E957D0F3@meinberg.de> <ce02ea92-91ef-ac24-797b-8381caa2bfe5@nwtime.org> <156A19AA020000CE86EDC2A6@gwsmtp.uni-regensburg.de> <17F56E700200003C822C0D04@gwsmtp.uni-regensburg.de> <62FC9492020000A10004C619@gwsmtp.uni-regensburg.de> <7CBEFEA1-1049-4023-BC4A-7B5FCEE20058@meinberg.de>
In-Reply-To: <7CBEFEA1-1049-4023-BC4A-7B5FCEE20058@meinberg.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/gwPwafu6m-p78B6xDrMnaNJLd2c>
Subject: Re: [Ntp] Antw: Re: Antw: [EXT] Re: Quick review of WGLC for status change for draft-ietf-ntp-update-registries
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2022 10:36:06 -0000

>>> Heiko Gerstung <heiko.gerstung@meinberg.de> schrieb am 17.08.2022 um 11:27
in
Nachricht <7CBEFEA1-1049-4023-BC4A-7B5FCEE20058@meinberg.de>:
> The code (ntp.h) uses this define:
> #define NTP_OLDVERSION  ((u_char)1) /* oldest credible version */
> 
> And ntpq (ntpq.c) sets the packet version like this:
> /*
>  * Packet version number we use
>  */
> u_char pktversion = NTP_OLDVERSION + 1;

Well, one can speculate: NTPv2 was the first one that defined the control
message protocol, so maybe "OLD" was just intended to mean "previous", or
specifically "not the old protocol that had no version number (and no control
messages)".

Page 49 of RFC1119 (PS/PDF version) states: "Version Number (VN): This is a
three-bit integer indicating the NTP version number, currently two
(2)." So it seems it was intended that the version matches the protocol
version even in control messages.

> 
> It looks like the ntpq code deliberately takes the "oldest credible version"

> and increases it by one, which results in the "second oldest credible 
> version" if I am not wrong. I agree with Harlan that you do not need to bump

> a version number if the format is the same, but I also agree with the 
> assumption that ntpq/mode6 should use its own version numbering and bump the

> version if a query or response changes. The general packet format still
works 
> fine, but the contents can change. 

I think the control messages should have their own variable defining the
message version; 3 bits is not enough, specifically as there are only three
states (5-7) left.

> 
> The examples of variable names changing (root dispersion/root disp) is a 
> good example for a "breaking change" as it most likely would break a parser

> that tries to read a value and process it. 
> 
> To me the main reason why this version number never changed, despite the 
> fact that the content of the mode 6 packets did, is that the VN refers to
the 
> packet format itself, not to the content. Therefore, if we ever get to a 
> point where we define a standardized mode 6 interface, we would need a 
> version number for the content/data provided by the NTP instance. 

My opinion is different. See above.

Regards,
Ulrich

> 
> Regards,
>    Heiko
> 
> 
> 
> 
> 
> 
> Am 17.08.22, 09:11 schrieb "Ulrich Windl" 
> <Ulrich.Windl@rz.uni-regensburg.de>:
> 
>     >>> Harlan Stenn <stenn@nwtime.org> schrieb am 16.08.2022 um 13:48 in
>     Nachricht
>     <ce02ea92-91ef-ac24-797b-8381caa2bfe5@nwtime.org>:
>     > On 8/16/2022 4:09 AM, Heiko Gerstung wrote:
>     >> The RFC says
>     >> " VN Version Number (version): 3-bit integer representing the NTP
>     >>     version number, currently 4."
>     >> 
>     >> It does not make any exceptions for different modes, so why should
the 
>     > meaning of the version number field be different for mode 6 packets? I

> did 
>     > not find anything in RFC5905 about mode 6 packets.
>     > 
>     > Yes, and it also talks about "recognized" versions.
>     > 
>     > If, over the years, mode 6 packets going out as v2 interoperate 
>     > sufficiently with ntp-[234] target systems, what are the
costs/benefits 
> 
>     > of (arbitrarily?) bumping the version number as new ntpN releases are

> made?
> 
>     Let me ask the other way: Setting VN=4 for mode 6 queries is answered 
> just the
>     same. Maybe it was just forgotten to touch the code for the new
version.
> 
>     > 
>     >> Regards,
>     >>    Heiko
>     >> 
>     >> --
>     >> Heiko Gerstung | Managing Director
>     >> T: +49 (0)5281 9309-404 | LinkedIn Profile 
>     > <https://www.linkedin.com/in/heikogerstung/> | Twitter 
>     > <https://twitter.com/hgerstung>
>     >> heiko.gerstung@meinberg.de 
>     >> 
>     >> MEINBERG® The Synchronization Experts
>     >>   
>     >> Meinberg Funkuhren GmbH & Co. KG
>     >> Lange Wand 9 | 31812 Bad Pyrmont | Germany
>     >> Web: http://www.meinberg.de | http://www.meinbergglobal.com |
LinkedIn  
> 
>     > <https://www.linkedin.com/company/meinberg-funkuhren-gmbh-&-co--kg>
>     >> 
>     >> Amtsgericht Hannover 17HRA 100322
>     >> Geschäftsführer/Management: Günter Meinberg, Werner Meinberg, Andre 
>     > Hartmann, Heiko Gerstung
>     >> 
>     >> Do not miss our Time Synchronization Blog:
>     >> http://blog.meinbergglobal.com 
>     >>   
>     >>   
>     >> 
>     >> Am 16.08.22, 11:22 schrieb "ntp im Auftrag von Harlan Stenn" 
>     > <ntp-bounces@ietf.org im Auftrag von stenn@nwtime.org>:
>     >> 
>     >>      On 8/16/2022 2:09 AM, Ulrich Windl wrote:
>     >>      >>>> Harlan Stenn <stenn@nwtime.org> schrieb am 15.08.2022 um
23:53 in
> 
>     > Nachricht
>     >>      > <4f833218-231f-8c47-e529-b3ba00f6554e@nwtime.org>:
>     >>      > ...
>     >>      >> So if we're a V4 server and we get a v5 request, we will
respond
>     with 
>     > a
>     >>      >> v4 packet that says v5.
>     >>      >>
>     >>      >> This is consistent with the design.
>     >>      >>
>     >>      >> No one has seen a v1 packet format in a very long time.  The
v1
>     stuff
>     >>      >> folks are seeing now are v[234] packets claiming to be v1.
>     >>      >>
>     >>      >> The format of the base packet saw a slight change going from
v2 
> to
>     v3
>     >>      >> (sync dispersion was replaced by estimated drift rate), and
there
>     was
>     >>      >> (TTBOMK) no change to the base packet from v3 to v4.
>     >>      >>
>     >>      >> The change from v2 to v3 caused no problems that I can
recall, 
> and
> 
>     > even
>     >>      >> so, I'm unaware of ANY surviving v2 servers out there.
>     >>      >
>     >>      > Well, ntpq 4.2.8p15 is using version==2 when doing mode 6 
> queries,
>     so 
>     > there are V2 packets!
>     >> 
>     >>      What exactly does the version field mean in a mode 6 packet?
>     >> 
>     >>      --
>     >>      Harlan Stenn <stenn@nwtime.org>
>     >>      http://networktimefoundation.org - be a member!
>     >> 
>     >>      _______________________________________________
>     >>      ntp mailing list
>     >>      ntp@ietf.org 
>     >>      https://www.ietf.org/mailman/listinfo/ntp 
>     >> 
>     >> 
>     >> _______________________________________________
>     >> ntp mailing list
>     >> ntp@ietf.org 
>     >> https://www.ietf.org/mailman/listinfo/ntp 
>     > 
>     > -- 
>     > Harlan Stenn <stenn@nwtime.org>
>     > http://networktimefoundation.org - be a member!