summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-10-13 18:36:32 +0000
committerwollman <wollman@FreeBSD.org>1994-10-13 18:36:32 +0000
commitd67ef411795273f6dbc8eb5f92247f47bace1cbb (patch)
tree4b7c42a7a7ea0f6496222cd911f062538cabb529 /sys/netinet/tcp_input.c
parent3ef70ee2aa73c18eeab9693b9224d89272ef544b (diff)
downloadFreeBSD-src-d67ef411795273f6dbc8eb5f92247f47bace1cbb.zip
FreeBSD-src-d67ef411795273f6dbc8eb5f92247f47bace1cbb.tar.gz
As suggested by Sally Floyd, don't add the ``small fraction of the window
size'' when doing congestion avoidance. Submitted by: Mark Andrews
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index b522006..961e02a 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.5 (Berkeley) 4/10/94
- * $Id: tcp_input.c,v 1.8 1994/09/15 10:36:54 davidg Exp $
+ * $Id: tcp_input.c,v 1.9 1994/10/02 17:48:43 phk Exp $
*/
#ifndef TUBA_INCLUDE
@@ -1033,16 +1033,14 @@ trimthenstep6:
* If the window gives us less than ssthresh packets
* in flight, open exponentially (maxseg per packet).
* Otherwise open linearly: maxseg per window
- * (maxseg^2 / cwnd per packet), plus a constant
- * fraction of a packet (maxseg/8) to help larger windows
- * open quickly enough.
+ * (maxseg^2 / cwnd per packet).
*/
{
register u_int cw = tp->snd_cwnd;
register u_int incr = tp->t_maxseg;
if (cw > tp->snd_ssthresh)
- incr = incr * incr / cw + incr / 8;
+ incr = incr * incr / cw;
tp->snd_cwnd = min(cw + incr, TCP_MAXWIN<<tp->snd_scale);
}
if (acked > so->so_snd.sb_cc) {
OpenPOWER on IntegriCloud