Re: [Ntp] CLOCK_TAI (was NTPv5: big picture)

Hal Murray <hmurray@megapathdsl.net> Tue, 05 January 2021 12:45 UTC

Return-Path: <hmurray@megapathdsl.net>
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 9D6A63A0AD5 for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 04:45:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.036
X-Spam-Level: *
X-Spam-Status: No, score=1.036 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=no autolearn_force=no
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 i3ztJyNeWvy5 for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 04:45:45 -0800 (PST)
Received: from ip-64-139-1-69.sjc.megapath.net (ip-64-139-1-69.sjc.megapath.net [64.139.1.69]) by ietfa.amsl.com (Postfix) with ESMTP id 6F54D3A0AD4 for <ntp@ietf.org>; Tue, 5 Jan 2021 04:45:45 -0800 (PST)
Received: from shuksan (localhost [127.0.0.1]) by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 5EF5C40605C; Tue, 5 Jan 2021 04:45:44 -0800 (PST)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Miroslav Lichvar <mlichvar@redhat.com>
cc: ntp@ietf.org, hmurray@megapathdsl.net
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Miroslav Lichvar <mlichvar@redhat.com> of "Tue, 05 Jan 2021 09:33:28 +0100." <20210105083328.GA3008666@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 05 Jan 2021 04:45:44 -0800
Message-Id: <20210105124544.5EF5C40605C@ip-64-139-1-69.sjc.megapath.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/eH-7XeDsXI-KQHQt3a6cWffzXok>
Subject: Re: [Ntp] CLOCK_TAI (was NTPv5: big picture)
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: Tue, 05 Jan 2021 12:45:47 -0000

mlichvar@redhat.com said:
> NTP is used for synchronization of various clocks. Most of them are based on
> UTC. NTPv5 cannot support only TAI. 

This is a tangled area.

I think that a TAI only NTPv5 protocol would be much cleaner and easier to 
document.  Yes, I agree that we need a story for UTC, but the answer doesn't 
have to clutter up an RFC for NTPv5.

All the kernel and/or libc need to convert TAI to/from UTC is the TAI-UTC 
offset (a small integer) and the date of the next leap second, a flag for 
insert/delete/none, and the valid-until date of the info.

We could provide that data in an extension.  The same extension would allow a 
NTPv4 server to provide clients with enough info to let current UTC based 
kernels provide TAI and/or leap when appropriate.

We could provide that data in a new protocol.  Or a new packet type on the NTP 
port.  Or via DNS.

An extension would piggyback on whatever we use to authenticate NTPv5.  DNSSEC 
would authenticate the DNS approach.

If we implement this on the network, we should be sure to emphasize that the 
data only changes every 6 months and that we expect clients to remember the 
answer rather than ask every time.

We could provide code that lets systems process leap-seconds.list
ntpd already does.
A copy of the leap seconds file is included by the Time Zone project and 
distributed by IANA.  Most distros are already setup to keep the time zone 
info up to date.  It should be simple for the leap file to go along for the 
ride.  Debian already does it.

-- 
These are my opinions.  I hate spam.