Re: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-27.txt

Miroslav Lichvar <mlichvar@redhat.com> Wed, 25 March 2020 15:00 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 2F1CE3A0C7F for <ntp@ietfa.amsl.com>; Wed, 25 Mar 2020 08:00:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GIm39gRLGgLK for <ntp@ietfa.amsl.com>; Wed, 25 Mar 2020 08:00:02 -0700 (PDT)
Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 239F43A0A42 for <ntp@ietf.org>; Wed, 25 Mar 2020 08:00:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585148400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=blf9aLlJ+HMeI36Huy6xxc2498IrRv4KM02+/kYZ4zw=; b=Kq59sRrvWQrWK+v0faGjZeuYa3z3hbKowfZZzD7k8x0YEgWYlhIqFNCzqsDVtzzSYp9C4a Iavx2FkzthAATV8rXNFHlNNHK5IQuPp6fyjUrlHgt2NKDzmCG2VC96Ytd38qbjEtsZ0w6b KMnPfTFJS3i26t5tdAAPOIUbw3cfdS4=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-232-4214iMPhMT-SFypQ_WCYhA-1; Wed, 25 Mar 2020 10:59:59 -0400
X-MC-Unique: 4214iMPhMT-SFypQ_WCYhA-1
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 53077101FC69 for <ntp@ietf.org>; Wed, 25 Mar 2020 14:59:58 +0000 (UTC)
Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C6D3792F80 for <ntp@ietf.org>; Wed, 25 Mar 2020 14:59:57 +0000 (UTC)
Date: Wed, 25 Mar 2020 15:59:56 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: ntp@ietf.org
Message-ID: <20200325145956.GF25803@localhost>
References: <158507294813.11622.18159158243943940302@ietfa.amsl.com> <20200325115834.GC25803@localhost> <74B1B8F5-5762-4AB1-B3F2-D5AC2BC325C1@netnod.se>
MIME-Version: 1.0
In-Reply-To: <74B1B8F5-5762-4AB1-B3F2-D5AC2BC325C1@netnod.se>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/A5IB-P5phwMTJ1B5z5Gl4d3Y8KU>
Subject: Re: [Ntp] I-D Action: draft-ietf-ntp-using-nts-for-ntp-27.txt
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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, 25 Mar 2020 15:00:13 -0000

On Wed, Mar 25, 2020 at 03:10:24PM +0100, Ragnar Sundblad wrote:
> NTP traffic and KE traffic are very different; KE traffic is supposed to occur
> very seldom, NTP traffic is a constant (very slow) stream, and I don’t think
> they can be compared in any really useful way.

I don't think they are so different. There will be a slow stream of
NTS-KE requests as clients are (re)started (not caching the
key/cookies) and clients running out of cookies when too many requests
are dropped (as is currently happening in some networks).

> If they share resources, like running on a single server, one could starve the
> other. It may be a good idea to prioritise NTP responses, at least to a
> certain extent, in a typical use case. This has to be studied, I think.

That doesn't solve the problem that clients using a short retry
interval are starving other NTS-KE clients.

> Note that if there are many new TCP connections pending and server doesn’t
> even accept new connections, the cost for the server is considerably
> less than even for replying to NTP.
> If the server listens but is slow to respond, the client will just hang
> there for a while until it gets a response (or timeouts), with a very
> small cost.

Unless the minimum timeout is specified for clients, allowing a huge
number of open connections on the server might not prevent the clients
from making frequent NTS-KE requests.

> Also note that it takes 9 tries to get to to a retry interval of more than
> 1024, and that the average request interval up to that point is about
> 2 minutes.

That's still about 800x more expensive than an NTS-NTP client polling
at 512 second interval.

-- 
Miroslav Lichvar