Re: [Ntp] Antw: Re: Antw: [EXT] NTPv5 Loop Detection without Stratum

Danny Mayer <mayer@pdmconsulting.net> Mon, 05 September 2022 22:24 UTC

Return-Path: <mayer@pdmconsulting.net>
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 C9B4FC14CF0F for <ntp@ietfa.amsl.com>; Mon, 5 Sep 2022 15:24:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.107
X-Spam-Level:
X-Spam-Status: No, score=-1.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, RDNS_NONE=0.793, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_PERMERROR=0.01] autolearn=no 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 GQJZPbNaIyVv for <ntp@ietfa.amsl.com>; Mon, 5 Sep 2022 15:24:47 -0700 (PDT)
Received: from chessie.everett.org (unknown [IPv6:2001:470:1:205::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 40E4AC14F6EB for <ntp@ietf.org>; Mon, 5 Sep 2022 15:24:19 -0700 (PDT)
Received: from [192.168.1.156] (pool-108-26-202-2.bstnma.fios.verizon.net [108.26.202.2]) (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 chessie.everett.org (Postfix) with ESMTPSA id 4MM3302JftzMQ0B; Mon, 5 Sep 2022 22:24:12 +0000 (UTC)
Message-ID: <0c5ac027-1be2-8f1f-ca52-badb7eb40eea@pdmconsulting.net>
Date: Mon, 05 Sep 2022 18:24:11 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0
Content-Language: en-US
To: Hal Murray <halmurray@sonic.net>
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <20220905215236.ED4D728C1D8@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
From: Danny Mayer <mayer@pdmconsulting.net>
In-Reply-To: <20220905215236.ED4D728C1D8@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/u-Ha2qTJ0IxuzlMllAQ598eAZfc>
Subject: Re: [Ntp] Antw: Re: Antw: [EXT] NTPv5 Loop Detection without Stratum
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: Mon, 05 Sep 2022 22:24:52 -0000

On 9/5/22 5:52 PM, Hal Murray wrote:
> mayer@pdmconsulting.net said:
>> SNTP is defined in RFC5905 Section 14. You don't need anything more than
>> that.
> There is also RFC 4330 and a lot of crappy code out there in firmware that
> will never get updated.
RFC5905 obsoleted RFC4330.
> RFC 5905 is over 100 pages.  Section 14 is less than a page.  How many of
> those other pages would somebody have to read and understand in order to
> implement a SNTP client?
Read Section 14 to find out.
> If you were a junior programmer assigned to implement a SNTP client, would you
> go throgh RFC 5905 or google around and find some code to copy and ship it
> when it worked?
You don't give this to a junior programmer. RFC's are difficult enough 
to understand and if you were to do so, you would expect a poor 
implementation and incorrect code. Don't blame the programmer, blame the 
person who thought that was a good, or maybe a cheap, idea.
>
> I think we should have a separate document for SNTP clients.  So far, I
> haven't convinced (m)any other people.  There are two goals:
>
> One is to have a clear and simple document so we can point people at it when
> their current code is sending ancient format packets.  Some of those ancient
> packets are not using a format described in any RFC and they worked just
> because of the undocumented details in the ntpd implementation.
>
> Another is to make us think and document a packet format that we will support for a long time.
>
> We should setup servers that don't support old format packets so SNTP implementors can test their code.
>
Why bother? Developers of such clients will just use existing servers. 
You can have newer servers not support such packets. However you don't 
say what those undocumented details are.

Danny