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

Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> Wed, 31 August 2022 09:47 UTC

Return-Path: <Ulrich.Windl@rz.uni-regensburg.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 03245C14F75F for <ntp@ietfa.amsl.com>; Wed, 31 Aug 2022 02:47:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.906
X-Spam-Level:
X-Spam-Status: No, score=-6.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, 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 Mg_3iInTLf7s for <ntp@ietfa.amsl.com>; Wed, 31 Aug 2022 02:47:50 -0700 (PDT)
Received: from mx1.uni-regensburg.de (mx1.uni-regensburg.de [IPv6:2001:638:a05:137:165:0:3:bdf7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10546C14F73D for <ntp@ietf.org>; Wed, 31 Aug 2022 02:47:49 -0700 (PDT)
Received: from mx1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id AAC616000054 for <ntp@ietf.org>; Wed, 31 Aug 2022 11:47:43 +0200 (CEST)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by mx1.uni-regensburg.de (Postfix) with ESMTP id 929436000049 for <ntp@ietf.org>; Wed, 31 Aug 2022 11:47:42 +0200 (CEST)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de with Novell_GroupWise; Wed, 31 Aug 2022 11:47:43 +0200
Message-Id: <630F2E3D020000A10004D3A6@gwsmtp.uni-regensburg.de>
X-Mailer: Novell GroupWise Internet Agent 18.4.1
Date: Wed, 31 Aug 2022 11:47:41 +0200
From: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
To: mlichvar@redhat.com
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <david@venhoek.nl> <CAPz_-SVPE-Fd1vFWnbu+GAPc=y2bkJMW4pyu98bBwDfcm+R2rg@mail.gmail.com> <20220830205143.DFDC328C1D8@107-137-68-211.lightspeed.sntcca.sbcglobal.net> <Yw8NBX6ATjRr0/A4@localhost> <C492F298020000C2AB59E961@gwsmtp.uni-regensburg.de> <F347640002000095FDA5B133@gwsmtp.uni-regensburg.de> <8F7E1DA8020000866A6A8CFC@gwsmtp.uni-regensburg.de> <630F1321020000A10004D377@gwsmtp.uni-regensburg.de> <Yw8eVn34M+Ip6ey6@localhost>
In-Reply-To: <Yw8eVn34M+Ip6ey6@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/QYUWkbS7snStke5ZD6Vl2UaOVhE>
Subject: Re: [Ntp] Antw: Re: 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: Wed, 31 Aug 2022 09:47:54 -0000

>>> Miroslav Lichvar <mlichvar@redhat.com> schrieb am 31.08.2022 um 10:39 in
Nachricht <Yw8eVn34M+Ip6ey6@localhost>:
> On Wed, Aug 31, 2022 at 09:52:01AM +0200, Ulrich Windl wrote:
>> I think that is not sufficient: It would be a loop if the server's clock
>> (actually the error estimate) gets worse again, and then the process 
> continues
>> (clock is getting more inaccurate over time). However it it's "smoothed
out"
>> it's not a loop IMHO.
> 
> The impact of the loop depends on how much weight the source has,
> polling intervals, number of servers in the loop, and other things.
> Even if the clocks can stay close to the true time, there is still a
> negative impact on stability.
> 
> When the conditions are right, the loop can amplify oscillations. In
> this example (which I have shown before) there are 4 ntpd servers
> using the same source and also synchronizing in a A‑>B‑>C‑>D‑>A loop.
> 
> https://fedorapeople.org/~mlichvar/ntpresponse/sync‑loop.png 
> 
> Do you blame the user for misconfiguration? Or would you prefer if the
> protocol enabled the servers to detect the loop?
> 
>> > In the graph theory, it's a loop in a directed graph.
>> 
>> The problem is the "line" (correpsonding to time): In NTP it's a
combination
>> of several sources (lines).
> 
> Which means the loops can be ignored?

Well, every phone call is a "loop": The microphone records what it hears from
the other end of the line (and sends it back, where the other end does the
same), too.
If the amplification is too high you'll have a never-ending loop of noise; if
it's low, it will vanish.
I think NTP should only forbid the first example of a loop.

> 
> ‑‑ 
> Miroslav Lichvar