@@ -311,9 +311,12 @@ tcp_no_metrics_save - BOOLEAN
311311 connections.
312312
313313tcp_orphan_retries - INTEGER
314- How may times to retry before killing TCP connection, closed
315- by our side. Default value 7 corresponds to ~50sec-16min
316- depending on RTO. If you machine is loaded WEB server,
314+ This value influences the timeout of a locally closed TCP connection,
315+ when RTO retransmissions remain unacknowledged.
316+ See tcp_retries2 for more details.
317+
318+ The default value is 7.
319+ If your machine is a loaded WEB server,
317320 you should think about lowering this value, such sockets
318321 may consume significant resources. Cf. tcp_max_orphans.
319322
@@ -327,16 +330,28 @@ tcp_retrans_collapse - BOOLEAN
327330 certain TCP stacks.
328331
329332tcp_retries1 - INTEGER
330- How many times to retry before deciding that something is wrong
331- and it is necessary to report this suspicion to network layer.
332- Minimal RFC value is 3, it is default, which corresponds
333- to ~3sec-8min depending on RTO.
333+ This value influences the time, after which TCP decides, that
334+ something is wrong due to unacknowledged RTO retransmissions,
335+ and reports this suspicion to the network layer.
336+ See tcp_retries2 for more details.
337+
338+ RFC 1122 recommends at least 3 retransmissions, which is the
339+ default.
334340
335341tcp_retries2 - INTEGER
336- How may times to retry before killing alive TCP connection.
337- RFC1122 says that the limit should be longer than 100 sec.
338- It is too small number. Default value 15 corresponds to ~13-30min
339- depending on RTO.
342+ This value influences the timeout of an alive TCP connection,
343+ when RTO retransmissions remain unacknowledged.
344+ Given a value of N, a hypothetical TCP connection following
345+ exponential backoff with an initial RTO of TCP_RTO_MIN would
346+ retransmit N times before killing the connection at the (N+1)th RTO.
347+
348+ The default value of 15 yields a hypothetical timeout of 924.6
349+ seconds and is a lower bound for the effective timeout.
350+ TCP will effectively time out at the first RTO which exceeds the
351+ hypothetical timeout.
352+
353+ RFC 1122 recommends at least 100 seconds for the timeout,
354+ which corresponds to a value of at least 8.
340355
341356tcp_rfc1337 - BOOLEAN
342357 If set, the TCP stack behaves conforming to RFC1337. If unset,
0 commit comments