netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: priyarjha@google.com
Cc: netdev@vger.kernel.org, ycheng@google.com, ncardwell@google.com
Subject: Re: [PATCH net-next] tcp: higher throughput under reordering with adaptive RACK reordering wnd
Date: Sun, 05 Nov 2017 23:16:00 +0900 (KST)	[thread overview]
Message-ID: <20171105.231600.373900095057567020.davem@davemloft.net> (raw)
In-Reply-To: <20171103233848.169545-1-priyarjha@google.com>

From: Priyaranjan Jha <priyarjha@google.com>
Date: Fri,  3 Nov 2017 16:38:48 -0700

> Currently TCP RACK loss detection does not work well if packets are
> being reordered beyond its static reordering window (min_rtt/4).Under
> such reordering it may falsely trigger loss recoveries and reduce TCP
> throughput significantly.
> 
> This patch improves that by increasing and reducing the reordering
> window based on DSACK, which is now supported in major TCP implementations.
> It makes RACK's reo_wnd adaptive based on DSACK and no. of recoveries.
> 
> - If DSACK is received, increment reo_wnd by min_rtt/4 (upper bounded
>   by srtt), since there is possibility that spurious retransmission was
>   due to reordering delay longer than reo_wnd.
> 
> - Persist the current reo_wnd value for TCP_RACK_RECOVERY_THRESH (16)
>   no. of successful recoveries (accounts for full DSACK-based loss
>   recovery undo). After that, reset it to default (min_rtt/4).
> 
> - At max, reo_wnd is incremented only once per rtt. So that the new
>   DSACK on which we are reacting, is due to the spurious retx (approx)
>   after the reo_wnd has been updated last time.
> 
> - reo_wnd is tracked in terms of steps (of min_rtt/4), rather than
>   absolute value to account for change in rtt.
> 
> In our internal testing, we observed significant increase in throughput,
> in scenarios where reordering exceeds min_rtt/4 (previous static value).
> 
> Signed-off-by: Priyaranjan Jha <priyarjha@google.com>
> Signed-off-by: Yuchung Cheng <ycheng@google.com>
> Signed-off-by: Neal Cardwell <ncardwell@google.com>

Applied, thanks.

      reply	other threads:[~2017-11-05 14:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03 23:38 [PATCH net-next] tcp: higher throughput under reordering with adaptive RACK reordering wnd Priyaranjan Jha
2017-11-05 14:16 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171105.231600.373900095057567020.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=priyarjha@google.com \
    --cc=ycheng@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).