{"id":213,"date":"2013-06-26T19:55:23","date_gmt":"2013-06-26T10:55:23","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=213"},"modified":"2025-06-03T09:10:45","modified_gmt":"2025-06-03T00:10:45","slug":"tcpip%e9%80%9a%e4%bf%a1%e3%81%a7ack%e5%bf%9c%e7%ad%94%e3%81%8c%e9%81%85%e3%82%8c%e3%82%8b%ef%bc%88%e9%81%85%e3%81%84%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/213","title":{"rendered":"TCP\/IP\u901a\u4fe1\u3067ACK\u5fdc\u7b54\u304c\u9045\u308c\u308b\uff08\u9045\u3044\uff09"},"content":{"rendered":"<h3>\u539f\u56e0<\/h3>\n<p>\n<strong>Nagle(\u30cd\u30fc\u30b0\u30eb)\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/strong>\u306b\u3088\u308b\u30bd\u30b1\u30c3\u30c8\u5185\u30d0\u30c3\u30d5\u30a1\u306e\u9001\u4fe1\u9045\u5ef6\uff08\u5c0f\u30d1\u30b1\u30c3\u30c8\u30b5\u30a4\u30ba\u306e\u4fdd\u7559\uff09\n<\/p>\n<h3>\u89e3\u6c7a\u7b56<\/h3>\n<p>TCP_NODELAY\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7acb\u3066\u3066\u3001Nagle\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u7121\u52b9\u5316\u3059\u308b\u3002<\/p>\n<pre class=\"lang:c decode:true \" >#include &lt;arpa\/inet&gt;\r\n#include &lt;netinet\/tcp.h&gt;\r\n\r\n\/* \u4e2d\u7565 *\/\r\n\r\nint flag = 1;\r\nret = sockopt(sock, IPPROTO_TCP, TCP_NODELAY, (char*)&amp;flag, sizeof(flag));<\/pre>\n<h3>\u5916\u90e8\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/ja.wikipedia.org\/wiki\/Nagle%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0\">Wikipedia &#8211; Nagle\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/a><\/li>\n<li><a href=\"http:\/\/www.stuartcheshire.org\/papers\/NagleDelayedAck\/\">TCP Performance problems caused by interaction between Nagle\u2019s Algorithm and Delayed ACK<br \/>\nStuart Cheshire<\/a><\/li>\n<li><a href=\"https:\/\/brooker.co.za\/blog\/2024\/05\/09\/nagle.html\">Marc&#8217;s Blog &#8211; It\u2019s always TCP_NODELAY. Every damn time.<\/a><\/li>\n<li><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc896\">RFC896 &#8211; Congestion Control in IP\/TCP Internetworks<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u56e0 Nagle(\u30cd\u30fc\u30b0\u30eb)\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3088\u308b\u30bd\u30b1\u30c3\u30c8\u5185\u30d0\u30c3\u30d5\u30a1\u306e\u9001\u4fe1\u9045\u5ef6\uff08\u5c0f\u30d1\u30b1\u30c3\u30c8\u30b5\u30a4\u30ba\u306e\u4fdd\u7559\uff09 \u89e3\u6c7a\u7b56 TCP_NODELAY\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7acb\u3066\u3066\u3001Nagle\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u7121\u52b9\u5316\u3059\u308b\u3002 #include &lt;ar [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":9,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":8062,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions\/8062"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}