Re: [quicwg/base-drafts] First version of congestion control (#395)
janaiyengar <notifications@github.com> Mon, 13 March 2017 21:15 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 4F4FA129B95 for <quic-issues@ietfa.amsl.com>; Mon, 13 Mar 2017 14:15:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-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 uZ7rlRiNyflN for <quic-issues@ietfa.amsl.com>; Mon, 13 Mar 2017 14:15:23 -0700 (PDT)
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2-ext1.iad.github.net [192.30.252.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61F4F129B89 for <quic-issues@ietf.org>; Mon, 13 Mar 2017 14:15:23 -0700 (PDT)
Date: Mon, 13 Mar 2017 14:15:22 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1489439722; bh=xcqRrWfvzMRTDs8+fyF3J70L8O2fLr47MLZ57/8BTCo=; h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=ZrZ0UCbxBAJ8/hFrVqleP2VX8y/NBV6o99/ZQOAJx63sEPpI6xcX2ePfXGfDF+48K fbuhxtKlngzkmQIncm26lyvNtYf7H1BgCu4GF1QN3PFmTRHut2cuKlFqYQVL9kq+su cV9nldrOmSzGnL7PUzhKe+dR4Mn5tuqmC1X/kkWo=
From: janaiyengar <notifications@github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/395/review/26667457@github.com>
In-Reply-To: <quicwg/base-drafts/pull/395@github.com>
References: <quicwg/base-drafts/pull/395@github.com>
Subject: Re: [quicwg/base-drafts] First version of congestion control (#395)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_58c70bea8926f_641c3fe58d06fc2c1456c7"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: janaiyengar
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/HoO3OBDquChwJL7Pjmzgek31x6Y>
Cc: Subscribed <subscribed@noreply.github.com>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.17
Reply-To: quic@ietf.org
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: Mon, 13 Mar 2017 21:15:25 -0000
janaiyengar commented on this pull request.
> @@ -202,8 +202,8 @@ kDefaultInitialRtt (default 100ms):
## Variables of interest
-We first describe the variables required to implement the loss detection
-mechanisms described in this section.
+Variables required to implement the congestion control mechanisms
+described in this section.
"are described in this section"
> ~~~
# Congestion Control
-(describe NewReno-style congestion control {{?RFC6582}} for QUIC.)
-(describe appropriate byte counting.)
-(define recovery based on packet numbers.)
+QUIC's congestion control is based on TCP New Reno{{?RFC6582}}
NewReno -- 1 word
> ~~~
# Congestion Control
-(describe NewReno-style congestion control {{?RFC6582}} for QUIC.)
-(describe appropriate byte counting.)
-(define recovery based on packet numbers.)
+QUIC's congestion control is based on TCP New Reno{{?RFC6582}}
+congestion control to determine the congestion window and pacing rate.
+
+## Slow Start
+
+QUIC uses a slow start approach where the congestion window is increased
+by the same number of bytes as are acknowledged while in slow start.
+QUIC begins every connection in slow start and exits slow start upon
+loss or when the min_rtt increases by more than 1/8th for a full round.
remove the 1/8th RTT -- that's mixing hystart into this doc
> +QUIC's congestion control is based on TCP New Reno{{?RFC6582}}
+congestion control to determine the congestion window and pacing rate.
+
+## Slow Start
+
+QUIC uses a slow start approach where the congestion window is increased
+by the same number of bytes as are acknowledged while in slow start.
+QUIC begins every connection in slow start and exits slow start upon
+loss or when the min_rtt increases by more than 1/8th for a full round.
+
+## Recovery
+
+Recovery is a period of time beginning with detection of a lost packet.
+It ends when all packets outstanding at the time recovery began have been
+acknowledged or lost. During recovery, the congestion window is not
+increased and the pacing gain is reduced to 1.
I'd remove mention of "pacing gain"
> + else:
+ congestion_window +=
+ 1500 * acked_packets.bytes / congestion_window
+~~~
+
+## On Packets Lost
+
+Invoked by loss detection from DetectLostPackets when new packets
+are detected lost.
+
+~~~
+ OnPacketsLost(lost_packets):
+ largest_lost_packet = lost_packets.last()
+ if (end_of_recovery < largest_lost_packet.packet_number):
+ end_of_recovery = largest_sent_packet
+ congestion_window *= kLossReductionFactor
ssthresh = congestion_window
> +~~~
+
+## On Packets Lost
+
+Invoked by loss detection from DetectLostPackets when new packets
+are detected lost.
+
+~~~
+ OnPacketsLost(lost_packets):
+ largest_lost_packet = lost_packets.last()
+ if (end_of_recovery < largest_lost_packet.packet_number):
+ end_of_recovery = largest_sent_packet
+ congestion_window *= kLossReductionFactor
+~~~
+
+## Sending Packets
I would rename this section "Pacing Packets" or something like it
> +
+QUIC sends a packet if there is available congestion window and
+sending the packet does not exceed the pacing rate.
+
+TimeToSend returns infinite if the congestion controller is congestion
+window limited, a time in the past if the packet can be sent
+immediately, and a time in the future if sending is pacing limited.
+
+~~~
+ TimeToSend(packet_size):
+ if (bytes_in_flight + packet_size > congestion_window)
+ return infinite
+ return time_of_last_sent_packet +
+ packet_size * smoothed_rtt / congestion_window
+~~~
+
(describe min_rtt based hystart.)
Remove this line
--
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/395#pullrequestreview-26667457
- [quicwg/base-drafts] First version of congestion … ianswett
- Re: [quicwg/base-drafts] First version of congest… janaiyengar
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… ianswett
- Re: [quicwg/base-drafts] First version of congest… janaiyengar
- Re: [quicwg/base-drafts] First version of congest… MikkelFJ
- Re: [quicwg/base-drafts] First version of congest… Martin Thomson
- Re: [quicwg/base-drafts] First version of congest… MikkelFJ
- Re: [quicwg/base-drafts] First version of congest… Martin Thomson