Re: [Ntp] Timescales

Miroslav Lichvar <mlichvar@redhat.com> Wed, 09 December 2020 11:30 UTC

Return-Path: <mlichvar@redhat.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 F0DBB3A174A for <ntp@ietfa.amsl.com>; Wed, 9 Dec 2020 03:30:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.121
X-Spam-Level:
X-Spam-Status: No, score=-2.121 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 eZwa21o6i4HV for <ntp@ietfa.amsl.com>; Wed, 9 Dec 2020 03:30:10 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A1563A1748 for <ntp@ietf.org>; Wed, 9 Dec 2020 03:30:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607513409; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MO2D3VQSqxQ3hOMi+JJLStbqEfxrAGXsioNVaFt05uw=; b=YHPX8KzPqNIiuJPL+9I62gbmBuZKNYI0wlczUBbXZQEkmzKVjCholox/l4SZUbJfTNO6SW qTj3ZsEbmQyiYTPTSjH6n4xMzBhmTtlvSIxo/QBK+Aiiw7AX09/iOt60ccsK0X/l7rWOZQ ePcRs1b3TwjI9J0o2zDVfRolbaENuis=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-pjg_Kn1hO-2gEBShg7eoFw-1; Wed, 09 Dec 2020 06:30:07 -0500
X-MC-Unique: pjg_Kn1hO-2gEBShg7eoFw-1
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 473ED107ACE4; Wed, 9 Dec 2020 11:30:06 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CFD060BF1; Wed, 9 Dec 2020 11:30:05 +0000 (UTC)
Date: Wed, 09 Dec 2020 12:30:03 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: ntp@ietf.org
Message-ID: <20201209113003.GA2352378@localhost>
References: <20201209101830.7CB0240605C@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
In-Reply-To: <20201209101830.7CB0240605C@ip-64-139-1-69.sjc.megapath.net>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/hArepwJ40r5NijplYm8bzkfUWw0>
Subject: Re: [Ntp] Timescales
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: Wed, 09 Dec 2020 11:30:12 -0000

On Wed, Dec 09, 2020 at 02:18:30AM -0800, Hal Murray wrote:
> Given TAI, there are 2 pieces of information that a clients needs to handle 
> UTC and its leap seconds.  The first is the current TAI-UTC offset.  The 
> second is when the next leap second happens.  That data changes very 
> infrequently and with plenty of warning.  There is no need to clutter up 
> on-the-wire protocols with it.  A client could get it from a leap-seconds file 
> distributed by their distro.

Relying on a separate source like the leap-seconds file is not always
possible. The device may not have an up-to-date OS, or actually have
any writable memory to store that information.

There is definitely not a plenty of warning. Some reference clocks
give the leap announcement only an hour before it happens (e.g.
DCF77). Even delaying setting of the kernel leap status to the clock
update can be a problem if you are polling at 1024 seconds and have
more than two measurements dropped in a row in the clock filter.

-- 
Miroslav Lichvar