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

Magnus Danielson <magnus@rubidium.se> Mon, 04 January 2021 17:48 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 BFA8D3A0EBF for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 09:48:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.461
X-Spam-Level:
X-Spam-Status: No, score=-0.461 tagged_above=-999 required=5 tests=[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 dn4CbSjKLs9S for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 09:48:25 -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 A9A133A0EBE for <ntp@ietf.org>; Mon, 4 Jan 2021 09:48:24 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id CB2D93F622; Mon, 4 Jan 2021 18:48:22 +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=PNr8Hxen; 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 mWZHNW8V9HGt; Mon, 4 Jan 2021 18:48:21 +0100 (CET)
Received: by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 64E453F54A; Mon, 4 Jan 2021 18:48:19 +0100 (CET)
Received: from machine.local (unknown [192.168.0.15]) by magda-gw (Postfix) with ESMTPSA id 82E1A9A0294; Mon, 4 Jan 2021 18:48:19 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rubidium.se; s=rubidium; t=1609782499; bh=QHtVCeBQsqng1p6a/uDh8p+oDkckUYIAXOc2NLvPeEU=; h=Cc:Subject:To:References:From:Date:In-Reply-To:From; b=PNr8HxenWGlloxEPN0GivOYYN6Ob1adSrThcd5eInvOfT907Fu2Nt/+NTGLex1SAK 8WKD6InOKNkMBFwJmLsseH0OJ+bT2b5BMwSsYTgzoP6Le15diGkpif8wQ+60FZ+XnL DoJUlXa7rMLS81VpT0bi5cauluKNDBTR3QzTQSTLrLMBype6OyfGHFs6QoAPoX4pVn /GOZZzEsiBVS/4oWnc9IAdRpP6h+7+SRtOQczevGSPq5sKBWREJroSZxxXdXmk3iwO jzmR0I++TDBdYLLIZQVorqR/B8n4sj37BCK9E7vA/fxLRhdLcF1dKyeqooo3g+GS9t TuPa37DkShcrg==
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>
From: Magnus Danielson <magnus@rubidium.se>
Message-ID: <b1e61f7d-6cea-5e99-69f0-7eae815d9e19@rubidium.se>
Date: Mon, 04 Jan 2021 18:48:16 +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: <20210104164449.GE2992437@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/2UfQf8mZFtxXEXrpnVXyfQFeR-g>
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: Mon, 04 Jan 2021 17:48:29 -0000

Hi Miroslav,

On 2021-01-04 17:44, Miroslav Lichvar wrote:
> On Mon, Jan 04, 2021 at 05:34:21PM +0100, Magnus Danielson wrote:
>>> It's been in the Linux kernel for years.
>>>        CLOCK_TAI (since Linux 3.10; Linux-specific)
>>>               A nonsettable system-wide clock derived from wall-clock
>>>               time but ignoring leap seconds.  This clock does not
>>>               experience discontinuities and backwards jumps caused by
>>>               NTP inserting leap seconds as CLOCK_REALTIME does.
>> Considering how long it's been in the kernel, I consider that for most
>> Linux systems, it can be used.
> The Linux system TAI clock can be read by applications, but there is
> no support for timestamping of packets with this clock, i.e. it is
> currently not useful for NTP.

The hardware time-stamping support will support PTP-timescale, which has
a know relationship to TAI. With whatever relationship there will be
between NTPv5 transport time-scale and TAI, the PTP relationship will
also be known and thus can be used.

Cheers,
Magnus