Re: [Ntp] [EXT] Re: Re: Experimental/Private EF area: was Re: Registries document

"Windl, Ulrich" <u.windl@ukr.de> Tue, 01 August 2023 06:49 UTC

Return-Path: <u.windl@ukr.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 B3BBFC151719 for <ntp@ietfa.amsl.com>; Mon, 31 Jul 2023 23:49:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, 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 sLqEtEaWBi6r for <ntp@ietfa.amsl.com>; Mon, 31 Jul 2023 23:49:54 -0700 (PDT)
Received: from mail02.ukr.de (mail02.ukr.de [193.175.194.182]) (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 0F953C14CE42 for <ntp@ietf.org>; Mon, 31 Jul 2023 23:49:53 -0700 (PDT)
X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="303919"
X-IronPort-AV: E=Sophos;i="6.01,246,1684792800"; d="scan'208";a="303919"
Received: from unknown (HELO ukr-excmb01.ukr.local) ([172.24.6.61]) by dmz-infcsg02.ukr.dmz with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 08:49:51 +0200
Received: from ukr-excmb03.ukr.local (172.24.6.63) by ukr-excmb01.ukr.local (172.24.6.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Tue, 1 Aug 2023 08:49:50 +0200
Received: from ukr-excmb03.ukr.local ([fe80::1cb4:6e0c:6da4:a8a0]) by ukr-excmb03.ukr.local ([fe80::1cb4:6e0c:6da4:a8a0%5]) with mapi id 15.01.2507.027; Tue, 1 Aug 2023 08:49:49 +0200
From: "Windl, Ulrich" <u.windl@ukr.de>
To: "Windl, Ulrich" <u.windl@ukr.de>, Miroslav Lichvar <mlichvar@redhat.com>, "Salz, Rich" <rsalz@akamai.com>
CC: Harlan Stenn <stenn@ntp.org>, Harlan Stenn <stenn@nwtime.org>, "ntp@ietf.org" <ntp@ietf.org>
Thread-Topic: [EXT] Re: [Ntp] Re: Experimental/Private EF area: was Re: Registries document
Thread-Index: AQHZxERd6XvQJEK3pk2MU3ebPiqE2g==
Date: Tue, 01 Aug 2023 06:49:49 +0000
Message-ID: <1c1a7869590448ccb1c2ae4e6a89929d@ukr.de>
References: <858ad9b5-3adc-2b1c-263b-6ce89d9d8f93@nwtime.org> <5CA8A53F-6725-413C-9AA1-514D3094B6E8@akamai.com> <664a52a9-08a9-d755-7f2c-5e7b9e3c9667@nwtime.org> <72448798-1D9F-4391-B3A6-131CE9783132@akamai.com> <d53b7d81-08bb-9159-33e7-9d0e21cca7d8@ntp.org> <EA171472-63A2-468E-AE6B-D655403058D0@akamai.com> <055e2897-143a-e19c-9c1b-b1953c4ea2c9@ntp.org> <795cbd64-5637-131f-b287-8649a3db145c@ntp.org> <ZMeh8WnbrAKDPx0Z@localhost> <C1B8DD5F-01F5-4776-AF70-A3C3A62E7E9B@akamai.com> <ZMfH8Brt3mOHhZ3R@localhost> <fa017fc1105a4405aafa2848b414adb9@ukr.de>
In-Reply-To: <fa017fc1105a4405aafa2848b414adb9@ukr.de>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.24.3.1]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/KDv8Yfa3sqTLDKTBNFaw6m914wo>
Subject: Re: [Ntp] [EXT] Re: Re: Experimental/Private EF area: was Re: Registries document
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: Tue, 01 Aug 2023 06:49:56 -0000

Hi!

My last sentence on "02" being the message length was nonsense; it's the field type as I understand it. Actually I'm not surprised that reading that confused me quite a lot...

Regards,
Ulrich


-----Original Message-----
From: ntp <ntp-bounces@ietf.org> On Behalf Of Windl, Ulrich
Sent: Tuesday, August 1, 2023 8:42 AM
To: Miroslav Lichvar <mlichvar@redhat.com>; Salz, Rich <rsalz@akamai.com>
Cc: Harlan Stenn <stenn@ntp.org>; Harlan Stenn <stenn@nwtime.org>; ntp@ietf.org
Subject: [EXT] Re: [Ntp] Re: Experimental/Private EF area: was Re: Registries document

Hi!

 

Actually I think the big mistake made in the past was to add the whole word into the IANA registry when the word is interpreted to consist of four or five fields.

IMHO the correct option would have been to register the "Code"s and maybe the "Field Type"s (as per RFC 5906, Figure 7: NTPv4 Extension Field Format).

BTW: The IANA registry lists 16-bit numbers as "Field Type", but tn the RFC the "Field Type" is just 8 bits; so maybe it's "R" + "E" + "Code" + Field Type" actually.

But then I wonder whether "02" is actually the "Field Type" (what's type 2 , BTW?), or the "autokey version 2". Harlan still denies it's a mess...

 

Doing it correctly the actual table would have been much shorter. Maybe compare it to the TIFF (Tagged Image File Format) specification where tags, types, and lengths are clearly separated.

 

    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   |R|E|   Code    |  Field Type   |            Length             |

   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

 

Also for example taking "0x0302

Cookie Message Request" the length should be 2, but I wonder how to put "host public key encoded with ASN.1 syntax" in that size.

(If the last part formats badly: It's Outlook when pasting text from a PDF)

 

Regards,

Ulrich

 

-----Original Message-----
From: ntp <ntp-bounces@ietf.org> On Behalf Of Miroslav Lichvar
Sent: Monday, July 31, 2023 4:41 PM
To: Salz, Rich <rsalz@akamai.com>
Cc: Harlan Stenn <stenn@ntp.org>; Harlan Stenn <stenn@nwtime.org>; ntp@ietf.org
Subject: [EXT] Re: [Ntp] Experimental/Private EF area: was Re: Registries document

 

On Mon, Jul 31, 2023 at 02:12:21PM +0000, Salz, Rich wrote:

> As we clearly do not yet have WG consensus on changing the private-use field types, I am not making the change yet. Also, because the text was wrong.

> 

> The current request is 0xF000 through 0xFFFF inclusive which is 4096 values. Harlan proposed 16 partitions, 0x000E thru 0xFF0e, 0x001E thru 0xFF1E, ... and 0x00Fe thru 0xFFFE. If I got the math right, that's also 4096 values.

> 

> There is no "partitioning" within the private-use extension field values.  It's a flat numbering space that IANA stays away from.

 

I think the idea was to avoid potential implementations of the current

RFC 5906 looking only at the low 8 bits of the type (the "version"

subfield) to misdetect experimental EFs as Autokey. The suggested 0x???E

values don't intersect with the Autokey values 0x??02. But as we are

fixing the registry and RFC 5906 to use the ntpd values (as the RFC

was supposed to do), 0x???E would intersect with the 0x(0|4|8|C)2??

values. The 0xF??? values which are now in the draft is fine.

 

-- 

Miroslav Lichvar

 

_______________________________________________

ntp mailing list

ntp@ietf.org

https://www.ietf.org/mailman/listinfo/ntp