Re: [Ntp] Leap second draft

Watson Ladd <watsonbladd@gmail.com> Fri, 24 January 2020 15:05 UTC

Return-Path: <watsonbladd@gmail.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 78B55120090 for <ntp@ietfa.amsl.com>; Fri, 24 Jan 2020 07:05:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 Ejb847kURf17 for <ntp@ietfa.amsl.com>; Fri, 24 Jan 2020 07:05:07 -0800 (PST)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 7DC02120024 for <ntp@ietf.org>; Fri, 24 Jan 2020 07:05:07 -0800 (PST)
Received: by mail-lj1-x233.google.com with SMTP id w1so2854745ljh.5 for <ntp@ietf.org>; Fri, 24 Jan 2020 07:05:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hk+7dMvtzGEn4KPvdsvdVfEOyQT9j6r3Rq7o+WwOt3g=; b=JccCzGW51ZpHMlq3yuue55489korKfgDm/KKaTSToRRaCU0ihMXpz2pAKqE0ScJe2q WG7l4/6Q2xwlAbaku7z/LPlaJsxMOK5DOG/GErNGOyH/d56DM7O0TEBzmzP2iiW7gNH6 nBf+bnuN7eqBfrLE8LqhHAaq45pt/xN4A3kNr5mPGRAKFWV35IcW3McSq5BTNPE6SOws +XeEj7l5r80O7NPsM++PLXh5bUCIo1GZ3FMwhm/0pXQswMGTX3RXG93/Cgff6blb+U58 Aqe83u3XDjronZQtGEz+a9gDmo+TZ7VQojzazMZq541hg6Y64FRI9qVKZug+nvCFVgDR hf3Q==
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=Hk+7dMvtzGEn4KPvdsvdVfEOyQT9j6r3Rq7o+WwOt3g=; b=NubrfgEJqfRQ21PHI36bBSszQemVw0AQygkVb+TrQbfIzRz3uIjeCb/08uxk4/DnwC Qo5broRuZgrCy29sb/5Siv+6RlLu/AzAyOmE2HiV3tyLHalBFGw210MTMRC5PwKsZr4k AYNFePhHezzoNdsLRNyahSeJqYBXa8jp/3Brf/GmZwjDZFJcW9CJOkeEphciWeksvIPL VG7wJVlXf4lrQf/cONi1geYpCEaekgvFu9MNWzRqhOSjIo5udpsWEh9GofrZMPRhbTuE u/+vFWEDSVVPKE5Czqq/1duDZP5Hxl8o7+rzcznBBXESQECZzEdxJ+1A2ra+G7RECytP 711Q==
X-Gm-Message-State: APjAAAU5SPSopp7T2f92tMSBLQJOGVfEdLTTwDk6jdb9JcZk9Pj63mFN XoeOQSMal/4yEL7Aeu831VCi/tcISeKXHlGxvI0=
X-Google-Smtp-Source: APXvYqwgWZTM+3GmX2zGdryVmt54Ktr/QEHiWq2lwPZyXkrFspuz5LGhtmW4jC0T+RBvLCfEbNCL8WAdDB8CT8GB418=
X-Received: by 2002:a2e:8188:: with SMTP id e8mr2532986ljg.57.1579878305684; Fri, 24 Jan 2020 07:05:05 -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> <CANCZdfo-OW7d454Qqo9eqfOpw367A4gg4-2UJ5XdC=n0u_t+BQ@mail.gmail.com> <F7D6BF99-260C-467B-9AF7-94F1F5E2721B@frobbit.se>
In-Reply-To: <F7D6BF99-260C-467B-9AF7-94F1F5E2721B@frobbit.se>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Fri, 24 Jan 2020 07:04:54 -0800
Message-ID: <CACsn0ckf91GH7tSr6d2KEz7T6N7z0t7LyF6JSr66dn0OA5m2Tg@mail.gmail.com>
To: Patrik Fältström <paf@frobbit.se>
Cc: Warner Losh <imp@bsdimp.com>, NTP WG <ntp@ietf.org>, Daniel Franke <dfoxfranke@gmail.com>
Content-Type: multipart/alternative; boundary="00000000000032e1b8059ce41579"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/e9X9Z7z7Aa5VlIONnjbYF2wQES0>
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: Fri, 24 Jan 2020 15:05:11 -0000

On Thu, Jan 23, 2020, 10:51 PM Patrik Fältström <paf@frobbit.se> wrote:

> On 24 Jan 2020, at 0:36, Warner Losh wrote:
>
> >> 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 :(
>
> As the POSIX definition of "number of seconds since the epoch" is "number
> of days since the epoch plus number of seconds within the current day" the
> last second of one day and the first on the next have the same number.
>
> The fix is of course to be made at POSIX and if it was done, tons of
> issues would just go poof as time then always did increase.
>

Why does POSIX matter for NTP timestamps? We can always clarify the
language independently.


> There would still be an issue with "what time is it a gazillion seconds
> from now" as one do not know the number of leap seconds to be added in the
> future.
>
> But lets not mix up the issues.
>
> Anyway, I have seen proposals in POSIX on fixing this which have not been
> moved forward. Anyone being involved in POSIX that knows anything about
> that status?
>
>    Patrik
>