Re: [Ntp] Finding leap-seconds.list

Warner Losh <imp@bsdimp.com> Fri, 09 November 2018 18:35 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 59FDE130DC0 for <ntp@ietfa.amsl.com>; Fri, 9 Nov 2018 10:35:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 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] 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 movzc32LYIMR for <ntp@ietfa.amsl.com>; Fri, 9 Nov 2018 10:35:21 -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 52C00128CF3 for <ntp@ietf.org>; Fri, 9 Nov 2018 10:35:21 -0800 (PST)
Received: by mail-it1-x12f.google.com with SMTP id m34-v6so4393078iti.1 for <ntp@ietf.org>; Fri, 09 Nov 2018 10:35:21 -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=z2oVicP6aZ+gV8F9DlO7CJbas7cZGFifNZbHPrSL7iM=; b=eAjbBYYKiBuJdV6WUmPRK9vPeUax2ND7nVdW3+0L/yztKIwRSs+qgVGFqVKWey/EdF 031UOKqa6tNHig+PofY3FxF7+TtrI06dfinhmw+KfMoebHzZPZ0keg4XJz6P+u4NkTkv FXNq8RN1xU6+8EsBK8XHvykdB+u2LLYK7+kwUYu7xegnOYftDvGh5dDumSVZeXO5UwQb FsD2ZtsN4GS2LcnHr7C/ad/VMiOzYSsrtN9JD2bLGR4K48YwKIBC/KtZBmtJNO32dTVr YmOMkQuHRwYp8l2sqSDO+6o6MWP4jTRFGjJO/ycW6RkBbirFXFXUuytfVu9qc7+hvUmW Gb6w==
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=z2oVicP6aZ+gV8F9DlO7CJbas7cZGFifNZbHPrSL7iM=; b=VqXtNzfZ20uhHDDzaNMBDnJon38PvJIQf91DMPca9Z/0BKg6zp8kn0NxV88W0BhKED G4bnc6qXkz/lPFecR12g8PF881RT3uVLaqCHwChmQAWeqKorrgjXrX2ZNep8KoRV/6re Wnv5rdMcO0Wv4+6lW/3Nryxh1UYBC9OIgSjm/F7PSe/Q1cM70i+YiqCxtuSgNjycxbn6 d7KdpY+P3WuHEbNSMYYNvvQdJIy3urtZRncS0Xp6BR0LdA0lIKTl062H8n+hOQKE3qZw Yw+vWYPN6RCq1l3mBF2reZMXPzJKQjAOMRPaCXgF6TdlIR9dWQBJSncuhp8uOhusomIz xeVA==
X-Gm-Message-State: AGRZ1gK8x1fanEqPgRNeUS6q5ovLz5HRwAJqzUtGf+A5mLIOfjTjUqBg JwVevQ+n+I6nw7Qwu6eTqkZGXt7TSnGNfPHbhvANQw==
X-Google-Smtp-Source: AJdET5d2zuIxx7BnXNlaA22BDisOSecmLZw0GFzJq0JtAO/d9ZL3S1gycTcpEutN/Y7qKcZ/OKE8as7JvpjNGjoYDIg=
X-Received: by 2002:a24:5f94:: with SMTP id r142-v6mr3263990itb.171.1541788520328; Fri, 09 Nov 2018 10:35:20 -0800 (PST)
MIME-Version: 1.0
References: <5884DA3A-B95B-4D6B-9A31-E964CE4F02EF@gmail.com> <53bc1310-c198-557a-54ca-57b5b0af9bcb@meinberg.de> <AM6PR0602MB3733A11C62B7A0ED49F318B5FFC40@AM6PR0602MB3733.eurprd06.prod.outlook.com> <9A89609A-9A4E-41EB-A857-91252E5F6D04@gmail.com> <43c65279-12fa-4510-1d8f-b6e1b03caf7e@gmail.com> <a7d8d58b-7370-1b4c-0c70-fd775dfbf854@cs.ucla.edu> <5f8998a5-d550-95b8-fa46-5e1c1ca7b0e9@meinberg.de> <733a2063-f557-459e-b4e9-0db6c88ab430@ntp.org>
In-Reply-To: <733a2063-f557-459e-b4e9-0db6c88ab430@ntp.org>
From: Warner Losh <imp@bsdimp.com>
Date: Fri, 09 Nov 2018 11:35:08 -0700
Message-ID: <CANCZdfq=_aP_QkeLzzQzF20qrUYtee=kabAGVgBV_CyP=5DX0A@mail.gmail.com>
To: mayer@ntp.org
Cc: Martin Burnicki <martin.burnicki@meinberg.de>, eggert@cs.ucla.edu, Thomas Peterson <hidinginthebbc@gmail.com>, dsibold.ietf@gmail.com, denis.reilly@orolia.com, ntp@ietf.org
Content-Type: multipart/alternative; boundary="00000000000012dfb3057a3f9d9c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/DuLOpdeOG3KaXldUvpFR78hvY4M>
Subject: Re: [Ntp] 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: Fri, 09 Nov 2018 18:35:23 -0000

On Fri, Nov 9, 2018 at 8:47 AM Danny Mayer <mayer@ntp.org> wrote:

> So the real question is whether or not we need to formalize the
> distribution of the leap-second file and how would we accomplish that?
> Also how would it be kept uptodate? For that matter is there an
> agreed-upon standard format for the contents of the leap-second file?
>

The format is "standardized" in a fashion. It's documented in the
leap-second file itself, and all NTP implementations use the same format.
I'd be surprised if the current ntp standard doesn't define it (I've not
checked).

There's at least 5 other formats this data exists in on the internet, but
ntp doesn't use them, nor do people grab that data and convert to the ntp
leap-second.txt format unless they happen to need it for other purposes and
get a 'twofer' by doing so.

It would be possible to generate the file from the archive of Bulletin-C's
that IERS publishes, coupled with the programs that are available at the
same web locations to add the SHA1 checksum data. Scraping them from the
IERS web site would be straight forward. To do it adequately, you run the
cron job Feb 1 and Aug 1 and you'll be able to generate the new file then.
To do it robustly, you may need to things monthly or weekly (as 460's
schedule for leap seconds allows the end of any month to have one), but
then you get into the crazy world of edge-case-hell that people that try to
guess from the current standards what future IERS edicts say get into. Do
you make it future proof, or do you assume that past practice is sacrosanct
and that any deviation from it will generate a new standard, or do you
assume they will follow 460's recommendations that people have, at best,
imperfectly implemented outside of June/December leap seocnds? When I was
younger, I'd say follow the published spec (and I did that at least twice
in my carer). Now I'd say follow existing practice and cope if they change
it. Testing of even the secondary dates showed that far too many things get
things wrong there (and some well known bugs where leap indications were
turned on too early lead some devices to bogusly assume it was the
march/september dates, even though the data in the data stream clearly
indicated the right dates).

As for what's best to do to keep it up to date? Beats me. It's more of the
tragedy of the time commons that Dr Allen referred to that something this
simple and basic has been so manual for so long.

Warner