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

Magnus Danielson <magnus@rubidium.se> Fri, 08 January 2021 13:04 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 799B93A0D3C for <ntp@ietfa.amsl.com>; Fri, 8 Jan 2021 05:04:25 -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 c8N-g0RVWkG4 for <ntp@ietfa.amsl.com>; Fri, 8 Jan 2021 05:04:23 -0800 (PST)
Received: from ste-pvt-msa2.bahnhof.se (ste-pvt-msa2.bahnhof.se [213.80.101.71]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 125233A0D2B for <ntp@ietf.org>; Fri, 8 Jan 2021 05:04:20 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 9ECE03F5AE; Fri, 8 Jan 2021 14:04:05 +0100 (CET)
Authentication-Results: ste-pvt-msa2.bahnhof.se; dkim=pass (2048-bit key; unprotected) header.d=rubidium.se header.i=@rubidium.se header.b=J91q2lz+; dkim-atps=neutral
X-Virus-Scanned: Debian amavisd-new at bahnhof.se
Authentication-Results: ste-ftg-msa2.bahnhof.se (amavisd-new); dkim=pass (2048-bit key) header.d=rubidium.se
Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nkUMzDR16jHf; Fri, 8 Jan 2021 14:04:04 +0100 (CET)
Received: by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 0935F3F4CC; Fri, 8 Jan 2021 14:04:00 +0100 (CET)
Received: from machine.local (unknown [192.168.0.15]) by magda-gw (Postfix) with ESMTPSA id F2FF49A0294; Fri, 8 Jan 2021 14:04:13 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rubidium.se; s=rubidium; t=1610111054; bh=NCt8vBRAbn3PEN+c3Exhz18v62laFGBs4TQEYaeN27Q=; h=Cc:Subject:To:References:From:Date:In-Reply-To:From; b=J91q2lz+vq7IQlf0kliyh2VOKYky1vqj0BM1yJbNUDNaR/fg75YS+e+F0H7JozP0d wpqvln7OJKjJ4oofFTRDLfri0NX6mQ7aofVE2mXPJ1l8PiUsS/dWGOnbdTKhPyl/8S kG1qhxaAEl3EwnUcA2jaxEFc3hWUxqKERQSPiHqbNpDwCxLEJlc/4UQ1fJghWlBh4j gEgg8YDeRCQZtJ1rvs3X/RQOdUUgTRk1/9c0QpWGnWTuT2mPjxWuxfU+umSAthux7I O8JadKkzEzQt037KKaJD27sK6iSZh83Mu0ZSiI7VgWgiLsoRrb/wPRrCsIA5sYe+gI wqbU5cchi8CXg==
Cc: magnus@rubidium.se, ntp@ietf.org
To: Miroslav Lichvar <mlichvar@redhat.com>
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> <54387a31-5c6e-7e61-dc2b-270c86ccbb07@rubidium.se> <20210107112506.GA3415835@localhost>
From: Magnus Danielson <magnus@rubidium.se>
Message-ID: <e5e34c6c-59e4-856a-b238-8a1d7b5eed33@rubidium.se>
Date: Fri, 08 Jan 2021 14:04:13 +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: <20210107112506.GA3415835@localhost>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/v-aNXceqdSsGT8sF6N-w5ufX2KM>
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: Fri, 08 Jan 2021 13:04:26 -0000

Miroslav.

On 2021-01-07 12:25, Miroslav Lichvar wrote:
> On Wed, Jan 06, 2021 at 12:53:06AM +0100, Magnus Danielson wrote:
>> I'm not at all convinced. PTP has little, at least as I can see in
>> IEEE1588-2008, that really supports the UTC with time-stamps. I should
>> check IEEE1588-2019 for more details, but you will have to explain very
>> clearly how that support comes about in PTP, because as I see it, if you
>> run UTC only it's hand-wavey at best. If you can show clearly how PTP
>> handles UTC and especially as a leap-second occur without hickup.
> PTP has the arbitrary timescale, which is typically used for a UTC
> transfer when serving time from an OS clock (as opposed to a hardware
> clock). It also has a leap announcement bit. That's all what is
> needed to synchronize two UTC clocks without knowing the TAI-UTC
> offset. It can work exactly the same as NTPv4.

OK, I can accept that considering heads-up is provided as needed per
IEEE1588 and that the UTC to time-stamp mapping is found that details
how UTC 23:59:60 is time-stamped and progressed. How will be know the
actual UTC read-out from such as setup?

The leap second announcement needs to be at least two announce messages
before, so you need to have heads up information about the upcoming
leap-second. With this, you are in the heads-up part of solution space
already for servers, which is similar enough to knowing coming and
current leap-second difference (a leap-second file achieves the
difference, and update of that or through leap-second indications).

So, in the end I am not very convinced.

>
>>> It makes sense to require servers to convert the timestamps if they
>>> have the offset, but for some hardware implementations (one-step
>>> clocks) that might not be possible.
>>>
>> What one-step clocks would that be? Surely, I expect none of the
>> existing NTP clocks to automatically support NTPv5, almost regardless
>> which shape it will take.
> If the transmit timestamp in the NTPv5 packet is at the same location
> as in NTPv4 and has the same meaning, as it is in my proposal, the
> same hardware can be used for timestamping NTPv4 and NTPv5 packets.
> It doesn't need to know anything about the packet itself, just that it
> is supposed to put the timestamp there.
>
Now, others have already raised that they want a TAI-like time-stamp
format. The reason is that the POSIX-like properties makes core
algorithms a bit more complex. It's not aiding to make a simple client
being simple.

Cheers,
Magnus