Re: [Ntp] NTPv5 extension field format
Miroslav Lichvar <mlichvar@redhat.com> Thu, 02 November 2023 08:48 UTC
Return-Path: <mlichvar@redhat.com>
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 1219BC14CE3F for <ntp@ietfa.amsl.com>; Thu, 2 Nov 2023 01:48:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
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 x8L9hZTLSVLB for <ntp@ietfa.amsl.com>; Thu, 2 Nov 2023 01:48:05 -0700 (PDT)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 71C8DC151995 for <ntp@ietf.org>; Thu, 2 Nov 2023 01:48:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698914883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AmjDbnT9O+M4jfwo6HqUFtsbtK0JSFjKntDdHRkJKNU=; b=QX6/hyChN3yShP9CNC+p/brGbqR/nWI7n0CJtl0SelIdO/6RSjp93o6N0aZdtroe21BsCO emO5rkWH3ffyecXL3LmGsKcvAl8JcjwmJeUog1emOlzI9CedkbPBEsg1DT7fX0QI60Ojwv eYfp1497frrtX5JmB49NOTcFi4Rw6vY=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-403-qP6-dqdIMJqtTBCrfPPcJA-1; Thu, 02 Nov 2023 04:48:02 -0400
X-MC-Unique: qP6-dqdIMJqtTBCrfPPcJA-1
Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0EDE583B826; Thu, 2 Nov 2023 08:48:02 +0000 (UTC)
Received: from localhost (unknown [10.43.135.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 91E91492BFA; Thu, 2 Nov 2023 08:48:01 +0000 (UTC)
Date: Thu, 02 Nov 2023 09:48:00 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: David Venhoek <david@venhoek.nl>
Cc: NTP WG <ntp@ietf.org>
Message-ID: <ZUNiQHTM1wshzAH4@localhost>
References: <CAPz_-SWnYFCnuj3MNnWFGRrFp-03Cm_d195Qm8pLJST2ku-Jkg@mail.gmail.com>
MIME-Version: 1.0
In-Reply-To: <CAPz_-SWnYFCnuj3MNnWFGRrFp-03Cm_d195Qm8pLJST2ku-Jkg@mail.gmail.com>
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/pPsm9oF454c4YoUGxKBVTZziiig>
Subject: Re: [Ntp] NTPv5 extension field format
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: Thu, 02 Nov 2023 08:48:06 -0000
On Wed, Nov 01, 2023 at 02:23:43PM +0100, David Venhoek wrote: > After having implemented NTPv5 in ntpd-rs, I want to again bring for > consideration whether we should not just simply keep the NTPv4 > extension field format rather than changing it for NTPv5. The reason > is that it turns out to be rather annoying to support both the NTPv4 > and v5 extension field formats at the same time, and I rather have > just a single variant of that code to reduce the chance of bugs in it. I don't see the benefit. NTPv5 is supposed to support shorter extension field than NTPv4 (RFC 7822). That's one of the main features of NTPv5. An NTPv4+NTPv5 implementation cannot handle extension fields in the different versions the same way, no matter if lengths indivisible by 4 are allowed in NTPv5 or not. It's just one extra condition for NTPv4 in addition to the RFC 7822 requirements. If you required NTPv5 to use lengths divisible by 4, the handling of the extension fields that would otherwise use lengths indivisible by 4 would be more difficult. It would decrease complexity in one place, but increase complexity in multiple other places and this number would likely grow as new extension fields are specified. Not a good tradeoff. > - The draft ID, which can be solved by simply requireing the padding > be 0 and instructing receivers to ignore any trailing 0 bytes. This extension field is now required for the NTPv5 negotiation in NTPv4, so this should be done anyway. -- Miroslav Lichvar
- [Ntp] NTPv5 extension field format David Venhoek
- Re: [Ntp] NTPv5 extension field format Salz, Rich
- Re: [Ntp] NTPv5 extension field format Miroslav Lichvar