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

David Venhoek <david@venhoek.nl> Tue, 30 August 2022 14:13 UTC

Return-Path: <david@venhoek.nl>
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 7800BC1527A2 for <ntp@ietfa.amsl.com>; Tue, 30 Aug 2022 07:13:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=venhoek-nl.20210112.gappssmtp.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 pVKHt62AvzPa for <ntp@ietfa.amsl.com>; Tue, 30 Aug 2022 07:13:19 -0700 (PDT)
Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (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 A9F16C1526EC for <ntp@ietf.org>; Tue, 30 Aug 2022 07:13:18 -0700 (PDT)
Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-33dc345ad78so276355397b3.3 for <ntp@ietf.org>; Tue, 30 Aug 2022 07:13:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=venhoek-nl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=aCT3ElvmLKnNbe04heGsNKqWQFMyJ17TZJ3KEHcQXkE=; b=b2F7SWxwmO46pTokcECJUQ00juv2mVpOCgWcmzPEKHUgNz5rf3/AziR6y8PDfmLLx9 R+ucXj5KQhg0rERKb4u23QV+WhOvhNUsJbdSwladYKFUSufVx1k7CwJCN4U6QeYbhtyp DBTmsBAXCEjCB1jSTVsSPmDxD18SLSPBiptmg22ze6GJEw0vSrjR38UP9xKz2kCGf31Z 9M/mZ5NkXUlS2VUqTMfvEmorHQbWy2Wc5NxEa1ti7PLOSfWr/kKETBcjgARxykECYXQF wUSOzc6IsmxMP/8qj5o/8gqkZVKboVQVDCqWHrDMEJTdABuzc05S2eOe743ZB+CJVTNF W/8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=aCT3ElvmLKnNbe04heGsNKqWQFMyJ17TZJ3KEHcQXkE=; b=20WDJY+XICE5WwyNSDmZsXxBF/Me59yPWVQV38G9s4UEJcxsvgvaWFnB8mEFi7o5RE TwlY8OtqcyFK7S7z0xpY4FERJrX+5RKlajwdnF9IcNCdxtSygNJAbcUMHkEqGSqTdFqh F8EIkixdg03QAmdkwlfeiamYuxDpTaKA1tUJAOMQFy9VKm9RiwSSmfcVb5DJjX1Em/o+ B9nYMBbGD5m1HXY4ABzBTotB3MCa9ldaVFN2FVuH5ydGBMKGBq1Gq+IJPbBqvXMFSnmR qF9FFF8DtXME7/ODAtN408p1LFHwNz1u3UruBcDJRV3MGAvimpsVGU80S+tVeijnK7qp YQvw==
X-Gm-Message-State: ACgBeo3zw/bogSsgWsWXaNK6Z7IKBbsEPs4eTq5PJxzKyj5+mT//0NPM EdiO8fojjkjS4rpDU0wDMdX4PfyutredxNLBEriCYA==
X-Google-Smtp-Source: AA6agR4LJra68WdJ7MOshPjbiAj/lP32bMxGjiYp9lRhTZl4narrvpNgVt9qNrQTiRsDzuTwUrQ5NE9CLONBenzO2QY=
X-Received: by 2002:a25:4fc2:0:b0:680:f309:48e5 with SMTP id d185-20020a254fc2000000b00680f30948e5mr12357706ybb.0.1661868797854; Tue, 30 Aug 2022 07:13:17 -0700 (PDT)
MIME-Version: 1.0
References: <DA1F1664-8A84-4197-844A-CA7E8DAA36B8@meinberg.de> <6305BCFE020000A10004CA27@gwsmtp.uni-regensburg.de> <69f413e8-793e-fc9d-849f-6c5971bd2e90@pdmconsulting.net> <630E0EFC020000A10004D2F0@gwsmtp.uni-regensburg.de>
In-Reply-To: <630E0EFC020000A10004D2F0@gwsmtp.uni-regensburg.de>
From: David Venhoek <david@venhoek.nl>
Date: Tue, 30 Aug 2022 16:13:06 +0200
Message-ID: <CAPz_-SVPE-Fd1vFWnbu+GAPc=y2bkJMW4pyu98bBwDfcm+R2rg@mail.gmail.com>
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Cc: Heiko Gerstung <heiko.gerstung@meinberg.de>, mayer@pdmconsulting.net, mlichvar@redhat.com, "ntp@ietf.org" <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/XGwENZRu7FR7lWQ1q-5X-3ak4QQ>
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 14:13:23 -0000

On Tue, Aug 30, 2022 at 3:22 PM Ulrich Windl
<Ulrich.Windl@rz.uni-regensburg.de> wrote:
>
> >>> Danny Mayer <mayer@pdmconsulting.net> schrieb am 30.08.2022 um 00:37 in
> Nachricht <69f413e8-793e-fc9d-849f-6c5971bd2e90@pdmconsulting.net>:
>
> > On 8/24/22 1:54 AM, Ulrich Windl wrote:
> >>>>> Heiko Gerstung <heiko.gerstung@meinberg.de> schrieb am 23.08.2022 um 12:21
> >> in
> >> Nachricht <DA1F1664-8A84-4197-844A-CA7E8DAA36B8@meinberg.de>:
> >>> One way of avoiding/detecting loops:
> >>> - upon startup, an NTPv5 instance creates a random 64bit ID
> >>> - we add a loop detection EF that can include n IDs (or we use n EFs)
> >>> - a stratum one server, when ask for his "sync trace", responds with only
> >>> his ID
> >> Considering that a stratum-1 server may have more than one reference clock
> >> (say m) to pick, I think a stratum-1 server should actually prepare one ID
> > per
> >> reference clock. It's a design issue whether to return one ID that is
> > different
> >> for each clock (see below), or two IDs (server's + clock's).
> >
> > No need. When it's a stratum-1 server the referenceID in the packet
> > indicates the clock being used. See RFC5905 Figure 12.
>
> But if the Reference ID for all GPS clocks would be "GPS ", wouldn't he new "loop avoidance" algorithm consider all those to be the same source, thus a loop? So we could not have redundant GPS sources any more???
>
> Regards,
> Ulrich
> ...

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.

Kind regards,
David Venhoek


>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp