
{"id":1641,"date":"2010-06-07T22:07:09","date_gmt":"2010-06-07T16:37:09","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=1641"},"modified":"2010-06-07T22:07:09","modified_gmt":"2010-06-07T16:37:09","slug":"tcp-keepalive-interval","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/06\/07\/tcp-keepalive-interval\/","title":{"rendered":"tcp keepalive interval"},"content":{"rendered":"<pre>\n$cat \/proc\/sys\/net\/ipv4\/tcp_keepalive_intvl\n75\n$\n<\/pre>\n<pre>\ntcp_keepalive_intvl\nthe interval between subsequential keepalive probes,\nregardless of what the connection has exchanged in the meantime\n<\/pre>\n<pre>\nlinux\/net\/ipv4\/tcp.c - 8 identical\n   368:   *   MUST default to no keep-alives. (does)\n   369:   *   MUST make keep-alive interval configurable. (does)\n   370:   *   MUST make default keep-alive interval &gt; 2 hours. (does)\n\ntcp_timer.c - 3 identical\n    55: #include \n    56: #include \n    57: #include \n   307:   \/*\n   308:    * The keepalive packet must have nonzero length\n   309:    * to get a 4.2 host to respond.\nwww.psc.edu\/networking\/ftp\/tools\/netbsd1.1_sackmods.tar - BSD - C\n\n<\/pre>\n<pre>\nRFC related.\n\n TCP Keepalive Interval Option\nThis option specifies the interval (in seconds) that the client TCP\nshould wait before sending a keepalive message on a TCP connection.\nThe time is specified as a 32-bit unsigned integer. A value of zero\nindicates that the client should not generate keepalive messages on\nconnections unless specifically requested by an application.\nThe code for this option is 38, and its length is 4.\nCode Len  Time\n+-----+-----+-----+-----+-----+-----+\n| 38 | 4 | t1 | t2 | t3 | t4 |\n+-----+-----+-----+-----+-----+-----+\n\nsource :\n<a href=\"http:\/\/www.jeffrin.in\/wp-content\/uploads\/2010\/06\/draft-ietf-dhc-options-1533update-00.pdf\">\nhttp:\/\/www.jeffrin.in\/wp-content\/uploads\/2010\/06\/draft-ietf-dhc-options-1533update-00.pdf<\/a>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$cat \/proc\/sys\/net\/ipv4\/tcp_keepalive_intvl 75 $ tcp_keepalive_intvl the interval between subsequential keepalive probes, regardless of what the connection has exchanged in the meantime linux\/net\/ipv4\/tcp.c &#8211; 8 identical 368: * MUST default to no keep-alives. (does) 369: * MUST make keep-alive interval configurable. (does) 370: * MUST make default keep-alive interval &gt; 2 hours. (does) tcp_timer.c &#8211; 3 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/06\/07\/tcp-keepalive-interval\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;tcp keepalive interval&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[1056],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1641"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=1641"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1641\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=1641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=1641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=1641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}