[Ntp] Re: [EXT] Re: [EXT] Re: Re: [EXT] Re: Re: [EXT] [EXT] Focussing loop detection on loop detection only.

David Venhoek <david@venhoek.nl> Tue, 21 July 2026 08:21 UTC

Return-Path: <david@venhoek.nl>
X-Original-To: ntp@mail2.ietf.org
Delivered-To: ntp@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id EBFCE11B2314F for <ntp@mail2.ietf.org>; Tue, 21 Jul 2026 01:21:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784622104; bh=eXNakPB60QSnBN/5IUhLtsQzLFLrafFAsQeyWLuEy0M=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=YnG8dY92Z2YsFSdWyENvyxPEEcxDTZ6/Rgo+Ixp/1kHfCPZE5VNJdIjOntHzvxF6m lfB1t8rXD6/Gfm4bnxD/ne9JqLVV11yI1x1OLm/LWmeV6FYnAzA01+KadWd4KoN9NX B/bgZXkYPdhTxmqjTYwwwXvJ1+KkbgOlcRQn8ZXM=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=venhoek.nl
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e4U15-_QUcPm for <ntp@mail2.ietf.org>; Tue, 21 Jul 2026 01:21:44 -0700 (PDT)
Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 54A2211B2314A for <ntp@ietf.org>; Tue, 21 Jul 2026 01:21:44 -0700 (PDT)
Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-8423f52cd57so1382917b3a.2 for <ntp@ietf.org>; Tue, 21 Jul 2026 01:21:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1784622103; cv=none; d=google.com; s=arc-20260327; b=rkwc9KLcJuMzdAXZ5xM6rXTdfusyBLrtayYHEZihXWHmXtm5dkgGvyp55MVzqyWkmx k55ZXNS+Uuk+1LnsmJjpjCzlovBvlznO+BoLqHUuN73VHkxJczphvNmg4dBIm1/FhRKk 9TInpopyKzLU1yJRHiBAf8Bb+P6B+9qA56gFNEsYmNrzFSLBRGazY4vG6du7xz8OqVGz apk3HKWjeZ+K9KGiOJvgVMugc9DhuxpDgFq3mpEsEy1LvX1R3dgIPG9jmfX+WdaipTmB 2+hCu6/Qljw6nVyvHSVodb7GaMa4K+Yobco36bVb+ZM0aSJ7ww/JBEqHZYj3enlzlGrn hDmQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+Pw3ZDlVq/DNxbrfewGV8A/LEQSeWQi7pjJ4G8vX1Ro=; fh=5d8HIHLeXDv8TrsMmVqYXQ4NuVjZniqszQQeaEPRi24=; b=V7+cflPT9oQHTFFpKXerckcwYAQulkU/9iKCDz9lyANiuFwW7yOL2ASueM4oc6hw7X y75wYz8pKlXhvxE5vL4ZeMTEjWkFKrP8oQJZJreVhH+VqGfArhYyGLnWA+sdrZuID+Tt BqPqdI5I1FY7t1cr2/p+aG6t7pFQbk+oNMNijiqsHqOzMVRv3929J6AQD+1niLVjjTSd blL/3Pt5kZ3MCwqU7/lUn9AG9xOt+A0dLAW/M8tEwgzFAkB1NbYLhs74sQsd/3PtCiUS 1X0N8GH1wZ0Ti1Zz45NDZsJmpfbg5RjRJtKfYcHNUJlJr1rTBEKrXJ9ltB9E/K32vvrw xvIg==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=venhoek.nl; s=google; t=1784622103; x=1785226903; darn=ietf.org; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to:content-type; bh=+Pw3ZDlVq/DNxbrfewGV8A/LEQSeWQi7pjJ4G8vX1Ro=; b=g2j+Oeozv+DCngMy1WJ8BrqCV8aFwoYK6hCFvWj5if0Kod4vtmsELLD1M8B4td8LTP HbF6Jbo7n5GxhtFkH3+59C5UCp1dmV/hdtEUZwhpxK+NwA4GzJ37Xtrfqlzo9RioGbOH vU6ai4zJ19lzYE2rO0p0apZFJ9RQXz3412Mp6QVXRIY+KR5xOz4huU24ngC+slS2DR0g 634JE0IuJaXgnM47frMJdldwthBVEj5K7jrZTHyvfHg+/1kbIGVJHbg3zJazms14jEQz cRhaYX5S0fAdllEI7rj9JDe+Nviu0bYKAiDLLQEsJU1UCeYTmZT3s0UgztQOt7Hpnunc 9lcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784622103; x=1785226903; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+Pw3ZDlVq/DNxbrfewGV8A/LEQSeWQi7pjJ4G8vX1Ro=; b=mHaB+DtzK8F5tmEqOiXWyPQGK33nW40wBlT4wD2ijcOIArMfLtATNrcAg5gUIdeuVr 2RRbKARUucP/xab+wZlvp9tXPkTCeYNN3Qt3+A6lGE5TCzXQVOvIBY3n/F5hpluJO2xt a2sylTtRGBsnq0XTH7JhmIYkg4PjivzS6KHSW1ZomlQu0WewPUGQSrXwNxvrQ5UVKWnJ iHFzj3ELVni5MSOqpdLUe7GexiMp1gLqJIEdYyEBlpwsRBAuRLWVqX9d+2ZSoUYm7au5 DOovOKWgwRztKfoiucqcVxYwQs40AmrcD81LOexHfCORsVy/O9bRRKcZdKD5GWAygcY2 A9Vw==
X-Gm-Message-State: AOJu0YyM+KbJbkp6iNvfjMI4N5hFRf0HLV/eXDLDHY1r3tzqqwAn57jI 1O/cmco9TWljEthtDmPBY03kFQW5jQOsMPJOt8MU8Kf7fC3Bk0Q7PIQo23RSOnv5qhokzkJbXGS O7gL26uJjkHJi2Ua5Xi0D9eEeguGB0C5rmUapajj8lA==
X-Gm-Gg: AR+sD12EfSqTfjV4VUamRb+Ywafpygh+UjW4WeNoB9bXjyD6cPwK/z0vF+4k0xkZJJ4 wOuvme0QsSeNQpgS5eTRjUGkJIvhOX/opfBxXQ/3M0sCLF9lTV2OneF7e+Kl8YhF+3aSYMNxcoN uk/Raq1TSqLBbthHdQVpirupvkOXh1NwAwPcDm95TEAHc7VZeVCegXDNRkquKDg7N82cq/Bjak9 jM7EtuFLZ9ZmIl/G/Lw1EuEoy4RH34p+fxwDrkfBFnv/fh0RQ/NmD0oJtFbdmlOtLG93KwDT798 B0wNckyv8xHuQe+6ww==
X-Received: by 2002:aa7:8881:0:b0:83e:f208:b11d with SMTP id d2e1a72fcca58-84e03276cfcmr1832064b3a.6.1784622103276; Tue, 21 Jul 2026 01:21:43 -0700 (PDT)
MIME-Version: 1.0
References: <u.windl@ukr.de> <f8c4b23f6a664ba68b2a7abe359a8b50@ukr.de> <20260710091517.C324162003D@107-137-68-211.lightspeed.sntcca.sbcglobal.net> <alSkqHLj2k-n-ffW@localhost> <ea01ee64aca947809b5145f8c5c9b93c@ukr.de>
In-Reply-To: <ea01ee64aca947809b5145f8c5c9b93c@ukr.de>
From: David Venhoek <david@venhoek.nl>
Date: Tue, 21 Jul 2026 10:21:32 +0200
X-Gm-Features: AUfX_mw1FZineHz-DHTvSirZCFc52PzQ9cvUkbcT2h4JbCRoLnW_J7o7qZCBiJc
Message-ID: <CAPz_-SWiBi78k1aBx=AgnMbYnmerLDKM-K9gSn4X9QCT5rot4A@mail.gmail.com>
To: "Windl, Ulrich" <u.windl@ukr.de>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: DP6YSWJBM5CSP52VZR2QEXGOAXPFBQQO
X-Message-ID-Hash: DP6YSWJBM5CSP52VZR2QEXGOAXPFBQQO
X-MailFrom: david@venhoek.nl
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-ntp.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: NTP WG <ntp@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Ntp] Re: [EXT] Re: [EXT] Re: Re: [EXT] Re: Re: [EXT] [EXT] Focussing loop detection on loop detection only.
List-Id: Network Time Protocol <ntp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/N_4JXREM9DIdZDCpkM3sgQZYgGk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Owner: <mailto:ntp-owner@ietf.org>
List-Post: <mailto:ntp@ietf.org>
List-Subscribe: <mailto:ntp-join@ietf.org>
List-Unsubscribe: <mailto:ntp-leave@ietf.org>

