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

Warner Losh <imp@bsdimp.com> Tue, 19 October 2021 15:26 UTC

Return-Path: <wlosh@bsdimp.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 715183A0B68 for <ntp@ietfa.amsl.com>; Tue, 19 Oct 2021 08:26:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20210112.gappssmtp.com
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 g7OimTwqcGGs for <ntp@ietfa.amsl.com>; Tue, 19 Oct 2021 08:26:41 -0700 (PDT)
Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BAF453A0B63 for <ntp@ietf.org>; Tue, 19 Oct 2021 08:26:41 -0700 (PDT)
Received: by mail-ua1-x92c.google.com with SMTP id e2so606526uax.7 for <ntp@ietf.org>; Tue, 19 Oct 2021 08:26:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W53e3TDyuMdrjaYu5ptBIJU+Haz9cwlxdpQehinAEQw=; b=Hm6RwA4Svuo5/EBwG0p7GDtOGq4RAjKmONbKjWderQEn3vT1Pxow0KvZFs9Nj58rw9 068nmG1hN5chIdlssDw+fA6ypHv2Sdmf9EAX3UtV7d2KHqCLkre65pjYqG3qeTaQ5M+N vJIEbVljF73hZWiCuAhFeH/6GXMH3GteBvoFlpFT0wrvuISrJ4JFsLZ/Re+9oNMe/MY+ pcaFAp+EPgQPfA7ZzWAkYYJjFpiqlvBCZVQEiBpcug1HP6159JomGkiJBEx5rFDkuZrd 42FN+WYcX62Rc/ZXX4sFJKscIFjuZFd5lpGE5xckPfTR9fpohO8kt/EU1hllc1ed9rIO IAPQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W53e3TDyuMdrjaYu5ptBIJU+Haz9cwlxdpQehinAEQw=; b=iSvO4ASmGbEBBlSsX3ihs2amNLjdhVg/rmnnDLRrxCsIFTte40JSIsmgv3G4+fb33g GeCfLIGlgY9YlatMV+IHkT78E/r9zf4zMJZAN49slIuPeKWa7g8123f2M82iGieICPEA PU/QkdqkNTF3mRJzvR05NI380aY+8QR/Qx4DozRN4nRz/wOhTq10PMlTQ1YIK6A6dV0D MkoRafbx1bywQUcK38d13fNpV64RRmYFBi9irHmpICIJHucrncHkMMsN97IbXipPFEeC bksGL8NfIZeWRUrKCS4erw9UndGDnszBbWvHZ8L/M9kmq9ymuMl/nZT/ZgHd/pcUR7ce B6Zg==
X-Gm-Message-State: AOAM530J0JS+Wy2EjVDW+FRdiKfNjrgb3mzysg1zXCWJqad8CtaiSyu7 9wWQDLnsp2HAqHHacfyXvypBiUiuDu9OV10NaK3FwA==
X-Google-Smtp-Source: ABdhPJyiOR3DrHXCcgR+dfv2a6ney26xpyoW9sZxnUev9ODqZhu4u2qOCRBHzq/OzW316W1n7/N1H/86WXiXNnl1CY4=
X-Received: by 2002:a67:fc8b:: with SMTP id x11mr36106027vsp.12.1634657200154; Tue, 19 Oct 2021 08:26:40 -0700 (PDT)
MIME-Version: 1.0
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>
In-Reply-To: <7f975043-7577-fd47-b5fb-f48e579828db@pdmconsulting.net>
From: Warner Losh <imp@bsdimp.com>
Date: Tue, 19 Oct 2021 09:26:28 -0600
Message-ID: <CANCZdfrN6bjYezbir_VhLpcxosHQ35RHVwMs1fwvXBOcBL2QYQ@mail.gmail.com>
To: Danny Mayer <mayer@pdmconsulting.net>
Cc: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, james.ietf@gmail.com, Miroslav Lichvar <mlichvar@redhat.com>, "ntp@ietf.org" <ntp@ietf.org>, Doug Arnold <doug.arnold@meinberg-usa.com>
Content-Type: multipart/alternative; boundary="000000000000beb9b705ceb649cf"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Kw-elu_1NbhYMtp8wHW5XZ-0JBE>
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 15:26:47 -0000

On Tue, Oct 19, 2021 at 9:18 AM Danny Mayer <mayer@pdmconsulting.net> wrote:

>
> On 10/19/21 4:01 AM, Ulrich Windl wrote:
> >
> > Same for UTC vs TAI.
> > I thing the TAI offset (whole seconds) should be part of every NTPv5
> timing packet. So we can keep the old timestamp format while providing TAI.
> > Maybe NTPv6 will demand that TAI should be the new time base. Still we
> would need the offset to provide UTC and similar.
> >
> My proposal for an additional field includes the total number of
> leapseconds added to TAI. You can then use this number to calculate the
> TAI time from the UTC timestamps sent. A zero value for the count would
> indicate the server doesn't know.
>

Is that field signed or unsigned?  How large is it?

Personally, I'd make it a signed 16 bits and have 0x8000 indicating unknown.
We believe today it will always be a positive number that only ever
increases.
However, recent rotation data says that weird short term things can happen
even if we know the long term trend is always increasing and it would be a
cheap way to hedge bets.

But even an 8 bit unsigned field with 0 meaning unknown is a huge
improvement.

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,
but I've not thought that through completely and since all simple things
with leapseconds are harder than you think, best to be clear so everyone
knows and any 'simple' mistakes are caught in review :) Having it only
be approximate near the leap second would be a really really bad
idea... Better to say '0' 30s either side of a leap second than to have
it be broadcast incorrectly for a few seconds after...

Warner