netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Too aggressive cwnd backoff
@ 2005-04-07 16:41 Baruch Even
  2005-04-07 17:16 ` Stephen Hemminger
  2005-04-07 18:33 ` David S. Miller
  0 siblings, 2 replies; 12+ messages in thread
From: Baruch Even @ 2005-04-07 16:41 UTC (permalink / raw)
  To: David S. Miller; +Cc: Stephen Hemminger, netdev

The cwnd backoff is down in two places and drops the cwnd to one quarter
instead of to one half.

On congestion events we reset tp->ssthresh to the result of
tcp_recalc_ssthresh. This cuts the cwnd by half for (New)Reno or to
a convoluted calculation for BIC.

Later we will call tcp_cwnd_down for each ack and reduce the cwnd by one
for every two acks.

However, in tcp_cwnd_down we will not stop reducing the cwnd until we
get to limit which is set to tp->ssthresh/2.

The provided patch will set limit to tp->ssthresh. This was the original
behaviour in some older version of Linux.

The patch is against 2.6.11

Signed-Off-By: Baruch Even <baruch@ev-en.org>

 net/ipv4/tcp_input.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: 2.6.11-perf/net/ipv4/tcp_input.c
===================================================================
--- 2.6.11-perf.orig/net/ipv4/tcp_input.c
+++ 2.6.11-perf/net/ipv4/tcp_input.c
@@ -1621,7 +1621,7 @@ static void tcp_cwnd_down(struct tcp_soc
 	 */
 
 	if (!(limit = tcp_westwood_bw_rttmin(tp)))
-		limit = tp->snd_ssthresh/2;
+		limit = tp->snd_ssthresh;
 
 	tp->snd_cwnd_cnt = decr&1;
 	decr >>= 1;

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-04-08 21:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-07 16:41 [PATCH] Too aggressive cwnd backoff Baruch Even
2005-04-07 17:16 ` Stephen Hemminger
2005-04-07 18:14   ` Baruch Even
2005-04-07 18:31     ` David S. Miller
2005-04-07 18:37       ` John Heffner
2005-04-08 21:33         ` Baruch Even
2005-04-07 20:26   ` Werner Almesberger
2005-04-07 18:33 ` David S. Miller
2005-04-07 19:18   ` Baruch Even
2005-04-07 20:37     ` David S. Miller
2005-04-07 21:42   ` Herbert Xu
2005-04-07 21:45     ` David S. Miller

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).