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

Hal Murray <halmurray@sonic.net> Tue, 30 August 2022 20:51 UTC

Return-Path: <halmurray@sonic.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 2007CC1522AA for <ntp@ietfa.amsl.com>; Tue, 30 Aug 2022 13:51:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] 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 BTkA9QcHDVss for <ntp@ietfa.amsl.com>; Tue, 30 Aug 2022 13:51:45 -0700 (PDT)
Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 24891C14CF1C for <ntp@ietf.org>; Tue, 30 Aug 2022 13:51:45 -0700 (PDT)
Received: from 107-137-68-211.lightspeed.sntcca.sbcglobal.net (107-137-68-211.lightspeed.sntcca.sbcglobal.net [107.137.68.211]) (authenticated bits=0) by d.mail.sonic.net (8.16.1/8.16.1) with ESMTPSA id 27UKpiS4022426 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 30 Aug 2022 13:51:44 -0700
Received: from hgm (localhost [IPv6:::1]) by 107-137-68-211.lightspeed.sntcca.sbcglobal.net (Postfix) with ESMTP id DFDC328C1D8; Tue, 30 Aug 2022 13:51:43 -0700 (PDT)
X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1
To: David Venhoek <david@venhoek.nl>
cc: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, Heiko Gerstung <heiko.gerstung@meinberg.de>, mayer@pdmconsulting.net, mlichvar@redhat.com, "ntp@ietf.org" <ntp@ietf.org>, Hal Murray <halmurray@sonic.net>
From: Hal Murray <halmurray@sonic.net>
In-Reply-To: Message from David Venhoek <david@venhoek.nl> of "Tue, 30 Aug 2022 16:13:06 +0200." <CAPz_-SVPE-Fd1vFWnbu+GAPc=y2bkJMW4pyu98bBwDfcm+R2rg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Tue, 30 Aug 2022 13:51:43 -0700
Message-Id: <20220830205143.DFDC328C1D8@107-137-68-211.lightspeed.sntcca.sbcglobal.net>
X-Sonic-CAuth: UmFuZG9tSVYKmFpczvNw3lWPZuv8X4wtl2kR2zorq7Q+rSs/4Ck8EnAAhKS5O/EFBjP047Z/nimhzNlRy9SJ1j6FwBUg3Ib/HudA30pvo+E=
X-Sonic-ID: C;FC1VjqUo7RGIC4D9Pq3e0g== M;WgWCjqUo7RGIC4D9Pq3e0g==
X-Sonic-Spam-Details: -1.5/5.0 by cerberusd
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/9QQyWfdQEHbvSWBSK6ZpFBtSjis>
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: Tue, 30 Aug 2022 20:51:47 -0000

david@venhoek.nl said:
> No, the loop avoidance algorithm only rejects a source if that source depends
> on the node itself. So, when having 4 servers A B C and D, if server A is a
> stratum 1 server, and servers B and C sync to server A, server D can still
> use all of A,B and C to synchronize. However, suppose it uses all 3, then at
> that point, it will no longer be accepted as a potential time source by node
> B or C, because these then see they were part of the source of D, and
> therefore reject. 

That brings up an interesting point.

What does loop mean?

The draft for NTPv5 is only the wire protocol.  It doesn't cover what goes on 
inside a server.  If a server latches on to the best upstream server and only 
uses any others for checking, then the topology is simple and loop would be 
easy to define.

Is that a reasonable assumption?  Do we need a section in the draft to collect 
assumptions about the internals of servers?

Consider the alternative where a server does some sort of weighting on the use 
of its upstream servers.  What does stratum mean?  Is loop well defined?

------

Do we want 2 different client/server packet modes/formats?  One for 
leaf-clients (SNTP) and another for the client side of servers?  Or maybe the 
same packet format but different descriptions of the way fields are used.

Or maybe even 2 separate RFCs.  The idea being that SNTP will be much easier 
to understand and we can target it for a longer lifetime.  In particular, it 
wouldn't have to say anything about loop detection.



-- 
These are my opinions.  I hate spam.