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

Martin Burnicki <martin.burnicki@meinberg.de> Thu, 07 January 2021 15:55 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 7A2263A1235 for <ntp@ietfa.amsl.com>; Thu, 7 Jan 2021 07:55:39 -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 24PLXT5y_0SU for <ntp@ietfa.amsl.com>; Thu, 7 Jan 2021 07:55:37 -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 9D4D63A1219 for <ntp@ietf.org>; Thu, 7 Jan 2021 07:55:37 -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 3CE8F71C0DFC; Thu, 7 Jan 2021 16:55:35 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=dkim; t=1610034935; 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=L3sbMiRK71bZ/HtkvOvSrxACntjIBvdtwHT1E6a4uuk=; b=arQPrv/btlLtKwd0puPgHBsa3bSTShCRBQdiC25C3hXmKqOQ+4HjIoeVMvrGP9coOsUofJ NSbERq04Yz8gqSJbJGxoHfRacX4CKX3DODA5T6Az9CQzDwFUypoSBtPFnfA7lxb6diaN9T JRtvB/IwPsj6ysri/RxpGIKibNs1Mep6inyWNiEtEBpcvs9ndTzB62TZcGBdkHCH+evdnc emfflQOFdEBwMlTGNp29Spkromry7yioth8jS+vlY86E1jCNuw9xOb3A/nUjgqTV94WKyl 7aFFAjs8mecLTLQiLzBrTy5xxE92X8l2Hv3m0aj40I2mW3ObDlB1UBXPE2v+sQ==
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)); Thu, 7 Jan 2021 16:55:33 +0100
To: Miroslav Lichvar <mlichvar@redhat.com>, FUSTE Emmanuel <emmanuel.fuste@thalesgroup.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>, Magnus Danielson <magnus@rubidium.se>
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> <c78ad54e-dd10-fc8e-fc88-cf65f9fb29a5@thalesgroup.com> <20210107115226.GB3415835@localhost>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
Message-ID: <a0e137c3-5e4a-2277-2e1d-2284b39de309@meinberg.de>
Date: Thu, 07 Jan 2021 16:55:32 +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: <20210107115226.GB3415835@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/3BsMhG8fBUfIi_VkVMdgPcC75fk>
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: Thu, 07 Jan 2021 15:55:40 -0000

Miroslav Lichvar wrote:
> On Wed, Jan 06, 2021 at 09:57:56AM +0000, FUSTE Emmanuel wrote:
>>
>> 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.
> 
> That offset is not always available, e.g. with a DCF77 refclock.
> Relying on other sources is not always acceptable.
> 
>> 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.
> 
> No, it will be messier. That's the other problem.
> 
> If your OS doesn't have a TAI clock or it doesn't support timestamping
> with the TAI clock, you will have to resolve the ambiguity in your NTP
> implementation. That will not be 100% reliable as you cannot be sure
> if the timestamp is captured before or after the leap. You are only
> guessing. If the client doesn't know that the server is only guessing,
> it may get unexpected errors in measurements and its clock disrupted.
> 
> The best thing you can do on such an OS is to suspend the operation
> around leap second, the same thing as when using a leaping timescale.
> In other words, there is no advantage of using a non-leaping timescale
> for the time transfer. It would only make things even more messier
> than they already are.

Once more, I strongly agree.

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