Re: [quicwg/base-drafts] ack_delay in the first Handshake and 1RTT packet (#3981)

Martin Thomson <notifications@github.com> Tue, 04 August 2020 01:22 UTC

Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 517253A11D9 for <quic-issues@ietfa.amsl.com>; Mon, 3 Aug 2020 18:22:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.201
X-Spam-Level:
X-Spam-Status: No, score=-1.201 tagged_above=-999 required=5 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H2=-0.001, 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=github.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 AuhgLiCNURHj for <quic-issues@ietfa.amsl.com>; Mon, 3 Aug 2020 18:22:30 -0700 (PDT)
Received: from out-26.smtp.github.com (out-26.smtp.github.com [192.30.252.209]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 107C23A11D7 for <quic-issues@ietf.org>; Mon, 3 Aug 2020 18:22:29 -0700 (PDT)
Received: from github-lowworker-fb56993.ac4-iad.github.net (github-lowworker-fb56993.ac4-iad.github.net [10.52.19.31]) by smtp.github.com (Postfix) with ESMTP id 22E545E0024 for <quic-issues@ietf.org>; Mon, 3 Aug 2020 18:22:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1596504149; bh=OMFyeGP12cV3ev+XLRzx/b/FwW0b1syBQw3f++iL7Ag=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=Mi0BssUP16Pez3cQJpyUVucweQlOY5lVfRMRSu5IoCU9nSIioclg/4sSMuYyfaEmc 03U4l03jOW38/yaXLUHgqpX9tNvhVY/53Hhh0g/nk8I+IIeY70Jtr90HiBPLR2903B kceFNLSDgeHui5hTO4+57SuwOIct8CCOszV2wweo=
Date: Mon, 03 Aug 2020 18:22:29 -0700
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJKZ5QLDFLWJJJQV2F7N5GSMVLEVBNHHCQEBGTE@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/3981/review/460431969@github.com>
In-Reply-To: <quicwg/base-drafts/pull/3981@github.com>
References: <quicwg/base-drafts/pull/3981@github.com>
Subject: Re: [quicwg/base-drafts] ack_delay in the first Handshake and 1RTT packet (#3981)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5f28b85511502_6fb516f83308c4"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/EUO4S8JNzK8YNofEVsUvM3k8MG8>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Aug 2020 01:22:31 -0000

@martinthomson commented on this pull request.

I'm not sure about this at all.

This is about delays that are added by a *sender* due to being unable to process a packet (primarily due to a lack of the necessary keys).  So why not be clearer about this and talk about buffering and allow ACK Delay to exceed max_ack_delay by the time that the sender holds packets. 

Or, put another way, when processing an ACK frame, you allow subtract the time that you held the packet in a buffer from the current time in order to calculate the RTT sample.  Then you absorb any costs you imposed.  That means you don't need to concern yourself with the increase to ACK Delay.

As it relates to buffering, and there might be multiple buffered packets, I don't think that you can make a rule for the first packet in a packet number space.

> @@ -348,14 +348,22 @@ latency at the peer or loss of previous ACK frames.  Any delays beyond the
 peer's max_ack_delay are therefore considered effectively part of path delay and
 incorporated into the smoothed_rtt estimate.
 
+The first ACK frame in the Handshake and ApplicationData packet number spaces
+can be greatly delayed due to a lack of decryption keys at the time they're
+received. For these two ACK frames, the max_ack_delay MAY be ignored if the
+sender chooses. If the delayed ACK frame is the first RTT sample, ignoring

The last sentence reads as imperative, but it's more of a "Note that if the delayed"

> @@ -348,14 +348,22 @@ latency at the peer or loss of previous ACK frames.  Any delays beyond the
 peer's max_ack_delay are therefore considered effectively part of path delay and
 incorporated into the smoothed_rtt estimate.
 
+The first ACK frame in the Handshake and ApplicationData packet number spaces
+can be greatly delayed due to a lack of decryption keys at the time they're
+received. For these two ACK frames, the max_ack_delay MAY be ignored if the

It's not really the first, but any packets that are buffered, right?

>  - MUST ignore the ACK Delay field of the ACK frame for packets sent in the
-  Initial and Handshake packet number space.
+  Initial and Handshake packet number space, except for the first ACK frame
+  received in Handshake.

I think that we are again talking about packets that might have been buffered, not just the first.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/pull/3981#pullrequestreview-460431969