[Ntp] Re: [EXT] [EXT] Server identifier ID Extension Field

"Windl, Ulrich" <u.windl@ukr.de> Tue, 21 July 2026 08:03 UTC

Return-Path: <prvs=6550100d5=u.windl@ukr.de>
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 1AB9411B1F0CD for <ntp@mail2.ietf.org>; Tue, 21 Jul 2026 01:03:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784621029; bh=j917Pmco+kkKskt5mSkibRLDF2pToObuUKp+o7nM2Jo=; h=From:To:Subject:Date:References:In-Reply-To; b=jYXpPWK4/p2S5gJz2nIq/vBlI4DLFWktgKFjrEzoLoLsh4+3x72gMECjWUhdQRN1m GYqYWO5IYiaJhmhJpmpfaPHyCq79fVxClCGxYuM2Mbx/HD4CSkBM/dZymiQ+21zDZA EIjPJwP9GZmprJ3mFNA7zBtPHbWEGQVt/pFR63VE=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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=ukr.de
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 raZsbIa-Dd3g for <ntp@mail2.ietf.org>; Tue, 21 Jul 2026 01:03:47 -0700 (PDT)
Received: from mail01.ukr.de (mail01.ukr.de [193.175.194.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id B933911B1EF1C for <ntp@ietf.org>; Tue, 21 Jul 2026 01:03:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ukr.de; i=@ukr.de; q=dns/txt; s=ukr; t=1784621021; x=1816157021; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=j917Pmco+kkKskt5mSkibRLDF2pToObuUKp+o7nM2Jo=; b=Rtrz9tZt/pI8b/TLadsGecTke2YWogPkZcx3YGKBnQPbTCy5rVzIVFe/ 2dZdEJQmH8XRGDhSqYcCcKGyT66bvBFAq8IgL7SbtRGSBecvBTY5doar8 6wHCJXW/iDMjee3I5l8Bdu7TnVTcNgJ8N1jyJEtRQ5/QFIVcvHQzE4ROZ niKp5a6IfUFvTqmJGK+aHCGqBvug/TEdXihahlfcBQ/A4Ldr8J8NTbPLD ui48n26cYL98Pd0YvSZcRAmBWd/lixGi4ssbVd3Kuaoz1VJDFbxlAfQK6 5/HFYZmF3+aFgnu3FkT5AVCvrTUBmHSVOh8zCnO3LciSpdLNvUNVkR9hI w==;
X-CSE-ConnectionGUID: xDmFmYSNQhOI2Gq/egmzsw==
X-CSE-MsgGUID: fEYTAkneRDWEGN1GrylxjQ==
X-ThreatScanner-Verdict: Negative
X-IronPort-AV: E=McAfee;i="6800,10657,11852"; a="9459831"
X-IronPort-AV: E=Sophos;i="6.25,176,1779141600"; d="scan'208";a="9459831"
Received: from unknown (HELO ukr.de) ([172.24.2.108]) by dmz-infcsg01.ukr.dmz with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2026 10:03:20 +0200
Received: from ukr-excmb07.ukr.local (172.24.2.107) by ukr-excmb08.ukr.local (172.24.2.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Tue, 21 Jul 2026 10:03:20 +0200
Received: from ukr-excmb07.ukr.local ([fe80::4dee:3e0b:b33f:60ac]) by ukr-excmb07.ukr.local ([fe80::4dee:3e0b:b33f:60ac%8]) with mapi id 15.02.2562.045; Tue, 21 Jul 2026 10:03:20 +0200
From: "Windl, Ulrich" <u.windl@ukr.de>
To: Danny Mayer <mayer@pdmconsulting.net>, "ntp@ietf.org" <ntp@ietf.org>
Thread-Topic: [EXT] [EXT] [Ntp] Server identifier ID Extension Field
Thread-Index: AQHdFJpNNXJ4mfsqH0iOPjOJH5y60LZ3o5jg
Date: Tue, 21 Jul 2026 08:03:20 +0000
Message-ID: <a538306e77874413b98f710595ff587e@ukr.de>
References: <a5115529-0e8e-4609-bed1-964566a4356b@sidn.nl> <CAJm83bD_T3wKE9DksG2d4nWD+6h4uZYr_pe-dmMk1fF1okg6fQ@mail.gmail.com> <05213a22-5b99-4355-b93a-e43311d0f281@sidn.nl> <CAD4huA5zh2Q4PVbShA3GhUZrMPyDbd=BvbOZJYVAAnnHrcr1ig@mail.gmail.com> <6203b440-8445-4b56-98a8-e468ec9bb50c@sidn.nl> <CAD4huA75cY+HCHNeYP621QCvpRdXy97Rms+sHBbmu_pjHfVfFA@mail.gmail.com> <7b30d0e9-40a9-40a9-83d7-47428a313279@sidn.nl> <aleH3kY8gf0_P6ZY@localhost> <4258b332-9ae7-4097-8f14-71bf61014a9c@pdmconsulting.net>
In-Reply-To: <4258b332-9ae7-4097-8f14-71bf61014a9c@pdmconsulting.net>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.24.3.1]
x-tm-snts-smtp: F80C0DA79B22B6D5B43615AC98B9E9B92E855EBAE9CA4D773D323129C59AFDB72000:8
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Message-ID-Hash: ET5LX3VYVUWAWRVBFIJSDZA3NY25GUH6
X-Message-ID-Hash: ET5LX3VYVUWAWRVBFIJSDZA3NY25GUH6
X-MailFrom: prvs=6550100d5=u.windl@ukr.de
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
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Ntp] Re: [EXT] [EXT] Server identifier ID Extension Field
List-Id: Network Time Protocol <ntp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/URvVw54Z6sE_ATUK5jUPWjQuNEE>
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>

Hi!

First I think the algorithm suggested is not safe, as a server (client) may have to change the random ID depending on its servers (which may change) and their IDs.
Apart from that a 32-bit random number is probably not "random enough" (not talking about servers that may lack a good random source). Why not use a 64-bit (GUID) random number or a 128-bit (UUID)? 

Kind regards,
Ulrich Windl

> -----Original Message-----
> From: Danny Mayer <mayer@pdmconsulting.net>
> Sent: Wednesday, July 15, 2026 10:41 PM
> To: ntp@ietf.org
> Subject: [EXT] [EXT] [Ntp] Server identifier ID Extension Field
> 
> 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 7/15/26 9:15 AM, Miroslav Lichvar wrote:
> 
> > On Wed, Jul 15, 2026 at 11:08:29AM +0200, Giovane C. M. Moura wrote:
> >> I don't think this should be an issue for real clients -- I assume chrony
> >> and ntpd-rs, and others, bind one source port per association and
> >> keep it,
> >> so the hash is constant and a real client stays pinned.
> > chrony by default changes source port with each request. That should
> > be ok per RFC 9109. The filtering algorithm prefers measurements from
> > the closest server.
> >
> > As for the server identification, I'd be ok with a new optional
> > extension field to provide a server ID as a string, something along
> > the lines of the current draft ID.
> 
> Yes. There should be a server identifier ID extension field. This will
> allow for Loop detection as well as differentiating between servers
> coming from the same IP address.
> 
> The ID field should be a 32-bit field and if it is all zeros then it is
> not yet available to serve time.
> 
> This is what I propose.
> 
> 1. When an NTP server starts the ID needs to be set to 0.
> 
> 2. Once it is ready to serve time, it should generate a random 32-bit
> number and check to ensure that none of the servers from which it is
> getting time have that same ID. If it does it should generate a new ID
> and try again until it is different.
> 
> 3. The same server ID should be used for all outgoing packets from all
> interfaces and IP addresses. Currently you cannot tell if a packet is
> coming from different interfaces but is from the same server.
> 
> 4. For Loop detection this will enable receiving clients be able to
> differentiate the source of the packet.
> 
> 5. A MAC Extension Field should be included with the packet though that
> won't detect spoofing.
> 
> Danny
> 
> 
> 
> _______________________________________________
> ntp mailing list -- ntp@ietf.org
> To unsubscribe send an email to ntp-leave@ietf.org