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

Miroslav Lichvar <mlichvar@redhat.com> Wed, 31 August 2022 08:41 UTC

Return-Path: <mlichvar@redhat.com>
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 930F1C1522DA for <ntp@ietfa.amsl.com>; Wed, 31 Aug 2022 01:41:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.675
X-Spam-Level:
X-Spam-Status: No, score=-2.675 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.571, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
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 qXa5R5sPUrIY for <ntp@ietfa.amsl.com>; Wed, 31 Aug 2022 01:41:10 -0700 (PDT)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 38F8CC1522D4 for <ntp@ietf.org>; Wed, 31 Aug 2022 01:39:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661935195; 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: in-reply-to:in-reply-to:references:references; bh=1m2G41SpAoIcRpwt9hGCWJOjI6mqjO4cc5gUq9J5Bko=; b=arqsX8QtsQ5HZdLkrSSPyLWxA1TUiw/8q8tbLP5bd6J0fNAPRZCLcUZbdI/cOV5gvLsSUr gY8csCXMXnWrB1+npWeoT0Dp2V4PWmElrBKoRT7D+3ZVGo/WQ5z4GFoVBJ/9LQPNN3D7ed H9nIw97jvaj7ULaJDz2cw3FnX5T58Go=
Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-538-zO06pAgZMReR5tKkhpMD_Q-1; Wed, 31 Aug 2022 04:39:53 -0400
X-MC-Unique: zO06pAgZMReR5tKkhpMD_Q-1
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 66A3E1C05EAB; Wed, 31 Aug 2022 08:39:53 +0000 (UTC)
Received: from localhost (unknown [10.43.135.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E251D2166B26; Wed, 31 Aug 2022 08:39:51 +0000 (UTC)
Date: Wed, 31 Aug 2022 10:39:50 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: halmurray@sonic.net, "ntp@ietf.org" <ntp@ietf.org>, Heiko Gerstung <heiko.gerstung@meinberg.de>, mayer@pdmconsulting.net, david@venhoek.nl
Message-ID: <Yw8eVn34M+Ip6ey6@localhost>
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>
MIME-Version: 1.0
In-Reply-To: <630F1321020000A10004D377@gwsmtp.uni-regensburg.de>
X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/F9b2fGOnbYAyzn8_YoQDnxbfTto>
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 08:41:14 -0000

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?

-- 
Miroslav Lichvar