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

Martin Burnicki <martin.burnicki@meinberg.de> Wed, 06 January 2021 11:11 UTC

Return-Path: <martin.burnicki@meinberg.de>
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 080093A12E2 for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 03:11:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.361
X-Spam-Level:
X-Spam-Status: No, score=-2.361 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.262, SPF_HELO_NONE=0.001, 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=meinberg.de
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 WoNQu1CO631F for <ntp@ietfa.amsl.com>; Wed, 6 Jan 2021 03:11:33 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 29DEF3A12DF for <ntp@ietf.org>; Wed, 6 Jan 2021 03:11:32 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 1F50171C11A4; Wed, 6 Jan 2021 12:11:30 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=dkim; t=1609931490; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KB/Kp749YcGMFYHGmxhHdwayEspO6s1gatlEdQhRQqI=; b=i0eqxRxijtVPvqoK90J6CLDGURu51QpBJkhi8tOYUL7Kkg5iWILBzeWChlEMO1Zk3rUmkC 8v4P36cXmELwy+cpY6yENM5hdAQ7Gwwq1OCZlnzrQwtGOgQZMXpp+mLQ59BstkU04NYAtk RsBnAVyRMCq3KRmnyCXEkeW3Bw0yljBXXruP3poPfCZZZYHgy6vKdgZsrSzg75qB/DNEm6 L9e5IXK7/0t7X3vYkNlGhbAfH+s+hCUCKSRf8zOl9Ju0+d+Kl3FhQa4ou9X5F7xdPeBb2e 5JmKfEt5mSPiZmyK8dH8GFmFR+dBkO7xwIZYdh/OYbjYT33iyIL812PUodQo/Q==
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)); Wed, 6 Jan 2021 12:11:27 +0100
To: Kurt Roeckx <kurt@roeckx.be>
Cc: Magnus Danielson <magnus@rubidium.se>, Miroslav Lichvar <mlichvar@redhat.com>, ntp@ietf.org
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> <f8a1b9fa-887f-3402-d6e9-19dd4fa98e33@meinberg.de> <75348282-d6aa-e1f1-0ab1-4dfbc1379ff4@rubidium.se> <39e28d2c-454d-43f1-ee58-b136187212b1@meinberg.de> <X/WVkNLUB3q+7BhK@roeckx.be>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
Message-ID: <3d72941f-980d-d738-d81f-5b7cd718a8e7@meinberg.de>
Date: Wed, 06 Jan 2021 12:11:26 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <X/WVkNLUB3q+7BhK@roeckx.be>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/nA2O6IeM6jbzaqrCDJZj8QSihgI>
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 11:11:35 -0000

Kurt Roeckx wrote:
> On Wed, Jan 06, 2021 at 11:24:21AM +0100, Martin Burnicki wrote:
>>>
>>> Indeed. I am confident that the client can be very simple and provide
>>> the right time, even with leap seconds occurring.
>>
>> Of course. But the limitation is in the server. Right now, it is
>> sufficient to have a time source like DCF77. If you enforce using of
>> TAI, that's not sufficient anymore.
> 
> If you combine it with the leap second info, you can get TAI and
> UTC from DCF77.

Of course, I know.

My point is simply to avoid dependencies on other mechanisms if you only
need the current UTC or wallclock time.

This works perfectly fine with the current NTP version.

>> AFAIK, there's no current OS that doesn't support UTC.
> 
> I would argue that no OS really supports UTC. They support
> something like UNIX time, which is not the same as UTC since it
> can't represent the leap second.

Of course I know that, too.

However, for many applications this is sufficient, and for those with
higher level requirements it can easily be extended if the protocol
provides "UTC-like" time and a *consistent* TAI offset. See my example
in a previous message.

> If the OS has TAI support, you can calculate UTC from it if you have
> leap second information. But the OS or libraries don't support UTC,
> it's currently up to the application to make UTC from TAI.

Anyway, the current version of the protocol provides what these systems
need, and with the proposed way you can easily satisfy other requirements.

Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy