A question in decreasing cwnd.

From: omit_ECE (omit@rice.edu)
Date: Thu Nov 07 2002 - 23:56:52 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:14 EST