tcp: Lowering initial RTO according to RFC 6298
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Mar 2012 10:23:47 +0000 (18:23 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Mar 2012 10:23:47 +0000 (18:23 +0800)
commit48a4676d0b815f0b3c9dcc0ab98a2e100b4383b9
tree77259ae27939288e28858b0a516bd04800b62bba
parentbe34e53417b31f0264d6b0c18e714d4f86903219
tcp: Lowering initial RTO according to RFC 6298

The SYN retransmit backoff is roughly according to the tcp_syn_backoff[]
as following:
                                      15s
tcp_syn_backoff[]     rexmt: 3 3 3 3 3 | 6 12 24 (ended at 57s)
tcp_syn_backoff_low[] rexmt: 1 2 4 4 4 | 8 16 16 (ended at 55s)

It is on by default and could be turned off by using sysctl
net.inet.tcp.low_rtobase
sys/netinet/tcp_input.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_timer.c
sys/netinet/tcp_timer.h
sys/netinet/tcp_var.h