Re: [Ntp] Antw: [EXT] Re: New Version Notification for draft-gruessing-ntp-ntpv5-requirements-03.txt

Tony Finch <dot@dotat.at> Tue, 19 October 2021 16:00 UTC

Return-Path: <fanf2@hermes.cam.ac.uk>
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 504AB3A098B for <ntp@ietfa.amsl.com>; Tue, 19 Oct 2021 09:00:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O7AdxtWMmady for <ntp@ietfa.amsl.com>; Tue, 19 Oct 2021 09:00:31 -0700 (PDT)
Received: from ppsw-30.csi.cam.ac.uk (ppsw-30.csi.cam.ac.uk [131.111.8.130]) (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 C72F43A0962 for <ntp@ietf.org>; Tue, 19 Oct 2021 09:00:31 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: https://help.uis.cam.ac.uk/email-scanner-virus
Received: from [87.74.217.245] (port=58634 helo=milebook.lan) by ppsw-30.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:25) with esmtpsa (PLAIN:fanf2) (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1mcrXK-000KXW-eW (Exim 4.95) (return-path <fanf2@hermes.cam.ac.uk>); Tue, 19 Oct 2021 17:00:22 +0100
Date: Tue, 19 Oct 2021 17:00:22 +0100
From: Tony Finch <dot@dotat.at>
To: Warner Losh <imp@bsdimp.com>
cc: Danny Mayer <mayer@pdmconsulting.net>, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, "ntp@ietf.org" <ntp@ietf.org>, Miroslav Lichvar <mlichvar@redhat.com>, james.ietf@gmail.com, Doug Arnold <doug.arnold@meinberg-usa.com>
In-Reply-To: <CANCZdfrN6bjYezbir_VhLpcxosHQ35RHVwMs1fwvXBOcBL2QYQ@mail.gmail.com>
Message-ID: <29bd919e-ec77-db6f-44bc-b5a9e978ae@dotat.at>
References: <163386015957.12424.6997038478834885480@ietfa.amsl.com> <CAO+dDx=6baLhf9LwSMvR1F0ieuLO6NXmExYLDvcCF2tgchHs8w@mail.gmail.com> <DB8PR02MB5772AC97BFE2D7C1139EFDC0CFB89@DB8PR02MB5772.eurprd02.prod.outlook.com> <E469D9A7-7445-49D9-A8A2-82BA7BF1FA27@gmail.com> <YW2FvUiaHC/hbxkG@localhost> <616E7B69020000A10004491E@gwsmtp.uni-regensburg.de> <7f975043-7577-fd47-b5fb-f48e579828db@pdmconsulting.net> <CANCZdfrN6bjYezbir_VhLpcxosHQ35RHVwMs1fwvXBOcBL2QYQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Sender: Tony Finch <fanf2@hermes.cam.ac.uk>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/vbU-4QyYZdSNmNKuDcyWR5VxhDY>
Subject: Re: [Ntp] Antw: [EXT] Re: New Version Notification for draft-gruessing-ntp-ntpv5-requirements-03.txt
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
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, 19 Oct 2021 16:00:37 -0000

Warner Losh <imp@bsdimp.com> wrote:
>
> But even an 8 bit unsigned field with 0 meaning unknown is a huge
> improvement.

8 bits for DTAI will only last about 100 years.

https://www.ucolick.org/~sla/leapsecs/dutc.html

> Be sure to have this field be well defined near leap seconds though. IIRC,
> the number should increment at the start of the leap second in UTC time,

The leap second tables published by the IERS and NIST, and Bulletin C,
state that the new value of DTAI is valid from 0h UTC after the leap
second.

If you are on a POSIX system it's better to bump DTAI just before the leap
second, because that keeps the date correct. (However if you simply
evaluate the time_t formula in POSIX, that puts a positive leap second
just after midnight instead of just before.)

There is no way to represent the time during a positive leap second with
just a timestamp and DTAI: you also need a leap-in-progress flag.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  https://dotat.at/
Southeast Biscay: Variable 2 to 4 becoming southwesterly 4 to 6.
Slight or moderate becoming moderate or rough. Rain later. Good,
occasionally moderate later.