The mechanism is needed, because (both in ntpv4 and ntpv5) the stratum
of the server is only guaranteed to be strictly higher than that of
the "system peer", the primary time source used to synchronize the
clock. However, the clock algorithm allows other clocks to contribute
to the systems estimate of the current time through weighted
averaging. A synchronization loop through one of those secondary
sources can still cause significant clock instability, but doesn't
cause the stratum to march upwards.

A simple solution would be to require that the stratum is strictly
larger than the stratum of any source used, however that leads to
significantly larger stratum values, which leads clients to exclude
otherwise helpful sources. Therefore we need some additional solution
for doing loop detection on top of the stratum.

Kind regards,
David Venhoek

On Tue, Jul 21, 2026 at 8:52 AM Windl, Ulrich <u.windl@ukr.de> wrote:
>
> Hi!
>
> Thanks for explaining. I see. But still: Apart from the time until reaching stratum-16, is the mechanism actually needed?
> I'm looking for a case that would suffer permanently (Or at least for a long time) from absence of loop detection.
> AFAIR Dave Mills' worries were that some sub-cluster of servers may drift off, and other clients may trust that cluster. Specifically with peering being obsolete, I don't know such configuration. Anybody does?
>
> Kind regards,
> Ulrich Windl
>
> > -----Original Message-----
> > From: Miroslav Lichvar <mlichvar@redhat.com>
> > Sent: Monday, July 13, 2026 10:41 AM
> > To: Hal Murray <halmurray@sonic.net>
> > Cc: Windl, Ulrich <u.windl@ukr.de>; David Venhoek <david@venhoek.nl>;
> > NTP WG <ntp@ietf.org>
> > Subject: [EXT] Re: [EXT] Re: [Ntp] Re: [EXT] Re: Re: [EXT] [EXT] Focussing loop
> > detection on loop detection only.
> >
> > Sicherheits-Hinweis: Diese E-Mail wurde von einer Person außerhalb des UKR
> > gesendet. Seien Sie vorsichtig vor gefälschten Absendern, wenn Sie auf Links
> > klicken, Anhänge öffnen oder weitere Aktionen ausführen, bevor Sie die
> > Echtheit überprüft haben.
> >
> > On Fri, Jul 10, 2026 at 02:15:17AM -0700, Hal Murray wrote:
> > >
> > > Windl, Ulrich said:
> > > > I agree with the analysis, but how would loop prevention change the
> > > > situation that both servers will end up at stratum 16?
> > >
> > > It gets there faster.  A never points to B because that would make a loop.
> > >  So it jumps directly to stratum 16.  B gets to stratum 16 on its next
> > > polling.
> >
> > If loop prevention works, A will not select B if B is synchronizing to
> > A, so A should stay at stratum 3 and B at stratum 4, and their clients
> > can continue using them until their root dispersion/distance becomes
> > unacceptable.
> >
> > --
> > Miroslav Lichvar
>