Re: [Ntp] Leap second draft

Warner Losh <imp@bsdimp.com> Thu, 23 January 2020 23:36 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 483C112001A for <ntp@ietfa.amsl.com>; Thu, 23 Jan 2020 15:36:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, 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 B99iEx7UYBWZ for <ntp@ietfa.amsl.com>; Thu, 23 Jan 2020 15:36:19 -0800 (PST)
Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (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 20E4F120019 for <ntp@ietf.org>; Thu, 23 Jan 2020 15:36:19 -0800 (PST)
Received: by mail-qv1-xf2b.google.com with SMTP id f16so75782qvi.4 for <ntp@ietf.org>; Thu, 23 Jan 2020 15:36:18 -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=akuCOa6Y6Qrnqe6jjsLMTt9fxtTEEh8o1M/bYzvimqI=; b=JEZsRIg0degfin5HXMMsk6zVXzFHhqF6AE42rLCEpApftt7KCwVTiFjQ3ecaADHukA Cb+vVpUXnhQsv4R388kEgfETwa14h0DM/oiAyxW00aA275yTvkcd6cJ+Ceyz8mH5C7j8 gXPRf6IhcNBCLc19B0dHpvy3Ez8Nm47GlC4xORlwxY+ETKSCDpp008dkMf/+ibkR5PL7 N9Ooq0/XrLBiLW3SrTV47/G0vo23dxQg9hZjTs02p1b8fgrbvCLJNkheZT80KbEmVUo4 pV5xP1heqzy1+oJR5aK1sz05z2hUssfJnwHBXcpPAxHU9npZpJx2+DSrLAHpiA80NUJN 3FWA==
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=akuCOa6Y6Qrnqe6jjsLMTt9fxtTEEh8o1M/bYzvimqI=; b=OIqa4rAc+hFCoIxRu/6m/BrP+R+5fvm25A1oRoUZYIV8uygYd3g2GqkpZrZUXEQaWA gGP07Uy2E6gnk4YMoOoBnXi+rOFU0BXoWtyo8k0Lzz3T99oaQ9/sZfRFbW/qGaH59Ant oG8x2o5xtQp8pK76tcs7m4QXnvHPumWMwP9gQ2VIyQrJtQBGfa/cGzK0KhqeGn7g7u3Z YYksR1HNRk3/TMri6fMKy8klbkWTLORBA49CHLg4EU+pTwut59PIFaiEy41n4l9gzK0G REBNL4J+P5c4JzoYUrJUYib2d3GoyDI0UQp/Dz2yL37zHWtshSRjSoDxmw8xBB53RiuX 5Qtg==
X-Gm-Message-State: APjAAAVZSDekLjbDcPPZe53loijdoF9vu2rPke0LQ3N84tTsOYSvMT/z csIF3CbOjREmUVIKFo7Kh9zerwTvqqVaKkyiJqn24w==
X-Google-Smtp-Source: APXvYqySGfS3ZBxTzb4p7LsRR2H5tHhOan0oR8rgV42LmJK6zoS4yYyE9Z/5ZXZbsH9d8OvD/oqifiI2uOz3rgsaDLI=
X-Received: by 2002:a05:6214:3aa:: with SMTP id m10mr200560qvy.125.1579822577898; Thu, 23 Jan 2020 15:36:17 -0800 (PST)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CACsn0cmZkRifrnbVbPw2=9ww+ttmbAGCW39LhT+jhDLLyU8e+A@mail.gmail.com> <CANCZdfo_cbo3UngOWEc4mM4_nLK=J81zSiF0shvsu5mENUGPMw@mail.gmail.com>
In-Reply-To: <CANCZdfo_cbo3UngOWEc4mM4_nLK=J81zSiF0shvsu5mENUGPMw@mail.gmail.com>
From: Warner Losh <imp@bsdimp.com>
Date: Thu, 23 Jan 2020 16:36:06 -0700
Message-ID: <CANCZdfo-OW7d454Qqo9eqfOpw367A4gg4-2UJ5XdC=n0u_t+BQ@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>
Cc: Daniel Franke <dfoxfranke@gmail.com>, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000906f29059cd71bb1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/7IKFX5c-znEIIbtjU-tgc1l8te4>
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: Thu, 23 Jan 2020 23:36:21 -0000

On Thu, Jan 23, 2020 at 4:09 PM Warner Losh <imp@bsdimp.com> wrote:

>
>
> On Thu, Jan 23, 2020 at 4:04 PM Watson Ladd <watsonbladd@gmail.com> wrote:
>
>>
>>
>> On Wed, Mar 27, 2019, 9:47 AM Daniel Franke <dfoxfranke@gmail.com> wrote:
>>
>>> I'm writing up an I-D clarifying how NTP implementations are to behave
>>> in proximity to a leap second and also introducing an extension field
>>> that provides better leap-second-related information than is
>>> expressible using header fields alone, including giving the TAI-UTC
>>> offset.
>>>
>>> Karen, you mentioned a possible CfA for
>>> draft-stenn-ntp-extended-information if Harlan revises it to comply
>>> with RFC 7822 (-04 does not appear to comply). Our two drafts are
>>> partly redundant in purpose since they both provide TAI-UTC offset and
>>> we won't want to adopt both. Of course I think mine is the one we
>>> should adopt, but I'll strive to get a -00 submitted promptly so that
>>> they can be considered side-by-side without unduly delaying Harlan's
>>> CfA.
>>>
>>
>> Apologies for the necromancy but someone at work just asked me which
>> second is repeated in an NTP timestamp and to make sure all our sources use
>> the right one.
>>
>
> NTP timestamp repeats the last second of the day. Once without the leap
> bit set and then again with it set.
>

Ah, the standard doesn't say this...  It just says that the values can be
subtracted, so forget I said anything about NTP


> POSIX doesn't specify, and so systems choose a number of different ways of
> coping (repeat the last second of the day, repeat the first second of the
> next day, freeze time during leap second, do some crazy smear to pretend
> reality matches the POSIX spec, kernel panic, etc).
>

This part is true. It's the biggest flaw with time_t: It doesn't
acknowledge that leap seconds exist, so what to do during that thing which
the standard says doesn't exist is up for grabs :(

Warner