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

Martin Burnicki <martin.burnicki@meinberg.de> Tue, 05 January 2021 16:12 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 622393A0E44 for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 08:12:02 -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 x99NSPoeI-Qs for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 08:12:00 -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 642ED3A0DFB for <ntp@ietf.org>; Tue, 5 Jan 2021 08:12:00 -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 A9BDE71C0E6A; Tue, 5 Jan 2021 17:11:58 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=dkim; t=1609863118; 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=8QLf08yWq9bxORHgn3u2KgAKbyWzhH49cn1XD5O4ai4=; b=ZSLIpRQtXTMWT7rpTytVj+2o1aVukk5Ymk/sJtqxHAtCQ9L2rLYlIo0gruu7vxBz5ETfs9 49zR9nIvoamrR/bh3FfgPDu3n3u5J0zGPGaZQ15QUbr7eDEgYX7JChGlzPZG6DVmtsTeL+ Qr05bxaBMWOT8BTy6+bdFjWYMedMwSnDgkJwdqMgoswF8PTek86v4rphOP0kdmb0A8NDLa YWbiY8glx4nX1VdK6rkuC/UzX2hvdB1VZ/8o/KqKeeGbezrKkJfMT+gE8ZBqhlEwHZ6kIR 6eExpgFJYk/D22lHt3xrvCInnGJmQG4+XZbdl9ROqWFjn5elQOVm13vUgiTKSg==
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)); Tue, 5 Jan 2021 17:11:54 +0100
To: Miroslav Lichvar <mlichvar@redhat.com>, Hal Murray <hmurray@megapathdsl.net>
Cc: ntp@ietf.org
References: <mlichvar@redhat.com> <20210105083328.GA3008666@localhost> <20210105124544.5EF5C40605C@ip-64-139-1-69.sjc.megapath.net> <20210105135933.GG3008666@localhost>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
Message-ID: <3bd0b0b0-d3b9-4509-cafb-5bdccda6560b@meinberg.de>
Date: Tue, 05 Jan 2021 17:11:54 +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: <20210105135933.GG3008666@localhost>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/JfujFi0ewKopQ8v1FdsRRrvtbRk>
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 16:12:02 -0000

Am 05.01.21 um 14:59 schrieb Miroslav Lichvar:
> On Tue, Jan 05, 2021 at 04:45:44AM -0800, Hal Murray wrote:
>>
>> 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'd say it's fairly simple.
> 
>> 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.
> 
> Much cleaner? It's just a single field needed to negotiate the
> timescale.
> 
>> 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.
> 
> Even if the kernel+libc fully supported TAI (they currently don't), it
> cannot work when the TAI-UTC is unknown, e.g. in an isolated network
> with a reference clock which doesn't provide this information. It
> doesn't matter how it is called or specified, but NTP has to support
> synchronization of UTC clocks when the TAI-UTC offset is unknown.
> Otherwise, it would be just an academic project of very limited value.

+10 (+1 wouldn't be enough, IMO ;-)

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