Re: [Ntp] Leap second draft

Watson Ladd <watsonbladd@gmail.com> Fri, 24 January 2020 16:31 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 CC9BA12093D for <ntp@ietfa.amsl.com>; Fri, 24 Jan 2020 08:31:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.998
X-Spam-Level:
X-Spam-Status: No, score=-0.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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no 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 ArTBvX_gBBUg for <ntp@ietfa.amsl.com>; Fri, 24 Jan 2020 08:31:34 -0800 (PST)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 02A6712002F for <ntp@ietf.org>; Fri, 24 Jan 2020 08:31:34 -0800 (PST)
Received: by mail-lj1-x22a.google.com with SMTP id x7so3117852ljc.1 for <ntp@ietf.org>; Fri, 24 Jan 2020 08:31:33 -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=Ee7yHp8nOQskfct5XyN2Rhz+OLTXcR7gqCaKJudGmDc=; b=eoquZpDlen+FZ2WDtNZG2gdSDRVLj8Si1PZ666tV+avhV6EAPWrrenmNdSXbkMH8oL f6HG4ZrLalLOy5dA/vhMvrqAKeFY/54ezxYhIU5esqyHYhmngmoZS0g7pR86O5hv/Xy3 hZ6UfNbeI6xDAzFRKZSNvB+tbvWx8BQc7lBBIpUQWZ1tO4pBuKRoOo1V7y2lmHHxl+JB xiw6Rza0vpoKZILMmGtjEfseGaJvUBFqB2Woqz7l7P4WOXv5MkPobzhR8c1Wh832ozdZ vYZ2eKbsw80kzlgM86CkP+kzAwt0REiH9LWWADOQXod2sWcjEwKsBcNuQwqZUxDtwV8E K1ow==
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=Ee7yHp8nOQskfct5XyN2Rhz+OLTXcR7gqCaKJudGmDc=; b=Rl3iYfnUuYaGCmpsk3f00oCTNmpBz/B8uxEoPFK0x+Z8A06yQJZsFtOwHlm9O0N8sU y9/MMFl0Bs02fXg28PYLGVc+pnyBIPvb2lRL5dLhlyeoTqDhYbIvrjMOVnWz5ReSGr5p qrK4O2G3xAR7zaQpgidkXtv0rr8SHrlJxjuGe71g77HPRgeLEFIpor6yumMnKVQAZuhN ZSLZAERlp1iHuhTCjW0P72TPn7TVODgAm5hMlxKyHZBygGLxtbS6XmmopyUeNH/8ZkL/ o9U6pa4u5UaWmkjOqpLviLwk2mWQdKwUbx6k9gaApzcNysecrkOuNLESlacwjnCY2xU1 mO0w==
X-Gm-Message-State: APjAAAVROjulVcOJ4PRHcXkqPNIDpK6TDME/Er/Jz95gFHQaFMwEtB0O RNGoA6aX0G0s7K5eZnqVFWCFMlMEA2m4WpAsiy9ScDxy
X-Google-Smtp-Source: APXvYqwEEVyccjm7Hf+5l5lmtuJgs1rttB7L+NLCbN3TWUq7nBHdysm92296SXaKaXvn5tAz9lx3fWImXdXs2kWTXHA=
X-Received: by 2002:a2e:8119:: with SMTP id d25mr2785221ljg.76.1579883492169; Fri, 24 Jan 2020 08:31:32 -0800 (PST)
MIME-Version: 1.0
References: <CAJm83bD5Ozkpg5TpkogOW6xeeNQL3ZziLO9URM7haqN8Wrp=Wg@mail.gmail.com> <CACsn0cmZkRifrnbVbPw2=9ww+ttmbAGCW39LhT+jhDLLyU8e+A@mail.gmail.com> <d28630bc-6f3c-79d7-819d-484666cf8290@meinberg.de>
In-Reply-To: <d28630bc-6f3c-79d7-819d-484666cf8290@meinberg.de>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Fri, 24 Jan 2020 08:29:55 -0800
Message-ID: <CACsn0c=Q9PaLB3qWkC7v0D760fJHu3vfCsLGOetbnMi6_MG6ig@mail.gmail.com>
To: Martin Burnicki <martin.burnicki@meinberg.de>
Cc: Daniel Franke <dfoxfranke@gmail.com>, NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000565bec059ce54a59"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/IcVGhhwUTbYlLvnKr69VfnsjwAw>
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 16:31:36 -0000

On Fri, Jan 24, 2020, 7:10 AM Martin Burnicki <martin.burnicki@meinberg.de>
wrote:

> Watson Ladd wrote:
> > On Wed, Mar 27, 2019, 9:47 AM Daniel Franke <dfoxfranke@gmail.com
> > <mailto: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.
>
> Strictly speaking, it depends on the operating system.
>
> A process like ntpd notifies the kernel that a leap second is coming up
> at the end of the day, and the kernel handles the leap second. So it
> depends on the implementation in the kernel whether the last or the
> first second is repeated to insert a leap second.
>
> ntpd just picks up the current system time from the kernel and sends it
> to its clients.
>
> It only detects that the leap second event has passed when it queries
> the kernel time stat the next time. If clients retrieved the time from
> ntpd after the leap second has finished but before ntpd has updated the
> kernel time status the leap bits can be wrong.
>
> This is one of the reasons why ntpd sends leap bits "unsynchronized" for
> a short time around the leap second. This doesn't hurt or confuse the
> client.
>

Is this mandated by RFC 5905?

If not, should it be/should the behavior be more precise?

I realize there may be a bug around this when using a separate server
process: my gut says one measurement off by a second is insignificant since
the maximum adjustment in response, but there may be other issues I'm not
thinking about.


> Martin
> --
> Martin Burnicki
>
> Senior Software Engineer
>
> MEINBERG Funkuhren GmbH & Co. KG
> Email: martin.burnicki@meinberg.de
> Phone: +49 5281 9309-414
> Linkedin: https://www.linkedin.com/in/martinburnicki/
>
> Lange Wand 9, 31812 Bad Pyrmont, Germany
> Amtsgericht Hannover 17HRA 100322
> Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
> Andre Hartmann, Heiko Gerstung
> Websites: https://www.meinberg.de  https://www.meinbergglobal.com
> Training: https://www.meinberg.academy
>
>