* Re: Linux TCP implementation
[not found] <BAY15-F28psNhnM7kl300089ffe@hotmail.com>
@ 2004-03-23 2:28 ` David S. Miller
0 siblings, 0 replies; only message in thread
From: David S. Miller @ 2004-03-23 2:28 UTC (permalink / raw)
To: m k; +Cc: linux-kernel, netdev
[ Post stuff like this to netdev@oss.sgi.com or linux-net@vger.kernel.org,
most net developers do not read linux-kernel, thanks. ]
On Mon, 22 Mar 2004 20:58:46 +0000
"m k" <mk_26@hotmail.com> wrote:
> Also, if the snd_cwnd is maintained in terms of packets and snd_ssthresh
> and
> snd_cwnd_clamp is maintained in terms of bytes, how come the comparison
> between them.
All of the congestion variables are maintained in terms of packets.
The function you quote, tcp_cong_avoid(), determines if we increase
the congestion window exponentially (when snd_cwnd is less than or
equal to snd_ssthresh) or linearlly (when snd_cwnd is more than
snd_ssthresh).
This is bog-standard Van Jacobson congestion avoidance, nothing fancy.
^ permalink raw reply [flat|nested] only message in thread