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

Miroslav Lichvar <mlichvar@redhat.com> Tue, 05 January 2021 13:59 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 A198E3A0EDA for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 05:59:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.37
X-Spam-Level:
X-Spam-Status: No, score=-2.37 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_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 3VnDzrStJg6m for <ntp@ietfa.amsl.com>; Tue, 5 Jan 2021 05:59:39 -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 6724D3A0EC4 for <ntp@ietf.org>; Tue, 5 Jan 2021 05:59:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609855178; 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=cACCGg7NDdwjfVnOMcoVVnlzgPjZ5X3XWJjWFmp01XQ=; b=gvCQW40E2NodmhUhGe78rB09+/+sTtrydieNFNW20MlTMERubP3LpgqZQ6d/K1XbXC+UKR XDUgvnuaBVn4pLzn3uy0KQ2r2sQCGaq4CeP8T6zoiN+V0bdVV82z/XDogdF96A4W/N9FR0 WXYOgmCwSOYZEl0u2aOKh5FS3HoUbIE=
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-388-iqQ4N67eOzKO_uTmn3sXzw-1; Tue, 05 Jan 2021 08:59:36 -0500
X-MC-Unique: iqQ4N67eOzKO_uTmn3sXzw-1
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 64C2984E244; Tue, 5 Jan 2021 13:59:35 +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 B96355E1B5; Tue, 5 Jan 2021 13:59:34 +0000 (UTC)
Date: Tue, 05 Jan 2021 14:59:33 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Hal Murray <hmurray@megapathdsl.net>
Cc: ntp@ietf.org
Message-ID: <20210105135933.GG3008666@localhost>
References: <mlichvar@redhat.com> <20210105083328.GA3008666@localhost> <20210105124544.5EF5C40605C@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
In-Reply-To: <20210105124544.5EF5C40605C@ip-64-139-1-69.sjc.megapath.net>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
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/pC8KtknjrjYwP8vdSIc_4Vi2rss>
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: Tue, 05 Jan 2021 13:59:41 -0000

On Tue, Jan 05, 2021 at 04:45:44AM -0800, Hal Murray wrote:
> 
> mlichvar@redhat.com said:
> > NTP is used for synchronization of various clocks. Most of them are based on
> > UTC. NTPv5 cannot support only TAI. 
> 
> This is a tangled area.

I'd say it's fairly simple.

> I think that a TAI only NTPv5 protocol would be much cleaner and easier to 
> document.  Yes, I agree that we need a story for UTC, but the answer doesn't 
> have to clutter up an RFC for NTPv5.

Much cleaner? It's just a single field needed to negotiate the
timescale.

> All the kernel and/or libc need to convert TAI to/from UTC is the TAI-UTC 
> offset (a small integer) and the date of the next leap second, a flag for 
> insert/delete/none, and the valid-until date of the info.

Even if the kernel+libc fully supported TAI (they currently don't), it
cannot work when the TAI-UTC is unknown, e.g. in an isolated network
with a reference clock which doesn't provide this information. It
doesn't matter how it is called or specified, but NTP has to support
synchronization of UTC clocks when the TAI-UTC offset is unknown.
Otherwise, it would be just an academic project of very limited value.

-- 
Miroslav Lichvar