Re: sysctl_tcp_keepalive_time



On 16/08/07, Simon Peter <simon.peter@xxxxxx> wrote:
Hi,

is there any reason why sysctl_tcp_keepalive_time (reflected
by /proc/sys/net/ipv4/tcp_keepalive_time) is set to 7200 seconds? Is
this specified somewhere?

RFC 1122, section 4.2.3.6 - http://www.faqs.org/rfcs/rfc1122.html

"
4.2.3.6 TCP Keep-Alives

Implementors MAY include "keep-alives" in their TCP
implementations, although this practice is not universally
accepted. If keep-alives are included, the application MUST
be able to turn them on or off for each TCP connection, and
they MUST default to off.

Keep-alive packets MUST only be sent when no data or
acknowledgement packets have been received for the
connection within an interval. This interval MUST be
configurable and MUST default to no less than two hours.
"

This page may also be of interrest to you :
http://www.uic.rsu.ru/doc/inet/tcp_stevens/tcp_keep.htm

Also see "man 7 tcp"


--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Notification when network connection loss...
    ... For sends the tcp stack will retry sending the data 5 times by default. ... This value controls how often TCP attempts to verify that an idle connection ... Keep-alive packets are not sent by default. ... TCP keep-alives can be sent once every ...
    (microsoft.public.windowsce.app.development)
  • Re: Should a socket client detect loss of network connection
    ... Implementors MAY include "keep-alives" in their TCP ... erroneous TCP implementations. ... I have written a socket client and a server. ...
    (microsoft.public.win32.programmer.networks)
  • Re: NAT and keepaliveopen connection over TCP
    ... Implementors MAY include "keep-alives" in their TCP ... There's no minimum set time how long a NAT router should ... time-out inactive connections at the server. ...
    (microsoft.public.win32.programmer.networks)
  • Re: what does SocketOptionName.KeepAlive mean?
    ... Why so Dave? ... SocketOptionName.KeepAlive must be associated with a TCP Socket and ... See section 4.2.3.6 TCP Keep-Alives of RFC 1122 for the standardized ... In short, enabling keep-alives causes a packet to be sent every 2 hours, ...
    (microsoft.public.dotnet.languages.csharp)