[Ntp] Antw: [EXT] Re: NTPv5: big picture

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> Tue, 05 January 2021 07:20 UTC

Return-Path: <Ulrich.Windl@rz.uni-regensburg.de>
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 2A3F03A0A0B for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 23:20:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 wXULM-aW3srX for <ntp@ietfa.amsl.com>; Mon, 4 Jan 2021 23:20:15 -0800 (PST)
Received: from mx3.uni-regensburg.de (mx3.uni-regensburg.de [IPv6:2001:638:a05:137:165:0:4:4e79]) (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 832FC3A09F6 for <ntp@ietf.org>; Mon, 4 Jan 2021 23:20:15 -0800 (PST)
Received: from mx3.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 1997A6000054 for <ntp@ietf.org>; Tue, 5 Jan 2021 08:20:12 +0100 (CET)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx3.uni-regensburg.de (Postfix) with ESMTP id 3908C600004D for <ntp@ietf.org>; Tue, 5 Jan 2021 08:20:10 +0100 (CET)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Tue, 05 Jan 2021 08:20:10 +0100
Message-Id: <5FF41328020000A10003DF76@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.3.0
Date: Tue, 05 Jan 2021 08:20:08 +0100
From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
To: "ntp@ietf.org" <ntp@ietf.org>, magnus@rubidium.se
References: <20210101025440.ECE3340605C@ip-64-139-1-69.sjc.megapath.net> <20210104151813.GB2992437@localhost> <301BACA8-EFA2-4588-81B1-B39CD977298E@redfish-solutions.com> <89622453-292d-1a6d-3639-e653f446edb3@rubidium.se>
In-Reply-To: <89622453-292d-1a6d-3639-e653f446edb3@rubidium.se>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/HdIxn2iK_wl55dRvw9MMRkP7tOY>
Subject: [Ntp] Antw: [EXT] Re: 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 07:20:18 -0000

>>> Magnus Danielson <magnus@rubidium.se> schrieb am 04.01.2021 um 19:00 in
Nachricht <89622453-292d-1a6d-3639-e653f446edb3@rubidium.se>:
> 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.

Now that you mention it: I think it was also a bad design in NTPv4 to require
a nanokernel to handle TAI: Instead of storing and reading the TAI in/from the
kernel, the daemon should have a "working copy". The other bad thing was that
TAI processing was tied to autokey protocol extensions.

> 
> 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
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org 
> https://www.ietf.org/mailman/listinfo/ntp