Re: [Ntp] [EXT] NTPv5 -- drop leaps

Warner Losh <imp@bsdimp.com> Mon, 24 July 2023 01:08 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 C18DEC151097 for <ntp@ietfa.amsl.com>; Sun, 23 Jul 2023 18:08:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.894
X-Spam-Level:
X-Spam-Status: No, score=-6.894 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_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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=bsdimp-com.20221208.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 85Vx-zV6m48b for <ntp@ietfa.amsl.com>; Sun, 23 Jul 2023 18:08:33 -0700 (PDT)
Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 CEF2EC151094 for <ntp@ietf.org>; Sun, 23 Jul 2023 18:08:27 -0700 (PDT)
Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-993d1f899d7so677263766b.2 for <ntp@ietf.org>; Sun, 23 Jul 2023 18:08:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1690160906; x=1690765706; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dtzcs0FMVHYOQupVwqVYhY+Be+JSvmZmOKrrKbgcivQ=; b=4dRDH0W/iF69swp/HdoefWLI3YfTZSSq12WSjPb3ebRyoVx7i7+4PBCQc4hstOaDr6 kq6b7EAbTYUNaHvKr1kIA5xnrye38XEIBSYTXacZnG/xw6pnZApWrKd6m1ERb5XqPnMu lUMELwUFzPJuVGqPDrSHBcMItIXeugGRO6sp43SvjzhgHP8yJ4nVkjJG3Qtv95XW7I3q 5KxWCVBGDLJRnkMJyBLkH8ET2kbNdddErXp9UJ5gqcloHAung+/LWc7F4842Pj4V4wCW CC77/6FhRVHOE19m6SYHBePibrOothZXeTEAmzIt53Vcka9gLXwRnnwJrArv2WoyToLs nWWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690160906; x=1690765706; h=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=dtzcs0FMVHYOQupVwqVYhY+Be+JSvmZmOKrrKbgcivQ=; b=KRxPugc8uS07cehGh6upFvVyT+BZQ3kCCWjXXF/xitYkLDrR+yg9N1VGTPTAENW1u2 4qxxO4/KX3Nr6qaaVGE23hHqK6e5WBoR6kwx4uklobP3txmsytQMow1M9/pKSGlR6gfo 07l0gycO3G7mHUFbRKZ8nlz9V3Va5bNMHZe0lsL6ipsQnrb2uwvlf0CBS5lWns8XFpAi 1rQRbWqWzc2jlq4j1Pg927oCHFe4iyKKWb7lqzCfiKqHwrB2dzZgwMyaH6jaEI3OX64F NIyFFqVp+75UnZHFmyqWSU5zJLX90uBVeW8VYPau6mfGlZt2RVnQl/JD/FAYvTi5S7gP hrHg==
X-Gm-Message-State: ABy/qLaoiNwzKykTQwjcTRtnThgum91gzfW/E5M6LmS6HPOq3yaIrsOD Zy6kk0F/heh9DJ2BqARqgHDi7Gjc0durHyxbi9ZADQ==
X-Google-Smtp-Source: APBJJlFNYtv+JunYO+sSVN/5qJ5fCaxbNL8N5Q9EZc9ROfFQx9qemob4yMEjWrGbRbrI6ZO8+MiXOyE+LAczHBeucKo=
X-Received: by 2002:a17:906:3f0c:b0:99b:6e54:bd5b with SMTP id c12-20020a1709063f0c00b0099b6e54bd5bmr7627985ejj.50.1690160905491; Sun, 23 Jul 2023 18:08:25 -0700 (PDT)
MIME-Version: 1.0
References: <20230718025211.63F3B28C20C@107-137-68-211.lightspeed.sntcca.sbcglobal.net> <10cf4aebee7046ab83d456f3b4a63421@ukr.de> <CAD4huA74sKjrsMU0EZbpq9MOE2Y09c5ripO9cbbpvUAx+CN8Ag@mail.gmail.com>
In-Reply-To: <CAD4huA74sKjrsMU0EZbpq9MOE2Y09c5ripO9cbbpvUAx+CN8Ag@mail.gmail.com>
From: Warner Losh <imp@bsdimp.com>
Date: Sun, 23 Jul 2023 19:08:14 -0600
Message-ID: <CANCZdfrP+9bn_v6e+G1kNMmxsj_7JOhsSYY7PttHhyEnb4tNqw@mail.gmail.com>
To: Steven Sommars <stevesommarsntp@gmail.com>
Cc: "Windl, Ulrich" <u.windl@ukr.de>, Hal Murray <halmurray@sonic.net>, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000062aa3606013140ac"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/xSzghFWfr5-KhblI3ap6t6tsWcU>
Subject: Re: [Ntp] [EXT] NTPv5 -- drop leaps
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: Mon, 24 Jul 2023 01:08:37 -0000

On Sun, Jul 23, 2023, 6:08 PM Steven Sommars <stevesommarsntp@gmail.com>
wrote:

