Re: [Ntp] NTPv5: big picture

Magnus Danielson <magnus@rubidium.se> Tue, 05 January 2021 14:42 UTC

Return-Path: <magnus@rubidium.se>
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 4879C3A0F35 for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 06:42:03 -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=rubidium.se
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 NWJCuWiPaScw for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 06:42:00 -0800 (PST)
Received: from ste-pvt-msa1.bahnhof.se (ste-pvt-msa1.bahnhof.se [213.80.101.70]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 442A73A0F41 for <ntp@ietf.org>; Tue, 5 Jan 2021 06:42:00 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 29D4F3F6AD; Tue, 5 Jan 2021 15:41:58 +0100 (CET)
Authentication-Results: ste-pvt-msa1.bahnhof.se; dkim=pass (2048-bit key; unprotected) header.d=rubidium.se header.i=@rubidium.se header.b=AXFdwuQs; dkim-atps=neutral
X-Virus-Scanned: Debian amavisd-new at bahnhof.se
Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kvwi80gqgAxq; Tue, 5 Jan 2021 15:41:56 +0100 (CET)
Received: by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id A62233F4CF; Tue, 5 Jan 2021 15:41:56 +0100 (CET)
Received: from machine.local (unknown [192.168.0.15]) by magda-gw (Postfix) with ESMTPSA id 08DCE9A0078; Tue, 5 Jan 2021 15:41:56 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rubidium.se; s=rubidium; t=1609857716; bh=7CmXluF4r7L/4hQ0IH1IFntNIRRGm/NLO/SVnI/531w=; h=Cc:Subject:To:References:From:Date:In-Reply-To:From; b=AXFdwuQsCu7g2RZ3exY/iJByRBsSQTeQnese+6O0kh4J+7DCvnN7HV8MJ7//bAUyP DXA0FRXxWfs76aki+oOgOezNeBpEVf/gamPla/nn21GfPsutGAWojiHXDr+NEWO7Aj pnVHF4EYS/E+GCNWOHT/1xe8pTqCNCHxCLfMUTjewjqWbbZC4/j5yGLCQGzy9AslK2 xqhxXI9UtoU2ndCuJRI8ci4SqXRy9Hc08iti680joJTtif3TVcRFDi7gdLAITCICCK zDgmJ6G/Dxe2Pm9exhib5VreUVRvblJWob+dBUFwoW1TJ8LgZj6WsieZ/uGuHNWncP l4NVa2kf9pLeQ==
Cc: magnus@rubidium.se, ntp@ietf.org
To: Miroslav Lichvar <mlichvar@redhat.com>, Philip Prindeville <philipp@redfish-solutions.com>
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>
From: Magnus Danielson <magnus@rubidium.se>
Message-ID: <e4c6a262-1d9b-68ce-1bad-8e81920c9633@rubidium.se>
Date: Tue, 05 Jan 2021 15:41:55 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <20210105085423.GB3008666@localhost>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/Nmstt_UTVIWBwK9-EUvJp37LW2E>
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:42:03 -0000

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.

Now, most (all?) PTP grand masters (a term that I expect to go away)
that I know of use GPS and other GNSSes to create a TAI-respecting
PTP-timescale replica with correct TAI-UTC difference.

For media clocks, it is the PTP time and thus TAI-based time that is
used, not the UTC based time.

> To anyone proposing NTPv5 to support only a non-leaping timescale I'd
> suggest them to try to implement it first.
>
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.

Cheers,
Magnus