Re: [Ntp] Consensus call: NTPv5 and leap second smearing

Daniel Franke <dfoxfranke@gmail.com> Sun, 02 July 2023 19:22 UTC

Return-Path: <dfoxfranke@gmail.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 A6ED3C153CBF for <ntp@ietfa.amsl.com>; Sun, 2 Jul 2023 12:22:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 56keTx9qBQVZ for <ntp@ietfa.amsl.com>; Sun, 2 Jul 2023 12:22:06 -0700 (PDT)
Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 2ECCDC151996 for <ntp@ietf.org>; Sun, 2 Jul 2023 12:22:06 -0700 (PDT)
Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6b74b37fbe0so3102141a34.1 for <ntp@ietf.org>; Sun, 02 Jul 2023 12:22:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688325725; x=1690917725; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PYBF7Wr+3Vudj97IbxRt03oe7CE2uctJh8qb9RF2Qak=; b=IIdv4NyuUoef6DCTUYn3xKh5ObCkZ7MG3oyFrO5oW+4g4vXCyMuA4aLnofi4CJc9ou /ixw4jc72qnGDpLG4WMH59k9f/4h1RALvVWvK5122iS4hDofeS2puiyVPcZglGtziAex d/rpqR5LGrpZLlTotiBt6KwaTLxNniIK4jQyLX9M/vA1fXHSMaLvNc44m6faTHOnSkUF nTM7YS2L+utsz7sjPLjRO25RFS8eqwRqBCdvIQPXe88OoKuArYT9ifjjlas+V24vLXBm d02mlgIFcwaI67tM3yIrEq8LWTAiisvP+yPpZ1H0Cy1JvfLOarKSeTxiedFCKa4XriSD lBzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688325725; x=1690917725; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PYBF7Wr+3Vudj97IbxRt03oe7CE2uctJh8qb9RF2Qak=; b=g4kX1WL+q3w6tZyjFkO22jhVXLRxx1fyw3PHtVd47v/JhoFM1b5WHLQ+/DEiVoD096 mSkflTDu7PCA07cg00W88WSRKWNQcEQ5Qh0MnSQRSo8nGsXYbODSuG4pkeF6k1Ozgvwk ljSOiAVw9eRb870kT6GUAfcLeABekdB8CUo1pK6xXMqVPzkcCgffGwigr5x6roOiIB/h leTXO5o36hOWZfAf1McKV3oJe49G/VYToINaRL4IYYfYnf80XXB7bARbrIzZUGb/fuRo 8JvPYSAsqigrXGfNUHGL53G6P46NECSgOfD3VlquwJ4I6rYApRRQtVqp1J3Xoe+aDGBA 2M8A==
X-Gm-Message-State: AC+VfDxv183evexxbrED5ltuhg3J/Pwq5L/6ypcRXQPs9O5VPM7Yw4nd EbqD6se6owf//Uv0BknkMiNp8Ivp250P1quqXoCZEvri7Ls=
X-Google-Smtp-Source: ACHHUZ5Oe/j+DKJzV7crbtWZ2NeTpGZqXrCQtudoQEOpI42olzSs9n0YuJf+4RWbaG4qahmq+ZUQD7v1kCNjs2ooPjQ=
X-Received: by 2002:a05:6808:1295:b0:3a1:ee4b:b8ee with SMTP id a21-20020a056808129500b003a1ee4bb8eemr11810807oiw.53.1688325725371; Sun, 02 Jul 2023 12:22:05 -0700 (PDT)
MIME-Version: 1.0
References: <29343948-036E-4514-8B42-689C19A61813@gmail.com>
In-Reply-To: <29343948-036E-4514-8B42-689C19A61813@gmail.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Sun, 02 Jul 2023 15:21:54 -0400
Message-ID: <CAJm83bAFMVFycgvo_=dZtoXrEP8TsW0WbxmQcoi2eNzSdW1rPA@mail.gmail.com>
To: Dieter Sibold <dsibold.ietf@gmail.com>
Cc: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/7fLMAwFIDEBL_ZwgLcrV5A302Tw>
Subject: Re: [Ntp] Consensus call: NTPv5 and leap second smearing
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, 02 Jul 2023 19:22:10 -0000

There are two things I care about:

1. The timestamp on the wire must be something that can be
unambiguously converted to UTC.
2. The packet must contain sufficient information for the client to be
able to apply a noon-to-noon smear if desired.

The NTPv4 behavior of repeating during a leap second insertion is
unacceptable, because this creates ambiguity. Any of the following
would be equally acceptable to me:

1. Timestamps are UTC, represented using two fields: a day number, and
time since midnight. Leap indicator bits MUST be set during precisely
noon to noon .
2. Timestamps MUST be smeared linearly noon-to-noon in proximity to a
leap event. The leap indicator MUST be set when and only when smearing
is in progress.
3. Timestamps are TAI, and information elsewhere in the packet provides:
    a. The TAI time at which the last-announced leap event begins (may
be past, present, or future)
    b. The direction of the event (insertion or deletion)
    c. The TAI-UTC offset at the completion of this event

1 and 2 are perfectly equivalent in what information they provide. 3
is more informative, and therefore nicer for the client but harder for
the server, because it has to have the extra information available.

On Wed, Jun 28, 2023 at 3:56 PM Dieter Sibold <dsibold.ietf@gmail.com> wrote:
>
> Dear all,
>
> at IETF 116 we decided to have two consensus calls regarding the content of the NTPv5 requirement draft. These are consensus calls that we would like to conduct to help progress the NTPv5 requirements document (https://datatracker.ietf.org/doc/draft-ietf-ntp-ntpv5-requirements/). Both consensus calls will run until July 21st 2023 and will be discussed at the next NTP wg meeting at IETF 117 in San Francisco.
>
> The second consensus call:
>
> Regarding leap second smearing:
>
> Currently, the NTPv5 requirement draft states that NTP servers should not apply leap second smearing to transmitted timestamps. Shall NTPv5 support leap second smearing? If yes, shall the NTP server apply leap smearing to the transmitted timestamps or otherwise shall the client perform leap second smearing?
>
>
>
> Greetings
> Karen and Dieter_______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp