Re: [Ntp] NTPv5: big picture

Magnus Danielson <magnus@rubidium.se> Mon, 04 January 2021 18:00 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 265293A1118 for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 10:00:23 -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 axWBdWtMHT7z for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 10:00:19 -0800 (PST)
Received: from pio-pvt-msa3.bahnhof.se (pio-pvt-msa3.bahnhof.se [79.136.2.42]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 06D5A3A0FD3 for <ntp@ietf.org>; Mon, 4 Jan 2021 10:00:08 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTP id E34B03F4D5 for <ntp@ietf.org>; Mon, 4 Jan 2021 19:00:05 +0100 (CET)
Authentication-Results: pio-pvt-msa3.bahnhof.se; dkim=pass (2048-bit key; unprotected) header.d=rubidium.se header.i=@rubidium.se header.b=cQRESKvG; dkim-atps=neutral
X-Virus-Scanned: Debian amavisd-new at bahnhof.se
Received: from pio-pvt-msa3.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ztm0XHX2tYGD for <ntp@ietf.org>; Mon, 4 Jan 2021 19:00:03 +0100 (CET)
Received: by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTPA id 09D153F38A for <ntp@ietf.org>; Mon, 4 Jan 2021 19:00:02 +0100 (CET)
Received: from machine.local (unknown [192.168.0.15]) by magda-gw (Postfix) with ESMTPSA id 858489A0294; Mon, 4 Jan 2021 19:00:02 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rubidium.se; s=rubidium; t=1609783202; bh=p6vYw2G+BODvDCoNcKmW8xY/wmfy9VEdCdXH4KnWsHs=; h=Cc:Subject:To:References:From:Date:In-Reply-To:From; b=cQRESKvGMJMbAsmIJYFC3KV1bEAy6ew+AAVxx3A8s+24h9wEW2K7NmuP99px7gYIV mn2f6Z1o0ZcHX1y5gXoQiSB0xCcBH4ywVWGbJHeWsdfQWw9od8aM3sEk8zLzan/MAR a9eucMrGCpX3CN8LyRLAlQCkRXtUp01m1dTMlx8A1GtOc5tcH/R4JUsbcRkDLtRAA0 RP3LH+vGMe4yltIKzi4XmSgxZC/xLT5FfGhhVZF26Y8eE41m6CGvxgid6DmYgtu1u7 YdWC4jB3VWtIRQNN3bwQfbXmeiP7+oZOlVXuoTxJ5qsLHxL7+Ydgg/WcKTfHPWBK03 aOTRhqMOTQNaw==
Cc: magnus@rubidium.se
To: ntp@ietf.org
References: <20210101025440.ECE3340605C@ip-64-139-1-69.sjc.megapath.net> <20210104151813.GB2992437@localhost> <301BACA8-EFA2-4588-81B1-B39CD977298E@redfish-solutions.com>
From: Magnus Danielson <magnus@rubidium.se>
Message-ID: <89622453-292d-1a6d-3639-e653f446edb3@rubidium.se>
Date: Mon, 04 Jan 2021 19:00:01 +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: <301BACA8-EFA2-4588-81B1-B39CD977298E@redfish-solutions.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/-akdmWrQPooeKaeia0xFpaOGPhU>
Subject: Re: [Ntp] 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 18:00:28 -0000

Philip,

On 2021-01-04 18:40, Philip Prindeville wrote:
>
>> On Jan 4, 2021, at 8:18 AM, Miroslav Lichvar <mlichvar@redhat.com> wrote:
>>
>> On Thu, Dec 31, 2020 at 06:54:40PM -0800, Hal Murray wrote:
>>> Do we have a unifying theme?  Can you describe why we are working on NTPv5 in 
>>> one sentence?
>> There is a list of issues in NTPv4 I would like to see fixed in NTPv5:
>> https://trac.ietf.org/trac/ntp/wiki/NtpVersionFourIssues
>>
>> A major issue is that NTPv4 doesn't support short extension fields due
>> to conflicts with legacy MACs, so fixing all those issues by adding
>> new extending fields to NTPv4 seems impractical. Some things, e.g. the
>> timescale selection, makes more sense to have in the header.
>>
>>> Part of the motivation for this is to enable and encourage OSes to convert to 
>>> non-leaping time in the kernels.  Are there any subtle details in this area 
>>> that we should be aware of?  Who should we coordinate with?  ...
>> I don't think that should be the job of the NTP WG. The kernels will
>> need to support a leaping UTC timescale for as long as it is needed
>> for civil time.
>
> I disagree.  The kernel doesn’t inherently require UTC.  It could just as easily use TAI or some other format.
>
> The kernel needs to provide into user-space some format which is then convertible to UTC, for as long as UTC is in-use by applications.
>
> This could be handled by libc.

While I agree that kernel very well could operate in some suitable TAI
format, and the PTP scale would be the low-hanging fruit for that, as it
intends to be that blend of TAI and classical UNIX/POSIX time_t.

However, the only way I know with spreading in which TAI and UTC is
maintained is through the kernel interface provided by the NTP
nanokernel, and that is supported on effectively most Linuxes.

What can be done better is to use it properly and that libc would
provide the needed glue. If libc does that, then from the user's point,
if this is done completely in libc or shared between kernel and libc the
user do not care, as long as they get correct time-stamp and the machine
is setup to feed the needed data.

But then again, I do not think it's the NTP WG job do decide where it is
implemented, rather we shall make sure the NTP side of things can
support the needed features so that it works well.

Cheers,
Magnus