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

Martin Burnicki <martin.burnicki@meinberg.de> Fri, 08 January 2021 15:47 UTC

Return-Path: <martin.burnicki@meinberg.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 9BFC03A1069 for <ntp@ietfa.amsl.com>; Fri, 8 Jan 2021 07:47:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.361
X-Spam-Level:
X-Spam-Status: No, score=-2.361 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, 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=meinberg.de
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 Fz6dLruYl5OZ for <ntp@ietfa.amsl.com>; Fri, 8 Jan 2021 07:47:20 -0800 (PST)
Received: from server1a.meinberg.de (server1a.meinberg.de [176.9.44.212]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4040B3A106F for <ntp@ietf.org>; Fri, 8 Jan 2021 07:47:20 -0800 (PST)
Received: from srv-kerioconnect.py.meinberg.de (unknown [193.158.22.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by server1a.meinberg.de (Postfix) with ESMTPSA id 459B671C00B2; Fri, 8 Jan 2021 16:47:18 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meinberg.de; s=dkim; t=1610120838; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BUZI1uZWtPVCVR+A/Ms+DmfP9Q2SGSTDI989TOOOKXM=; b=W20/ccvGEPwdOSJWoiykQ5/bgQ9JXijiUeSyPgX0El13vXSxxulBtfwOek5dl5VsbJrl82 7fggabtYeeyD5n/tI7Gd2NxyiVcbfeDGXI4L9BcakdJAOtyJYO5FJ+ywA2wuLO4FVm8pGl G7F3S2Loji0DHEciZDw/8HNLZ5qRjcqzNICOvbUo04CizY/oQnPkZPF38nXlS1Jctkk9kG GICeR2cO7MdytRtpvgr9ec1GAxl1tsyKqietP8pz0dPXwXvHLLs08EgE02cRRvgkvSd8K9 y30DbwdUffrfXzAjZv94GpoKVJJACeOt4NMEBicukjAG0r9FNXHNBCGMRFcQ+g==
X-Footer: bWVpbmJlcmcuZGU=
Received: from localhost ([127.0.0.1]) by srv-kerioconnect.py.meinberg.de with ESMTPSA (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)); Fri, 8 Jan 2021 16:47:16 +0100
To: Warner Losh <imp@bsdimp.com>
Cc: Doug Arnold <doug.arnold@meinberg-usa.com>, Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, "mlichvar@redhat.com" <mlichvar@redhat.com>, "emmanuel.fuste@thalesgroup.com" <emmanuel.fuste@thalesgroup.com>, "ntp@ietf.org" <ntp@ietf.org>, "magnus@rubidium.se" <magnus@rubidium.se>
References: <20210102081603.1F63C40605C@ip-64-139-1-69.sjc.megapath.net> <20210104164449.GE2992437@localhost> <b1e61f7d-6cea-5e99-69f0-7eae815d9e19@rubidium.se> <20210105083328.GA3008666@localhost> <ba5d2cde-6b5e-d9b6-1877-c4060bf43e80@rubidium.se> <20210105144225.GH3008666@localhost> <35c4be55-b6af-82b5-aacd-d5a591383dec@rubidium.se> <20210105162901.GJ3008666@localhost> <c78ad54e-dd10-fc8e-fc88-cf65f9fb29a5@thalesgroup.com> <20210107115226.GB3415835@localhost> <a0e137c3-5e4a-2277-2e1d-2284b39de309@meinberg.de> <F5292A54020000F16A6A8CFC@gwsmtp.uni-regensburg.de> <31C5A262020000D985F26575@gwsmtp.uni-regensburg.de> <DD4618490200001F6A6A8CFC@gwsmtp.uni-regensburg.de> <56C209690200001686EDC2A6@gwsmtp.uni-regensburg.de> <5FF80A6B020000A10003E084@gwsmtp.uni-regensburg.de> <0D49017F-D7C4-49C5-936D-272B633D5575@meinberg-usa.com> <5c1e7eb9-b1a0-f7bf-c087-cc1fb32b5021@meinberg.de> <CANCZdfrgouDSOyzjwWZS+gHNhYJt-i-O7QO902hXGWbSzx+Pgg@mail.gmail.com>
From: Martin Burnicki <martin.burnicki@meinberg.de>
Organization: Meinberg Funkuhren GmbH & Co. KG, Bad Pyrmont, Germany
Message-ID: <617faa37-0edb-4e48-b4eb-c0bf2d57b809@meinberg.de>
Date: Fri, 08 Jan 2021 16:47:15 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <CANCZdfrgouDSOyzjwWZS+gHNhYJt-i-O7QO902hXGWbSzx+Pgg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/ZEXqIZ0-ouaQ47XDsIxmiFPOBZI>
Subject: Re: [Ntp] Antw: [EXT] Re: 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: Fri, 08 Jan 2021 15:47:23 -0000

Warner Losh said:
> On Fri, Jan 8, 2021, 8:22 AM Martin Burnicki
> <martin.burnicki=40meinberg.de@dmarc.ietf.org
> <mailto:40meinberg.de@dmarc.ietf.org>> wrote:
> 
>     Doug Arnold wrote:
>     > I think that the point of a leap smear is that no special handling
>     of leap seconds is needed by the client.  It is introduced gradually
>     over a number of polling periods.
> 
>     That's exactly the point. You want to hide the leap second from the
>     client to avoid that *applications* run into problems when the kernel
>     just steps the time back by 1 second.
> 
> 
> My fundamental position on leap seconds hasn't changed in 20 years: they
> are evil and must die. Earth clocks and atomic clocks need a different
> way to synchronize.

Agreed. But as long as there is no decision to abolish them, we have to
live with them, and have the same discussions over and over again. ;-)

> Leap seconds generate dozens of edge cases,
> operational difficulties and data dependencies that complicate time for
> everyone and all that added complication has a cost that far exceeds the
> benefit. 
> 
> Smearing is the latest way to paper over all this and keep applications
> naive. I'm not sure if I view it as a brilliant hack to protect the
> applications from a rushed standard we are stuck with, or a deeply
> worrying "enabling" of bad behavior by applications, libraries and
> operating systems. 

The biggest problem I see with smearing in general is to decide if
applications that require millisecond accuracy can tolerate offsets up
to +/- 0.5 or even 1 s in this special case.

Beside this, there are lots of potential problems due to different
shapes and intervals for the smearing.


Martin
-- 
Martin Burnicki

Senior Software Engineer

MEINBERG Funkuhren GmbH & Co. KG
Email: martin.burnicki@meinberg.de
Phone: +49 5281 9309-414
Linkedin: https://www.linkedin.com/in/martinburnicki/

Lange Wand 9, 31812 Bad Pyrmont, Germany
Amtsgericht Hannover 17HRA 100322
Geschäftsführer/Managing Directors: Günter Meinberg, Werner Meinberg,
Andre Hartmann, Heiko Gerstung
Websites: https://www.meinberg.de  https://www.meinbergglobal.com
Training: https://www.meinberg.academy