Re: [Ntp] Negative leap-second?

Harlan Stenn <stenn@nwtime.org> Tue, 09 August 2022 02:09 UTC

Return-Path: <stenn@nwtime.org>
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 AFAEBC14F747 for <ntp@ietfa.amsl.com>; Mon, 8 Aug 2022 19:09:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.909
X-Spam-Level:
X-Spam-Status: No, score=-6.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J3AzoP5N_ClJ for <ntp@ietfa.amsl.com>; Mon, 8 Aug 2022 19:09:31 -0700 (PDT)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A7786C14F72D for <ntp@ietf.org>; Mon, 8 Aug 2022 19:09:31 -0700 (PDT)
Received: from [10.208.75.149] (071-084-168-128.res.spectrum.com [71.84.168.128]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4M1xMs1CWKzMP5L; Tue, 9 Aug 2022 02:09:29 +0000 (UTC)
Message-ID: <16f5c7ee-4140-2f9a-9922-892d68468242@nwtime.org>
Date: Mon, 08 Aug 2022 19:09:27 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0
Content-Language: en-US
To: Doug Arnold <doug.arnold=40meinberg-usa.com@dmarc.ietf.org>, Warner Losh <imp@bsdimp.com>
Cc: Danny Mayer <mayer@pdmconsulting.net>, NTP WG <ntp@ietf.org>
References: <b023985d-76c3-c6b9-3b5b-f10b3cabd2f5@pdmconsulting.net> <f95814cf-0391-a6f9-caab-edae86e70085@nwtime.org> <CANCZdfqmjN=9Z7uQt8Cnm+yXyo6HRNqE7hDcStGnO+Ktp=wWAg@mail.gmail.com> <AM7PR02MB5765051A18C8C7A416C3822CCF9C9@AM7PR02MB5765.eurprd02.prod.outlook.com>
From: Harlan Stenn <stenn@nwtime.org>
In-Reply-To: <AM7PR02MB5765051A18C8C7A416C3822CCF9C9@AM7PR02MB5765.eurprd02.prod.outlook.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/0gYIl7GKsVTqF2ft16f2teFOdx4>
Subject: Re: [Ntp] Negative leap-second?
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <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, 09 Aug 2022 02:09:35 -0000

Sure.  And if a feature is rarely/never used, problems in the wild are 
rarely/never seen.

Hence my note that regular (at least once every 6 months) changes should 
be made to exercise the features.

This is common practice in other areas...

H

On 8/3/2022 7:45 AM, Doug Arnold wrote:
> When we tested both positive and negative leap seconds at PTP plugfest 
> events, we found implementations that handled the positive leap seconds 
> correctly, but not the negative ones.  The faulty list included 
> implementations that looked only at the leap second flag, and never 
> check whether it was forward or backward.  Forward was assumed.
> 
> Doug
> 
> *From: *ntp <ntp-bounces@ietf.org> on behalf of Warner Losh <imp@bsdimp.com>
> *Date: *Tuesday, August 2, 2022 at 10:00 PM
> *To: *Harlan Stenn <stenn@nwtime.org>
> *Cc: *Danny Mayer <mayer@pdmconsulting.net>, NTP WG <ntp@ietf.org>
> *Subject: *Re: [Ntp] Negative leap-second?
> 
> On Tue, Aug 2, 2022, 7:55 PM Harlan Stenn <stenn@nwtime.org 
> <mailto:stenn@nwtime.org>> wrote:
> 
>     I don't think this really matters.
> 
>     The fastest way to make sure that systems will handle leap seconds
>     is to
>     decide to implement a forward leap second in, say, January, and then a
>     backward leap second in, say, March.  Then add one in May and subtract
>     one in July.  Repeat.  When an actual leap second is really needed,
>     just
>     skip one of these, as appropriate.
> 
>     Doing this will give folks plenty of opportunity to make sure that leap
>     second processing code works, on an ongoing basis.
> 
>     If folks prefer, do these once every third month instead of every other
>     month.  The trick is to do them often enough that vendors have a clear
>     reason to get this working correctly.
> 
> Yea, do them all the time, or never. Either are good, though I'd prefer 
> the latter. Also a way to make sure it works...
> 
> Warner
> 
>     On 8/2/2022 4:05 PM, Danny Mayer wrote:
>     > Apparently the earth's rotation is speeding up: 
>     > https://www.timeanddate.com/news/astronomy/shortest-day-2022
>     <https://www.timeanddate.com/news/astronomy/shortest-day-2022>
>     > 
>     > If we have to subtract a leap-second I think we will see failures, since 
>     > this is rarely if ever tested.
>     > 
>     > Danny
>     > 
>     > _______________________________________________
>     > ntp mailing list
>     > ntp@ietf.org <mailto:ntp@ietf.org>
>     > https://www.ietf.org/mailman/listinfo/ntp
>     <https://www.ietf.org/mailman/listinfo/ntp>
>     > 
> 
>     -- 
>     Harlan Stenn <stenn@nwtime.org <mailto:stenn@nwtime.org>>
>     http://networktimefoundation.org <http://networktimefoundation.org>
>     - be a member!
> 
>     _______________________________________________
>     ntp mailing list
>     ntp@ietf.org <mailto:ntp@ietf.org>
>     https://www.ietf.org/mailman/listinfo/ntp
>     <https://www.ietf.org/mailman/listinfo/ntp>
> 
> 
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp

-- 
Harlan Stenn <stenn@nwtime.org>
http://networktimefoundation.org - be a member!