mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* A question in decreasing cwnd.
@ 2002-11-08  4:56 omit_ECE
  0 siblings, 0 replies; only message in thread
From: omit_ECE @ 2002-11-08  4:56 UTC (permalink / raw)
  To: linux-kernel

Hi,

In tcp_input.c, 

/* Decrease cwnd each second ack. */
static void tcp_cwnd_down(struct tcp_opt *tp)
{
     int decr = tp->snd_cwnd_cnt + 1;

     tp->snd_cwnd_cnt = decr&1;
     decr >>= 1;

     if (decr && tp->snd_cwnd > tp->snd_ssthresh/2)
          tp->snd_cwnd -= decr;

     tp->snd_cwnd = min(tp->snd_cwnd, tcp_packets_in_flight(tp)+1);
     tp->snd_cwnd_stamp = tcp_time_stamp;
}

Could anyone explain what does that mean, please?
Thank you.

YuZen

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-08  5:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08  4:56 A question in decreasing cwnd omit_ECE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®