Page MenuHomeFreeBSD

Fix retransmission timer initialisation for TCP RACK
ClosedPublic

Authored by tuexen on May 12 2021, 1:47 PM.
Tags
None
Referenced Files
F105976220: D30230.diff
Mon, Dec 23, 8:46 AM
Unknown Object (File)
Fri, Nov 29, 9:52 PM
Unknown Object (File)
Fri, Nov 29, 7:08 PM
Unknown Object (File)
Fri, Nov 29, 4:15 PM
Unknown Object (File)
Tue, Nov 26, 9:33 AM
Unknown Object (File)
Nov 14 2024, 7:17 AM
Unknown Object (File)
Nov 12 2024, 2:25 AM
Unknown Object (File)
Oct 28 2024, 4:16 PM
Subscribers

Details

Summary

Don't take net.inet.tcp.rexmit_slop into account when setting the retransmission timeout in front states.

Test Plan

Run TCP test suite.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/netinet/tcp_stacks/rack.c
6611

What is the reason you don't want to have RTT Slop in the mix here?

I do think its a bit high IIRR 200ms, but if we are going to use it the
next RTT measurement we get, why is it not valid for the first time
we go established too?

Oh and I am not sure about t_rttlow, rack does not use it, not sure who
does, but I don't think the conn_init code sets it either so probably doing
it here is a double conversion ... not that it matters it will get set right
on the next measurement unless it translates to a very small number which
I don't think it will.

sys/netinet/tcp_stacks/rack.c
6611

When retransmitting the first SYN, the base stack does not include the slop. So when switching to RACK before the first SYN goes out, the behvaiour would be different. However, thinking about that, when switching in the middle of a connection, you want to put the slop in there.

Regarding the t_rttlow: I think in principle the conversion would belong to the routine. But let me take that out, since it is a separate issue.

tuexen edited the summary of this revision. (Show Details)

Don't move t_rttlow conversion.

sys/netinet/tcp_stacks/rack.c
6611

t_rttlow is not used by rack. It is updated, but not used. Its arguably incorrect
when we go to ESTABLISHED, bit it should get corrected I think.

So my fundamental question then is why do we have slop included in any timeout?

If its good enough for the SYN not to include it, why do we include it on
a data transmission?

I suppose it could be an allowance for the fact that a full segment may have a propagation delay
far larger than the SYN, but 200ms is a lot of time. For 60kbps a full 1500 bytes takes 200ms
so maybe the real question is why we have this value so high.. maybe it should at least be
in the order of 1.5Mbps for a full sized segment i.e 8ms?

sys/netinet/tcp_stacks/rack.c
6611

I thought it is to compensate for a delay of the peer when the timer is based on the actual RTT. But then it does not make sense to use it in (all but the first) retransmission SYN retransmissions...

This revision is now accepted and ready to land.May 12 2021, 4:01 PM