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

Miroslav Lichvar <mlichvar@redhat.com> Thu, 07 January 2021 11:25 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 202923A0FB9 for <ntp@ietfa.amsl.com>; Thu, 7 Jan 2021 03:25:15 -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 VCYrnfbY_ast for <ntp@ietfa.amsl.com>; Thu, 7 Jan 2021 03:25:13 -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 689A73A0FB8 for <ntp@ietf.org>; Thu, 7 Jan 2021 03:25:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610018712; 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=vMBchd2cD0yk/Q6Virwr2n4JOgsYiPHiP+yC97p3h8Y=; b=WygGzw35PpAZvZtVb8MmEcqkr/oxL0nICzfj+zsrut+qB8m+tQPLVYxkcTqv2KtH3KZ7If EP0832iarN9A9PywVAFIIWPUBAMRrezmF/XaHgkZ9pJ6120hEcISHjT/frd970kAAfU1lD yfP5ydEdZjwSUJYfd6QabgVCV2TuIZY=
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-376-AZ2xeM-NN12e6Tjsh7QMlw-1; Thu, 07 Jan 2021 06:25:10 -0500
X-MC-Unique: AZ2xeM-NN12e6Tjsh7QMlw-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 1B707801817; Thu, 7 Jan 2021 11:25:09 +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 63FEC6268E; Thu, 7 Jan 2021 11:25:07 +0000 (UTC)
Date: Thu, 07 Jan 2021 12:25:06 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Magnus Danielson <magnus@rubidium.se>
Cc: ntp@ietf.org
Message-ID: <20210107112506.GA3415835@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> <54387a31-5c6e-7e61-dc2b-270c86ccbb07@rubidium.se>
MIME-Version: 1.0
In-Reply-To: <54387a31-5c6e-7e61-dc2b-270c86ccbb07@rubidium.se>
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/fCnpsUUHGm4JN_4qWOv26q6fl2U>
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:25:15 -0000

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.

> > 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.

-- 
Miroslav Lichvar