Re: [Ntp] Leap second

"Seaman, Robert Lewis - (rseaman)" <rseaman@email.arizona.edu> Fri, 24 January 2020 15:17 UTC

Return-Path: <rseaman@email.arizona.edu>
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 85FC3120090 for <ntp@ietfa.amsl.com>; Fri, 24 Jan 2020 07:17:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=emailarizona.onmicrosoft.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 yVP7S1MWfGcH for <ntp@ietfa.amsl.com>; Fri, 24 Jan 2020 07:17:11 -0800 (PST)
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2072d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::72d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5CA8912003E for <ntp@ietf.org>; Fri, 24 Jan 2020 07:17:11 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j0uMiWnEgLulTycr73oWC00615PSmEZziDp0v7mbdbyq5VTiot7KVp3UirQ+O8GWjzqivyhgDvkSQ6trTdOEoKMDXp2brZ9NXU8tCw/SppVD00GZvZebwhWhKquvrkBbNgSR82Yf5ZsZIzvApEXtGEUPA4JD6/iKKyt1Mepkv24VsLnSayulhQxZxSGiJY3LCcTTuyeSSo+cvbiTZz/Ro4bWb1cKMCvp8jio5rtgJBJEJeqjXzboD4iqa5GTaXqYisJFDJlFiYlRoQF1ium1H5GhTLmAVrLiiK7lUjRTU0WxE1aj/DSdPtoDcr7LLnoWu1DY7THgFd5ImSwbnCPWnw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zP6S0SEFT4FU+X6daQpUVrkIk+17HDqKk9PvzL6HI6c=; b=WwO++KKvr9l2Gt6aqkTabz6u6yWPqA+AD4Ud5v0owC2hAsQHe1N2RVn91sex1endsv5g6we19kvoLc3V0NslV0C79pSeX5QtCLPi6m/xQx4zAmBQsZrydMTZ69CiM8I2YsUEAFN+z8em8MmVTJXhxr+O9f8WKey0UNAr6XfKOM2KNzKfW7I1bCq/8n8S4lKSoc64PB+dKEjb643/4ufZaySWIsUDdSl6E+kJIBA+bThA2ywPcd+6+rduKbohA/1jhZfPymWNCvNPRtQSHFhl4Ax6CSswUpYK+DhH6rrRedKbSD/GgQsVSs7tw4i3wGS6wXQTmL3JyrgygKbGQj/VzA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=email.arizona.edu; dmarc=pass action=none header.from=email.arizona.edu; dkim=pass header.d=email.arizona.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emailarizona.onmicrosoft.com; s=selector1-emailarizona-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zP6S0SEFT4FU+X6daQpUVrkIk+17HDqKk9PvzL6HI6c=; b=mRYYhLGZbqWHTZ5mPHCDZv/CRDhMg9xl4ZAKcuo93v6+4gs14sgJCPIUGcahR4tKEFLmIMn4d6kPTbmNd1bC8oRiOrTt7v9FeqjDgyaZRZsauVuR11hwazfnPh9EV/gU6pOjtwuzo7/313vE9EFzrECu9LiEsdJV9PLmIwJSot8=
Received: from BN7PR19MB2259.namprd19.prod.outlook.com (52.135.246.16) by BN7PR19MB2322.namprd19.prod.outlook.com (52.135.255.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.22; Fri, 24 Jan 2020 15:17:10 +0000
Received: from BN7PR19MB2259.namprd19.prod.outlook.com ([fe80::a401:98b7:367c:d615]) by BN7PR19MB2259.namprd19.prod.outlook.com ([fe80::a401:98b7:367c:d615%4]) with mapi id 15.20.2665.017; Fri, 24 Jan 2020 15:17:10 +0000
From: "Seaman, Robert Lewis - (rseaman)" <rseaman@email.arizona.edu>
To: NTP WG <ntp@ietf.org>
Thread-Topic: [Ntp] Leap second
Thread-Index: AQHV0kg9eA1PGf1yVE6giXqQizncPaf55d4A//+S6YA=
Date: Fri, 24 Jan 2020 15:17:09 +0000
Message-ID: <F3DFEC05-3701-40D1-82B1-D66648814DD9@email.arizona.edu>
References: <20200123235232.BB54440605C@ip-64-139-1-69.sjc.megapath.net> <alpine.DEB.2.20.2001241435170.24409@grey.csi.cam.ac.uk>
In-Reply-To: <alpine.DEB.2.20.2001241435170.24409@grey.csi.cam.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rseaman@email.arizona.edu;
x-originating-ip: [2600:8800:7002:500:a05d:b5b3:1a8b:f13f]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 82cabc8b-4fee-40fd-8adc-08d7a0e07b81
x-ms-traffictypediagnostic: BN7PR19MB2322:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <BN7PR19MB2322DBBD0E9CFBDE29B1E6BFE50E0@BN7PR19MB2322.namprd19.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-forefront-prvs: 02929ECF07
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(366004)(136003)(376002)(396003)(346002)(39860400002)(199004)(189003)(2616005)(6512007)(71200400001)(186003)(8676002)(5660300002)(75432002)(6506007)(8936002)(33656002)(81156014)(81166006)(2906002)(6486002)(478600001)(966005)(6916009)(91956017)(76116006)(66556008)(66476007)(64756008)(66446008)(66946007)(786003)(316002)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN7PR19MB2322; H:BN7PR19MB2259.namprd19.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: email.arizona.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: pZyXLBV07tsQdEt39ZWnj3oWupfGpTcvYBhCfwalhucfEgIOwp8Udk8ZVaBh7F47tYoxQeI8I6H0TshEqCbqNlQOxYPCunUN+UFuccJXIzLGHklgEuo1V4MqpaoiSMzHb8OHdQQndvDtwcwscfTRHm6vt41ul2ygqYPB1RRVUbuRbUwEPe+71D0eJX7rW4OktbYQQf793buqClkhoX6TFLj2ih4jMQyjsEkO98PyPQosUuOe/CJaJE8Onoi4uPRBSn9JoLaY0gH32Y7jVlYDXI4TMbboyGyzWBPIr5XtzN+JmeZdw+TbefhH/nA2quIxusciDjleRiukPe4PKeMV2T1jJeGepwZRiYHHIa4B9bVeER6QfEB9RADjLqudKRxafdn36eU3bvTAsahxIsKcOojLjyc4oocr9enRhd9SYtiklazNWiyfllE+/8ff21qXhiEmj62ck+SunD78io7TQ+zSkBNuxcwSWmI5BEN50ZM=
x-ms-exchange-antispam-messagedata: rpmiqYk3zfDFNUjG9FamT/xi7bqALQUQ5xBVP4kCJt6yNJQIOMzDlqqgIE907WTkT8NVC5aArau+JJjeJmnopWhCieRJBnXeUk0eQ6d2ELL5NEz8c0MN4h7DiYrtlEvLyMnMScqWxzpFhLmSn+JlrsEvHouHD+aeMJFN1evyR9ElFRJ2RkOtF/4jGXFbUmplWTUjIVJ+AGYQ3FGn5kxcZA==
Content-Type: text/plain; charset="utf-8"
Content-ID: <EFCFF47BA0C485439FE495D8B3DA7260@namprd19.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: email.arizona.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 82cabc8b-4fee-40fd-8adc-08d7a0e07b81
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2020 15:17:09.9431 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ee35505-eb8e-4929-937d-645df5013288
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 9MXF9UGy+ZbexVxysWpESmIRhXt+5AJvZ7d/+1VjhsoIAknXRBnu46XMJTisdntu5jxDlCvUF6buVf/UCbqi/rHzZ0ZX3IyI2ZD/rjEybT0=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR19MB2322
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/1LReHbG5NOlNrR72eJc1gFdvCTs>
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 15:17:14 -0000

Just a reminder that UTC does not have repeated seconds, whatever POSIX says, or NTP implements. Seconds are interposed (or elided) as needed. UTC second number 61 in that minute is distinct from second number 60. Or second number 59 of one minute is immediately followed by second number 1 of the next. If you want different behavior, define or adopt a different time scale.

Rob Seaman
Lunar and Planetary Laboratory
University of Arizona
--

On 1/24/20, 7:48 AM, "ntp on behalf of Tony Finch" <ntp-bounces@ietf.org on behalf of dot@dotat.at> wrote:

    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.
    
    My understanding is that the leap indicator bits are not synchronized with
    the leap second, so they can't be used to disambiguate the repeated
    second.
    
    https://mailarchive.ietf.org/arch/msg/ntp/5KD48S2BFAMemNx99zQSB83hOJ8
    
    This isn't specified in the NTP RFC, but I believe the way it works in
    practice is that ntpd tells the kernel about the leap indicator bits using
    ntp_adjtime(STA_INS), then continues with the same leap indicator
    bits through the leap second until a subsequent ntp_adjtime() returns
    TIME_WAIT, at which point the leap indicator bits are cleared. When this
    happens is related to ntpd's polling interval, and not coupled to the leap
    second at all.
    
    Tony.
    -- 
    f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
    democracy, participation, and the co-operative principle
    
    _______________________________________________
    ntp mailing list
    ntp@ietf.org
    https://www.ietf.org/mailman/listinfo/ntp