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

Miroslav Lichvar <mlichvar@redhat.com> Thu, 26 March 2020 11:37 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 0A1033A086A for <ntp@ietfa.amsl.com>; Thu, 26 Mar 2020 04:37:53 -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 m7_T0HXGUjFc for <ntp@ietfa.amsl.com>; Thu, 26 Mar 2020 04:37:51 -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 B31E73A05A4 for <ntp@ietf.org>; Thu, 26 Mar 2020 04:37:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585222670; 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=OxAWLAoIPclsMXJxxRqbwS9l/soo1tv5SsqMB6+lxoI=; b=ELJdzwRltrWoi8ycACNEYnb6zwZyjqDPz0gfUdE7KQFCLC0STntMRyrMcaOruaq7UHhmUo 6Zt6+zKONAEKCvLUP0j4rarsi8WwqRuMvA11krX2DpJu+/btdkktibyrtNPSG0BedzuXCb ljH1nhVWCTAhOiSQJxmHGHcSU7bqpXQ=
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-166-Z_vSYuvGPWO5SScjM_PYyQ-1; Thu, 26 Mar 2020 07:37:48 -0400
X-MC-Unique: Z_vSYuvGPWO5SScjM_PYyQ-1
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C603D801FB1 for <ntp@ietf.org>; Thu, 26 Mar 2020 11:37:47 +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 46ABDCFCC for <ntp@ietf.org>; Thu, 26 Mar 2020 11:37:47 +0000 (UTC)
Date: Thu, 26 Mar 2020 12:37:45 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: ntp@ietf.org
Message-ID: <20200326113745.GC9039@localhost>
References: <158507294813.11622.18159158243943940302@ietfa.amsl.com> <20200325115834.GC25803@localhost> <74B1B8F5-5762-4AB1-B3F2-D5AC2BC325C1@netnod.se> <20200325145956.GF25803@localhost> <400E7210-ABB7-48F7-B52D-A69A96968255@netnod.se> <20200326095602.GB9039@localhost> <842BEA8F-35F7-41B7-8FEC-30515F88A60D@netnod.se>
MIME-Version: 1.0
In-Reply-To: <842BEA8F-35F7-41B7-8FEC-30515F88A60D@netnod.se>
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
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/OKKgsUCyaOdrD6e7cki2Vs8xnmk>
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: Thu, 26 Mar 2020 11:37:53 -0000

On Thu, Mar 26, 2020 at 11:49:57AM +0100, Ragnar Sundblad wrote:
> > On 26 Mar 2020, at 10:56, Miroslav Lichvar <mlichvar@redhat.com> wrote:
> > But it seems we don't agree on how long actually will be the NTS
> > sessions. You seem to be saying that a short initial interval in the
> > exponential backoff is ok (in the name of simplicity), because the NTS
> > sessions will be so long that the average rate will be insignificant
> > over those long periods. Is that correct?
> 
> Hmm, I don’t think so. Also, do you mean one KE negotiation is one session,
> or from one KE negotiation to the next one, if the clients reboots runs out
> of cookies is one session?

By session I mean how long the client is using or trying to use the
server, including all NTS-KE and NTS-NTP requests.

> I did mean, that the initial 10 seconds will only be 10 seconds if the server
> is up but will not accept the TCP connection, if for example the listener
> has not started, or is so overloaded that the TCP connection queue is full
> (and this will be very cheap for the server, handled by TCP).
> If the server is not up or not reachable, TCP will retry for a while before
> giving up. (This will of course not cost the server anything.)
> If the server accepts the TCP connection but is overloaded and slow to
> respond, the client will just wait for the request to be handled (and could,
> likely should, timeout after a while). There is no extra cost for the
> server for this, really.

Yes, but I'm concerned with the cases where something breaks after the
connection is made and when much more resources are wasted per
request.

> > Computers
> > are shut down or suspended frequently.
> 
> If they are suspended, there is no need to renegotiate.

Usually, but the system may need to restart the NTP client due to a
different DHCP configuration for example.

> > Clients are switching between
> > different servers of a pool.
> 
> Only when the ntp client is restarted, right (at least with the clients
> of today).

No, clients may switch between servers when they become unreachable
(e.g. due to rate limiting). I see this often with my mini-pool of NTS
servers.

> > I think it will take only a small portion of NTS clients to be
> > consistently failing in NTS-KE or NTS-NTP after the TLS handshake
> > (e.g. due to a network issue, bug, or incompatibility) and overwhelm
> > the server with their short retry intervals.
> 
> They should not fail with a working server, why would they?
> And if they do, they will very quickly get to long retry intervals,
> and there is likely something broken with the server anyway.

Well, as I said above, there are many reasons why NTS-KE or NTS-NTP
may be consistently failing. For example, an ISP may have a firewall
that blocks large NTP packets. NTS-KE will work as expected, but
no NTS-NTP reply will be ever received, so the clients will be
constantly restarting NTS-KE. If the clients were restarted once per
day and used the 1024*2^(n - 1) retry interval I suggested, the number
of NTS-KE requests would drop to 30%.

-- 
Miroslav Lichvar