Re: [Ntp] Leap second draft

Warner Losh <imp@bsdimp.com> Thu, 23 January 2020 23:09 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 638A21200BA for <ntp@ietfa.amsl.com>; Thu, 23 Jan 2020 15:09:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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 bWfRJLurX4qw for <ntp@ietfa.amsl.com>; Thu, 23 Jan 2020 15:09:39 -0800 (PST)
Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 CF4E71200C7 for <ntp@ietf.org>; Thu, 23 Jan 2020 15:09:38 -0800 (PST)
Received: by mail-qt1-x835.google.com with SMTP id i13so137971qtr.3 for <ntp@ietf.org>; Thu, 23 Jan 2020 15:09:38 -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=Agl19qvdjvU1yCl6sKrIhZG+BmSTeZPG1l0bR7/j6hI=; b=PhTlwIwG+YoKU3vZac8j9fn7R/o2ikYRvqKqVIGbTqPqQFrQsFsV3HaNzi9LHA+AXA hL22kbtaArG2oPm2XRA+hjMzkNwnQ3YVnPPg3OjSBPt3E0pzeiXlmahvrdzbAOgrhLj4 W3lEakcuQNZEZvAPnvbrS4lxbzh5yvLwlYJFelR84I3CevrvHikB1UKV/H7UC/ekvlgD YdB/uWf2vn8s3YUHWi9uf3roAnNo0a7uxIJdL14EVrPgulMR59l8miqb2NGv9JpQFlJ6 HqH0UzljOPjN+4/pZmVNXfGP00ZSLj+W6KBY5QkkRKeKdJ0BG0Rk5XT8NeQtufHRAtqs 2I+w==
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=Agl19qvdjvU1yCl6sKrIhZG+BmSTeZPG1l0bR7/j6hI=; b=iC2ojGdi8+Wwm0kqKl3dHv5oI1RSBU+QCUYPTgyay5djTOqwlL7QLNVkiA0NH6OHey Hrna/UvoQyLxO7D8HdE6l5KVlo5XMISXkPcAPmxEeZ/eX/62pAjXEDx3zVMHVk4F4Rqi 8yx+hB5r4MCp5d2wyzW3EehNpD16IJlqB3gPb3MY8xfgT+1qcBVxi8PBf0GMRQGJ5YpH wexYQCBdxL+0UAjGgYX9pZI6PaeSlAxc2FX6Bd1/KqF0sHCaN79jni2Pn4xXMTUPlHD9 PpICc4PZcrOO5TX6Zm31NO0rUoQsdqpHoeNYDkvo2/DHzFEXx95EmaLHNY+6pVf7VkX1 0jxw==
X-Gm-Message-State: APjAAAXr40+6HvXrAOTSHu1xoHjVEqMmL5sukdNXv7L5LZcy+e60tsu0 ZTdkY8po/MyKe79Lmg9kvY4+mAjyT9ErdYCOdWbZCA==
X-Google-Smtp-Source: APXvYqx5yT269j7NhjBIgWLCZJ3hFQpjwwKKztpSoBxwHGehi/OmcSnpTZj9dvRC8FdQJZNT9oMGOqOEqeRODN9ZT8o=
X-Received: by 2002:ac8:48c9:: with SMTP id l9mr648871qtr.242.1579820977717; Thu, 23 Jan 2020 15:09:37 -0800 (PST)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CACsn0cmZkRifrnbVbPw2=9ww+ttmbAGCW39LhT+jhDLLyU8e+A@mail.gmail.com>
In-Reply-To: <CACsn0cmZkRifrnbVbPw2=9ww+ttmbAGCW39LhT+jhDLLyU8e+A@mail.gmail.com>
From: Warner Losh <imp@bsdimp.com>
Date: Thu, 23 Jan 2020 16:09:26 -0700
Message-ID: <CANCZdfo_cbo3UngOWEc4mM4_nLK=J81zSiF0shvsu5mENUGPMw@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="0000000000002f974f059cd6bc0e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/AzLh-8Q8sYs5UKKKK5aAnSrjuy0>
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:09:41 -0000

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.

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).

Warner