Re: [Ntp] Antw: Re: Finding leap-seconds.list

Warner Losh <imp@bsdimp.com> Mon, 12 November 2018 19:43 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 6D7AB130DD3 for <ntp@ietfa.amsl.com>; Mon, 12 Nov 2018 11:43:55 -0800 (PST)
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 lTzZExspfQpM for <ntp@ietfa.amsl.com>; Mon, 12 Nov 2018 11:43:53 -0800 (PST)
Received: from mail-it1-x12f.google.com (mail-it1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (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 57831130DCE for <ntp@ietf.org>; Mon, 12 Nov 2018 11:43:53 -0800 (PST)
Received: by mail-it1-x12f.google.com with SMTP id t190-v6so14421174itb.2 for <ntp@ietf.org>; Mon, 12 Nov 2018 11:43:53 -0800 (PST)
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=Is3cigt+TVKg0qLkH/MyLPze7754G2nGsRHUHbsZV1o=; b=SkkE4C3KgMZGuUVWpXX53/5N7ZomazfGXGOxR+9Xvj+AfHixW/vsWXVGuTC3mnVSfD LfScXsmQCjP4qkeGCaepQ4f+1RpN3S9IfgqB8qeCVL8MyhuYWUIoP0x6nvciIOzaow89 gK0InpyRFpIa0xHWAeWBtnfV8iP6xgZmRyo7WALor3S0aMxN7dbWrW4r+NqUoHxyuecT uDmwRlsMpYz6v4wt+T8DvBVBmv7MzoEl5D5akyHHnx4NDQkKoGYvEQot6u6J6uK9hDOD DovAJC6GF2ZgAlwfgvC7bthNhb6mQF79G86aUYMsOGWXX/DrDWtrd/BdWF+6FkaBXDfq XRqg==
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=Is3cigt+TVKg0qLkH/MyLPze7754G2nGsRHUHbsZV1o=; b=k3oLMnukmao4UFULGZAbjwtaG4qcSy5UCOCv/fCoXTLGaTWCEluSPpTsE4eSWHLAM1 Opi9UroEvEeiZqGAX4P/J+oi5qrDQe3Vcut/XTp8wCp3M49eeDVvb+Qy3m6DHHXl+6am EQIrP+xWYZu5snAdiXPwls/nwf7pnUEaxnBq244PrNh4MhqCOEh+8mm7DXBturBIsrKV +8AOobDzSRlchCszA2aRVwn9vhHs1+FB2atuJxj43hfbHk7YmII6C8JZuRKuBClq2j17 QMRazLuAKUjCKBDUumQbqZVNkVSkWwAZW8b+jxTAPv5RUqRKcZEQ3Sch063TNhGaX8VZ XiZw==
X-Gm-Message-State: AGRZ1gLDD5swLcAvRCnwZ8hFg0ouNT8z4+Hq8352EAD9wFN+lOlpddyV UmtjlUT0pTPFGCTTktgiy1wyUVxk+GQV/U06kIn9lw==
X-Google-Smtp-Source: AJdET5damF5iHWnKYuCybx0pFHr36ipoMznhVqER/AS5tXgOibMRQl6JkyDhVQvGPCPZZd+JdsAASwFmN8nSGX1uATs=
X-Received: by 2002:a24:3796:: with SMTP id r144-v6mr945016itr.79.1542051832175; Mon, 12 Nov 2018 11:43:52 -0800 (PST)
MIME-Version: 1.0
References: <eggert@cs.ucla.edu> <60beb997-114c-9011-0ba9-3bf5e4d9742c@cs.ucla.edu> <20181112192949.1DEBF40605C@ip-64-139-1-69.sjc.megapath.net>
In-Reply-To: <20181112192949.1DEBF40605C@ip-64-139-1-69.sjc.megapath.net>
From: Warner Losh <imp@bsdimp.com>
Date: Mon, 12 Nov 2018 12:43:40 -0700
Message-ID: <CANCZdfr98fDEmZv_Ua_kc=JWw-RjV=2q4P3rg8Vb6OMbVhh_Vg@mail.gmail.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: eggert@cs.ucla.edu, ntp@ietf.org
Content-Type: multipart/alternative; boundary="000000000000aeaeb8057a7ceb27"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/TbOVhT4Gl81VW3xwSNvEPw9X470>
Subject: Re: [Ntp] Antw: Re: Finding leap-seconds.list
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, 12 Nov 2018 19:43:55 -0000

On Mon, Nov 12, 2018 at 12:29 PM Hal Murray <hmurray@megapathdsl.net> wrote:

>
> eggert@cs.ucla.edu said:
> >> new TZ data should be made availale whenever a
> >> new leapsecond file is available (or at least significantly
> >> before the last one expires).
>
> > Of course, but how long is "significantly"?
>
> > In contrast, we reliably get about six months' notice for a leap second.
> We
> > batch that into the next tzdb release, whenever it happens to occur for
> other
> >  reasons. We've never had the problem of no timezone changes for six
> months
> > so  this has been good enough for us. (We would make a release for leap
> > seconds  reasons only, if need be.)
>
> I think things will be fine as long as you are willing to push out a
> leap-only
> release if nothing else happens for a month.  The point is that you don't
> get
> the whole 6 months.
>
> Here is my list of the steps that have to happen for sites that get it via
> their distro:
>   1: IERS announces leap or non-leap via bulletin C
>   2: NIST updates leap-seconds.txt
>   3 TZDB releases updated copy from NIST
>   4  distro releases update to TZDB
>   5  end system picks up new TZDB from distro
>   6  ntpd announces to downstream clients
>
> If we assume the first two steps take a month and allow a month each for
> steps
> 3, 4, and 5, that still leaves a month of slop if the announcements are to
> get
> out a month early.
>

The deadline for #6 is leap-second day, correct? ntpd only announces an
impending leap second in the last 24 hours before the leap second. Or is
that just a reference implementation detail. When there's no leap second
the deadline is a few days before since that's the expiration of the
previous file.

Also, to be clear, as far as ntpd is concerned, steps 3, 4, 5 are all
*optional* if there's another mechanism to pull in a new leap-second.txt
file from elsewhere. #5 implies an upgrade of at least some of the packages
on the system. While that's *A* way to do it, there are other equally valid
ways. We should allow for the extra time, of course, for this to happen.

I don't think we need to, however, allow for a worst case scenario where
IERS announces 8 weeks prior to the leap second. While that's technically
the current documented SLA (or was when i last checked), I believe they've
adopted first week in January deadline for when there's is a leap second
because it's now clear 3 months before that whether or not there will need
to be one. TOD forecasting has come a long way since 1972.

tl;dr: I think the current release cycle of the tzdb folks address the
needs here adequately.

Warner

P.S. Sorry if I'm being too nit-picky here, but traditionally there's been
a wide diversity of methods for obtaining leap-seconds.txt, and it would be
premature to standardize on the above list.