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

Miroslav Lichvar <mlichvar@redhat.com> Thu, 07 January 2021 11:52 UTC

Return-Path: <mlichvar@redhat.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 6AF343A1053 for <ntp@ietfa.amsl.com>; Thu, 7 Jan 2021 03:52:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.369
X-Spam-Level:
X-Spam-Status: No, score=-2.369 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, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 OiFZpU0f2sYs for <ntp@ietfa.amsl.com>; Thu, 7 Jan 2021 03:52:35 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 636823A1047 for <ntp@ietf.org>; Thu, 7 Jan 2021 03:52:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610020354; 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: in-reply-to:in-reply-to:references:references; bh=qrlwzJqDtfxpXnHprHFAMUDAp1x/oCVqLTbh8Gs2uJ4=; b=RopTY8mfJxKiVzaE9JD8Z6kJGrRIM9RoieHIi7SW3zHevEKqgEVyir5YMgIVx+CMVU/EsK W7SpG09FWRji2UQ0YMN02f+vGQlFSYdc70lffk/oukUyPhw53d2oxWSytBSAqn+XFVqGhN rA2MbjvZBmh9eNEZIc9iiaZ+LHWIO8s=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-230-hZct8Rf5O5uo_YUKfq70gw-1; Thu, 07 Jan 2021 06:52:31 -0500
X-MC-Unique: hZct8Rf5O5uo_YUKfq70gw-1
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 134B91842140; Thu, 7 Jan 2021 11:52:30 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8AB9E6268F; Thu, 7 Jan 2021 11:52:28 +0000 (UTC)
Date: Thu, 07 Jan 2021 12:52:26 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: FUSTE Emmanuel <emmanuel.fuste@thalesgroup.com>
Cc: "ntp@ietf.org" <ntp@ietf.org>, Magnus Danielson <magnus@rubidium.se>
Message-ID: <20210107115226.GB3415835@localhost>
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>
MIME-Version: 1.0
In-Reply-To: <c78ad54e-dd10-fc8e-fc88-cf65f9fb29a5@thalesgroup.com>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/MlrYqdhaIZIkevA_puR3ldrqn9M>
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 11:52:45 -0000

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.

-- 
Miroslav Lichvar