[quicwg/base-drafts] Including ACK delay in packet loss detection time threshold (#3951)

Dirkjan Ochtman <notifications@github.com> Thu, 23 July 2020 12:33 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 720063A090E for <quic-issues@ietfa.amsl.com>; Thu, 23 Jul 2020 05:33:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.1
X-Spam-Level:
X-Spam-Status: No, score=-3.1 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, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 9zRW9zPuFn61 for <quic-issues@ietfa.amsl.com>; Thu, 23 Jul 2020 05:32:59 -0700 (PDT)
Received: from out-18.smtp.github.com (out-18.smtp.github.com [192.30.252.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 072EC3A08E1 for <quic-issues@ietf.org>; Thu, 23 Jul 2020 05:32:58 -0700 (PDT)
Received: from github-lowworker-a27607f.ash1-iad.github.net (github-lowworker-a27607f.ash1-iad.github.net [10.56.18.61]) by smtp.github.com (Postfix) with ESMTP id 3E152340E24 for <quic-issues@ietf.org>; Thu, 23 Jul 2020 05:32:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1595507578; bh=bzs9IXus69DrITtLXi0b4qaS0hnZzrskNxDs6P6z6gk=; h=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post: List-Unsubscribe:From; b=RgdS0ntlMPcaduCCzkBSihG0jbJn9bjfidwQ4MV00RIUh1juSlj+c7FqQ7nomIjv8 j9WByKKJYW165nb8ap/tF1aoPBLOwK2qsqj2OulT3/SF3dW7bv7ss6+7G4wu402CEZ EmyrY2/BQnf5pWlnDjTKt93KCxUDws3OHeiFAN+U=
Date: Thu, 23 Jul 2020 05:32:58 -0700
From: Dirkjan Ochtman <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJK2RZXGTK6VTUZJHNDV5EVSHVEVBNHHCPGTYQE@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/3951@github.com>
Subject: [quicwg/base-drafts] Including ACK delay in packet loss detection time threshold (#3951)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5f19837a2f3bb_1ad3fe9f18cd960135115"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: djc
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/nOLQExYEHxB12sppdICyvAMnVWY>
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: Thu, 23 Jul 2020 12:33:00 -0000

In https://github.com/djc/quinn/issues/815, I've been going through the handling of PTO and other timer-related code in the Quinn implementation to make sure that it is consistent and compliant with the spec. One issue I bumped on is whether/when the ACK delay is relevant to a particular timer. This seemed somewhat inconsistent to me in the code, so I dug through the recovery spec and found the following:

* [Time Treshold](https://quicwg.org/base-drafts/draft-ietf-quic-recovery.html#time-threshold) for detecting packet loss says the time threshold is `max(kTimeThreshold * max(smoothed_rtt, latest_rtt), kGranularity)`, so it does not include the ACK delay. This seems surprising to me, as the ACK delay seems highly relevant in this case...

* [Idle Timeout](https://quicwg.org/base-drafts/draft-ietf-quic-transport.html#name-idle-timeout) says "To avoid excessively small idle timeout periods, endpoints MUST increase the idle timeout period to be at least three times the current Probe Timeout (PTO)."; it seems like the ACK delay is relevant here: we wouldn't want to consider a connection idle if we haven't received ACKs because they are delayed.

* [Failed Path Validation](https://quicwg.org/base-drafts/draft-ietf-quic-transport.html#name-failed-path-validation) says `validation_timeout = max(3*PTO, 6*kInitialRtt)`. However, path validation should be based on a `PATH_RESPONSE` frame, not an `ACK` frame, so including the `max_ack_delay` here doesn't seem relevant from first principles.

* [Closing And Draining Connection States](https://quicwg.org/base-drafts/draft-ietf-quic-transport.html#name-closing-and-draining-connec) says "These states SHOULD persist for at least three times the current Probe Timeout (PTO) interval as defined in [QUIC-RECOVERY].", so I think this should keep the ACK delay as well.

So concrete questions I came up with:

* Should the packet loss detection threshold take the `max_ack_delay` into account somehow?
* Should the failed path validation timeout use a different calculation that doesn't include `max_ack_delay`?
* For closing/draining connection timers, does it make sense to include the `max_ack_delay`?


-- 
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/issues/3951