Re: [Ntp] NTPv5 draft

Magnus Danielson <magnus@rubidium.se> Tue, 08 December 2020 23:43 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 318303A136C for <ntp@ietfa.amsl.com>; Tue, 8 Dec 2020 15:43:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, 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 qaSiXrT7rp5N for <ntp@ietfa.amsl.com>; Tue, 8 Dec 2020 15:43:52 -0800 (PST)
Received: from ste-pvt-msa1.bahnhof.se (ste-pvt-msa1.bahnhof.se [213.80.101.70]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 832103A1367 for <ntp@ietf.org>; Tue, 8 Dec 2020 15:43:50 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 9E7C941C27; Wed, 9 Dec 2020 00:43:48 +0100 (CET)
Authentication-Results: ste-pvt-msa1.bahnhof.se; dkim=pass (2048-bit key; unprotected) header.d=rubidium.se header.i=@rubidium.se header.b=a0N1K/86; dkim-atps=neutral
X-Virus-Scanned: Debian amavisd-new at bahnhof.se
Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iN9lhE1aEQ-P; Wed, 9 Dec 2020 00:43:47 +0100 (CET)
Received: by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id BBB0C41C14; Wed, 9 Dec 2020 00:43:46 +0100 (CET)
Received: from machine.local (unknown [192.168.0.15]) by magda-gw (Postfix) with ESMTPSA id 1E0EC9A0503; Wed, 9 Dec 2020 00:43:46 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rubidium.se; s=rubidium; t=1607471026; bh=XvaSuv/pbep5G3v9jEnmGH3+/+6DEV55ANuTrJb0fnw=; h=Cc:Subject:To:References:From:Date:In-Reply-To:From; b=a0N1K/86ypMrAub34Be6pAVeAd2FWKgKy7KrlPBGXcpV6hgGSH1rKN9VInKxXkUND bt+QD51e98s/N+SZ3hCZETopa0CZJhwVB6YRTzJ9tjp3lI9CxbmE4eZR+vKSL3Ks8r 56/9sqqTh/OWTbKr7QL9PT+fl9zUk6giymzjyvRAFtmBa6KOEhSIWvzlvBNG2iFn74 bfSHxjW2rhx1t86TOLC2TQfHc/wDlx+V5dQiUHw9isxYHXmEhhBr8MNsSO8s3y6Iki 0fp7AZB5N7QqVZuu/fAfo9dC4RPHkwphnBGbRD8weB++dyCXyuWVDiFD2A9BU7SFv+ hJ16GC8Zg1APQ==
Cc: magnus@rubidium.se, NTP WG <ntp@ietf.org>
To: Warner Losh <imp@bsdimp.com>
References: <20201111161947.GG1559650@localhost> <AA848C67-CFB7-43FC-B190-FD3911360373@gmail.com> <20201201081203.GB1900232@localhost> <2B8C7410-DFA7-4A87-A33E-F50FFA96D0F9@gmail.com> <20201201100305.GK1900232@localhost> <F62C1325-8409-474C-9650-FA96405D0F4B@gmail.com> <20201207104541.GE2352378@localhost> <E0159612-5D83-4A0E-BBD1-1D75C0B49226@akamai.com> <20201207153444.GO2352378@localhost> <1204B871-7728-45DA-B628-8F79BD074A96@akamai.com> <20201208095046.GT2352378@localhost> <D15AF5B4-F976-44D6-B8E7-986E3B8CE23D@akamai.com> <3314193a-a430-8db8-b72c-8443dcc1f125@dansarie.se> <4ab54344-fa4d-5719-db63-0555ce190643@rubidium.se> <CANCZdfprZSNX-GNN7KOVhj3k3jU1t2KiNUHTqRrDB+_g2OCw3A@mail.gmail.com>
From: Magnus Danielson <magnus@rubidium.se>
Message-ID: <61baa7ff-d512-3267-a12f-e8552789c0c2@rubidium.se>
Date: Wed, 09 Dec 2020 00:43:45 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.5.1
MIME-Version: 1.0
In-Reply-To: <CANCZdfprZSNX-GNN7KOVhj3k3jU1t2KiNUHTqRrDB+_g2OCw3A@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------CF33C7B2D5B430B964F8016D"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/stDOV35qF-PFAc13vdFYrgTsgK4>
Subject: Re: [Ntp] NTPv5 draft
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, 08 Dec 2020 23:43:56 -0000

Warner,

On 2020-12-08 21:11, Warner Losh wrote:
> Magnus,
>
> On Tue, Dec 8, 2020 at 8:53 AM Magnus Danielson <magnus@rubidium.se
> <mailto:magnus@rubidium.se>> wrote:
>
>     Agree fully. You bring up a point which I think not all is
>     appreciating.
>     While we may develop protocols for the Internet, does not mean
>     that they
>     actually have access to the network, or that such access is open
>     in any
>     normal sense. For such air-gaped networks update cycles can also
>     be long
>     enough that for instance leap-second file cannot be sent along each
>     upgrade to ensure correct leap-second list that way.
>
>
> When I implemented the LORAN-C timing system refresh at Timing
> Solutions, this issue was the biggest issue we had. We could get leap
> seconds from the GPS, and had to resort to a number of ad-hoc methods
> to distribute from there. Especially since we needed to cope with the
> scenario where a computer fails and is replaced by a spare that had
> been on the shelf for 5 years, but still had the requirement it
> couldn't get setting the UTC time of the atomic clock wrong (since
> LORAN TOC was timed vs UTC time scale, so a wrong time meant wrong
> timing signals to the LORAN transmitter), nor wait for a full GPS
> almanac to download.... We used a number of ad-hoc methods to do this
> since there was nothing standard and in practice they proved to be
> less robust than one would have liked. These machines were networked,
> but on a private network that existed at each LORAN station only with
> only minimal connectivity to the outside world (if any).
>
> Leap seconds sound easy and simple, but the logistical issues
> surrounding them are legend, especially when one must engineer for
> discontinuous use cases.
>
> Leap seconds are trivial if you have perfect knowledge. Sadly, history
> has shown that this knowledge to be somewhat less than perfect...

It's not only that, but also depends on over what system they are
conveyed over. Some work better than others. Some show for sure that
they where not designed with leap-second handling up-front, and the
patch work create various pains. As we look forward for NTP for
instance, we should make sure that the leap-second difference and
related mechanisms goes in with it up front.

As I've done work recently in a related effort, I've found that while
operating system may have needed capabilities, knowledge of what comes
in the box as well as configure it up properly to build a capable system
remains the challenge. What we can learn is to make sure that we remove
as much as possible of detailed configurations to make it work properly,
but make it the default behavior needing minimal configuration that
works. As you step the major version, you are allowed to break some old
behaviors in order to establish new default behavior.

Once TAI, UTC, GPS, PTP or NTP time is known alongside the leap-second
info, producing the other time-scales is fairly simple and
straight-forward, including leap-second steps. What keeps confusing
people is that UNIX and Linux time-scales jump differently.

The only IRIG-B version I've seen that do leap-second handling fairly
well is that of the IEEE C37.118.1 variant. Several of the IRIG variants
is not even close to do leap-second handling very well. The power-grid
folks is very aware of it and testing has been done to improve the
situation. That remains the key point, sufficient support and testing.

Cheers,
Magnus