> Two alternate proposals instead.
>
> The existing leap smearing mechanism(s) has worked well enough and can be
> used if needed in the future.  There's no need to force-fit special-case
> signalling into NTPv5.
> A BCP for deploying leap-smearing (and for avoiding it) would benefit
> operators of both NTP servers and clients.  E.g., understand exactly which
> devices will perform the smearing, ensure that all utilized NTP servers use
> the same smearing algorithm, recognize that your client's notion of current
> time may differ from other clients, log the use of leap-smearing, and leap
> smearing may not be compatible with FINRA and other requirements.
>
> The second alternative is more radical.  Smeared time defines a new time
> scale(s); call it UTC-LS.   NTPv5 continues the current UTC focus, but adds
> a uniform mechanism for additional time scales.
> TAI, UT1, UTC-LS.    Leap smearing is no longer a special case.
>

That's too restricted. What about UT1 or GPS time.

I rather like nothing and muddle. Next best is extensions to report
timescale and offset.

But UTC-LS is too vague. There are a dozen ways to smear

Warner

Warner

Steve Sommars
>
>
>
> On Tue, Jul 18, 2023 at 3:08 AM Windl, Ulrich <u.windl@ukr.de> wrote:
>
>> Hi!
>>
>> Considering that NTPv5 should be good for another 10 years or so, I think
>> the leap seconds logic should be kept, because politics changes its mind
>> much more frequently.
>>
>> Regards,
>> Ulrich
>>
>> -----Original Message-----
>> From: ntp <ntp-bounces@ietf.org> On Behalf Of Hal Murray
>> Sent: Tuesday, July 18, 2023 4:52 AM
>> To: ntp@ietf.org
>> Cc: Hal Murray <halmurray@sonic.net>
>> Subject: [EXT] [Ntp] NTPv5 -- drop leaps
>>
>>
>> Leap seconds are on the way out.
>>
>> I think we should drop all mention of leaping or smearing from NTPv5.
>> The
>> idea is to simplify RFCs, making it easier for us to create documents
>> that are
>> easy to understand and more likely that implementors will find what they
>> need.
>>
>> It will also save time and clutter on this mailing list.
>>
>> There is a good chance there won't be any more leap seconds.  If there
>> are, we
>> can muddle through, just like we would do if we didn't have NTPv5.
>>
>> If we aren't cleaning up leaping and smearing, do we need a new version?
>>
>> We will have to support NTPv3 and NTPv4 for a long long time.  (And
>> NTPv1/0)
>> What do we need to fix that will be worth the effort of switching to a
>> new
>> version and running 2 versions in parallel?
>>
>> ----------
>>
>> Assuming we decide that we should work on a new version...
>>
>> I think we should split NTP RFCs into smaller documents.
>>
>> I'd like to see a clean/simple document for basic server-server traffic.
>> Just
>> time.  If we were going to keep leaping, TAI would be the obvious
>> choice.
>> Without leaps, UTC will work fine and we don't need anything about what
>> time
>> scale is being used.
>>
>> What is needed in a basic NTP packet?
>>
>> We need an RFC describing an extension for shared keys.
>>
>> I think an extension for UT1 or DUT1 would keep the astronomers happy.
>> Would
>> any of them use it?
>>
>> Multicast and symmetric may be appropriate for their own modes rather
>> than
>> using extensions.  I think we should leave room in the mode assignments
>> for
>> them and others.
>>
>> Does Multicast need a separate mode?  I expect it would have a multicast
>> dest
>> address.  Would anything else be sent to that address?
>>
>> Are there any fields that we might want to add to the basic packet that
>> seem
>> more appropriate for the packet rather than an extension?
>>
>> What about interleaving?  Maybe we should have a slot with room for
>> various
>> flags, like interleaving and symmetric mode.
>>
>> --------
>>
>> I think we need a BCP for SNTP -- specfically targeted at code that will
>> go
>> into ROM and won't get updated.
>>
>> That means we have to figure out what we will support in the long term.
>>
>> --------
>>
>> I think we should make it clear that software that looks at packets
>> should
>> check the version field first, then the mode field.  That gives us the
>> opportunity to move the mode field and/or make it bigger.
>>
>> --------
>>
>> The leap-seconds file is now included with the time-zone data.  (They
>> have
>> promised to push out a release with new leap info even if there are no
>> changes
>> in the time zone data.)  This is now included with Debian and Fedora.
>>   /usr/share/zoneinfo/leap-seconds.list
>>
>> It would be easy to setup a utility to tell the kernel the TAI offset and
>> any
>> pending leap info without help from NTP.
>>
>>
>>
>>
>>
>> --
>> These are my opinions.  I hate spam.
>>
>>
>>
>> _______________________________________________
>> ntp mailing list
>> ntp@ietf.org
>> https://www.ietf.org/mailman/listinfo/ntp
>>
>> _______________________________________________
>> ntp mailing list
>> ntp@ietf.org
>> https://www.ietf.org/mailman/listinfo/ntp
>>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>