diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2013-09-20 13:56:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-24 11:07:32 -0400 |
commit | b0983d3c9b132c33b6fb2e28d157a1edc18a173c (patch) | |
tree | 7cd835c46ced9d4dd7154d9f554a496dc28cdfd0 /net/ipv6/af_inet6.c | |
parent | 086293542b991fb88a2e41ae7b4f82ac65a20e1a (diff) | |
download | op-kernel-dev-b0983d3c9b132c33b6fb2e28d157a1edc18a173c.zip op-kernel-dev-b0983d3c9b132c33b6fb2e28d157a1edc18a173c.tar.gz |
tcp: fix dynamic right sizing
Dynamic Right Sizing (DRS) is supposed to open TCP receive window
automatically, but suffers from two bugs, presented by order
of importance.
1) tcp_rcv_space_adjust() fix :
Using twice the last received amount is very pessimistic,
because it doesn't allow fast recovery or proper slow start
ramp up, if sender wants to increase cwin by 100% every RTT.
copied = bytes received in previous RTT
2*copied = bytes we expect to receive in next RTT
4*copied = bytes we need to advertise in rwin at end of next RTT
DRS is one RTT late, it needs a 4x factor.
If sender is not using ABC, and increases cwin by 50% every rtt,
then we needed 1.5*1.5 = 2.25 factor.
This is probably why this bug was not really noticed.
2) There is no window adjustment after first RTT. DRS triggers only
after the second RTT.
DRS needs two RTT to initialize, so tcp_fixup_rcvbuf() should setup
sk_rcvbuf to allow proper window grow for first two RTT.
This patch increases TCP efficiency particularly for large RTT flows
when autotuning is used at the receiver, and more particularly
in presence of packet losses.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Cc: Van Jacobson <vanj@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
0 files changed, 0 insertions, 0 deletions