Re: [Ntp] NTPv5: big picture

Miroslav Lichvar <mlichvar@redhat.com> Tue, 05 January 2021 14:57 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 296CB3A1042 for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 06:57:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.37
X-Spam-Level:
X-Spam-Status: No, score=-2.37 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_MSPIKE_H3=-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 AaUXZ28oUgHG for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 06:57:21 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.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 B64713A1036 for <ntp@ietf.org>; Tue, 5 Jan 2021 06:57:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609858640; 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=ENWO/mPaLNsh/XC6EgAdx2BdL79yqOEffOFnUD3kBvg=; b=MfQ9qHffnSWta+X4H23z5HLQnanzRq84LaUAS+Gcg4B0p/+NzYDFy3VjAw0c5qKyub5Knw L3IVmwDk7XXjsDGX3/OqQKtRe3Nje8QLEqYro7jWwYi7xSpPAnvkX4u1ZtJmZ0d/CQqu6i eekyuyRwvf8qQO3CHIFcwabEdIicGsU=
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-275-1h9adKmUM2W8Man_-jCQaQ-1; Tue, 05 Jan 2021 09:57:18 -0500
X-MC-Unique: 1h9adKmUM2W8Man_-jCQaQ-1
Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C6D72801817; Tue, 5 Jan 2021 14:57:17 +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 ED1AF5D9D2; Tue, 5 Jan 2021 14:57:16 +0000 (UTC)
Date: Tue, 05 Jan 2021 15:57:14 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Magnus Danielson <magnus@rubidium.se>
Cc: Philip Prindeville <philipp@redfish-solutions.com>, ntp@ietf.org
Message-ID: <20210105145714.GI3008666@localhost>
References: <20210101025440.ECE3340605C@ip-64-139-1-69.sjc.megapath.net> <155b7ae6-c668-f38f-2bbd-fd98fa4804db@rubidium.se> <16442E9F-DD22-4A43-A85D-E8CC53FEA3E5@redfish-solutions.com> <66534000-c3ba-8547-4fb1-1641689c6eba@rubidium.se> <E6F9312A-2080-4D13-9092-935080859750@redfish-solutions.com> <1086ffe6-234a-d2d4-13d6-6031c263f4cd@rubidium.se> <B4E8F8D4-95D8-4ACB-9770-FCFEBFE002A0@redfish-solutions.com> <20210105085423.GB3008666@localhost> <e4c6a262-1d9b-68ce-1bad-8e81920c9633@rubidium.se>
MIME-Version: 1.0
In-Reply-To: <e4c6a262-1d9b-68ce-1bad-8e81920c9633@rubidium.se>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14
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="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/fXKq1SX7Pq38hlWlITlUsoRByPA>
Subject: Re: [Ntp] 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 14:57:29 -0000

On Tue, Jan 05, 2021 at 03:41:55PM +0100, Magnus Danielson wrote:
> Hi,
> 
> On 2021-01-05 09:54, Miroslav Lichvar wrote:
> > On Mon, Jan 04, 2021 at 01:20:55PM -0700, Philip Prindeville wrote:
> >> PTP uses TAI.  It doesn’t seem to have been an impediment for them.  What am I missing?  And how did these “good technical reasons” not apply here?
> > PTP doesn't support TAI only. It supports TAI and an "arbitrary"
> > timescale. TAI is used for synchronization of hardware clocks, which
> > is the primary use case of PTP. If you wanted to synchronize a system
> > clock with PTP, the timestamps would typically be in the arbitrary
> > timescale (UTC).
> 
> PTP actually support both providing a TAI and UTC replica, as it also
> carries the TAI-UTC difference in addition to having the core time-stamp
> format that derives from TAI.

It does provide the TAI-UTC offset, but it is optional. There is a
flag to indicate the value is valid. PTP supports operation in
UTC-only and TAI-only environments.

> Regardless how we turn, we can not push the leap-seconds completely off
> the table. They need to be handled up front. If so, they can be handled
> fairly OK, where as trying to ignore them just create a number of
> problematic side-cases. I know what I prefer based out of my experience
> of building timing systems.

I think the problems of NTPv4 wrt leap seconds are well understood.
We need to announce leap seconds earlier and provide the TAI-UTC
offset if known. We should also add support for timestamps in a
non-leaping timescale to support the less usual case of clocks keeping
time in TAI.

--  
Miroslav Lichvar