{"id":115210,"date":"2026-10-11T14:12:13","date_gmt":"2026-10-11T06:12:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115210.html"},"modified":"2026-10-11T14:12:13","modified_gmt":"2026-10-11T06:12:13","slug":"%e8%b5%84%e6%ba%90%e5%88%86%e5%b1%82%e5%85%b3%e9%97%ad%e4%bd%93%e7%b3%bb%e3%80%81tcp%e8%bf%9e%e6%8e%a5%e5%ad%98%e6%b4%bb%e6%8e%a2%e6%b5%8b%e4%b8%8e%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115210.html","title":{"rendered":"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"106\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061209-6acb28b997255.gif\" width=\"846\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"472\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061209-6acb28b9a7439.jpg\" width=\"841\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"117\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061211-6acb28bbd94fd.gif\" width=\"829\" \/><\/p>\n<p id=\"main-toc\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E8%B5%84%E6%BA%90%E4%BB%8E%E4%B8%8A%E5%BE%80%E4%B8%8B%E5%85%B3%E9%97%AD-toc\" style=\"margin-left:0px\">\u4e00\u3001\u8d44\u6e90\u4ece\u4e0a\u5f80\u4e0b\u5173\u95ed<\/p>\n<p id=\"1.%E5%BA%94%E7%94%A8%E5%B1%82Socket%E8%A7%86%E8%A7%92%E4%B8%8B%E7%9A%84%E5%85%B3%E9%97%AD-toc\" style=\"margin-left:40px\">1.\u5e94\u7528\u5c42Socket\u89c6\u89d2\u4e0b\u7684\u5173\u95ed<\/p>\n<p id=\"1.1Socket%E8%87%AA%E5%B7%B1%E5%85%B3%E9%97%AD%E6%97%B6%E7%94%A8%E7%9A%84API-toc\" style=\"margin-left:80px\">1.1Socket\u81ea\u5df1\u5173\u95ed\u65f6\u7528\u7684API<\/p>\n<p id=\"1.1.1Socket.flush-toc\" style=\"margin-left:120px\">1.1.1Socket.flush<\/p>\n<p id=\"1.1.2Socket.close-toc\" style=\"margin-left:120px\">1.1.2Socket.close<\/p>\n<p id=\"1.2%E8%BF%9B%E7%A8%8B%E5%B4%A9%E6%BA%83%E6%97%B6Socket%E8%A2%AB%E5%8A%A8%E7%9A%84%E5%85%B3%E9%97%AD-toc\" style=\"margin-left:80px\">1.2\u8fdb\u7a0b\u5d29\u6e83\u65f6Socket\u88ab\u52a8\u7684\u5173\u95ed<\/p>\n<p id=\"1.2.1%E6%97%A0%E6%8A%89%E8%BF%AB%E5%88%92%E5%BD%93%E7%8E%B0%E5%8F%91%E9%80%81%E8%BE%B9%E7%95%8C-toc\" style=\"margin-left:120px\">1.2.1\u65e0\u6289\u8feb\u5212\u5f53\u73b0\u53d1\u9001\u8fb9\u754c<\/p>\n<p id=\"1.2.2%E6%97%A0%E5%BC%95%E7%94%A8%E5%90%8E%E9%81%87%E8%B5%B0%E9%87%8A%E6%94%BE%E6%B5%81%E7%A8%8B-toc\" style=\"margin-left:120px\">1.2.2\u65e0\u5f15\u7528\u540e\u9047\u8d70\u91ca\u653e\u6d41\u7a0b<\/p>\n<p id=\"2.%E4%BC%A0%E8%BE%93%E5%B1%82TCP%E8%BF%9E%E6%8E%A5%E8%A7%86%E8%A7%92%E4%B8%8B%E7%9A%84%E5%85%B3%E9%97%AD-toc\" style=\"margin-left:40px\">2.\u4f20\u8f93\u5c42TCP\u8fde\u63a5\u89c6\u89d2\u4e0b\u7684\u5173\u95ed<\/p>\n<p id=\"2.1%E6%AD%A3%E5%B8%B8%E5%85%B3%E9%97%AD%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:80px\">2.1\u6b63\u5e38\u5173\u95ed\u673a\u5236<\/p>\n<p id=\"2.1.1FIN%E6%8A%A5%E6%96%87-toc\" style=\"margin-left:120px\">2.1.1FIN\u62a5\u6587<\/p>\n<p id=\"2.1.1.1%E6%94%B6%E5%8F%91-toc\" style=\"margin-left:160px\">2.1.1.1\u6536\u53d1<\/p>\n<p id=\"2.1.1.2%E5%88%86%E5%85%B3-toc\" style=\"margin-left:160px\">2.1.1.2\u5206\u5173<\/p>\n<p id=\"2.1.1.3%E5%8F%AF%E9%9D%A0-toc\" style=\"margin-left:160px\">2.1.1.3\u53ef\u9760<\/p>\n<p id=\"2.1.2%E5%85%88%E6%8C%A5%E6%96%B9%E6%9C%80%E5%90%8E%E4%B8%80%E4%B8%AAACK%E6%8A%A5%E6%96%87-toc\" style=\"margin-left:120px\">2.1.2\u5148\u6325\u65b9\u6700\u540e\u4e00\u4e2aACK\u62a5\u6587<\/p>\n<p id=\"2.1.2.1%E6%8A%A5%E6%96%87%E7%9A%84%E7%A1%AE%E8%BE%BE%E4%B8%8D%E5%AE%9A-toc\" style=\"margin-left:160px\">2.1.2.1\u62a5\u6587\u7684\u786e\u8fbe\u4e0d\u5b9a<\/p>\n<p id=\"2.1.2.2ACK%E7%9A%84%E5%8D%A0%E6%AF%94%E4%BF%9D%E9%9A%9C-toc\" style=\"margin-left:160px\">2.1.2.2ACK\u7684\u5360\u6bd4\u4fdd\u969c<\/p>\n<p id=\"2.1.2.2.1%E6%96%B9%E5%BC%8F-toc\" style=\"margin-left:200px\">2.1.2.2.1\u65b9\u5f0f<\/p>\n<p id=\"2.1.2.2.2%E9%80%89%E6%8B%A9-toc\" style=\"margin-left:200px\">2.1.2.2.2\u9009\u62e9<\/p>\n<p id=\"2.2%E5%BC%82%E5%B8%B8%E4%B8%AD%E6%AD%A2%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:80px\">2.2\u5f02\u5e38\u4e2d\u6b62\u673a\u5236<\/p>\n<p id=\"2.2.1RST%E6%8A%A5%E6%96%87-toc\" style=\"margin-left:120px\">2.2.1RST\u62a5\u6587<\/p>\n<p id=\"2.2.1.1%E6%94%B6%E5%8F%91-toc\" style=\"margin-left:160px\">2.2.1.1\u6536\u53d1<\/p>\n<p id=\"2.2.1.2%E5%B9%B6%E5%85%B3-toc\" style=\"margin-left:160px\">2.2.1.2\u5e76\u5173<\/p>\n<p id=\"2.2.1.3%E4%B8%8D%E5%8F%AF%E9%9D%A0-toc\" style=\"margin-left:160px\">2.2.1.3\u4e0d\u53ef\u9760<\/p>\n<p id=\"2.2.1.4%E5%8F%91%E9%80%81%E6%83%85%E5%86%B5-toc\" style=\"margin-left:160px\">2.2.1.4\u53d1\u9001\u60c5\u51b5<\/p>\n<p id=\"2.2.1.4.1%E8%BF%9E%E6%8E%A5%E4%B8%8D%E5%AD%98%E5%9C%A8-toc\" style=\"margin-left:200px\">2.2.1.4.1\u8fde\u63a5\u4e0d\u5b58\u5728<\/p>\n<p id=\"2.2.1.4.2%E9%81%87%E5%88%B0%E5%BC%82%E5%B8%B8%E9%94%99%E8%AF%AF-toc\" style=\"margin-left:200px\">2.2.1.4.2\u9047\u5230\u5f02\u5e38\u9519\u8bef<\/p>\n<p id=\"3.%E5%85%B3%E6%9C%BA%E7%9A%84%E9%99%90%E6%97%B6%E5%85%B3%E9%97%AD-toc\" style=\"margin-left:40px\">3.\u5173\u673a\u7684\u9650\u65f6\u5173\u95ed<\/p>\n<p id=\"3.1%E7%AC%AC%E4%B8%80%E9%99%90%E6%97%B6-toc\" style=\"margin-left:80px\">3.1\u7b2c\u4e00\u9650\u65f6<\/p>\n<p id=\"3.1.1%E9%99%90%E6%97%B6%E5%86%85-toc\" style=\"margin-left:120px\">3.1.1\u9650\u65f6\u5185<\/p>\n<p id=\"3.1.2%E8%B6%85%E6%97%B6%E5%90%8E-toc\" style=\"margin-left:120px\">3.1.2\u8d85\u65f6\u540e<\/p>\n<p id=\"3.2%E7%AC%AC%E4%BA%8C%E4%B8%AA%E9%99%90%E6%97%B6-toc\" style=\"margin-left:80px\">3.2\u7b2c\u4e8c\u4e2a\u9650\u65f6<\/p>\n<p id=\"3.2.1%E9%99%90%E6%97%B6%E5%86%85-toc\" style=\"margin-left:120px\">3.2.1\u9650\u65f6\u5185<\/p>\n<p id=\"3.2.2%E8%B6%85%E6%97%B6%E5%90%8E-toc\" style=\"margin-left:120px\">3.2.2\u8d85\u65f6\u540e<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E9%9D%A0%E5%9B%9E%E5%BA%94%E9%AA%8C%E8%BF%9E%E6%8E%A5-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u9760\u56de\u5e94\u9a8c\u8fde\u63a5<\/p>\n<p id=\"1.%E7%BB%B4%E6%8A%A4%E4%B8%8D%E7%A1%AE%E6%95%88%E8%BF%9E%E6%8E%A5%E7%9A%84%E6%97%B6%E9%97%B4-toc\" style=\"margin-left:40px\">1.\u7ef4\u62a4\u4e0d\u786e\u6548\u8fde\u63a5\u7684\u65f6\u95f4<\/p>\n<p id=\"1.1%E6%97%A0%E6%95%88%E8%BF%9E%E6%8E%A5%E7%9A%84%E6%B5%AA%E8%B4%B9%E7%BB%B4%E6%8A%A4-toc\" style=\"margin-left:80px\">1.1\u65e0\u6548\u8fde\u63a5\u7684\u6d6a\u8d39\u7ef4\u62a4<\/p>\n<p id=\"1.1.1%E5%BC%82%E5%B8%B8%E6%97%B6%E6%9C%BA%E7%9A%84%E6%B5%AA%E8%B4%B9%E9%87%8F%E5%BD%B1%E5%93%8D-toc\" style=\"margin-left:120px\">1.1.1\u5f02\u5e38\u65f6\u673a\u7684\u6d6a\u8d39\u91cf\u5f71\u54cd<\/p>\n<p id=\"2.%E5%8F%91%E9%80%81%E9%A2%91%E7%8E%87-toc\" style=\"margin-left:40px\">2.\u53d1\u9001\u9891\u7387<\/p>\n<p id=\"2.1%E6%AD%A3%E5%B8%B8%E9%97%B4%E9%9A%94%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF-toc\" style=\"margin-left:80px\">2.1\u6b63\u5e38\u95f4\u9694\u53d1\u9001\u6d88\u606f<\/p>\n<p id=\"2.2%E9%97%B4%E9%9A%94%E5%BE%88%E4%B9%85%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF-toc\" style=\"margin-left:80px\">2.2\u95f4\u9694\u5f88\u4e45\u53d1\u9001\u6d88\u606f<\/p>\n<p id=\"2.2.1%E6%B5%AA%E7%BB%B4%E9%A3%8E%E9%99%A9-toc\" style=\"margin-left:120px\">2.2.1\u6d6a\u7ef4\u98ce\u9669<\/p>\n<p id=\"2.2.2%E5%BF%83%E8%B7%B3%E6%8E%AA%E6%96%BD-toc\" style=\"margin-left:120px\">2.2.2\u5fc3\u8df3\u63aa\u65bd<\/p>\n<p id=\"2.2.2.1%E4%BC%A0%E8%BE%93%E5%B1%82keepalive-toc\" style=\"margin-left:160px\">2.2.2.1\u4f20\u8f93\u5c42keepalive<\/p>\n<p id=\"2.2.2.1.1%E8%BF%87%E7%A8%8B-toc\" style=\"margin-left:200px\">2.2.2.1.1\u8fc7\u7a0b<\/p>\n<p id=\"2.2.2.1.2%E4%BD%9C%E7%94%A8-toc\" style=\"margin-left:200px\">2.2.2.1.2\u4f5c\u7528<\/p>\n<p id=\"2.2.2.1.3%E5%B1%80%E9%99%90-toc\" style=\"margin-left:200px\">2.2.2.1.3\u5c40\u9650<\/p>\n<p id=\"2.2.2.2%E5%BA%94%E7%94%A8%E5%B1%82%E5%BF%83%E8%B7%B3%E5%8C%85-toc\" style=\"margin-left:160px\">2.2.2.2\u5e94\u7528\u5c42\u5fc3\u8df3\u5305<\/p>\n<p id=\"2.2.2.2.1%E4%BC%98%E5%8A%BF-toc\" style=\"margin-left:200px\">2.2.2.2.1\u4f18\u52bf<\/p>\n<p id=\"2.2.2.2.2%E5%8A%A3%E5%8A%BF-toc\" style=\"margin-left:200px\">2.2.2.2.2\u52a3\u52bf<\/p>\n<p id=\"2.2.2.3%E5%BF%83%E8%B7%B3%E6%8A%96%E5%8A%A8jitter-toc\" style=\"margin-left:160px\">2.2.2.3\u5fc3\u8df3\u6296\u52a8jitter<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%E5%99%A8-toc\" style=\"margin-left:0px\">\u4e09\u3001\u8d1f\u8f7d\u5747\u8861\u5668<\/p>\n<p id=\"1.%E5%81%A5%E5%BA%B7%E6%A3%80%E6%9F%A5-toc\" style=\"margin-left:40px\">1.\u5065\u5eb7\u68c0\u67e5<\/p>\n<p id=\"1.1%E7%BB%8F%E5%8F%97%E5%B9%B2%E6%89%B0-toc\" style=\"margin-left:80px\">1.1\u7ecf\u53d7\u5e72\u6270<\/p>\n<p id=\"1.1.1%E5%B7%A5%E7%A8%8B%E5%B9%B3%E8%A1%A1-toc\" style=\"margin-left:120px\">1.1.1\u5de5\u7a0b\u5e73\u8861<\/p>\n<p id=\"2.%E9%80%89%E5%87%BA%E6%9C%8D%E5%8A%A1-toc\" style=\"margin-left:40px\">2.\u9009\u51fa\u670d\u52a1<\/p>\n<p id=\"3.%E6%9C%A8%E6%9D%BF%E8%B5%84%E6%BA%90%E7%93%B6%E9%A2%88-toc\" style=\"margin-left:40px\">3.\u6728\u677f\u8d44\u6e90\u74f6\u9888<\/p>\n<p id=\"4.%E5%AE%89%E5%85%A8%E9%87%8D%E4%BC%A0%E8%AF%B7%E6%B1%82-toc\" style=\"margin-left:40px\">4.\u5b89\u5168\u91cd\u4f20\u8bf7\u6c42<\/p>\n<p id=\"%E5%9B%9B%E3%80%81URG%E4%B8%8EPSH-toc\" style=\"margin-left:0px\">\u56db\u3001URG\u4e0ePSH<\/p>\n<p id=\"1.URG%3DUrgent-toc\" style=\"margin-left:40px\">1.URG&#061;Urgent<\/p>\n<p id=\"2.PSH%3DPush-toc\" style=\"margin-left:40px\">2.PSH&#061;Push<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E4%B8%80%E3%80%81%E8%B5%84%E6%BA%90%E4%BB%8E%E4%B8%8A%E5%BE%80%E4%B8%8B%E5%85%B3%E9%97%AD\" style=\"text-align:center\"><span style=\"color:#0d0016\">\u4e00\u3001\u8d44\u6e90\u4ece\u4e0a\u5f80\u4e0b\u5173\u95ed<\/span><\/h2>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"517\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061211-6acb28bbe9ce3.jpg\" width=\"450\" \/><\/p>\n<h3 id=\"1.%E5%BA%94%E7%94%A8%E5%B1%82Socket%E8%A7%86%E8%A7%92%E4%B8%8B%E7%9A%84%E5%85%B3%E9%97%AD\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.\u5e94\u7528\u5c42Socket\u89c6\u89d2\u4e0b\u7684\u5173\u95ed<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\">\u8fdb\u7a0b<span style=\"color:#0d0016\">Socket\u5bf9\u8c61\u662f\u91cc\u9762\u88c5\u5f15\u7528\u7684\u666e\u901a\u53d8\u91cf&#xff0c;\u6587\u4ef6\u63cf\u8ff0\u7b26\u3001\u5185\u6838Socket\u5bf9\u8c61\u662f\u5f15\u7528\u5bf9\u8c61\u53d8\u91cf<\/span><\/p>\n<h4 id=\"1.1Socket%E8%87%AA%E5%B7%B1%E5%85%B3%E9%97%AD%E6%97%B6%E7%94%A8%E7%9A%84API\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1Socket\u81ea\u5df1\u5173\u95ed\u65f6\u7528\u7684API<\/span><\/h4>\n<h5 id=\"1.1.1Socket.flush\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1.1Socket.flush<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">Socket.flush\u662f\u5e94\u7528\u5c42\u81ea\u5df1\u51b3\u5b9a,\u73b0\u5728\u4e00\u6b21\u628a\u6b64\u65f6\u7684\u5e94\u7528\u5c42\u7528\u6237\u6001\u7f13\u51b2\u533a\u91cc\u7684\u5168\u90e8\u6570\u636e,\u51b2\u5165\u5230\u4f20\u8f93\u5c42\u53d1\u9001\u7f13\u51b2\u533a\u91cc&#xff0c;\u8fdb\u884c\u5bf9,\u7528\u6237\u6001\u7f13\u51b2\u533a-&gt;\u53d1\u9001\u7f13\u51b2\u533a\u7684\u81ea\u7136\u6d41\u901f,\u5f53\u533a\u91cf\u8fc5\u901f\u53d1\u5b8c\u5730\u63d0\u901f<\/span><\/p>\n<hr \/>\n<h5 id=\"1.1.2Socket.close\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1.2Socket.close<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\">Socket.close<span style=\"color:#0d0016\">\u662f\u5e94\u7528\u5c42\u81ea\u5df1\u51b3\u5b9a \u73b0\u5728\u81ea\u5df1\u5173\u95edSocket\u5bf9\u8c61,\u653eFIN\u5212\u51fa\u8fd9\u6837\u7684\u53d1\u9001\u8fb9\u754c\u7684&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5904FIN\u524d&#xff1a;\u8fd8\u5728\u53d1\u9001\u7f13\u51b2\u533a\u91cc\u4e0e\u8fd8\u5728\u53d1\u9001\u5206\u6d41\u4e2d\u672a\u5230\u8fbe\u5bf9\u65b9\u6570\u636e\u4e3a\u9884\u5269\u53d1\u9001\u6570\u636e<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5904FIN\u540e&#xff1a;\u8fd8\u5728\u5e94\u7528\u5c42\u7528\u6237\u6001\u7f13\u51b2\u533a\u91cc\u7684\u6570\u636e\u6210\u9057\u5f03\u4e0d\u53d1\u6570\u636e<\/span><\/li>\n<hr \/>\n<h4 id=\"1.2%E8%BF%9B%E7%A8%8B%E5%B4%A9%E6%BA%83%E6%97%B6Socket%E8%A2%AB%E5%8A%A8%E7%9A%84%E5%85%B3%E9%97%AD\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.2\u8fdb\u7a0b\u5d29\u6e83\u65f6Socket\u88ab\u52a8\u7684\u5173\u95ed<\/span><\/h4>\n<h5 id=\"1.2.1%E6%97%A0%E6%8A%89%E8%BF%AB%E5%88%92%E5%BD%93%E7%8E%B0%E5%8F%91%E9%80%81%E8%BE%B9%E7%95%8C\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.2.1\u65e0\u6289\u8feb\u5212\u5f53\u73b0\u53d1\u9001\u8fb9\u754c<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8fdb\u7a0b\u5d29\u6e83,\u91cc\u9762\u7684\u5806\u533a\u6bc1\u6389,Socket\u53d8\u91cf\u4e00\u540c\u6bc1\u6ca1&#xff0c;\u4e0d\u6309\u81ea\u5df1\u6289\u62e9\u5730\u73b0\u5728\u5c31\u653eFIN\u5212\u5f53\u73b0\u53d1\u9001\u8fb9\u754c&#xff0c;\u5c31\u653e\u6f0f\u4e86 \u5904\u5728\u5f53\u73b0\u540e\u9762,\u6289\u62e9\u4e2d\u6709\u8fdb\u884c\u7684&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5e94\u7528\u5c42\u6570\u636e\u7684\u5f53\u540e\u518d\u66f4\u65b0<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5e94\u7528\u5c42\u5f80\u4f20\u8f93\u5c42\u5f53\u540e\u518d\u6d41\u8c03\u7684\u6570\u636e\u5206\u5e03<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5f53\u540e\u518d\u5212\u51fa,\u5728\u90a3\u65f6\u662f\u90a3\u6837\u7684\u81ea\u5df1\u9009\u62e9\u7684\u53d1\u9001\u8fb9\u754c<\/span><\/li>\n<hr \/>\n<h5 id=\"1.2.2%E6%97%A0%E5%BC%95%E7%94%A8%E5%90%8E%E9%81%87%E8%B5%B0%E9%87%8A%E6%94%BE%E6%B5%81%E7%A8%8B\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.2.2\u65e0\u5f15\u7528\u540e\u9047\u8d70\u91ca\u653e\u6d41\u7a0b<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">Socket\u53d8\u91cf\u6ca1\u4e86\u4e4b\u540e&#xff0c;\u5b83\u4e00\u5bf9\u4e00\u5bf9\u5e94\u7684\u6587\u4ef6\u63cf\u8ff0\u7b26\u5f15\u7528\u5bf9\u8c61\u4e5f\u6ca1\u4e86&#xff0c;\u7b49\u5230\u5185\u6838Socket\u5f15\u7528\u5bf9\u8c61\u5b83\u4e00\u5bf9\u591a\u7684\u6587\u4ef6\u63cf\u8ff0\u7b26\u5168\u90e8\u6ca1\u4e86,Socket\u5bf9\u8c61\u65e0\u5f15\u7528\u8fdb\u5165\u91ca\u653e\u6d41\u7a0b&#xff0c;\u9047\u5230\u8d70\u5176\u4e2d\u4e00\u4e2a&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4f20FIN\u8fdb\u884c\u56db\u6b21\u6325\u624b\u5730\u91ca\u653e<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4f20RST\u8fdb\u884c\u5f97\u77e5\u5c31\u4e2d\u6b62\u5730\u91ca\u653e<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u8d85\u65f6ACK\u8fdb\u884c\u5f02\u5e38\u5730\u5904\u7406<\/span><\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"2.%E4%BC%A0%E8%BE%93%E5%B1%82TCP%E8%BF%9E%E6%8E%A5%E8%A7%86%E8%A7%92%E4%B8%8B%E7%9A%84%E5%85%B3%E9%97%AD\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.\u4f20\u8f93\u5c42TCP\u8fde\u63a5\u89c6\u89d2\u4e0b\u7684\u5173\u95ed<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">TCP\u628a\u7ec8\u6b62\u5206\u6210&#xff1a;<\/span> <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"296\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061212-6acb28bc2b702.jpg\" width=\"274\" \/><\/p>\n<h4 id=\"2.1%E6%AD%A3%E5%B8%B8%E5%85%B3%E9%97%AD%E6%9C%BA%E5%88%B6\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1\u6b63\u5e38\u5173\u95ed\u673a\u5236<\/span><\/h4>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8c03\u7528close\u4f7f\u7528FIN\u62a5\u6587&#xff0c;\u5728\u8d70\u6325\u624b\u6d41\u7a0b&#xff0c;\u786e\u4fdd\u53d1\u9001\u6570\u636e\u5904\u7406\u5b8c\u5730\u6b63\u5e38\u5173\u95ed&#xff0c;\u89e3\u51b3\u7684\u662f&#034;\u8fd8\u80fd\u901a\u4fe1\u65f6&#xff0c;\u600e\u6837\u6709\u5e8f\u544a\u522b&#034;\u7684\u573a\u666f<\/span><\/p>\n<h5 id=\"2.1.1FIN%E6%8A%A5%E6%96%87\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.1FIN\u62a5\u6587<\/span><\/h5>\n<h6 id=\"2.1.1.1%E6%94%B6%E5%8F%91\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.1.1\u6536\u53d1<\/span><\/h6>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4f20\u8f93\u5c42&#xff1a;\u4f20\u8f93\u5c42\u5728\u8fde\u63a5\u6d41\u53d1\u9001,\u63a5\u6536FIN \u4f1a\u5173\u5212\u53d1\u6536\u901a\u9053\u7684<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5e94\u7528\u5c42&#xff1a;\u5e94\u7528\u5c42\u53d6\u5b8c\u63a5\u6536\u7f13\u51b2\u533a\u7684\u6240\u6709FIN\u524d\u6570\u636e\u540e\u5f97\u5230EOF<\/span><\/li>\n<hr \/>\n<h6 id=\"2.1.1.2%E5%88%86%E5%85%B3\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.1.2\u5206\u5173<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6bcf\u7aef\u7684\u53d1\u9001\u3001\u63a5\u6536\u6d41 \u662f\u5206\u5f00\u5730\u7ed3\u675f\u7684<\/span><\/p>\n<hr \/>\n<h6 id=\"2.1.1.3%E5%8F%AF%E9%9D%A0\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.1.3\u53ef\u9760<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">FIN\u662f\u53ef\u9760\u4f20\u8f93&#xff0c;\u5355\u6b21\u91cc\u53ef\u4ee5\u53d1\u591a\u4e2a,\u76f4\u5230\u786e\u8ba4\u5230\u8fbe<\/span><\/p>\n<hr \/>\n<h5 id=\"2.1.2%E5%85%88%E6%8C%A5%E6%96%B9%E6%9C%80%E5%90%8E%E4%B8%80%E4%B8%AAACK%E6%8A%A5%E6%96%87\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2\u5148\u6325\u65b9\u6700\u540e\u4e00\u4e2aACK\u62a5\u6587<\/span><\/h5>\n<h6 id=\"2.1.2.1%E6%8A%A5%E6%96%87%E7%9A%84%E7%A1%AE%E8%BE%BE%E4%B8%8D%E5%AE%9A\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.1\u62a5\u6587\u7684\u786e\u8fbe\u4e0d\u5b9a<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">&#039;<\/span><span style=\"color:#0d0016\">\u53bb\u786e\u5b9a\u62a5\u6587\u80fd\u5426\u5230\u8fbe&#039;\u672c\u8eab\u5c31\u662f\u65e0\u6cd5\u786e\u5b9a\u80fd\u5b8c\u6210\u7684\u4e8b&#xff0c;\u6240\u6709\u62a5\u6587\u7684\u786e\u8ba4&#xff0c;\u8981\u4e48\u6536\u5230ACK\u5c31\u80fd100%\u786e\u8ba4\u5230\u5b83\u5df2\u9001\u8fbe&#xff0c;\u8981\u4e48\u6536\u4e0d\u5230ACK\u5c31\u65e0\u6cd5\u786e\u8ba4\u5b83\u6709\u6ca1\u6709\u5230\u8fbe&#xff08;\u6ca1\u6709\u80fd100%\u786e\u8ba4\u5230\u5b83\u6ca1\u9001\u8fbe\u7684&#xff09;<\/span><\/p>\n<hr \/>\n<h6 id=\"2.1.2.2ACK%E7%9A%84%E5%8D%A0%E6%AF%94%E4%BF%9D%E9%9A%9C\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2ACK\u7684\u5360\u6bd4\u4fdd\u969c<\/span><\/h6>\n<h6 id=\"2.1.2.2.1%E6%96%B9%E5%BC%8F\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.1\u65b9\u5f0f<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.1.1TIME_WAIT\u7b49\u5f852MSL<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">TIME_WAIT-2MSL&#xff0c;\u9009\u62e9\u4fdd\u6301\u8fde\u63a5\u5148\u4e0d\u5173\u95ed\u548c\u4fdd\u6301\u7684\u65f6\u95f4\u662f2MSL&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u662f\u4e00\u79cd\u653e\u5f03\u4e86 \u53bb\u786e\u8ba4 ACK\u62a5\u6587\u7684,\u5982\u679c\u9001\u8fbe\u4e14\u80fd\u6536\u5230\u7684\u505c\u6b62\u6298\u817e\u4f9d\u636e<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u800c\u662f\u9009\u62e9\u4e3b\u52a8\u505c\u4e0b\u6298\u817e\u3001\u4ee5\u5f88\u5c0f\u7684\u6210\u672c\u3001\u540c\u6837\u5360&#034;\u5982\u679c\u80fd\u5230\u8fbe\u7684\u4fdd\u969c\u6bd4\u4f8b&#034;\u5f88\u5927\u5730\u6392\u6389\u4e86\u5076\u7136\u56e0\u7d20 \u5730\u53bb\u4fdd\u969c<\/span><\/li>\n<hr \/>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.1.2\u4f7f\u7528\u5176\u5b83\u62a5\u6587\u907f\u514d\u8bbe\u8ba1ACK\u9012\u5f52\u5730\u91cd\u4f20\u4fdd\u969c<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u786e\u8ba4ACK\u5230\u8fbe&#xff0c;\u5176\u5b9e\u4e5f\u53ef\u4ee5\u8bbe\u8ba1\u6210\u4e0d\u7528ACK\u62a5\u6587&#xff0c;\u7528\u522b\u7684\u62a5\u6587 \u518d\u6765\u4e00\u6b21\u62a5\u6587\u7684\u6709\u8d85\u65f6\u91cd\u4f20\u4fdd\u969c\u7684\u786e\u8ba4\u5230\u8fbe&#xff0c;\u5c31\u4e0d\u4f1a\u6709\u628aACK\u62a5\u6587\u8bbe\u8ba1\u6210\u9012\u5f52\u786e\u8ba4\u7684\u95ee\u9898&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u80fd\u5360&#034;\u5982\u679c\u80fd\u5230\u8fbe\u7684\u4fdd\u969c\u6bd4\u4f8b&#034;\u5f88\u5927<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4e14\u6839\u636e\u5982\u679cACK\u80fd\u5230\u8fbe\u7684\u4e14\u5982\u679c\u80fd\u786e\u8ba4\u5230\u4f9d\u636e\u800c\u505c\u6b62\u6298\u817e,\u5426\u5219\u7ee7\u7eed\u5f80\u4e0b\u6298\u817e\u5230\u8d85\u91cf\u624d\u505c\u6b62<\/span><\/li>\n<hr \/>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.1.3\u505a\u4ec5\u6b64ACK\u6709\u7684\u7279\u6b8a\u6807\u8bb0\u907fACK\u9012\u5f52\u5730\u91cd\u4f20<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6216\u8005\u5bf9\u5148\u6325\u65b9\u7684\u8fd9\u4e2a\u6700\u540e\u53d1\u7684ACK\u62a5\u6587\u505a\u7279\u6b8a\u6807\u8bb0\u5904\u7406&#xff0c;\u53ea\u8ba9\u5b83\u8fd9\u65f6\u7684ACK\u62a5\u6587\u53ef\u4ee5\u7ee7\u7eed\u6709ACK\u7684\u786e\u8ba4\u56de\u590d\u673a\u5236&#xff0c;\u7136\u540e\u4e5f\u662f\u80fd\u5bf9\u5b83\u8fdb\u884c\u591a\u6b21\u7684\u91cd\u4f20\u786e\u8ba4&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4e5f\u662f\u80fd\u5360&#034;\u5982\u679c\u80fd\u5230\u8fbe\u7684\u4fdd\u969c\u6bd4\u4f8b&#034;\u5f88\u5927\u5e76<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4e14\u4e5f\u6839\u636e\u5982\u679cACK\u80fd\u5230\u8fbe\u7684\u80fd\u786e\u8ba4\u5230\u7684\u4e14\u5982\u679c\u80fd\u786e\u8ba4\u5230\u4f9d\u636e\u800c\u505c\u6b62\u6298\u817e,\u5426\u5219\u7ee7\u7eed\u5f80\u4e0b\u6298\u817e\u5230\u8d85\u91cf\u624d\u505c\u6b62<\/span><\/li>\n<hr \/>\n<h6 id=\"2.1.2.2.2%E9%80%89%E6%8B%A9\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.2\u9009\u62e9<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">TCP\u534f\u8bae\u91cc\u9009\u62e9\u4e86\u4f7f\u7528TIME_WAIT\u7b49\u5f852MSL\u7684\u4fdd\u969c\u65b9\u5f0f&#xff0c;\u56e0\u4e3a\u989d\u5916\u7684\u8bbe\u8ba1\u5b9e\u73b0\u6210\u672c\u5c0f&#xff0c;\u5e76\u4e14\u6211\u65b9\u5c3d\u5f88\u5927&#034;\u5982\u679c\u80fd\u5230\u8fbe\u7684\u4fdd\u969c\u6bd4\u4f8b&#034;\u540e&#xff0c;\u6211\u65b9\u6ca1\u6709\u53bb\u4f9d\u636e,\u786e\u8ba4\u5230ACK\u9001\u8fbe\u540e\u518d\u505c\u6b62\u6298\u817e,\u800c\u662f\u4e3b\u52a8\u505c\u4e0b\u6298\u817e<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.2.1\u539f\u56e0<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u56e0\u4e3a\u5373\u4f7f\u5982\u679c\u5b83\u4e5f\u53bb\u786e\u8ba4\u5230\u8fbe\u4f9d\u636e&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5982\u679c\u786e\u8ba4\u9001\u8fbe\u4e86,\u662f\u505c\u6b62\u6298\u817e\u63a5\u7740\u53bb\u5355\u65ad<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5982\u679c\u6ca1\u6709\u786e\u8ba4\u5230\u9001\u8fbe&#xff0c;\u6b64\u65f6\u4e5f\u5df2\u7ecf\u5c3d\u5f88\u5927\u4fdd\u969c\u6bd4\u4f8b\u4e86&#xff1a;\u672c\u8eab\u5b83\u5982\u679c\u5230\u8fbe,\u80fd\u786e\u8ba4\u5230\u5b83\u5230\u8fbe\u672c\u8eab\u662f\u4e2a\u6982\u7387\u4e8b\u4ef6,\u800c\u4e14\u7ecf\u8fc7\u5f88\u5927\u4fdd\u969c\u6bd4\u4f8b\u540e\u90fd\u6ca1\u786e\u8ba4\u5230,\u5927\u6982\u7387\u540e\u9762\u4e5f\u662f\u65e0\u6cd5\u518d\u786e\u8ba4\u5230\u4e86,\u4f46\u6ca1\u6709\u6536\u5230\u4f9d\u636e\u5c31\u5f97\u7ee7\u7eed\u6298\u817e\u4e0b\u53bb\u5230\u8d85\u91cf\u3001\u800c\u4e14\u7ecf\u8fc7\u53d1\u9001\u5f88\u5927\u4fdd\u969c\u540e,\u5b83ACK\u5b9e\u9645\u7ed3\u679c\u80fd\u9001\u8fbe\u7684\u6982\u7387\u4e5f\u5f88\u5927\u4e86<\/span><\/li>\n<\/ul>\n<hr \/>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1.2.2.2.2\u6548\u679c<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u56e0\u6b64\u6b64\u65f6\u9009\u62e9\u4e3b\u52a8\u505c\u4e0b\u6298\u817e&#xff0c;\u4e0d\u4ee5\u786e\u8ba4ACK\u5230\u8fbe\u800c\u4f5c\u4e3a\u505c\u6b62\u4f9d\u636e \u800c\u9677\u5165\u66f4\u6df1\u7684,\u4ec5\u4e3a\u4e86\u6211\u65b9\u8981\u786e\u5b9a\u5230,\u800c\u5b9e\u9645\u53ef\u80fd\u5df2\u9001\u8fbe,\u5b9e\u9645\u4e0a\u5f88\u591a\u65f6\u5019\u6839\u672c\u65e0\u6cd5\u786e\u5b9a\u7684 \u8d85\u91cf\u6298\u817e&#xff0c;\u6b64\u65f6\u5c31\u5df2\u7ecf\u82b1\u8d39\u6700\u597d\u7684\u4fdd\u969c\u6210\u672c\u6548\u7387\u5730,\u53d6\u820d\u53ef\u80fd\u5bf9\u65b9\u786e\u5b9e\u6ca1\u6709\u6536\u5230ACK\u5730\u82b1\u8d39\u66f4\u5927\u5de8\u5927\u4ee3\u4ef7\u4fee\u590d\u5730,\u53bb\u5355\u65ad\u8fde\u63a5\u4e86<\/span><\/p>\n<hr \/>\n<h4 id=\"2.2%E5%BC%82%E5%B8%B8%E4%B8%AD%E6%AD%A2%E6%9C%BA%E5%88%B6\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2\u5f02\u5e38\u4e2d\u6b62\u673a\u5236<\/span><\/h4>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8c03\u7528abort\/reset\u4f7f\u7528RST\u62a5\u6587&#xff0c;\u4e0d\u8d70\u6325\u624b\u6d41\u7a0b&#xff0c;\u4e0d\u4fdd\u53d1\u9001\u6570\u636e\u6b63\u5e38\u5904\u7406\u5b8c\u5730,\u8fd9\u6761\u8fde\u63a5\u73b0\u5728\u7acb\u5373\u4f5c\u5e9f\u5730\u5f02\u5e38\u5173\u95ed&#xff0c;\u89e3\u51b3\u7684\u662f&#034;\u8fde\u63a5\u9700\u8981\u7acb\u5373\u4f5c\u5e9f&#034;\u7684\u573a\u666f<\/span><\/p>\n<h5 id=\"2.2.1RST%E6%8A%A5%E6%96%87\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1RST\u62a5\u6587<\/span><\/h5>\n<h6 id=\"2.2.1.1%E6%94%B6%E5%8F%91\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1.1\u6536\u53d1<\/span><\/h6>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4f20\u8f93\u5c42&#xff1a;\u4f20\u8f93\u5c42\u5728\u8fde\u63a5\u6d41\u53d1\u9001,\u63a5\u6536RST \u4f1a\u7acb\u5373\u4e2d\u6b62\u5355\u65ad\u8fde\u63a5\u7684<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5e94\u7528\u5c42&#xff1a;\u5f80\u4e0a\u7ed9\u5e94\u7528\u5c42\u62a5connection rest\u901a\u77e5<\/span><\/li>\n<hr \/>\n<h6 id=\"2.2.1.2%E5%B9%B6%E5%85%B3\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1.2\u5e76\u5173<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6bcf\u7aef\u7684\u53d1\u9001\u3001\u63a5\u6536\u6d41 \u662f\u4e00\u8d77\u5730\u7ed3\u675f\u7684<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.1.3%E4%B8%8D%E5%8F%AF%E9%9D%A0\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1.3\u4e0d\u53ef\u9760<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">RST\u662f\u4e0d\u53ef\u9760\u4f20\u8f93&#xff0c;\u5355\u6b21\u4e00\u4e2a\u5c31\u53d1\u5b8c,\u5c31\u8981\u5728\u4e0b\u6b21\u91cc\u518d\u53d1\u4e0b\u4e2a\u4e86<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.1.4%E5%8F%91%E9%80%81%E6%83%85%E5%86%B5\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1.4\u53d1\u9001\u60c5\u51b5<\/span><\/h6>\n<h6 id=\"2.2.1.4.1%E8%BF%9E%E6%8E%A5%E4%B8%8D%E5%AD%98%E5%9C%A8\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1.4.1\u8fde\u63a5\u4e0d\u5b58\u5728<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u4e3b\u673a\u5904\u4e8eCLOSE\u6216\u5904\u5728\u65b0\u5efa\u7684\u8fde\u63a5\u91cc\u65f6 \u6536\u5230 \u4e0d\u5728\u8be5\u8fde\u63a5\u7684\u522b\u7684\u8fde\u63a5\u91cc\u7684\u62a5\u6587\u65f6(\u5f88\u6709\u53ef\u80fd\u5c31\u662f,\u6211\u65b9\u4e0a\u4e00\u4e2a\u5df2\u7ecf\u5355\u65ad\u5f00\u7684\u65e7\u8fde\u63a5\u91cc\u7684,\u4e0d\u77e5\u60c5\u7684\u5bf9\u65b9,\u4ecd\u80fd\u7167\u7740\u6211\u65b9IP\u7aef\u53e3,\u53d1\u6765\u7684\u6d88\u606f)&#xff0c;\u6839\u636e\u6b64\u62a5\u6587\u7684\u6e90IP\u7aef\u53e3\u56db\u5143\u7ec4\u4fe1\u606f \u7ed9\u4ed6\u56de\u5e94RST,\u6211\u8fd9\u91cc\u6ca1\u6709\u4f60\u8fd9\u6761\u8fde\u63a5<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px;text-align:right\"><span style=\"color:#0d0016\">\u5bf9\u65b9\u6536\u5230RST\u540e \u4fbf\u4f1a\u6e05\u7406\u6389\u8fd9\u4e2a\u65e7\u7684,\u662f\u534a\u6253\u5f00\u7684\u8fde\u63a5\u72b6\u6001<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.1.4.2%E9%81%87%E5%88%B0%E5%BC%82%E5%B8%B8%E9%94%99%E8%AF%AF\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1.4.2\u9047\u5230\u5f02\u5e38\u9519\u8bef<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u7a0b\u5e8f\u6216\u8005\u5185\u6838\u51fa\u73b0\u9519\u8bef&#xff0c;\u53ef\u4ee5\u9009\u62e9:\u4e0d\u518d\u4fdd\u8bc1\u5269\u4f59\u6570\u636e\u6b63\u5e38\u4ea4\u4ed8,\u76f4\u63a5\u4e2d\u6b62\u5355\u65ad\u6211\u65b9\u8fde\u63a5 \u53d1\u9001RST<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px;text-align:right\"><span style=\"color:#0d0016\">\u5bf9\u65b9\u6536\u5230RST\u540e \u4e5f\u8ddf\u7740\u53bb\u5355\u7aef\u65ad\u5f00\u8fde\u63a5\u4e86<\/span><\/p>\n<hr \/>\n<h3 id=\"3.%E5%85%B3%E6%9C%BA%E7%9A%84%E9%99%90%E6%97%B6%E5%85%B3%E9%97%AD\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.\u5173\u673a\u7684\u9650\u65f6\u5173\u95ed<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5173\u673a\u65f6&#xff0c;<\/span><\/p>\n<h4 id=\"3.1%E7%AC%AC%E4%B8%80%E9%99%90%E6%97%B6\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.1\u7b2c\u4e00\u9650\u65f6<\/span><\/h4>\n<h5 id=\"3.1.1%E9%99%90%E6%97%B6%E5%86%85\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.1.1\u9650\u65f6\u5185<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5bf9\u5173\u95ed\u8fdb\u7a0bSocket\u9009\u5212\u8fb9\u754c\u9650\u7b2c\u4e00\u4e2a\u65f6&#xff1a;\u901a\u77e5\u8fdb\u7a0b,\u8ba9\u5b83\u81ea\u5df1\u9009\u5212\u53d1\u9001\u8fb9\u754c\u5730\u5173\u95ed<\/span><\/p>\n<hr \/>\n<h5 id=\"3.1.2%E8%B6%85%E6%97%B6%E5%90%8E\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.1.2\u8d85\u65f6\u540e<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8d85\u65f6\u540e\u5d29\u6e83\u8fdb\u7a0b,\u88ab\u52a8\u76f4\u63a5\u5212\u53d1\u9001\u8fb9\u754c\u5730\u5173\u95ed<\/span><\/p>\n<hr \/>\n<h4 id=\"3.2%E7%AC%AC%E4%BA%8C%E4%B8%AA%E9%99%90%E6%97%B6\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.2\u7b2c\u4e8c\u4e2a\u9650\u65f6<\/span><\/h4>\n<h5 id=\"3.2.1%E9%99%90%E6%97%B6%E5%86%85\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.2.1\u9650\u65f6\u5185<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5bf9\u5173\u95ed\u6587\u4ef6\u63cf\u8ff0\u7b26-&gt;\u5185\u6838Socket\u5bf9\u8c61-&gt;TCB\u91ca\u653e\u8fde\u63a5 \u9650\u7b2c\u4e8c\u4e2a\u65f6&#xff1a;\u8fdb\u7a0b\u5173\u95ed\u540e,\u6309\u5b83\u81ea\u5df1\u65ad\u5f00\u8fde\u63a5\u7684\u6d41\u7a0b&#xff0c;\u9047\u5230\u54ea\u79cd\u60c5\u51b5\u5c31\u5e94\u5bf9\u5730\u8fdb\u53bb\u5904\u7406<\/span><\/p>\n<hr \/>\n<h5 id=\"3.2.2%E8%B6%85%E6%97%B6%E5%90%8E\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.2.2\u8d85\u65f6\u540e<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8d85\u65f6\u540e\u8be5\u5355\u7aef\u4e3b\u673a\u65ad\u7535 \u5c31\u4f1a\u76f4\u63a5\u6ca1\u4e86\u91cc\u9762\u7684 \u6240\u6709\u8fdb\u7a0b\u3001\u4e00\u4e2a\u5185\u6838\u91cc\u9762\u7684:\u6587\u4ef6\u63cf\u8ff0\u7b26\u8868,TCP\u534f\u8bae\u6808\u53ca\u91cc\u9762\u7684TCB\u53ca\u7ef4\u62a4\u7684\u8fde\u63a5\u72b6\u6001<\/span><\/p>\n<hr \/>\n<h2 id=\"%E4%BA%8C%E3%80%81%E9%9D%A0%E5%9B%9E%E5%BA%94%E9%AA%8C%E8%BF%9E%E6%8E%A5\" style=\"margin-left:0px;margin-right:0px;text-align:center\"><span style=\"color:#0d0016\">\u4e8c\u3001\u9760\u56de\u5e94\u9a8c\u8fde\u63a5<\/span><\/h2>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6211\u65b9\u53d1\u9001\u6d88\u606f\u6536\u5230ACK\u56de\u5e94&#xff0c;\u8bf4\u660e&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6211\u65b9\u80fd\u6b63\u5e38\u53d1\u6d88\u606f<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6d88\u606f\u80fd\u8fc7\u53bb<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5bf9\u65b9\u80fd\u6b63\u5e38\u6536\u6d88\u606f<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5bf9\u65b9\u80fd\u6b63\u5e38\u53d1\u6d88\u606f<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6d88\u606f\u80fd\u8fc7\u6765<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6211\u65b9\u80fd\u6b63\u5e38\u6536\u6d88\u606f<\/span><\/li>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6211\u65b9\u5c31\u80fd\u68c0\u9a8c\u51fa\u6ca1\u6709\u5f02\u5e38&#xff0c;\u53cd\u4e4b\u6536\u4e0d\u5230ACK\u56de\u5e94\u5373\u68c0\u9a8c\u51fa\u6709\u5f02\u5e38<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u91cd\u4f20\u3001keepalive\u3001\u5e94\u7528\u5c42\u5fc3\u8df3&#xff0c;\u8fd9\u4e9b\u989d\u5916\u8865\u5145\u7684\u53d1\u9001\u6d88\u606f&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u91cd\u4f20\u662f\u6536\u4e0d\u5230\u56de\u5e94\u65f6 \u518d\u6b21\u8fdb\u4e00\u6b65\u7684\u8bd5\u63a2\u68c0\u9a8c<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5fc3\u8df3\u5305\u662f\u52a0\u901f\u5f00\u542f\u68c0\u9a8c \u8bd5\u63a2\u56de\u5e94\u5730 \u68c0\u9a8c\u8fde\u63a5\u53ef\u7528\u6027<\/span><\/li>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u7528\u4e8e\u201d\u6211\u65b9\u6839\u636e\u5bf9\u65b9\u56de\u5e94&#xff0c;\u63a8\u65ad\u8fde\u63a5\u80fd\u5426\u7528\u201d\u7684\u573a\u666f<\/span><\/p>\n<h3 id=\"1.%E7%BB%B4%E6%8A%A4%E4%B8%8D%E7%A1%AE%E6%95%88%E8%BF%9E%E6%8E%A5%E7%9A%84%E6%97%B6%E9%97%B4\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.\u7ef4\u62a4\u4e0d\u786e\u6548\u8fde\u63a5\u7684\u65f6\u95f4<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6211\u65b9 \u6536\u5230\u5bf9\u65b9ACK\u56de\u5e94\u6d88\u606f,\u7684\u63a5\u6536\u65f6\u95f4\u95f4\u9694&#xff0c;\u5c31\u662f\u6211\u65b9 \u4e0d\u786e\u5b9a\u8fde\u63a5\u662f\u5426\u6709\u6548\u65e0\u6548\u5730,\u7ef4\u62a4\u8fde\u63a5 \u7684\u65f6\u95f4<\/span><\/p>\n<h4 id=\"1.1%E6%97%A0%E6%95%88%E8%BF%9E%E6%8E%A5%E7%9A%84%E6%B5%AA%E8%B4%B9%E7%BB%B4%E6%8A%A4\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1\u65e0\u6548\u8fde\u63a5\u7684\u6d6a\u8d39\u7ef4\u62a4<\/span><\/h4>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5982\u679c\u8fde\u63a5\u65e0\u6548\u4e86(\u6bd4\u5982\u5bf9\u65b9\u6302\u4e86\/\u901a\u4fe1\u9053\u8def\u65ad\u4e86)&#xff0c;\u5c31\u4f1a\u5728 \u6700\u540e\u4e00\u6b21\u7684\u4e0d\u786e\u6548\u8fde\u63a5\u7ef4\u62a4\u65f6\u95f4\u6bb5\u91cc&#xff1a; \u4e0a\u4e00\u6b21\u6536\u5230ACK\u56de\u5e94\u5f80\u540e&#xff0c;\u4ece\u8fde\u63a5\u5f00\u59cb\u5931\u6548\u7684\u67d0\u8282\u70b9\u4f4d\u7f6e\u5f00\u59cb&#xff0c;\u76f4\u5230\u540e\u9762\u6211\u65b9\u53d1\u9001\u6d88\u606f,\u8bd5\u63a2\u56de\u5e94\u8d85\u65f6\u6536\u4e0d\u5230ACK,\u786e\u5b9a\u51fa\u8fde\u63a5\u5931\u6548\u7684\u7ef4\u62a4\u6bb5\u7ed3\u5c3e&#xff0c;\u90fd\u4f1a\u662f\u6211\u65b9\u6d6a\u8d39\u7684\u65e0\u6548\u8fde\u63a5\u7ef4\u62a4<\/span><\/p>\n<h5 id=\"1.1.1%E5%BC%82%E5%B8%B8%E6%97%B6%E6%9C%BA%E7%9A%84%E6%B5%AA%E8%B4%B9%E9%87%8F%E5%BD%B1%E5%93%8D\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1.1\u5f02\u5e38\u65f6\u673a\u7684\u6d6a\u8d39\u91cf\u5f71\u54cd<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5f02\u5e38\u51fa\u73b0\u4f4d\u7f6e\u662f\u65e0\u6cd5\u63a7\u5236\u5e72\u9884\u7684&#xff0c;\u5f02\u5e38\u53ef\u51fa\u73b0\u5728 \u4e0a\u6b21\u6536\u5230\u5bf9\u65b9ACK\u56de\u5e94\u7684,\u4e0d\u786e\u6548\u7ef4\u62a4\u8fde\u63a5\u6bb5\u5934 \u5230 \u6700\u540e\u53d1\u9001\u6d88\u606f\u540e\u8d85\u65f6\u6536\u4e0d\u5230ACK\u56de\u5e94\u7684,\u786e\u65e0\u6548\u8fde\u63a5\u6bb5\u5c3e \u7684\u4efb\u610f\u4f4d\u7f6e&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5982\u679c\u51fa\u73b0\u5f97\u9760\u524d,\u90a3\u4e48\u6d6a\u8d39\u7ef4\u62a4\u7684\u65f6\u95f4\u6bb5\u5c31\u5927<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5982\u679c\u51fa\u73b0\u5f97\u9760\u540e,\u90a3\u4e48\u6d6a\u8d39\u7ef4\u62a4\u7684\u65f6\u95f4\u6bb5\u5c31\u5c0f<\/span><\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"2.%E5%8F%91%E9%80%81%E9%A2%91%E7%8E%87\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.\u53d1\u9001\u9891\u7387<\/span><\/h3>\n<h4 id=\"2.1%E6%AD%A3%E5%B8%B8%E9%97%B4%E9%9A%94%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.1\u6b63\u5e38\u95f4\u9694\u53d1\u9001\u6d88\u606f<\/span><\/h4>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5982\u679c\u4e00\u65b9 \u662f\u6b63\u5e38\u9891\u7387\u53d1\u9001\u6d88\u606f,\u5c31\u662f\u6b63\u5e38\u95f4\u9694\u5730\u8bd5\u63a2\u56de\u5e94\u68c0\u9a8c\u5f02\u5e38&#xff0c;\u90a3\u4e48&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5b83\u7684\u4e0d\u786e\u6548\u7ef4\u62a4\u65f6\u95f4\u4f1a\u6b63\u5e38<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6d6a\u8d39\u6bb5\u7b49\u6bd4\u4f8b\u4f4d\u7f6e\u51fa\u73b0,\u4f46\u5360\u7684\u603b\u6bb5\u5c0f,\u6d6a\u8d39\u7684\u98ce\u9669\u6210\u672c\u5c0f<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5f02\u5e38\u68c0\u6d4b\u7684\u95f4\u9694\u53ca\u65f6\u6027\u4e5f\u6b63\u5e38<\/span><\/li>\n<hr \/>\n<h4 id=\"2.2%E9%97%B4%E9%9A%94%E5%BE%88%E4%B9%85%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2\u95f4\u9694\u5f88\u4e45\u53d1\u9001\u6d88\u606f<\/span><\/h4>\n<h5 id=\"2.2.1%E6%B5%AA%E7%BB%B4%E9%A3%8E%E9%99%A9\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.1\u6d6a\u7ef4\u98ce\u9669<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5982\u679c\u4e00\u65b9\u95f4\u9694\u5f88\u4e45\u624d\u53d1\u9001\u6d88\u606f&#xff0c;\u90a3\u4e48\u4ece\u5b83\u4e0a\u4e00\u6b21\u6536\u5230ACK \u76f4\u5230\u5b83\u8fc7\u5b8c\u8d85\u957f\u65f6\u95f4\u95f4\u9694,\u4e0b\u6b21\u53d1\u9001\u6d88\u606f\u8bd5\u63a2ACK\u56de\u5e94&#xff1a;<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u90fd\u662f\u5b83\u4e0d\u786e\u6548\u7ef4\u62a4\u7684\u8d85\u957f\u65f6\u95f4<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5982\u679c\u6709\u5f02\u5e38,\u5728\u8fd9\u4e48\u957f\u6bb5\u7684\u4efb\u610f\u4f4d\u7f6e\u51fa\u73b0,\u51fa\u73b0\u4f4d\u7f6e\u5f80\u540e\u6240\u5360\u6bd4\u4f8b\u90fd\u8fd8\u662f\u968f\u673a\u4e0d\u53d8\u7684,\u4f46\u603b\u6bb5\u53d8\u957f\u4e86,\u4e0d\u786e\u6548\u7ef4\u62a4\u6bb5\u2191*\u4e0d\u53d8\u6bd4\u4f8b,\u5bf9\u5e94\u7684\u6d6a\u8d39\u65f6\u95f4\u7684\u98ce\u9669\u6210\u672c\u662f\u53d8\u5927\u7684<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5f02\u5e38\u68c0\u67e5\u7684\u95f4\u9694\u53ca\u65f6\u6027\u662f\u7279\u522b\u665a\u7684<\/span><\/li>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">&#xff08;\u800c\u5982\u679c\u51fa\u73b0\u5f02\u5e38&#xff0c;\u5bf9\u65b9\u6b63\u5e38\u9891\u7387\u53d1\u9001\u6d88\u606f\u7684\u8bdd&#xff0c;\u5f88\u5feb\u5c31\u53d1\u73b0\u6536\u4e0d\u5230\u56de\u590d&#xff0c;\u65e9\u65e9\u68c0\u6d4b\u5230\u5f02\u5e38\u5355\u65ad\u4e86&#xff0c;\u5f88\u5feb\u68c0\u6d4b\u51fa\u6709\u5f02\u5e38\u3001\u4e0d\u786e\u6548\u7ef4\u62a4\u7684\u65f6\u95f4\u77ed\u3001\u4e0d\u786e\u6548\u603b\u957f\u77ed,\u7b49\u5360\u4f8b\u51fa\u73b0\u7684\u6d6a\u8d39\u7ef4\u62a4\u98ce\u9669\u6210\u672c\u5c0f&#xff1b;\u800c\u5982\u679c\u5bf9\u65b9\u4e5f\u4e00\u6837\u95f4\u9694\u5f88\u4e45\u5730\u53d1\u6d88\u606f&#xff0c;\u90a3\u4e48\u53cc\u65b9\u4e00\u8d77*2&#xff09;<\/span><\/p>\n<hr \/>\n<h5 id=\"2.2.2%E5%BF%83%E8%B7%B3%E6%8E%AA%E6%96%BD\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2\u5fc3\u8df3\u63aa\u65bd<\/span><\/h5>\n<h6 id=\"2.2.2.1%E4%BC%A0%E8%BE%93%E5%B1%82keepalive\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1\u4f20\u8f93\u5c42keepalive<\/span><\/h6>\n<p><span style=\"color:#0d0016\">\u5bf9\u4e8e\u4f1a\u95f4\u9694\u5f88\u4e45\u53d1\u9001\u6d88\u606f\u7684\u8fd9\u7aef&#xff0c;\u5e38\u5e38\u4f1a\u624b\u52a8\u914d\u7f6e\u4e0a\u4f20\u8f93\u5c42\u7684keepalive\u5fc3\u8df3,\u4fdd\u969c\u56de\u5e94\u68c0\u6d4b&#xff1a;<\/span><\/p>\n<h6 id=\"2.2.2.1.1%E8%BF%87%E7%A8%8B\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1.1\u8fc7\u7a0b<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5f53\u9694\u8fc7keepalive idle&gt;&#061;2h\u65f6\u95f4\u6ca1\u53d1\u9001\u6d88\u606f\u540e&#xff0c;\u5c31\u5728\u4f20\u8f93\u5c42\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u5236\u4f5ckeepalive probe\u5fc3\u8df3\u5305,\u4f7f\u7528\u4e00\u4e2a\u7279\u6b8a\u5e8f\u53f7SEQ&#061;SND.NXT-1&#xff0c;\u4ece\u6211\u7aef\u4f20\u8f93\u5c42\u5f80\u4e0b\u5c01\u88c5\u53d1\u9001,\u4f20\u5230\u5bf9\u7aef\u63a5\u6536\u5f80\u4e0a\u5206\u7528,\u5728\u4f20\u8f93\u5c42\u5c31\u7531\u64cd\u4f5c\u7cfb\u7edf\u5904\u7406\u5b8c\u5730,\u4ece\u524d\u5f80\u540e\u68c0\u67e5\u5230\u5f53\u524d\u8fde\u7eed\u524d\u7f00\u5230\u7684\u5e8f\u53f7,\u5c31\u5f80\u4e0b\u5c01\u88c5\u56de\u590dACK\u56de\u5e94\u4e86<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.2.1.2%E4%BD%9C%E7%94%A8\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1.2\u4f5c\u7528<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5c31\u4fdd\u969c\u4e86\u53d1\u9001\u6d88\u606f\u6700\u5927keepalive idle\u95f4\u9694\u540e\u81f3\u5c11\u6709\u53d1\u6d88\u606f&#xff0c;\u9650\u4e0b\u4e86 \u53d1\u9001\u6d88\u606f\u7684\u6700\u5927\u65f6\u95f4\u95f4\u9694\u3001\u4e0d\u786e\u6548\u7ef4\u62a4\u7684\u6700\u5927\u65f6\u95f4\u3001\u5f02\u5e38\u68c0\u6d4b\u7684\u6700\u5927\u95f4\u9694\u65f6\u95f4<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.2.1.3%E5%B1%80%E9%99%90\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1.3\u5c40\u9650<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1.3.1\u5185\u5bb9\u5c11<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u53ea\u80fd\u63a2\u6d4b\u5230 \u5bf9\u65b9\u4f20\u8f93\u5c42&lt;-&gt;\u6211\u65b9\u4f20\u8f93\u5c42\u7684,TCP\u8fde\u63a5\u662f\u5065\u5eb7\u7684<\/span><\/p>\n<hr \/>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1.3.2\u53d7\u5e72\u6270<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u4f20\u8f93\u5c42\u5f80\u4e0b\u4f1a\u53d7\u5230<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u81ea\u5df1\u4f20\u8f93\u5c42\u7684\u6574\u53f0\u673a\u5668CPU\u4e25\u91cd\u9971\u548c\u5185\u6838\u5361\u987f<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5f80\u4e0b\u5e95\u5c42\u7684\u7f51\u5361\u961f\u5217\u62e5\u585e\u3001\u7f51\u7edc\u62e5\u5835<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u7684\u53ef\u80fd\u53d8\u4e3a\u957f\u671f\u5f02\u5e38\u5931\u6548\u7684\u4e34\u65f6\u72b6\u51b5\u6296\u52a8<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u56e0\u6b64\u8981\u68c0\u6d4b\u5230\u8d85\u65f6\u591a\u6b21 \u624d\u5c11\u8bef\u5224\u51fa \u975e\u4e34\u65f6\u72b6\u51b5,\u800c\u662f\u957f\u671f\u5931\u6548\u7684\u5f02\u5e38<\/span><\/p>\n<hr \/>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.1.3.3\u95f4\u9694\u957f<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u4fdd\u969c\u81f3\u5c11\u6709\u53d1\u7684,\u7ef4\u62a4\u63a2\u6d4b\u95f4\u9694\u65f6\u95f4\u592a\u957f&#xff1a;Keepalive&gt;&#061;2h<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.2.2%E5%BA%94%E7%94%A8%E5%B1%82%E5%BF%83%E8%B7%B3%E5%8C%85\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.2\u5e94\u7528\u5c42\u5fc3\u8df3\u5305<\/span><\/h6>\n<h6 id=\"2.2.2.2.1%E4%BC%98%E5%8A%BF\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.2.1\u4f18\u52bf<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.2.1.1\u81ea\u5b9a\u4e49\u77ed\u95f4\u9694<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5728\u6211\u65b9\u5e94\u7528\u5c42\u5236\u4f5c\u7684PING\/PONG\/GET health\u5fc3\u8df3\u5305&#xff0c;\u80fd\u6839\u636e\u5b9e\u9645\u5982\u679c\u9700\u8981\u66f4\u5feb\u7684\u5f02\u5e38\u68c0\u6d4b\u9891\u7387,\u5c31\u81ea\u5b9a\u4e49\u5730\u7f29\u77ed\u5e94\u7528\u5c42\u5fc3\u8df3\u63a2\u6d4b\u53d1\u9001\u7684\u95f4\u9694\u65f6\u95f4<\/span><\/p>\n<hr \/>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.2.1.2\u68c0\u6d4b\u5185\u5bb9\u66f4\u591a<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u80fd\u6d4b\u5b8c\u6574 \u6211\u65b9\u5e94\u7528\u5c42\u53d1&lt;-&gt;\u5bf9\u65b9\u5e94\u7528\u5c42\u6536 \u4e0d\u4ec5\u4f20\u8f93\u5c42\u8fde\u63a5,\u8fd8\u5305\u62ec\u4e86\u5e94\u7528\u5c42\u7684\u670d\u52a1\u5065\u5eb7&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u8fdb\u7a0b\u8fd8\u5728<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5e94\u7528\u7ebf\u7a0b\u8fd8\u80fd\u5904\u7406\u8bf7\u6c42<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">HTTP\u670d\u52a1\u6b63\u5e38<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6570\u636e\u5e93\u8fde\u63a5\u53ef\u80fd\u6b63\u5e38<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4f9d\u8d56\u670d\u52a1\u53ef\u80fd\u6b63\u5e38<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u66f4\u6df1\u5c42\u7ea7\u5730\u68c0\u6d4b\u5230\u6574\u4e2aJava\u670d\u52a1\u903b\u8f91\u7684\u5065\u5eb7<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.2.2.2%E5%8A%A3%E5%8A%BF\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.2.2\u52a3\u52bf<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.2.2.1\u53d7\u5230\u7684\u5e72\u6270\u66f4\u591a<\/span><\/p>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5e94\u7528\u5c42\u7684ping,\u5f80\u4e0b\u53d7\u5230\u4f20\u8f93\u5c42\u5230\u5e95\u5c42\u7684\u4e34\u65f6\u72b6\u51b5\u6296\u52a8\u5916,\u8fd8\u989d\u5916\u6709\u53d7\u5230\u81ea\u5df1\u5e94\u7528\u5c42\u7684\u4e34\u65f6\u72b6\u51b5\u6296\u52a8: \u7ebf\u7a0b\u8c03\u5ea6 \u4e8b\u4ef6\u5faa\u73af\u5361\u4f4f CPU\u8fc7\u8f7d \u9501\u7ade\u4e89 \u56e0\u6b64\u8981ping\u66f4\u591a\u6b21\u8d85\u65f6\u5931\u8d25&#xff0c;\u624d\u4f1a\u66f4\u5c11\u8bef\u5224\u51fa\u662f\u957f\u4e45\u6027\u4e0d\u4f1a\u81ea\u5df1\u6062\u590d\u7684\u5931\u6548\u5f02\u5e38,\u6807\u8bb0unhealthy<\/span><\/p>\n<hr \/>\n<h6 id=\"2.2.2.3%E5%BF%83%E8%B7%B3%E6%8A%96%E5%8A%A8jitter\" style=\"background-color:transparent;margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.2.2.3\u5fc3\u8df3\u6296\u52a8jitter<\/span><\/h6>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5fc3\u8df3\u5305\u5de5\u7a0b\u4e0a \u4f1a\u52a0\u4e00\u70b9\u968f\u673a\u6296\u52a8jitter,\u6253\u6563\u6240\u6709\u673a\u5668\u7684\u5fc3\u8df3\u65f6\u95f4,\u907f\u5f00\u5168\u90e8\u90fd\u540c\u4e00\u65f6\u523b\u5fc3\u8df3\u4ea7\u751f\u7684\u77ac\u95f4\u6d41\u91cf\u5c16\u5cf0<\/span><\/p>\n<hr \/>\n<h2 id=\"%E4%B8%89%E3%80%81%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%E5%99%A8\" style=\"margin-left:0px;margin-right:0px;text-align:center\"><span style=\"color:#0d0016\">\u4e09\u3001\u8d1f\u8f7d\u5747\u8861\u5668<\/span><\/h2>\n<p style=\"margin-left:0px;margin-right:0px;text-align:center\">\u8d1f\u8f7d\u5747\u8861\u5668\u5bf9\u540e\u7aef\u670d\u52a1\u5668<span style=\"color:#0d0016\">\u8fdb\u884c&#xff1a;<\/span><\/p>\n<h3 id=\"1.%E5%81%A5%E5%BA%B7%E6%A3%80%E6%9F%A5\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.\u5065\u5eb7\u68c0\u67e5<\/span><\/h3>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">TCP\u8fde\u63a5\u68c0\u67e5<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">HTTP GET \/health<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">HTTPS\u68c0\u67e5<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">gRPC health check<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u81ea\u5b9a\u4e49ping\/pong<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u88ab\u52a8\u89c2\u5bdf\u8bf7\u6c42\u9519\u8bef\u7387<\/span><\/li>\n<\/ul>\n<h4 id=\"1.1%E7%BB%8F%E5%8F%97%E5%B9%B2%E6%89%B0\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1\u7ecf\u53d7\u5e72\u6270<\/span><\/h4>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u5065\u5eb7\u68c0\u67e5\u8981\u7ecf\u5f97\u4f4f \u968f\u673a\u4e34\u65f6\u7684\u72b6\u51b5\u6296\u52a8&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5076\u5c14\u4e00\u6b21\u7f51\u7edc\u6296\u52a8<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">GC 5md<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u8c03\u5ea6\u5ef6\u8fdf<\/span><\/li>\n<\/ul>\n<h5 id=\"1.1.1%E5%B7%A5%E7%A8%8B%E5%B9%B3%E8%A1%A1\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.1.1\u5de5\u7a0b\u5e73\u8861<\/span><\/h5>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8981\u5bb9\u7eb3\u8010\u53d7\u5728,\u6301\u4e45\u65e0\u6cd5\u81ea\u6062\u590d\u7684\u5f02\u5e38,\u5224\u65ad\u4e4b\u5916&#xff0c;\u5de5\u7a0b\u4e0a\u5e73\u8861&#xff1a; \u68c0\u6d4b\u8d8a\u5feb \u2193 \u867d\u6545\u969c\u6062\u590d\u8d8a\u5feb&#xff0c; \u4f46\u8bef\u5224\u6982\u7387\u8d8a\u5927\u3001\u5f00\u9500\u8d8a\u5927  \u68c0\u6d4b\u8d8a\u6162 \u2193 \u867d\u8bef\u5224\u5c11\u3001\u5f00\u9500\u5c0f&#xff0c; \u4f46\u6545\u969c\u53d1\u73b0\u6162<\/span><\/p>\n<hr \/>\n<h3 id=\"2.%E9%80%89%E5%87%BA%E6%9C%8D%E5%8A%A1\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.\u9009\u51fa\u670d\u52a1<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u7528\u7b97\u6cd5&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\">\u52a0\u6743\u8f6e\u8be2<\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">Least Connection<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">Least Requests<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5ef6\u8fdf\u4f18\u5148<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4e00\u81f4\u6027\u54c8\u5e0c<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u8d44\u6e90\u8d1f\u8f7d<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">EWMA\u5ef6\u8fdf<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u9009\u51fa\u4e00\u4e2a\u5065\u5eb7\u540e\u7aef\u670d\u52a1\u5668\u5904\u7406\u8bf7\u6c42<\/span><\/p>\n<hr \/>\n<h3 id=\"3.%E6%9C%A8%E6%9D%BF%E8%B5%84%E6%BA%90%E7%93%B6%E9%A2%88\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">3.\u6728\u677f\u8d44\u6e90\u74f6\u9888<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\">\u7cfb\u7edf\u541e\u5410\u91cf\u4f1a\u53d7\u6700\u5148\u8017\u5c3d\u7684\u74f6\u9888\u8d44\u6e90<span style=\"color:#0d0016\">min(<\/span><\/p>\n<li style=\"margin-left: 0px;margin-right: 0px\">CPU\u7684\u65f6\u95f4\u5360\u7528\u7387,<\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u7f51\u7edc\u901f\u7387,<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u5185\u5b58\u5bb9\u91cf,<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u7ebf\u7a0b\u963b\u585e,<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u6570\u636e\u5e93\u6027\u80fd,<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u8fde\u63a5\u6c60\u5bb9\u91cf<\/span><\/li>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">)\u9650\u5236<\/span><\/p>\n<hr \/>\n<h3 id=\"4.%E5%AE%89%E5%85%A8%E9%87%8D%E4%BC%A0%E8%AF%B7%E6%B1%82\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">4.\u5b89\u5168\u91cd\u4f20\u8bf7\u6c42<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u8bf7\u6c42\u6ca1\u6709\u5f97\u5230ACK\u56de\u590d&#xff0c;\u5c31\u65e0\u6cd5\u76f4\u63a5\u5730\u786e\u5b9a\u51fa\u8bf7\u6c42\u662f\u5426\u5230\u8fbe&#xff0c;\u6b64\u65f6\u5982\u679c\u76f4\u63a5\u91cd\u4f20\u8bf7\u6c42\u5c31\u6709\u53ef\u80fd\u9020\u6210\u91cd\u590d\u9001\u8fbe&#xff0c;\u6709\u5b9e\u9645\u4e1a\u52a1\u7684\u771f\u5b9e\u7cfb\u7edf\u4f1a\u53d7\u5230&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left: 0px;margin-right: 0px\">\u5e42\u7b49\u6027<\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">request ID<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u53bb\u91cd<\/span><\/li>\n<li style=\"margin-left: 0px;margin-right: 0px\"><span style=\"color:#0d0016\">\u4e8b\u52a1\u8bbe\u8ba1<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u6765\u8fdb\u884c\u5b89\u5168\u7684\u91cd\u4f20<\/span><\/p>\n<hr \/>\n<h2 id=\"%E5%9B%9B%E3%80%81URG%E4%B8%8EPSH\" style=\"margin-left:0px;margin-right:0px;text-align:center\"><span style=\"color:#0d0016\">\u56db\u3001URG\u4e0ePSH<\/span><\/h2>\n<h3 id=\"1.URG%3DUrgent\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">1.URG&#061;Urgent<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u4f20\u8f93\u5c42&#xff1a;\u6b63\u5e38TCP\u5b57\u8282\u6d41\u91cc\u6807\u51fa\u7d27\u6025\u4fe1\u606f\u6bb5\u7684\u59cb\u8fb9\u754c&#xff0c;\u7528Urgent Pointera\u6307\u51fa\u7d27\u6025\u59cb\u8fb9\u754c\u6b63\u504f\u79fb\u91cf\u540e\u7684\u672b\u8fb9\u754c<\/span> \u5e94\u7528\u5c42&#xff1a;\u4f20\u8f93\u5c42<span style=\"color:#0d0016\">TCP\u4f1a\u901a\u77e5\u63a5\u6536\u7684\u5e94\u7528\u5c42,\u5f53\u524d\u6570\u636e\u6d41\u4e2d\u5b58\u5728\u7d27\u6025\u4fe1\u606f&#xff0c;\u5e94\u7528\u53ef\u4ee5\u7528socket API\u5bf9\u5b83\u91c7\u53d6\u7279\u6b8a\u5904\u7406<\/span><\/p>\n<hr \/>\n<h3 id=\"2.PSH%3DPush\" style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">2.PSH&#061;Push<\/span><\/h3>\n<p style=\"margin-left:0px;margin-right:0px\"><span style=\"color:#0d0016\">\u4f20\u8f93\u5c42&#xff1a;\u7528\u4e8e\u53d1\u9001\u65b9\u63d0\u793a\u63a5\u6536TCP:\u8fd9\u4e9b\u5df2\u7ecf\u5230\u8fbe\u63a5\u6536\u7f13\u51b2\u533a\u7684\u6570\u636e,\u4e0d\u8981\u4e3a\u4e86\u51d1\u66f4\u591a\u5b57\u8282\u800c\u957f\u65f6\u95f4\u7f13\u51b2&#xff0c;\u5e94\u5c3d\u5feb\u628a\u5b83\u4eec\u4ea4\u4ed8\u7ed9\u5e94\u7528\u5c42<\/span><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"468\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061212-6acb28bc3fba6.gif\" width=\"834\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55<br \/>\n\u4e00\u3001\u8d44\u6e90\u4ece\u4e0a\u5f80\u4e0b\u5173\u95ed<br \/>\n1.\u5e94\u7528\u5c42Socket\u89c6\u89d2\u4e0b\u7684\u5173\u95ed<br \/>\n1.1Socket\u81ea\u5df1\u5173\u95ed\u65f6\u7528\u7684API<br \/>\n1.1.1Socket.flush<br \/>\n1.1.2Socket.close<br \/>\n1.2\u8fdb\u7a0b\u5d29\u6e83\u65f6Socket\u88ab\u52a8\u7684\u5173\u95ed<br \/>\n1.2.1\u65e0\u6289\u8feb\u5212\u5f53\u73b0\u53d1\u9001\u8fb9\u754c<br \/>\n1.2.2\u65e0\u5f15\u7528\u540e\u9047\u8d70\u91ca\u653e\u6d41\u7a0b<br \/>\n2.\u4f20\u8f93\u5c42TCP\u8fde\u63a5\u89c6\u89d2\u4e0b\u7684\u5173\u95ed<br \/>\n2.1\u6b63\u5e38\u5173\u95ed\u673a\u5236<br \/>\n2.1.1FIN\u62a5\u6587<br \/>\n2.1.1.1\u6536\u53d1<br \/>\n2.1.1.2\u5206\u5173<br \/>\n2.1.1.3\u53ef\u9760<br \/>\n2.1.2\u5148\u6325\u65b9\u6700\u540e\u4e00\u4e2aACK<\/p>\n","protected":false},"author":2,"featured_media":115204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[970,78],"topic":[],"class_list":["post-115210","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-tcp","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/115210.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55 \u4e00\u3001\u8d44\u6e90\u4ece\u4e0a\u5f80\u4e0b\u5173\u95ed 1.\u5e94\u7528\u5c42Socket\u89c6\u89d2\u4e0b\u7684\u5173\u95ed 1.1Socket\u81ea\u5df1\u5173\u95ed\u65f6\u7528\u7684API 1.1.1Socket.flush 1.1.2Socket.close 1.2\u8fdb\u7a0b\u5d29\u6e83\u65f6Socket\u88ab\u52a8\u7684\u5173\u95ed 1.2.1\u65e0\u6289\u8feb\u5212\u5f53\u73b0\u53d1\u9001\u8fb9\u754c 1.2.2\u65e0\u5f15\u7528\u540e\u9047\u8d70\u91ca\u653e\u6d41\u7a0b 2.\u4f20\u8f93\u5c42TCP\u8fde\u63a5\u89c6\u89d2\u4e0b\u7684\u5173\u95ed 2.1\u6b63\u5e38\u5173\u95ed\u673a\u5236 2.1.1FIN\u62a5\u6587 2.1.1.1\u6536\u53d1 2.1.1.2\u5206\u5173 2.1.1.3\u53ef\u9760 2.1.2\u5148\u6325\u65b9\u6700\u540e\u4e00\u4e2aACK\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115210.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-11T06:12:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061209-6acb28b997255.gif\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115210.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115210.html\",\"name\":\"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-11T06:12:13+00:00\",\"dateModified\":\"2026-10-11T06:12:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115210.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115210.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115210.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/115210.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55 \u4e00\u3001\u8d44\u6e90\u4ece\u4e0a\u5f80\u4e0b\u5173\u95ed 1.\u5e94\u7528\u5c42Socket\u89c6\u89d2\u4e0b\u7684\u5173\u95ed 1.1Socket\u81ea\u5df1\u5173\u95ed\u65f6\u7528\u7684API 1.1.1Socket.flush 1.1.2Socket.close 1.2\u8fdb\u7a0b\u5d29\u6e83\u65f6Socket\u88ab\u52a8\u7684\u5173\u95ed 1.2.1\u65e0\u6289\u8feb\u5212\u5f53\u73b0\u53d1\u9001\u8fb9\u754c 1.2.2\u65e0\u5f15\u7528\u540e\u9047\u8d70\u91ca\u653e\u6d41\u7a0b 2.\u4f20\u8f93\u5c42TCP\u8fde\u63a5\u89c6\u89d2\u4e0b\u7684\u5173\u95ed 2.1\u6b63\u5e38\u5173\u95ed\u673a\u5236 2.1.1FIN\u62a5\u6587 2.1.1.1\u6536\u53d1 2.1.1.2\u5206\u5173 2.1.1.3\u53ef\u9760 2.1.2\u5148\u6325\u65b9\u6700\u540e\u4e00\u4e2aACK","og_url":"https:\/\/www.wsisp.com\/helps\/115210.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-11T06:12:13+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011061209-6acb28b997255.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115210.html","url":"https:\/\/www.wsisp.com\/helps\/115210.html","name":"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-11T06:12:13+00:00","dateModified":"2026-10-11T06:12:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115210.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115210.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115210.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8d44\u6e90\u5206\u5c42\u5173\u95ed\u4f53\u7cfb\u3001TCP\u8fde\u63a5\u5b58\u6d3b\u63a2\u6d4b\u4e0e\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u4ecb\u7ecd"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=115210"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115210\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/115204"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115210"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}