Re: [Ntp] Leap second

Warner Losh <imp@bsdimp.com> Fri, 24 January 2020 03:54 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 24ABB12002E for <ntp@ietfa.amsl.com>; Thu, 23 Jan 2020 19:54:20 -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, 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 F5mPaNLH6ANJ for <ntp@ietfa.amsl.com>; Thu, 23 Jan 2020 19:54:18 -0800 (PST)
Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) (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 0740F120019 for <ntp@ietf.org>; Thu, 23 Jan 2020 19:54:17 -0800 (PST)
Received: by mail-qv1-xf35.google.com with SMTP id n8so286531qvg.11 for <ntp@ietf.org>; Thu, 23 Jan 2020 19:54:17 -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=kHEcyoqNAr46m462QaseKvhNNzseDUnmJUBYK5aJUdk=; b=Vsll5rwgAamoZVRQMVwoQmRd4inaTS3UjIyduACHgKRkt/eDrHOC2cOOInZP1sVCld 9dhMI9L+TYZ/3TNIDrzv7qn7aU0N3G5sSyyZoSqvpggmfAfuEUEr+i0e6IDDsie9y5ud nT+Zrag6g0adyUiKIwcbIjGAtn+AND7eGJYJwS4/U0tShiB+YfNYD/s8CrtnUgy4dNSk MfKDZUjhNrRyX1Ko2+9tcIGClgwlGpHLTU6tf6TW0eEOqwvsSz35ACgd4SsDQTFzH9ur wndaDHLsoyUOG4VHTcMHyVUPS1JwI0Ljho/eByQxD4GFT3UuzfVKOxJ8GcmSPkUWlPNG 2L/A==
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=kHEcyoqNAr46m462QaseKvhNNzseDUnmJUBYK5aJUdk=; b=P+U4dQQSDKfysxLRNNDZ5U8NPbMiI1s7YmuvZtOIrDOiNbUX3N2r53/O0wsBss7uoZ n7eKAnJr5RQuZxbc1vQ8RbRh3Ix8r3tGVGYwc1oFhlsIJCFYy8+NpaHdddrGVQBBU8tR epi7RO7nrGZq53saKhB20NW29nzWE7oEVIQZ6VBHZK5bwf67AP4UAvCPsZMbpZbHt6Bb xZQFff7rtjBFFqmMHxNJjxa1mMQd+Rg57s0UhwMd9O0bZA1WaoS/QjNabKae0OF5p3AG tn5oEU8Kp1cQYfGiJu/Iu6vbris8b54J8HdWHwZoI2TeKx68HldLUca9bFGDPlkQzj3k NLFA==
X-Gm-Message-State: APjAAAVXryx/GQtxobqc31IxrEKtp4mUrlEt6z4I1HHcL371syJJq2Hd qTe7fPQsk7hms4QCTCCn2E2yd4Ac1aFD+Dbua01jbwok
X-Google-Smtp-Source: APXvYqxJpLq6UdjTiMUW5yOV0KlBT59bUzfyGAXeCDCzv5F81UM5YHg1bKjBKIfar8ZbVzAaGrELAbFPJ3A9Mr/l8pw=
X-Received: by 2002:a05:6214:3aa:: with SMTP id m10mr968603qvy.125.1579838056929; Thu, 23 Jan 2020 19:54:16 -0800 (PST)
MIME-Version: 1.0
References: <20200123235232.BB54440605C@ip-64-139-1-69.sjc.megapath.net>
In-Reply-To: <20200123235232.BB54440605C@ip-64-139-1-69.sjc.megapath.net>
From: Warner Losh <imp@bsdimp.com>
Date: Thu, 23 Jan 2020 20:54:04 -0700
Message-ID: <CANCZdfoM8ODfBYmgbZW7Q84828E+-BN2+vEWcRepwK2KnK8PyA@mail.gmail.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: NTP WG <ntp@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002faea6059cdab64a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/WJA2RaIfuwdE4chsTft7Tz7yD7w>
Subject: Re: [Ntp] Leap second
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 03:54:20 -0000

On Thu, Jan 23, 2020, 4:52 PM Hal Murray <hmurray@megapathdsl.net> wrote:

>
> Warner Losh said:
> > NTP timestamp repeats the last second of the day. Once without the leap
> bit
> > set and then again with it set.
>
> Which bit is that?  I don't know of a single "leap bit" in the header.
>
> There is a 2 bit header field with: normal (no leap), and add+del (leap
> pending) states.  The 4th state is used for non-in-sync.  Assuming you
> meant
> "bits" rather than bit, then the on-off is backwards.  I expect it to be
> sending leap-pending for most of the day, then send normal (no
> leap-pending)
> for the repeated last second of the day.
>
> --------
>
> I just looked at some code and found:
>                 if (leap_sec_in_progress) {
>                         /* always send "not sync" */
>                         xmt_leap = LEAP_NOTINSYNC;
>                 }
>
> Looks like it is responding with "I don't know" during the extra second.
> (but
> I didn't check carefully)
>

That was what I was thinking about...

Warner

-- 
> These are my opinions.  I hate spam.
>
>
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp
>