{"id":2051,"date":"2010-12-10T16:44:47","date_gmt":"2010-12-10T07:44:47","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=2051"},"modified":"2010-12-10T18:39:01","modified_gmt":"2010-12-10T09:39:01","slug":"tcp%e5%8b%89%e5%bc%b7%e4%bc%9a%e5%a7%8b%e3%82%81%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2010\/12\/2051\/","title":{"rendered":"TCP\u52c9\u5f37\u4f1a\u59cb\u3081\u307e\u3057\u305f"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30b0\u30ea\u30fc\u3067\u904b\u7528\u306b\u643a\u308f\u3063\u3066\u3044\u308bhiromi.kai\u3068\u7533\u3057\u307e\u3059\u3002\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001\u79c1\u305f\u3061\u306e\u30c1\u30fc\u30e0\u3067\u306fTCP\u306e\u52c9\u5f37\u4f1a\u3092\u59cb\u3081\u307e\u3057\u305f\u3002\u8b1b\u5e2b\u306f\u672c\u30d6\u30ed\u30b0\u306b\u3082\u8a18\u4e8b\u3092\u66f8\u304b\u308c\u3066\u3044\u308bebisawa\u5148\u751f\u3067\u3059\uff01<\/p>\n<p>\u305d\u3082\u305d\u3082\u306a\u305cTCP\u306e\u52c9\u5f37\u4f1a\uff1f\u3068\u601d\u308f\u308c\u308b\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30b0\u30ea\u30fc\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u969b\u306b\u76f4\u9762\u3059\u308b\u30c8\u30e9\u30d6\u30eb\u306b\u306f\u3001TCP\u30d7\u30ed\u30c8\u30b3\u30eb\u306b\u95a2\u3059\u308b\u8a73\u7d30\u3084\u5b9f\u88c5\u304c\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u3068\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u3001\u96e3\u6613\u5ea6\u306e\u9ad8\u3044\u3082\u306e\u3082\u3042\u308b\u304b\u3089\u3067\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u96e3\u3057\u3044\u30c8\u30e9\u30d6\u30eb\u306b\u3082\u3001\u5bfe\u5fdc\u3067\u304d\u308b\u4eba\u54e1\u3092\u5897\u3084\u305d\u3046\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u52c9\u5f37\u4f1a\u3092\u958b\u304f\u904b\u3073\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h4 id=\"hs_2939760a4d9d7acb73e179c25b9208f0_header_0\">\u7b2c1\u56de\u30b5\u30de\u30ea<\/h4>\n<p>\u7b2c1\u56de\u306fTCP\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u8aac\u660e\u3067\u3001\u4e3b\u306bTCP\u306e\u4fe1\u983c\u6027\u78ba\u4fdd\u306e\u4ed5\u7d44\u307f\u3084\u3001\u30d8\u30c3\u30c0\u306e\u89e3\u8aac\u306a\u3069\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u7c21\u5358\u306b\u30b5\u30de\u30e9\u30a4\u30ba\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<ul>\n<li>\n\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u3084IP\u30d8\u30c3\u30c0\u306b\u3082\u8aa4\u308a\u691c\u51fa\u306e\u4ed5\u7d44\u307f\u304c\u3042\u308b\u306e\u306b\u3001\u306a\u305cTCP\u30d8\u30c3\u30c0\u306b\u3082\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u304c\u3042\u308b\u306e\u304b\uff1f<\/p>\n<ul>\n<li>\u9001\u53d7\u4fe1\u3059\u308b\u30c7\u30fc\u30bf\u91cf\u304c\u591a\u3044\u305f\u3081\u3001CRC\u306b\u3088\u308b\u3088\u308b\u30c7\u30fc\u30bf\u30c1\u30a7\u30c3\u30af\u3067\u306f\u3001\u30c7\u30fc\u30bf\u304c\u5316\u3051\u3066\u3044\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\u5076\u7136\u7b26\u53f7\u304c\u4e00\u81f4\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308a\u5f97\u308b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u305d\u306e\u305f\u3081\u3001\u30c7\u30fc\u30bf\u3092\u4f55\u91cd\u306b\u3082\u30c1\u30a7\u30c3\u30af\u3059\u308b\u4ed5\u7d44\u307f\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u3002<\/p>\n<ul>\n<li>\nTCP\u30d8\u30c3\u30c0\u306e\u300c\u7dca\u6025\u30dd\u30a4\u30f3\u30bf\u300d\u3063\u3066\u4f55\uff1f<\/p>\n<ul>\n<li>Telnet\u3067Ctrl+C\u3092\u62bc\u3057\u305f\u5834\u5408\u306e\u3088\u3046\u306b\u3001\u512a\u5148\u7684\u306b\u51e6\u7406\u3057\u3066\u3082\u3089\u3044\u305f\u3044\u5185\u5bb9\u306b\u3064\u3044\u3066\u3001\u30d0\u30c3\u30d5\u30a1\u3092\u7d4c\u7531\u305b\u305a\u306b\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li>\u305f\u3060\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u7dca\u6025\u30dd\u30a4\u30f3\u30bf\u3092\u51e6\u7406\u3059\u308b\u4ed5\u7d44\u307f\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n\u30d1\u30b1\u30c3\u30c8\u304c\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u308b\u5834\u5408\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u30b7\u30c1\u30e5\u30a8\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u306e\u304b<\/p>\n<ul>\n<li>\u9577\u8ddd\u96e2\u306e\u4f1d\u9001\u8def\u306e\u5834\u5408\u3001\u9014\u4e2d\u3067\u30d1\u30b1\u30c3\u30c8\u306b\u30ce\u30a4\u30ba\u304c\u4e57\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u304c\u3042\u308b\u3002<\/li>\n<li>\u30eb\u30fc\u30bf\u306e\u51e6\u7406\u80fd\u529b\u3084\u56de\u7dda\u306e\u5e2f\u57df\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u306f\u30ad\u30e5\u30fc\u6ea2\u308c\u3092\u8d77\u3053\u3057\u3066\u30c9\u30ed\u30c3\u30d7\u3092\u8d77\u3053\u3059\u3002<\/li>\n<li>\u30d8\u30c3\u30c0\u3092\u6700\u9069\u5316\u3057\u3066\u56de\u7dda\u3092\u4e0d\u5f53\u306b\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u5bfe\u6297\u3057\u3066\u3001\u308f\u3056\u3068\u30d1\u30b1\u30c3\u30c8\u3092\u30c9\u30ed\u30c3\u30d7\u3055\u305b\u308b\u5834\u5408\u3082\u3042\u308b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 id=\"hs_2939760a4d9d7acb73e179c25b9208f0_header_1\">\u7b2c2\u56de\u30b5\u30de\u30ea<\/h4>\n<p>\u7b2c2\u56de\u306ftcpdump\u306e\u8aad\u307f\u65b9\u3084TCP\u306e\u8106\u5f31\u6027\u306b\u3064\u3044\u3066\u304a\u8a71\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\ntcpdump\u306e\u8aad\u307f\u65b9\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n<ul>\n<li>\u975e\u5e38\u306b\u5927\u307e\u304b\u306b\u66f8\u304f\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u51fa\u529b\u3055\u308c\u308b<\/li>\n<li>\u7d4c\u904e\u6642\u9593\u3000(\u9001\u4fe1\u5143IP\u30a2\u30c9\u30ec\u30b9:\u30dd\u30fc\u30c8)\u3000> (\u9001\u4fe1\u5148IP\u30a2\u30c9\u30ec\u30b9:\u30dd\u30fc\u30c8)\u3000\u30d5\u30e9\u30b0\u3000\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7<\/li>\n<li>\u3053\u3053\u3067\u3044\u3046\u30d5\u30e9\u30b0\u306fTCP\u30d8\u30c3\u30c0\u306b\u3042\u308b\u30d5\u30e9\u30b0\u3092\u6307\u3057\u3001SYN\u3084RST\u3001FIN\u3001PSH\u306e\u982d\u6587\u5b57\u306b\u5bfe\u5fdc\u3059\u308b\u3002.(\u30c9\u30c3\u30c8)\u306f\u30d5\u30e9\u30b0\u304c\u7acb\u3063\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u6307\u3059<\/li>\n<li>ACK\u306b\u3064\u3044\u3066\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u4ee5\u964d\u306b\u3001\u72ec\u7acb\u3057\u3066\u51fa\u529b\u3055\u308c\u308b<\/li>\n<li>\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u306f32\u30d3\u30c3\u30c8\u306e\u7bc4\u56f2\u5185\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u751f\u6210\u3055\u308c\u308b<\/li>\n<li>2\u56de\u76ee\u4ee5\u964d\u306e\u901a\u4fe1\u306e\u3084\u308a\u3068\u308a\u304b\u3089\u306f\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u306f\u524d\u306e\u3084\u308a\u3068\u308a\u306b\u4f7f\u7528\u3057\u305f\u5024\u306e\u76f8\u5bfe\u5024\u304c\u51fa\u529b\u3055\u308c\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u306e\u3053\u307c\u308c\u8a71<\/p>\n<ul>\n<li>\u6614\u306eOS\u306e\u5b9f\u88c5\u3067\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u306f\u6642\u9593\u3067\u5024\u304c\u5909\u5316\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f<\/li>\n<li>\u3053\u306e\u4ed5\u7d44\u307f\u3092\u60aa\u7528\u3057\u3066\u3001\u73fe\u5728\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u756a\u53f7\u3092\u7dcf\u5f53\u308a\u3067\u5f53\u3066\u3066\u3057\u307e\u3044\u3001\u305d\u308c\u4ee5\u964d\u306e\u901a\u4fe1\u3092\u7b2c\u4e09\u8005\u304c\u4e57\u3063\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3057\u307e\u3063\u305f\uff08\u77e5\u308b\u4eba\u9054\u306e\u9593\u3067\u306f\u9a12\u304e\u306b\u306a\u3063\u305f\u3068\u304b\uff09(<a href=http:\/\/ja.wikipedia.org\/wiki\/TCP%E3%82%B7%E3%83%BC%E3%82%B1%E3%83%B3%E3%82%B9%E7%95%AA%E5%8F%B7%E4%BA%88%E6%B8%AC%E6%94%BB%E6%92%83>\u53c2\u8003(Wikipedia)<\/a>)<\/li>\n<li>\u73fe\u5728\u306e\u5b9f\u88c5\u3067\u306f\u3001\u306a\u308a\u3059\u307e\u3057\u3092\u9632\u3050\u305f\u3081\u306b\u5b8c\u5168\u306b\u30e9\u30f3\u30c0\u30e0\u306b\u306a\u3063\u3066\u3044\u308b<\/li>\n<li>\u73fe\u5728\u3067\u3082\u3001Telnet\u306e\u3088\u3046\u306b\u7d99\u7d9a\u3057\u3066TCP\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u308a\u3063\u3071\u306a\u3057\u306b\u3059\u308b\u30d7\u30ed\u30c8\u30b3\u30eb\u306f\u5225\u306e\u624b\u6bb5\u3092\u7528\u3044\u305f\u306a\u308a\u3059\u307e\u3057\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u306a\u308b\u304a\u305d\u308c\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3042\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n\u306a\u305cTCP\u901a\u4fe1\u306e\u59cb\u307e\u308a\u306f3Way\u30cf\u30f3\u30c9\u30b7\u30a7\u30a4\u30af\u306a\u306e\u306b\u3001\u901a\u4fe1\u306e\u7d42\u308f\u308a\u306f4\u3064\u30d1\u30b1\u30c3\u30c8\u3092\u9001\u308b\u306e\u304b<\/p>\n<ul>\n<li>TCP\u306f\u7247\u65b9\u306e\u901a\u4fe1\u3092\u9589\u3058\u3066\u7247\u65b9\u306e\u901a\u4fe1\u3092\u7dad\u6301\u3059\u308b\u30cf\u30fc\u30d5\u30af\u30ed\u30fc\u30ba\u304c\u53ef\u80fd\u306a\u305f\u3081<\/li>\n<li>\u9001\u4fe1\u5074\u304cFIN\u3092\u9001\u3063\u305f\u5f8c\u3067\u3082\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1\u3067\u304d\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u308b<\/li>\n<li>UNIX\u7cfb\u306eOS\u3067\u306fshutdown\u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3067\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 id=\"hs_2939760a4d9d7acb73e179c25b9208f0_header_2\">\u304a\u308f\u308a\u306b<\/h4>\n<p>\u591a\u5206\u3053\u306e\u30d6\u30ed\u30b0\u306e\u8aad\u8005\u306e\u4e2d\u306b\u306f\u300c\u3053\u306e\u304f\u3089\u3044\u77e5\u3063\u3066\u308b\u3088\uff01\u300d\u3068\u3044\u3046\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3088\u308a\u9ad8\u5ea6\u306a\u5185\u5bb9\u3092\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3067\u304d\u308b\u3088\u3046\u306b\u9811\u5f35\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u6b21\u56de\u306e\u52c9\u5f37\u4f1a\u30ec\u30dd\u30fc\u30c8\u3067\u304a\u4f1a\u3044\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30b0\u30ea\u30fc\u3067\u904b\u7528\u306b\u643a\u308f\u3063\u3066\u3044\u308bhiromi.kai\u3068\u7533\u3057\u307e\u3059\u3002\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002 \u6700\u8fd1\u3001\u79c1\u305f\u3061\u306e\u30c1\u30fc\u30e0\u3067\u306fTCP\u306e\u52c9\u5f37\u4f1a\u3092\u59cb\u3081\u307e\u3057\u305f\u3002\u8b1b\u5e2b\u306f\u672c\u30d6\u30ed\u30b0\u306b\u3082\u8a18\u4e8b\u3092\u66f8\u304b\u308c\u3066\u3044\u308bebisawa\u5148\u751f\u3067\u3059\uff01 \u305d\u3082\u305d\u3082\u306a [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[26,28],"class_list":["post-2051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-nw","tag-28"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/2051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=2051"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions"}],"predecessor-version":[{"id":2291,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/2051\/revisions\/2291"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=2051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=2051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=2051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}