Netdev List
 help / color / mirror / Atom feed
* question on routine tcp_moderate_cwnd
@ 2003-01-27 21:20 Brian Tierney
  2003-01-27 22:37 ` Xiaoliang (David) Wei
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Tierney @ 2003-01-27 21:20 UTC (permalink / raw)
  To: netdev; +Cc: Brian Tierney

Hi all:

Can someone explain what situation the routine tcp_moderate_cwnd is  
supposed to address?

Im finding that this code seems to be preventing TCP for achieving  
anything close to the available bandwidth on large BDP networks.

Thanks.

----------------

/* CWND moderation, preventing bursts due to too big ACKs
  * in dubious situations.
  */
static __inline__ void tcp_moderate_cwnd(struct tcp_opt *tp)
{
        u32 t = tcp_packets_in_flight(tp) + tcp_max_burst(tp);
         if (t < tp->snd_cwnd) {
                         tp->snd_cwnd = t;
                         WEB100_VAR_INC(tp, OtherReductions);
          }
         tp->snd_cwnd_stamp = tcp_time_stamp;
}



------------------------------------------------------------------------ 
-------------------
   Brian L. Tierney,   Lawrence Berkeley National Laboratory (LBNL)
   1 Cyclotron Rd.  MS: 50B-2239,  Berkeley, CA  94720
   tel: 510-486-7381    fax: 510-495-2998   efax:  240-332-4065
   bltierney@lbl.gov   http://www-didc.lbl.gov/~tierney
------------------------------------------------------------------------ 
------------------

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

end of thread, other threads:[~2003-01-27 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-27 21:20 question on routine tcp_moderate_cwnd Brian Tierney
2003-01-27 22:37 ` Xiaoliang (David) Wei

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