Re: [quicwg/base-drafts] Discuss Application-Limited Sending (#1637)

Nick Banks <notifications@github.com> Wed, 08 August 2018 16:00 UTC

Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.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 7FF29130E5A for <quic-issues@ietfa.amsl.com>; Wed, 8 Aug 2018 09:00:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.01
X-Spam-Level:
X-Spam-Status: No, score=-3.01 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, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] 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 vd09YStpNt92 for <quic-issues@ietfa.amsl.com>; Wed, 8 Aug 2018 09:00:05 -0700 (PDT)
Received: from o10.sgmail.github.com (o10.sgmail.github.com [167.89.101.201]) (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 77EBB130E76 for <quic-issues@ietf.org>; Wed, 8 Aug 2018 09:00:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=KuIgAieZtkFBpNELZ8/IRX6Kqpw=; b=vnD1G6QdPZtw3Eta DlINRqSmPqk8KZlRBfKignEs2GoaOtGL1/YUssEybmsondX7zSbHJjCYJT+CME6y x4TeY3scEe9YiZXzWQh2QNNBYWNVP6jODjkzGkv5hKPpBh66u3b9USshwEac10zQ ON6EJF3WTljwI9Szku9JGAwkQ6o=
Received: by filter0485p1iad2.sendgrid.net with SMTP id filter0485p1iad2-5833-5B6B1382-6 2018-08-08 16:00:02.149840233 +0000 UTC m=+62793.925701312
Received: from github-lowworker-b40b5a4.cp1-iad.github.net (unknown [192.30.252.36]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id B-nwJliLQ4iUSP8FGvhYTA for <quic-issues@ietf.org>; Wed, 08 Aug 2018 16:00:01.937 +0000 (UTC)
Received: from github.com (localhost [127.0.0.1]) by github-lowworker-b40b5a4.cp1-iad.github.net (Postfix) with ESMTP id E26533E00DB for <quic-issues@ietf.org>; Wed, 8 Aug 2018 09:00:01 -0700 (PDT)
Date: Wed, 08 Aug 2018 16:00:02 +0000
From: Nick Banks <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab66a15b8f0159bab0b8f30ed856730f087528331692cf000000011782d58192a169ce14c4e0aa@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1637/review/144490392@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1637@github.com>
References: <quicwg/base-drafts/pull/1637@github.com>
Subject: Re: [quicwg/base-drafts] Discuss Application-Limited Sending (#1637)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5b6b1381e09d1_1b503fae732d45b8354964"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: nibanks
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2OBsXdob/P4aNgi1u2DufTg+LeQG4E2jZa7z AnheBfRMCwW6pUZ+SFLpHY0OgRmV8rmwjwfhZBGhFzekCUaf8StJ9p75WldgdeQRCEXptumpG7RviL GbRQ/SJ2GI0jfD/7VsZIDthr6cDHio6T/ejNVyJJ1n2nk274wsbeBGyeZ8J1dkkki++VUBL8tWTvhl k=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/vQAJZWjeiOrMfVJgUYIAEGVgSNQ>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.27
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: Wed, 08 Aug 2018 16:00:09 -0000

nibanks commented on this pull request.



> @@ -1115,13 +1119,19 @@ acked_packet from sent_packets.
 ~~~
    InRecovery(packet_number):
      return packet_number <= end_of_recovery
+   
+   IsAppLimited():
+     bytes_in_flight >= congestion_window - kMaximumDatagramSize

I agree this is backward. The `>=` should just be `<` or `<=`. But as far as tracking `IsAppLimited()` or whatever you want to call it, I would just suggest a modification to the code:

Instead of using `bytes_in_flight` here and the helper function `IsAppLimited`, introduce a new variable `window_full` that is only set in `OnPacketSent`. At the end of each call to that function, if `bytes_in_flight` is close enough to `congestion_window` set it to true, otherwise false. Then below, you use that variable to decide if the cwnd should be increased..

-- 
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/1637#discussion_r208639187