Re: [Ntp] NTP is unique (was Re: QUIC as a transport substrate (was:re-chartering: include DNS-over-QUIC?))

Tal Mizrahi <tal.mizrahi.phd@gmail.com> Mon, 13 April 2020 09:24 UTC

Return-Path: <tal.mizrahi.phd@gmail.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 A1AA83A1288; Mon, 13 Apr 2020 02:24:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.09
X-Spam-Level:
X-Spam-Status: No, score=-2.09 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, FREEMAIL_FROM=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 EagN3S9mqeBU; Mon, 13 Apr 2020 02:24:10 -0700 (PDT)
Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CF2813A1281; Mon, 13 Apr 2020 02:23:09 -0700 (PDT)
Received: by mail-wr1-x42c.google.com with SMTP id u13so9006701wrp.3; Mon, 13 Apr 2020 02:23:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kn+zkjAMYZN17XAZywRJUsw1wcVofsqR+syKXnEA+/Q=; b=VPcirbTtfn2euR5T5BoU3QvFMITJJqzMMR0kbYiOzXx36W48kCHcBS5wOYvEPRD+Ti FcN53x491hqPhMTOn58W3yRlffUHHDbYKXGpTNEZLs1EKnXfJb4a775mPf0u8/E30ut3 kd6EFUVL2h6NAfEV6PzGiqtfrRF0vLCSuUdOHEyrzpgKQV16+PfqwM/oOK+DMZqhs3UW FuyuwTLj4FJpBfI2WUxhkJVhCbpCE56nGIBsSIc2scqSynSFF+PRClDDpqdpVusSY52A b4b75vAic2wBsNNwvqL583EzWMYonJpEiN7OmZ040LZ2xIDbpPw8jnkKqM3LYSkiOFSU jV8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kn+zkjAMYZN17XAZywRJUsw1wcVofsqR+syKXnEA+/Q=; b=NmKf8/t5ERoCY21L/EBpLuBFQ8IjnllG0P6ko04nCk4g7f6Q3H/uLB78eaAhg9d8xV 9lCVmJMCAxH9M2AThvP9A9TjdxcUBz9PPZsnY56eh8BFUFwcMDIZFlFi+qvcFVEy0onL uSZ8AMCwkDJIWyz4M7EAwf5RLgyD5YLRCXESKT5aDEvCZ94BXA4cLjzp/ZmPn/M/vlwV uQP1h9ctOo6h+bARe9R2ejlqoexuLyNrMqXtPk4KXcgOIgV14Lehd9wx6tXkCpIBXVsG FHyPaxHUzpp/zivqMt2Yfh5DgEOvuUPPgC327GBQ0fugMMDvDCk9YK2dYiCKIHkhwWM1 cwsQ==
X-Gm-Message-State: AGi0Pub1ZwNkOJExCNyRG+sbvC49QCSa9GauKsmcrOUlRJ3usb9tuCwB yR9Q1vzFjxWIyNcZzwejTpMxg/QsOmNN3cO0kQc=
X-Google-Smtp-Source: APiQypLidfT02FENzE2jvrKrx87k8iOZ4d1IZuCa3W6cYCc4LfwADKcmNNvlNh9RA8qfIzUHrXzkS7K7mxPnOxOAvnI=
X-Received: by 2002:adf:fe44:: with SMTP id m4mr11035651wrs.188.1586769785262; Mon, 13 Apr 2020 02:23:05 -0700 (PDT)
MIME-Version: 1.0
References: <CAKKJt-eopq46Qy3GG_SO6Ws6DJNszGCxqcjbKfGvPzmkUw71hw@mail.gmail.com> <CAMGpriXg6VAkW_NrQgpWwNfCmc18UW2FHg2oV90Q4fzCO_7vKA@mail.gmail.com> <CACsn0ck9GiZEq1=qZ9Mss56yTwhd0HKoH42ZQN6XgaCj+Zi=UA@mail.gmail.com>
In-Reply-To: <CACsn0ck9GiZEq1=qZ9Mss56yTwhd0HKoH42ZQN6XgaCj+Zi=UA@mail.gmail.com>
From: Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Date: Mon, 13 Apr 2020 12:22:53 +0300
Message-ID: <CABUE3X=rhfWjYOoFUidN8hoxVQghsWvYVTEeSM37PT+3fvL_hg@mail.gmail.com>
To: Watson Ladd <watsonbladd@gmail.com>, Erik Kline <ek.ietf@gmail.com>
Cc: Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, IETF QUIC WG <quic@ietf.org>, Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com>, Lucas Pardue <lucaspardue.24.7@gmail.com>, ntp@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/wv-EyV3Uw4WjqMZbtr27koaeEdQ>
Subject: Re: [Ntp] NTP is unique (was Re: QUIC as a transport substrate (was:re-chartering: include DNS-over-QUIC?))
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: Mon, 13 Apr 2020 09:24:17 -0000

Hi,

> > This came to mind because I had a silly idea.  As I watched Christian's presentation in dprive I thought (a) this DoQ doc really benefits from Christian knowing what he's doing with QUIC, and (b) I wondered if I could run NTP over QUIC.  Like I said, this is probably silly and there might be nothing to gain from the attempt, but it got me thinking about guidance for anyone else with both (a) such an idea and (b) the time to write/implement a proposal.

NTP-over-QUIC is an interesting idea.

The main benefits I can think of of running NTP over QUIC are enjoying
the inherent security of QUIC, and avoiding middlebox tampering.
I wonder if these benefits are worth the effort.

On the other side running NTP over QUIC may consume significantly
higher resources on NTP servers than are necessary today. NTP servers
try to minimize the per-client state (or keep it zero if possible),
while QUIC may require per-client state in order to allow 0-RTT. Also
the precision of NTP may be lower than existing implementations if
implemented in user space.

> You also don't want automatic retransmission in NTP, and the flow
> control is essentially nonexistent: it's driven by the synchronization
> loop.

One may consider using QUIC in datagram mode, and this would prevent
retransmissions. ACKs would still be sent in this case.

Cheers,
Tal.



On Mon, Apr 13, 2020 at 9:18 AM Watson Ladd <watsonbladd@gmail.com> wrote:
>
> On Sun, Apr 12, 2020 at 11:03 PM Erik Kline <ek.ietf@gmail.com> wrote:
> <chop>
> >
> > This came to mind because I had a silly idea.  As I watched Christian's presentation in dprive I thought (a) this DoQ doc really benefits from Christian knowing what he's doing with QUIC, and (b) I wondered if I could run NTP over QUIC.  Like I said, this is probably silly and there might be nothing to gain from the attempt, but it got me thinking about guidance for anyone else with both (a) such an idea and (b) the time to write/implement a proposal.
>
> NTP has a very unique property: one packet is sent every 1024 or 512
> seconds or so by the client. A single server can handle a high packet
> rate easily because of the statelessness. Adding state would start
> getting problematic at the high packet rates.
>
> You also don't want automatic retransmission in NTP, and the flow
> control is essentially nonexistent: it's driven by the synchronization
> loop.
>
> Getting through middleboxes isn't nothing! But that's more a new port,
> and ideally you want middleboxes to correct for packet queuing times.
>
> Sincerely,
> Watson Ladd
>