[quicwg/base-drafts] recovery pseudocode enters "recovery" after "slow start" (#4045)

Kazu Yamamoto <notifications@github.com> Tue, 25 August 2020 00:56 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 37A173A0C2E for <quic-issues@ietfa.amsl.com>; Mon, 24 Aug 2020 17:56:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.501
X-Spam-Level:
X-Spam-Status: No, score=-0.501 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_IMAGE_ONLY_20=0.7, 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 FNPEsOX-Lp61 for <quic-issues@ietfa.amsl.com>; Mon, 24 Aug 2020 17:56:17 -0700 (PDT)
Received: from out-21.smtp.github.com (out-21.smtp.github.com [192.30.252.204]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10DCF3A0C2D for <quic-issues@ietf.org>; Mon, 24 Aug 2020 17:56:17 -0700 (PDT)
Received: from github-lowworker-fa7043e.ash1-iad.github.net (github-lowworker-fa7043e.ash1-iad.github.net [10.56.109.45]) by smtp.github.com (Postfix) with ESMTP id 5B573520BFD for <quic-issues@ietf.org>; Mon, 24 Aug 2020 17:56:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1598316976; bh=3AcSNI4hI/xodgUuT2oYH/EvKcu7SVC9/kKLPq0gs5s=; h=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post: List-Unsubscribe:From; b=jstN3urVg4IHsAbeccf/nTg5/w8d/bYoKW9+lJNxZ6IMcW/oaHZH839q5prqdK2Ej +03Fdp1is4GjYQ/EIpszFt439678DHQbt05TgC79VbsQ1T+sAeb5PnqCRXCyjRSnKl PKRkba2TlTLq4g7anfgnenhfaRpjl0fVwxm5l5Bc=
Date: Mon, 24 Aug 2020 17:56:16 -0700
From: Kazu Yamamoto <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+AFTOJK4QRZ3RZ5WV5GU56CF5KBBLBEVBNHHCRVLUK4@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/4045@github.com>
Subject: [quicwg/base-drafts] recovery pseudocode enters "recovery" after "slow start" (#4045)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5f4461b04af09_762f1964140566"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: kazu-yamamoto
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/KNePp7o_VF2yjly_lS0Q25zuUT4>
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, 25 Aug 2020 00:56:18 -0000

The spec says that "congestion avoidance" after "slow start". However, it seems to me that pseudocode enters "recovery" after "slow start".

When packets are lost, `OnCongestionEvent` is called:

```
OnCongestionEvent(sent_time):
  // Start a new congestion event if packet was sent after the
  // start of the previous congestion recovery period.
  if (!InCongestionRecovery(sent_time)):
    congestion_recovery_start_time = now()
    congestion_window *= kLossReductionFactor
    congestion_window = max(congestion_window, kMinimumWindow)
    ssthresh = congestion_window
    // A packet can be sent to speed up loss recovery.
    MaybeSendOnePacket()
```

This function sets `congestion_recovery_start_time` if the state is not "recovery", which means either "slow start" or "congestion avoidance". So, "recovery" starts after "slow start".

-- 
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/4045