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

Miroslav Lichvar <mlichvar@redhat.com> Mon, 04 January 2021 16:44 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 1C9B63A0E71 for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 08:44:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.47
X-Spam-Level:
X-Spam-Status: No, score=-0.47 tagged_above=-999 required=5 tests=[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_MSPIKE_H3=-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 tZ6z7liJnnIt for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 08:44:56 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.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 899643A0DC6 for <ntp@ietf.org>; Mon, 4 Jan 2021 08:44:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609778695; 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=WdRYTQat0cqjHdJmosLuveM7AZ0Wov7RONzFt+UzdAE=; b=LtBfoUap2AeDT5OJDW8Mi2LoE38Zr+0Qfbpoib7u3F8SPXVMWQBV7kB0tKH28j6o2O97Kj 4GIjNJSxLOyRetLlSsCCW+DhTzfhnU3hVrx+ssylkp62+k6wENyzEYQCRnytvxypD1XH6U WbZlJuVmkCraRgAaZRbhAoz3zxYtPyI=
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-33-reuA7lhxPsKxRLzn_YGUGg-1; Mon, 04 Jan 2021 11:44:53 -0500
X-MC-Unique: reuA7lhxPsKxRLzn_YGUGg-1
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A9259800D55; Mon, 4 Jan 2021 16:44:52 +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 F392E277C3; Mon, 4 Jan 2021 16:44:51 +0000 (UTC)
Date: Mon, 04 Jan 2021 17:44:49 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Magnus Danielson <magnus@rubidium.se>
Cc: ntp@ietf.org
Message-ID: <20210104164449.GE2992437@localhost>
References: <20210102081603.1F63C40605C@ip-64-139-1-69.sjc.megapath.net> <cecaf661-92af-8b35-4c53-2f025c928144@rubidium.se>
MIME-Version: 1.0
In-Reply-To: <cecaf661-92af-8b35-4c53-2f025c928144@rubidium.se>
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
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/uslls0B_CjF05_hdvzGwevHezCQ>
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 16:44:58 -0000

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.

-- 
Miroslav Lichvar