[Ntp] Temporary extension field types for NTPv5

David Venhoek <david@venhoek.nl> Sun, 30 October 2022 18:45 UTC

Return-Path: <david@venhoek.nl>
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 20610C14F728 for <ntp@ietfa.amsl.com>; Sun, 30 Oct 2022 11:45:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=venhoek-nl.20210112.gappssmtp.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 eRdUecEqZsU7 for <ntp@ietfa.amsl.com>; Sun, 30 Oct 2022 11:45:31 -0700 (PDT)
Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 B8EB2C14F723 for <ntp@ietf.org>; Sun, 30 Oct 2022 11:45:30 -0700 (PDT)
Received: by mail-ed1-x534.google.com with SMTP id f7so9055205edc.6 for <ntp@ietf.org>; Sun, 30 Oct 2022 11:45:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=venhoek-nl.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jbPkcea0wCwFZIhiG/2kmV3/yDh0jjE1RvrdAUpgoxc=; b=frTtEPDYnnEWYh1M51aKTUZoGQr48Nwjs/zXkfRM6wWza0S83MDn4h3KSB+CXO+ee4 ciAPRbayJ2HjJoCWHJ++wb7zenl7T2v32G3pU7me5OogZcoF6ZQI2dndX3AdjJsK/0pC 0o8sfp6mQhHNzMnRK/Ze1fCYsaR//f6BCaNbJXD44wyOBsndGGVhyGw1GjJOCt9fetQl gzgH2Ngy+tG71/yR/ci8nDKdFn9afCznMuQpmW/aAaAG76FnQkAqqI1qRdXc51sZ+El3 LevLKEr1ZHhC4LGHqSBLOyg4iy243YvGZV/cMZ3RvSGnvYgYKxlFy5JJgTX4MbrjM0Vy 7kDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jbPkcea0wCwFZIhiG/2kmV3/yDh0jjE1RvrdAUpgoxc=; b=3p+uxixs8hJzQFcro6hBHnEGRrLxJTrrzUcwKRAVDK4UenROWDfzHoJfTUxFNlGxts fcYHeBh3hq6UypA5uzu6YM+1+l5UjcehlG59VYcYX54362UMle2CGFrRYG23uhzAryrs YAPXs1mVsaUmu48fCAgiU86YgIeJU0D9VT+RFBwObQHSQJ9KwoG6lKpr4w0dXmaj9lnq Pzo1QlFnaS0kMoC33Skq9CU866jIT3uJpL7fx9i5mVTP6MavBk6A4POTE+j+LI2o8xhA OPajx+OaOZG9itxWr/lfCKgk5p+6dpoMQshebS3Cq5gafogpngGsLtlLxFHQhfhzmDGM iWlA==
X-Gm-Message-State: ACrzQf1o4tDqoS3OkdI/Wie/pYDUJVy4br6EENyoA9eFVIk3oS9ycuzV +XbwdN9WujHdffZq4CYsMwlnFfccG+uKVlScBe03X4oHA/r0uaPG
X-Google-Smtp-Source: AMsMyM5ZSPiJyrVhmC6HWH24Xj3Uj9rK56i0u47i1O11Gxc3coZ/vAvOdytCq9ypP+Xw9wSA9+3fWU4lFcB6LUhsbeo=
X-Received: by 2002:a05:6402:42c7:b0:461:bea2:8a70 with SMTP id i7-20020a05640242c700b00461bea28a70mr10423358edc.261.1667155528632; Sun, 30 Oct 2022 11:45:28 -0700 (PDT)
MIME-Version: 1.0
From: David Venhoek <david@venhoek.nl>
Date: Sun, 30 Oct 2022 19:45:17 +0100
Message-ID: <CAPz_-SWYHWnoe70YLxuLyjMZYP7gUHkr7r4twUm+XsSpcDUOkQ@mail.gmail.com>
To: ntp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Sq9LRLh2wGX08qCoxvwy9Zx0MJs>
Subject: [Ntp] Temporary extension field types for NTPv5
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: Sun, 30 Oct 2022 18:45:33 -0000

Dear All,

I have made a pull request on Miroslav's NTPv5 draft git repository to
add temporary extension field type identifiers to all of the new
extension fields. These have been taken from Miroslav's implementation
where available, and extended logically elsewhere.

I have also added a temporary extension field for indicating which
draft version is used by an implementation to make this easier to
track for further changes.

For all of these extension fields, the extension field types are in
the experimental 0xf000-0xffff range per the ntp-registries draft.

For those uncomfortable with git, the diff is included below.

Kind regards,
David Venhoek

--- a/ntp-ntpv5.xml
+++ b/ntp-ntpv5.xml
@@ -408,8 +408,23 @@
         server, also the Reference IDs Request and Response extension fields to
         enable detection of synchronization loops.</t>

+      <section title="Draft Identification Extension Field">
+        <t>Note to the editors: this section must be removed before
final publication.</t>
+
+        <t>This field, with type 0xFFFF, is used to indicate which
draft of the specification
+          an implementation is based upon. It MUST be included in any
NTPv5 message produced
+          by an implementation based on a draft of this
specification, and MUST NOT be included
+          in any NTPv5 message produced by an implementation based on
the final version of
+          this specification.</t>
+
+        <t>The contents of this field MUST be the full name,
including version number, of
+          the draft upon which the implementation is based, encoded
as an ASCII string.</t>
+
+        <t>Note: the content of this field MUST NOT be null terminated</t>
+      </section>
+
       <section title="Padding Extension Field">
-        <t>This field is used by servers to pad the response to the same length
+        <t>This field, with type [[TBD]] (draft: 0xF501), is used by
servers to pad the response to the same length
           as the request if the response does not contain all requested
           extension fields, or some have a variable length. It can have any
           length. The data field of the extension field SHOULD contain zeros
@@ -419,7 +434,7 @@
       </section>

       <section title="MAC Extension Field">
-        <t>This field authenticates the NTPv5 message with a symmetric key.
+        <t>This field, with type [[TBD]] (draft: 0xF502),
authenticates the NTPv5 message with a symmetric key.
           Implementations SHOULD use the MAC specified in <xref
           target="RFC8573">RFC8573</xref>. The extension field MUST be the last
           extension field in the message unless an extension field is
@@ -503,7 +518,7 @@
  0                   1                   2                   3
  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|             Type              |             Length            |
+| Type = [[TBD]] (draft 0xF503) |             Length            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |            Offset             |                               |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
@@ -523,7 +538,7 @@
  0                   1                   2                   3
  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|             Type              |             Length            |
+| Type = [[TBD]] (draft 0xF504) |             Length            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 .                                                               .
 .                  Bloom filter chunk (variable)                .
@@ -548,7 +563,7 @@
  0                   1                   2                   3
  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|             Type              |             Length            |
+| Type = [[TBD]] (draft 0xF505) |             Length            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | Min. Version  | Max. Version  |            Reserved           |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -586,7 +601,7 @@
  0                   1                   2                   3
  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|             Type              |             Length            |
+| Type = [[TBD]] (draft 0xF506) |             Length            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 +                       Origin Correction                       +
@@ -696,7 +711,7 @@
  0                   1                   2                   3
  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|             Type              |             Length            |
+| Type = [[TBD]] (draft 0xF507) |             Length            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                                                               |
 |                      Reference Timestamp (64)                 |
@@ -735,7 +750,7 @@
  0                   1                   2                   3
  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-|             Type              |             Length            |
+| Type = [[TBD]] (draft 0xF508) |             Length            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                            Epoch ID                           |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+