Re: [Ntp] Leap second draft

Warner Losh <imp@bsdimp.com> Mon, 01 April 2019 12:00 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 3216112010E for <ntp@ietfa.amsl.com>; Mon, 1 Apr 2019 05:00:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=bsdimp-com.20150623.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 Fh92sy8Yjpxf for <ntp@ietfa.amsl.com>; Mon, 1 Apr 2019 05:00:46 -0700 (PDT)
Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 8DF6D12010C for <ntp@ietf.org>; Mon, 1 Apr 2019 05:00:46 -0700 (PDT)
Received: by mail-qt1-x82a.google.com with SMTP id k2so10403802qtm.1 for <ntp@ietf.org>; Mon, 01 Apr 2019 05:00:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x1nDCSFOYbAwFTU/v+llYdHzbtudihPhbatTDv6sHlg=; b=NYyufjc+wnsqDgytUacQHl1x1UBhc0hnVenb/HWyLnAj+tJbqHrEbLK7rmODdhHoo+ snoXAdOUvO5WYfTu3H8ZqhQJgRqLZvNh13fIMykgqAbg5NPmisAfAQOHS+0Mj0vribLz OtydWY/GlcJfQdLdphRvDOpK1LzcoVyYF0xd89/sniKPvIpeOQVjsvAgpq3H5tI5z81O O7hCI9oWiJW9gaub0aofruylIYStQidk579JKBCfMxcm54KLQLLHYlY5PTWYdLpxs/wj f4m0Ux/N28K/1ggls+cHcRZMzDp+l29Uk9x2k6RRDkeuQUE1srx16ks50swtbkwTacQw J4NA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x1nDCSFOYbAwFTU/v+llYdHzbtudihPhbatTDv6sHlg=; b=F/b9x/ScImiJUuL5PX2yKITMwL8v6/1R82xwhpBXLWXQ/qjEWsRUD3ku/5BojuF+ev NkSlMFszDv7V/lzE/1ABH2cn3t/kyK2ZIsLkLtPDOmanaNOrijj2vQi7kxbAyovOKp6U lp863nQ3t5odmiJZ9XkhYftPmTKDOaeS1qTIxx+LCNy23XCgpADiutOlHQUEeW7ZF6rZ SR0qnsyYlsDltm+ckspG/5x2x66gUadSyGhvWMrb+DdyQgGfm16/Qgvkb/fRCNOwv9TX 2wfsQ/Nrcofs6LbGjaqZ/4FIRvVe4ycCAOx+k3jABBf9tY0DKb6TCuAzxYAMY97ti3fU aitw==
X-Gm-Message-State: APjAAAVHzuNKVSs3TN0wmqWlelZ/znZ5wkz9MYY6bXzOEvx1Z0oxcgvP h8Urex+TOTayBK6emvT/zQ2cX7Q5yI35xlefWDmUyw==
X-Google-Smtp-Source: APXvYqz5KXAMBCBkmQNjQEgghT55pH3n0ou5Q9jYjCM3MHVAhtAL7+CdFHj57Xifzy+ga2z2hO2xXicVtdYUizeB8w8=
X-Received: by 2002:ac8:38b6:: with SMTP id f51mr30474871qtc.33.1554120045455; Mon, 01 Apr 2019 05:00:45 -0700 (PDT)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CAJm83bCbVzO3NNCbjTy+O_16T7DBeA7O6018WWGu_-GyuN-8UA@mail.gmail.com> <20190330045928.GA31550@ucolick.org> <20190330133348.GA20646@ucolick.org> <20190330152948.GI7706@roeckx.be> <CANCZdfo57thjq_r41vL_XyczLyW18YFineOptfTbhES4Q4Xpyw@mail.gmail.com> <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
In-Reply-To: <alpine.DEB.2.20.1904011242140.13313@grey.csi.cam.ac.uk>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 01 Apr 2019 06:00:32 -0600
Message-ID: <CANCZdfpEuJ=St+1qdCuk9cF5QV+VjXUm4xaajXnXtTJjR4KOXg@mail.gmail.com>
To: Tony Finch <dot@dotat.at>
Cc: Kurt Roeckx <kurt@roeckx.be>, Steve Allen <sla@ucolick.org>, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003f7eab058576c579"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/tOmgXGNx2dD-G3t9-LwUZ6Jp_Vc>
Subject: Re: [Ntp] Leap second draft
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 01 Apr 2019 12:00:50 -0000

On Mon, Apr 1, 2019, 5:54 AM Tony Finch <dot@dotat.at> wrote:

> Warner Losh <imp@bsdimp.com> wrote:
> >
> > And it's less obscure than the crazy notion that leap seconds could
> happen
> > any time other than June and December as a practical matter.
>
> RFC 5905 allows for monthly leap seconds. There's a chance we will need
> more than two leap seconds in a year before the end of this century.
>
> Some of the problems with leap second signalling are because NTP clients
> only get a two bit warning signal, which isn't enough especially if the
> server is setting the bits using assumptions about how leap seconds are
> currently administered (at most every 6 months), and the client is
> interpreting it according to RFC 5905 and TF.460 (at most every month) and
> the server incorrectly provides more than one month warning.
>
> I think if the server explicitly tells the client when the leap second(s)
> occur, then there's less scope for problems caused by unwarranted
> chumminess with the IERS's bulletin C schedule.
>

That would help. GPS give such a signal and it's quite helpful to know past
and future leaps to act as a sanity check on the data. Though in GPS' case,
it is needed because of the 1024 week wrapping issue.

We no longer live in an era where an extra 32bit word would kill us, yet
that would be extremely helpful if widely implemented.

Warner

Tony.
> --
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
> Lyme Regis to Lands End including the Isles of Scilly: East becoming
> variable,
> 3 or 4, then becoming northwest 5 or 6 later. Slight or moderate, becoming
> smooth to slight for a time east of the Lizard. Rain for a time then
> showers.
> Moderate or good.
>