Re: [Ntp] WGLC: draft-ietf-ntp-chronos

Miroslav Lichvar <mlichvar@redhat.com> Wed, 03 August 2022 09:27 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 792F1C14F74C for <ntp@ietfa.amsl.com>; Wed, 3 Aug 2022 02:27:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.691
X-Spam-Level:
X-Spam-Status: No, score=-2.691 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.582, 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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] 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 TlJLeYgLbECN for <ntp@ietfa.amsl.com>; Wed, 3 Aug 2022 02:27:17 -0700 (PDT)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 B125DC14F5E1 for <ntp@ietf.org>; Wed, 3 Aug 2022 02:27:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659518836; 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=DbcEmi1oYtZI/K6eLAXcTwBRyVglKdJIBkKfvxP/qPA=; b=TA7+9fttHwY5DyXKdvZHF3x2+PgPTe4PBrVhOUsD7u5p2wz+USKXpHzuFmhTGmS5SYh2Mw GLcP+RhdK4FM6dSst2HqHtk4RW0Ax8QKTv12lzmq2tAQMe41bkSz55rpQhGWCmlxOvAjiz Woq1RoyK55ntKC01FK/lzdey2U82zgI=
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-282-Quq4RxpzPZ6sKWTOBpE0WA-1; Wed, 03 Aug 2022 05:27:12 -0400
X-MC-Unique: Quq4RxpzPZ6sKWTOBpE0WA-1
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8C38629AA3B3; Wed, 3 Aug 2022 09:27:12 +0000 (UTC)
Received: from localhost (unknown [10.43.135.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1BD1EC27D95; Wed, 3 Aug 2022 09:27:12 +0000 (UTC)
Date: Wed, 03 Aug 2022 11:27:08 +0200
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Neta R S <neta.r.schiff@gmail.com>
Cc: ntp@ietf.org
Message-ID: <Yuo/bNTAV9oLj/H1@localhost>
References: <PH0PR06MB7061708C96F28C1E7631AA31C2959@PH0PR06MB7061.namprd06.prod.outlook.com> <YuKfPs1AtLKP3FcR@localhost> <CAM-HxCOJdpK5DC9V69CZvcQRZUm3KKgojQB3HrhzLm8=VrvgkA@mail.gmail.com>
MIME-Version: 1.0
In-Reply-To: <CAM-HxCOJdpK5DC9V69CZvcQRZUm3KKgojQB3HrhzLm8=VrvgkA@mail.gmail.com>
X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8
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/ugMzNlOTTXfo6DltCPCiQtlYcpo>
Subject: Re: [Ntp] WGLC: draft-ietf-ntp-chronos
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, 03 Aug 2022 09:27:18 -0000

On Tue, Aug 02, 2022 at 11:35:55PM +0300, Neta R S wrote:
> On Thu, Jul 28, 2022 at 5:38 PM Miroslav Lichvar <mlichvar@redhat.com>
> wrote:

> > The document says Chronos uses the clock filter from RFC5905. That
> > requires at least 3 or 4 samples to get the first filtered sample. Is
> > it expected that the client will send multiple requests to each of
> > the randomly selected servers on the Chronos iteration?
> >
> Yes, this is correct.

Isn't that a waste of resources? Why not just skip the filter and work
with one sample per server? Chronos is not used for synchronization,
so I think it shouldn't matter if there is more jitter.

> > What should happen when there is no response from some of the servers?
> >
> The client will use the servers that responded.

Will not that make some attacks easier? Consider all the security
issues ntpd had where an off-path attacker could prevent the client
from accepting responses from any server.

I'd expect there to be a limit for the minimum number of responding
servers, e.g. 1/3 or 1/2 of poll servers, like NSANE in RFC5905.

-- 
Miroslav Lichvar