Commit 5d789229 authored by Damian Lukowski's avatar Damian Lukowski Committed by David S. Miller

RTO connection timeout: sysctl documentation update

This patch updates the sysctl documentation concerning the interpretation
of tcp_retries{1,2} and tcp_orphan_retries.
Signed-off-by: default avatarDamian Lukowski <damian@tvk.rwth-aachen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5152fc7d
...@@ -311,9 +311,12 @@ tcp_no_metrics_save - BOOLEAN ...@@ -311,9 +311,12 @@ tcp_no_metrics_save - BOOLEAN
connections. connections.
tcp_orphan_retries - INTEGER tcp_orphan_retries - INTEGER
How may times to retry before killing TCP connection, closed This value influences the timeout of a locally closed TCP connection,
by our side. Default value 7 corresponds to ~50sec-16min when RTO retransmissions remain unacknowledged.
depending on RTO. If you machine is loaded WEB server, See tcp_retries2 for more details.
The default value is 7.
If your machine is a loaded WEB server,
you should think about lowering this value, such sockets you should think about lowering this value, such sockets
may consume significant resources. Cf. tcp_max_orphans. may consume significant resources. Cf. tcp_max_orphans.
...@@ -327,16 +330,28 @@ tcp_retrans_collapse - BOOLEAN ...@@ -327,16 +330,28 @@ tcp_retrans_collapse - BOOLEAN
certain TCP stacks. certain TCP stacks.
tcp_retries1 - INTEGER tcp_retries1 - INTEGER
How many times to retry before deciding that something is wrong This value influences the time, after which TCP decides, that
and it is necessary to report this suspicion to network layer. something is wrong due to unacknowledged RTO retransmissions,
Minimal RFC value is 3, it is default, which corresponds and reports this suspicion to the network layer.
to ~3sec-8min depending on RTO. See tcp_retries2 for more details.
RFC 1122 recommends at least 3 retransmissions, which is the
default.
tcp_retries2 - INTEGER tcp_retries2 - INTEGER
How may times to retry before killing alive TCP connection. This value influences the timeout of an alive TCP connection,
RFC1122 says that the limit should be longer than 100 sec. when RTO retransmissions remain unacknowledged.
It is too small number. Default value 15 corresponds to ~13-30min Given a value of N, a hypothetical TCP connection following
depending on RTO. exponential backoff with an initial RTO of TCP_RTO_MIN would
retransmit N times before killing the connection at the (N+1)th RTO.
The default value of 15 yields a hypothetical timeout of 924.6
seconds and is a lower bound for the effective timeout.
TCP will effectively time out at the first RTO which exceeds the
hypothetical timeout.
RFC 1122 recommends at least 100 seconds for the timeout,
which corresponds to a value of at least 8.
tcp_rfc1337 - BOOLEAN tcp_rfc1337 - BOOLEAN
If set, the TCP stack behaves conforming to RFC1337. If unset, If set, the TCP stack behaves conforming to RFC1337. If unset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment