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

FUSTE Emmanuel <emmanuel.fuste@thalesgroup.com> Wed, 06 January 2021 09:58 UTC

Return-Path: <emmanuel.fuste@thalesgroup.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 E6D3E3A1274 for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 01:58:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.632
X-Spam-Level:
X-Spam-Status: No, score=-2.632 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.25, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.262, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=thalesgroup.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 uFHrtslsk_gE for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 01:58:04 -0800 (PST)
Received: from thsbbfxrt01p.thalesgroup.com (thsbbfxrt01p.thalesgroup.com [192.54.144.131]) (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 25E973A1276 for <ntp@ietf.org>; Wed, 6 Jan 2021 01:58:03 -0800 (PST)
Received: from thsbbfxrt01p.thalesgroup.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 4D9lD56Pt6z45QZ for <ntp@ietf.org>; Wed, 6 Jan 2021 10:57:57 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thalesgroup.com; s=xrt20181201; t=1609927077; bh=9vAf9KjW/QiJv2sDru/3el+GkcU3rAhB+oQXEG7JEcM=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:From; b=uMTcX8ZEbeH+Q7KCmfKIit9e0uod0DX+3mVEVfeHJODsNcoujl4kBiODl6DPQN8O6 hkf+Jcfm4KxrLQUK53RuESsN+NL11FJYG70KkAtNV4IZcMAt1aEpSqHvp3MOOUgZQs fdhGz9Y0T54q9L8PkvR+bT5+cTdULyWAyGlsk+J6gUZEkdNMFrI2u2TXwW4XB3SAre ZXTfpanedUk7cdI7zcrLL6tqdDYBfTwPpeZ9N7s7CC28nISKVJH3ZAugfLuU/7yN0X qWswuUEAcQFQcSe1aocfQqDvPrLGRjKLH32AlHuuDzbHqELa/EKqc/A8sms45aTbh4 QRqYAJ4KC+kzg==
From: FUSTE Emmanuel <emmanuel.fuste@thalesgroup.com>
To: "ntp@ietf.org" <ntp@ietf.org>
Thread-Topic: [Ntp] CLOCK_TAI (was NTPv5: big picture)
Thread-Index: AQHW4N+MXi8LkZF0l0qFi5+u6qEKyaoXnGWAgAAC7YCAABG6AIAA91MAgABeSICAAAjNgIAAEzmAgAAKkICAASUMgA==
Date: Wed, 06 Jan 2021 09:57:56 +0000
Message-ID: <c78ad54e-dd10-fc8e-fc88-cf65f9fb29a5@thalesgroup.com>
References: <20210102081603.1F63C40605C@ip-64-139-1-69.sjc.megapath.net> <cecaf661-92af-8b35-4c53-2f025c928144@rubidium.se> <20210104164449.GE2992437@localhost> <b1e61f7d-6cea-5e99-69f0-7eae815d9e19@rubidium.se> <20210105083328.GA3008666@localhost> <ba5d2cde-6b5e-d9b6-1877-c4060bf43e80@rubidium.se> <20210105144225.GH3008666@localhost> <35c4be55-b6af-82b5-aacd-d5a591383dec@rubidium.se> <20210105162901.GJ3008666@localhost>
In-Reply-To: <20210105162901.GJ3008666@localhost>
Accept-Language: fr-FR, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1
x-pmwin-version: 4.0.3, Antivirus-Engine: 3.79.0, Antivirus-Data: 5.80
Content-Type: text/plain; charset="utf-8"
Content-ID: <91AC3CB6BCF83E4588D9CF673B032C8D@iris.infra.thales>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/2Vm_UvkTXMEDUFw1sWd2aemwJQc>
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: Wed, 06 Jan 2021 09:58:06 -0000

I clearly don't understand the resistance to go to a linear TAI like 
form for the core time-stamping format as long as the TAI-UTC offset is 
part of the core protocol frame. It could not be an option.
- it is cleaner, doing timekeeping math full of time steeping corner 
cases is a mess and ask for always buggy implementations
- it map directly to hadware time-stamping clock and which are not able 
to step and which are already used with TAI epoch by PTP control plane 
opening the opportunity to be able to share the clock and time-stamping  
hardware between PTP and NTP.
- all future stratum 1 NTPv5 servers will have one way ore another the 
TAI-UTC offset available, in the TZ database or given by the GPS clock 
or by any other mean. As long as it is a day 1 requirement, the 
requirement will be fulfilled automatically (GPS, PTP, new methods) or 
manually as a maintenance procedure (update of the TZ database manually 
or by OS updates, update of the leap file )
- all clients and upper stratum ones will no longer have to care about 
how to get the offset, it is there. All arguments for iot/never updated 
clients will be moot. All NTPv5 clients will be self containing.

You will have to do some conversions and adaptations in the OS 
adaptation layer, as today for all NTP implementations, and this layer 
will not be messier as the core is today. No need to wait that operating 
systems fully support a non-leaping timescale, or TAI-UTC offset natively.
It will open the opportunity for some of us to do work on the OS 
interfaces and time keeping code to extend it on Linux or BSD to be able 
to discipline the CLOCK_TAI directly for example, and the opportunity to 
have a complete cleaner and better system some days.

As long as the core protocol include the TAI-UTC offset, and 
good/unambiguous leap announcement, I consider TAI-like form of time for 
timestamps a great improvement on all fronts.

But if TAI-UTC offset is envisioned as an extension only, it does not 
work. This extension could be great for NTPv4 but sub-optimal for a new 
v5 specification.

Emmanuel.