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

Philip Prindeville <philipp@redfish-solutions.com> Mon, 04 January 2021 19:30 UTC

Return-Path: <philipp@redfish-solutions.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 022743A0FEF for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 11:30:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 8yNlTK44H6U4 for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 11:30:24 -0800 (PST)
Received: from mail.redfish-solutions.com (mail.redfish-solutions.com [45.33.216.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F40973A0FEB for <ntp@ietf.org>; Mon, 4 Jan 2021 11:30:23 -0800 (PST)
Received: from [192.168.3.4] ([192.168.3.4]) (authenticated bits=0) by mail.redfish-solutions.com (8.16.1/8.16.1) with ESMTPSA id 104JUNq5348055 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Jan 2021 12:30:23 -0700
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
From: Philip Prindeville <philipp@redfish-solutions.com>
In-Reply-To: <20210104164449.GE2992437@localhost>
Date: Mon, 04 Jan 2021 12:30:23 -0700
Cc: Magnus Danielson <magnus@rubidium.se>, ntp@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <993FBCC2-1CB8-414F-8387-7DDF7D321952@redfish-solutions.com>
References: <20210102081603.1F63C40605C@ip-64-139-1-69.sjc.megapath.net> <cecaf661-92af-8b35-4c53-2f025c928144@rubidium.se> <20210104164449.GE2992437@localhost>
To: Miroslav Lichvar <mlichvar@redhat.com>
X-Mailer: Apple Mail (2.3654.40.0.2.32)
X-Scanned-By: MIMEDefang 2.84 on 192.168.1.3
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/NP2Cfa3HiPRVbTEI6zVzMo5spnY>
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 19:30:25 -0000


> On Jan 4, 2021, at 9:44 AM, Miroslav Lichvar <mlichvar@redhat.com> 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.
> 


That sounds like it’s really easily addressed…