netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Injong Rhee" <rhee@ncsu.edu>
To: "Stephen Hemminger" <shemminger@linux-foundation.org>,
	"Injong Rhee" <rhee@eos.ncsu.edu>, "Sangtae Ha" <sha2@ncsu.edu>
Cc: <netdev@vger.kernel.org>
Subject: Re: [RFC] cubic: backoff after slow start
Date: Tue, 7 Aug 2007 20:57:50 -0400	[thread overview]
Message-ID: <00ac01c7d957$24a20ad0$b575fea9@rheemacpro> (raw)
In-Reply-To: 20070807143739.7badea0a@oldman

Hi Stephen,
We have been working on slow start and we have a nice solution for this. We 
will send you a patch and test results.
Thanks
Injong


----- Original Message ----- 
From: "Stephen Hemminger" <shemminger@linux-foundation.org>
To: "Injong Rhee" <rhee@eos.ncsu.edu>; "Sangtae Ha" <sha2@ncsu.edu>
Cc: <netdev@vger.kernel.org>
Sent: Tuesday, August 07, 2007 2:37 PM
Subject: [RFC] cubic: backoff after slow start


> CUBIC takes several unnecessary iterations to converge out of slow start. 
> This
> is most noticable over a link where the bottleneck queue size is much 
> larger than BDP,
> and the sender has to "fill the pipe" in slow start before the first loss. 
> Typical
> consumer broadband links seem to have large (up to 2secs) of queue that 
> needs
> to get filled before the first loss.
>
> A possible fix is to use a beta of .5 (same as original TCP) when leaving
> slow start.  Originally, the Linux version didn't do slow start so it 
> probably
> never was observed.
>
> --- a/net/ipv4/tcp_cubic.c 2007-08-02 12:16:22.000000000 +0100
> +++ b/net/ipv4/tcp_cubic.c 2007-08-03 15:57:12.000000000 +0100
> @@ -289,7 +289,11 @@ static u32 bictcp_recalc_ssthresh(struct
>
>  ca->loss_cwnd = tp->snd_cwnd;
>
> - return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U);
> + /* Initial backoff when leaving slow start */
> + if (tp->snd_ssthresh == 0x7fffffff)
> + return max(tp->snd_cwnd >> 1U, 2U);
> + else
> + return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U);
> }
>
> static u32 bictcp_undo_cwnd(struct sock *sk)
> 







      reply	other threads:[~2007-08-08  1:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07 18:37 [RFC] cubic: backoff after slow start Stephen Hemminger
2007-08-08  0:57 ` Injong Rhee [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='00ac01c7d957$24a20ad0$b575fea9@rheemacpro' \
    --to=rhee@ncsu.edu \
    --cc=netdev@vger.kernel.org \
    --cc=rhee@eos.ncsu.edu \
    --cc=sha2@ncsu.edu \
    --cc=shemminger@linux-foundation.org \
    /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).