Re: TCP Congestion Window Bug?

From: David S. Miller (davem@redhat.com)
Date: Sat Mar 03 2001 - 04:11:01 EST


Mark Reginald James writes:
> TCP only sends a packet if:
>
> tcp_packets_in_flight(tp) < tp->snd_cwnd
>
> (function tcp_snd_test in include/net/tcp.h)
>
> but regards transmission as application-limited if
>
> tp->packets_out < tp->snd_cwnd
>
> (function tcp_cwnd_validate in include/net/tcp.h)
>
> So the kernel _always_ thinks the connection is
> application-limited

Why? After the final "send a packet if" test, tp->packets_out will be
incremented and thus be equal to tp->snd_cwnd, marking the connection
as _not_ application limited.

Later,
David S. Miller
davem@redhat.com
-
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 : Wed Mar 07 2001 - 21:00:14 EST