{"id":62618,"date":"2026-01-20T10:42:31","date_gmt":"2026-01-20T02:42:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/62618.html"},"modified":"2026-01-20T10:42:31","modified_gmt":"2026-01-20T02:42:31","slug":"%e9%9d%a2%e8%af%95%e5%bf%85%e9%97%ae%ef%bc%9atcp-%e4%b8%89%e6%ac%a1%e6%8f%a1%e6%89%8b%e4%b8%8e%e5%9b%9b%e6%ac%a1%e6%8c%a5%e6%89%8b%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/62618.html","title":{"rendered":"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>1. TCP\u534f\u8bae\u56db\u5c42\u6a21\u578b<\/li>\n<li>2. TCP\u534f\u8bae\u6bb5\u683c\u5f0f<\/li>\n<li>\n<ul>\n<li>2.1 TCP \u9996\u90e8\u6574\u4f53\u7ed3\u6784<\/li>\n<li>2.2 \u5404\u5b57\u6bb5\u8be6\u7ec6\u89e3\u6790<\/li>\n<li>2.3 \u5173\u952e\u8865\u5145\u8bf4\u660e<\/li>\n<\/ul>\n<\/li>\n<li>3.\u786e\u8ba4\u5e94\u7b54(ACK)\u673a\u5236&#043;32\u4f4d\u5e8f\u53f7&amp;\u786e\u8ba4\u53f7&#xff08;\u53ef\u9760\u6027\u4fdd\u8bc1&#xff09;&#xff08;\u91cd\u70b9&#xff09;<\/li>\n<li>4. \u7406\u89e3\u201d\u4e22\u5305\u201c&#xff08;\u4e22\u5305&#xff08;Retransmission&#xff09; &#061; \u6570\u636e\u5df2\u53d1\u9001 &#043; \u672a\u6536\u5230 ACK &#043; \u65f6\u95f4\u8017\u5c3d&#xff08;RTO&#xff09;&#xff09;<\/li>\n<li>\n<ul>\n<li>4.1 \u4e22\u5305<\/li>\n<li>4.2 \u8d85\u65f6\u91cd\u4f20\u673a\u5236<\/li>\n<\/ul>\n<\/li>\n<li>5. \u8fde\u63a5\u7ba1\u7406\u673a\u5236&#xff08;\u516d\u4e2a\u6807\u5fd7\u4f4d\u7684\u4f5c\u7528&#xff09;<\/li>\n<li>\n<ul>\n<li>5.1 \u4e09\u6b21\u63e1\u624b\u5efa\u7acb\u8fde\u63a5&#xff08;SYN&amp;ACK&#xff09;<\/li>\n<li>5.2 \u56db\u6b21\u6325\u624b\u65ad\u5f00\u8fde\u63a5&#xff08;ACK&amp;FIN&#xff09;<\/li>\n<li>5.3 \u8fde\u63a5\u5931\u8d25&#xff0c;\u91cd\u65b0\u8fde\u63a5&#xff08;RST\u6807\u5fd7\u4f4d&#xff09;<\/li>\n<li>5.4 \u8fde\u63a5\u4e2d\u7684\u72b6\u6001\u53d8\u5316<\/li>\n<li>5.5 \u8fde\u63a5\u7ba1\u7406\u673a\u5236<\/li>\n<li>\n<ul>\n<li>5.5.1 \u7406\u89e3TIME_WAIT\u72b6\u6001&#xff08;\u670d\u52a1\u7aef\u4e3b\u52a8\u5173\u95ed\u4e4b\u540e\u4e0d\u80fd\u7acb\u5373\u91cd\u542f&#xff09;<\/li>\n<li>5.5.2 \u89e3\u51b3TIME_WAIT\u72b6\u6001\u5f15\u8d77\u7684bind\u5931\u8d25\u7684\u65b9\u6cd5<\/li>\n<li>5.5.3 \u7406\u89e3 CLOSE_WAIT \u72b6\u6001<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>6. TCP \u7d27\u6025\u6a21\u5f0f&#xff08;Urgent Mode&#xff09;\u8be6\u89e3&#xff08;URG\u6807\u5fd7\u4f4d&#xff09;<\/li>\n<\/ul>\n<h2>1. TCP\u534f\u8bae\u56db\u5c42\u6a21\u578b<\/h2>\n<ul>\n<li>TCP \u5168\u79f0\u4e3a &#034;\u4f20\u8f93\u63a7\u5236\u534f\u8bae( Transmission Control Protocol &#034;). \u4eba\u5982\u5176\u540d, \u8981\u5bf9\u6570\u636e\u7684\u4f20\u8f93\u8fdb\u884c\u4e00\u4e2a\u8be6\u7ec6\u7684\u63a7\u5236;<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024216-696eeb8875ba6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024216-696eeb88c74b6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>2. TCP\u534f\u8bae\u6bb5\u683c\u5f0f<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024218-696eeb8ac4a12.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2.1 TCP \u9996\u90e8\u6574\u4f53\u7ed3\u6784<\/h3>\n<p>TCP \u9996\u90e8\u9ed8\u8ba4\u957f\u5ea6\u4e3a 20 \u5b57\u8282&#xff0c;\u5982\u679c\u5305\u542b\u9009\u9879\u5b57\u6bb5&#xff0c;\u6700\u5927\u53ef\u6269\u5c55\u81f3 60 \u5b57\u8282\u3002<\/p>\n<p>\u5b83\u7684\u6838\u5fc3\u4f5c\u7528\u662f\u4e3a TCP \u63d0\u4f9b\u53ef\u9760\u4f20\u8f93\u3001\u6d41\u91cf\u63a7\u5236\u3001\u8fde\u63a5\u7ba1\u7406\u7b49\u529f\u80fd\u7684\u63a7\u5236\u4fe1\u606f\u3002<\/p>\n<hr \/>\n<h3>2.2 \u5404\u5b57\u6bb5\u8be6\u7ec6\u89e3\u6790<\/h3>\n<p>16 \u4f4d\u6e90\u7aef\u53e3\u53f7&#xff1a;\u6807\u8bc6\u53d1\u9001\u7aef\u7684\u5e94\u7528\u8fdb\u7a0b&#xff0c;\u544a\u8bc9\u63a5\u6536\u7aef\u6570\u636e\u6765\u81ea\u54ea\u4e2a\u8fdb\u7a0b\u3002<\/p>\n<p>16 \u4f4d\u76ee\u7684\u7aef\u53e3\u53f7&#xff1a;\u6807\u8bc6\u63a5\u6536\u7aef\u7684\u5e94\u7528\u8fdb\u7a0b&#xff0c;\u544a\u8bc9\u63a5\u6536\u7aef\u6570\u636e\u8981\u4ea4\u4ed8\u7ed9\u54ea\u4e2a\u8fdb\u7a0b\u3002<\/p>\n<p>32 \u4f4d\u5e8f\u53f7&#xff08;Sequence Number&#xff09;&#xff1a;\u8868\u793a\u672c\u62a5\u6587\u6bb5\u4e2d\u7b2c\u4e00\u4e2a\u5b57\u8282\u5728\u6574\u4e2a\u5b57\u8282\u6d41\u4e2d\u7684\u7f16\u53f7&#xff0c;\u7528\u4e8e\u4fdd\u8bc1\u6570\u636e\u7684\u6709\u5e8f\u6027\u548c\u53bb\u91cd\u3002<\/p>\n<p>32 \u4f4d\u786e\u8ba4\u53f7&#xff08;Acknowledgment Number&#xff09; &#xff1a;\u671f\u671b\u63a5\u6536\u7684\u4e0b\u4e00\u4e2a\u5b57\u8282\u7684\u5e8f\u53f7&#xff0c;\u4ec5\u5f53 ACK \u6807\u5fd7\u4f4d\u4e3a 1 \u65f6\u6709\u6548\u3002\u5b83\u662f\u5bf9\u5bf9\u65b9\u53d1\u9001\u6570\u636e\u7684\u786e\u8ba4\u3002<\/p>\n<p>4 \u4f4d\u9996\u90e8\u957f\u5ea6&#xff08;Data Offset&#xff09;&#xff1a;\u8868\u793a TCP \u9996\u90e8\u7684\u957f\u5ea6&#xff0c;\u5355\u4f4d\u662f 32 \u4f4d&#xff08;4 \u5b57\u8282&#xff09;\u3002\u53d6\u503c\u8303\u56f4\u4e3a 5~15&#xff0c;\u5bf9\u5e94\u9996\u90e8\u957f\u5ea6 20~60 \u5b57\u8282\u3002<\/p>\n<p>6 \u4f4d\u4fdd\u7559&#xff08;Reserved&#xff09;&#xff1a;\u9884\u7559\u5b57\u6bb5&#xff0c;\u76ee\u524d\u56fa\u5b9a\u4e3a 0&#xff0c;\u4e3a\u672a\u6765\u6269\u5c55\u4f7f\u7528\u3002<\/p>\n<p>6 \u4f4d\u6807\u5fd7\u4f4d&#xff08;Flags&#xff09;&#xff1a;<\/p>\n<p>\u63a7\u5236 TCP \u8fde\u63a5\u7684\u5efa\u7acb\u3001\u7ec8\u6b62\u548c\u6570\u636e\u4f20\u8f93\u884c\u4e3a&#xff1a;<\/p>\n<table>\n<tr>\u6807\u5fd7\u4f4d\u5168\u79f0 (Full Name)\u4e2d\u6587\u542b\u4e49\u6838\u5fc3\u529f\u80fd\u7b80\u8ff0<\/tr>\n<tbody>\n<tr>\n<td>URG<\/td>\n<td>Urgent<\/td>\n<td>\u7d27\u6025<\/td>\n<td>\u6307\u793a\u672c\u62a5\u6587\u6bb5\u5305\u542b\u7d27\u6025\u6570\u636e&#xff0c;\u6b64\u65f6\u7d27\u6025\u6307\u9488\u5b57\u6bb5\u6709\u6548\u3002<\/td>\n<\/tr>\n<tr>\n<td>ACK<\/td>\n<td>Acknowledgment<\/td>\n<td>\u786e\u8ba4<\/td>\n<td>\u6307\u793a\u786e\u8ba4\u53f7\u5b57\u6bb5\u6709\u6548\u3002\u5927\u591a\u6570\u6570\u636e\u4f20\u8f93\u62a5\u6587\u90fd\u8bbe\u7f6e\u6b64\u4f4d\u3002<\/td>\n<\/tr>\n<tr>\n<td>PSH<\/td>\n<td>Push<\/td>\n<td>\u63a8\u9001<\/td>\n<td>\u6307\u793a\u63a5\u6536\u65b9\u5e94\u7acb\u5373\u5c06\u6570\u636e\u63d0\u4ea4\u7ed9\u5e94\u7528\u5c42&#xff0c;\u800c\u4e0d\u5fc5\u7b49\u5f85\u7f13\u51b2\u533a\u586b\u6ee1\u3002<\/td>\n<\/tr>\n<tr>\n<td>RST<\/td>\n<td>Reset<\/td>\n<td>\u590d\u4f4d<\/td>\n<td>\u7528\u4e8e\u5f3a\u5236\u4e2d\u65ad\u8fde\u63a5&#xff08;\u91cd\u7f6e&#xff09;&#xff0c;\u901a\u5e38\u5728\u8fde\u63a5\u51fa\u73b0\u9519\u8bef\u6216\u62d2\u7edd\u8fde\u63a5\u65f6\u4f7f\u7528\u3002\u9700\u8981\u91cd\u65b0\u5efa\u7acb\u8fde\u63a5\u3002<\/td>\n<\/tr>\n<tr>\n<td>SYN<\/td>\n<td>Synchronize<\/td>\n<td>\u540c\u6b65<\/td>\n<td>\u7528\u4e8e\u5efa\u7acb\u8fde\u63a5&#xff0c;\u540c\u6b65\u53cc\u65b9\u7684\u521d\u59cb\u5e8f\u5217\u53f7&#xff08;ISN&#xff09;\u3002\u643a\u5e26\u8be5\u6807\u5fd7\u7684\u62a5\u6587\u79f0\u4e3a \u201c\u540c\u6b65\u62a5\u6587\u6bb5\u201d\u3002<\/td>\n<\/tr>\n<tr>\n<td>FIN<\/td>\n<td>Finish<\/td>\n<td>\u7ed3\u675f<\/td>\n<td>\u7528\u4e8e\u5173\u95ed\u8fde\u63a5&#xff0c;\u53d1\u9001\u65b9\u8868\u793a\u81ea\u5df1\u6ca1\u6709\u6570\u636e\u8981\u4f20\u8f93\u4e86&#xff0c;\u8bf7\u6c42\u5173\u95ed\u8fde\u63a5&#xff0c;\u643a\u5e26\u8be5\u6807\u5fd7\u7684\u62a5\u6587\u79f0\u4e3a \u201c\u7ed3\u675f\u62a5\u6587\u6bb5\u201d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p>\u52a9\u8bb0\u5c0f\u8d34\u58eb&#xff1a;<\/p>\n<ul>\n<li>\u8fde\u63a5\u7ba1\u7406\u4e09\u5144\u5f1f&#xff1a;\n<ul>\n<li>SYN (Synchronize)&#xff1a;\u5f00\u59cb\u63e1\u624b&#xff08;\u540c\u6b65&#xff09;\u3002<\/li>\n<li>FIN (Finish)&#xff1a;\u7ed3\u675f\u5bf9\u8bdd&#xff08;\u5b8c\u6210&#xff09;\u3002<\/li>\n<li>RST (Reset)&#xff1a;\u5f3a\u5236\u4e2d\u65ad&#xff08;\u91cd\u7f6e&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6570\u636e\u4f20\u8f93\u4e09\u52a9\u624b&#xff1a;\n<ul>\n<li>ACK (Acknowledgment)&#xff1a;\u544a\u8bc9\u5bf9\u65b9 \u201c\u6536\u5230\u4e86\u201d&#xff08;\u786e\u8ba4&#xff09;\u3002<\/li>\n<li>PSH (Push)&#xff1a;\u544a\u8bc9\u5bf9\u65b9 \u201c\u522b\u5b58\u4e86&#xff0c;\u5feb\u7ed9\u5e94\u7528\u5c42\u201d&#xff08;\u63a8\u9001&#xff09;\u3002<\/li>\n<li>URG (Urgent)&#xff1a;\u544a\u8bc9\u5bf9\u65b9 \u201c\u8fd9\u662f\u52a0\u6025\u4ef6\u201d&#xff08;\u7d27\u6025&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>16 \u4f4d\u7a97\u53e3\u5927\u5c0f&#xff08;Window Size&#xff09;&#xff1a;\u8868\u793a\u63a5\u6536\u7aef\u5f53\u524d\u53ef\u7528\u7684\u63a5\u6536\u7f13\u51b2\u533a\u5927\u5c0f&#xff0c;\u7528\u4e8e\u6d41\u91cf\u63a7\u5236&#xff0c;\u544a\u8bc9\u53d1\u9001\u7aef\u6700\u591a\u8fd8\u80fd\u53d1\u9001\u591a\u5c11\u5b57\u8282\u7684\u6570\u636e\u3002<\/p>\n<p>16 \u4f4d\u6821\u9a8c\u548c&#xff08;Checksum&#xff09;&#xff1a;\u7528\u4e8e\u6821\u9a8c TCP \u9996\u90e8\u548c\u6570\u636e\u90e8\u5206\u7684\u5b8c\u6574\u6027&#xff0c;\u91c7\u7528\u4f2a\u9996\u90e8 &#043; \u9996\u90e8 &#043; \u6570\u636e\u7684\u6821\u9a8c\u65b9\u5f0f&#xff0c;\u63a5\u6536\u7aef\u6821\u9a8c\u5931\u8d25\u5219\u4e22\u5f03\u62a5\u6587\u3002<\/p>\n<p>16 \u4f4d\u7d27\u6025\u6307\u9488&#xff08;Urgent Pointer&#xff09;&#xff1a;\u4ec5\u5f53 URG \u6807\u5fd7\u4f4d\u4e3a 1 \u65f6\u6709\u6548&#xff0c;\u6307\u5411\u7d27\u6025\u6570\u636e\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u8282\u5728\u62a5\u6587\u6bb5\u4e2d\u7684\u4f4d\u7f6e&#xff0c;\u7528\u4e8e\u6807\u8bc6\u7d27\u6025\u6570\u636e\u7684\u8fb9\u754c\u3002<\/p>\n<p>\u9009\u9879&#xff08;Options&#xff09;&#xff1a;\u53ef\u9009\u5b57\u6bb5&#xff0c;\u957f\u5ea6\u53ef\u53d8&#xff08;0~40 \u5b57\u8282&#xff09;&#xff0c;\u7528\u4e8e\u5b9e\u73b0\u989d\u5916\u529f\u80fd&#xff0c;\u5982\u6700\u5927\u62a5\u6587\u6bb5\u957f\u5ea6&#xff08;MSS&#xff09;\u3001\u7a97\u53e3\u6269\u5927\u56e0\u5b50\u3001\u65f6\u95f4\u6233\u7b49\u3002\u9009\u9879\u5b57\u6bb5\u5fc5\u987b\u586b\u5145\u4e3a 32 \u4f4d\u7684\u6574\u6570\u500d&#xff0c;\u4ee5\u4fdd\u8bc1\u9996\u90e8\u957f\u5ea6\u4e3a 4 \u5b57\u8282\u7684\u6574\u6570\u500d\u3002<\/p>\n<p>\u6570\u636e&#xff08;Data&#xff09;&#xff1a;\u5e94\u7528\u5c42\u4ea4\u4ed8\u7684\u6709\u6548\u8f7d\u8377&#xff0c;\u957f\u5ea6\u53ef\u53d8&#xff0c;\u82e5\u6ca1\u6709\u6570\u636e\u5219\u4e3a\u7eaf\u9996\u90e8\u62a5\u6587\u6bb5&#xff08;\u5982 SYN\u3001ACK \u62a5\u6587&#xff09;\u3002<\/p>\n<hr \/>\n<h3>2.3 \u5173\u952e\u8865\u5145\u8bf4\u660e<\/h3>\n<li>\n<p>\u9996\u90e8\u957f\u5ea6\u8ba1\u7b97&#xff1a;<\/p>\n<p>4 \u4f4d\u9996\u90e8\u957f\u5ea6\u7684\u6700\u5927\u503c\u4e3a 15&#xff0c;\u56e0\u6b64 TCP \u9996\u90e8\u6700\u5927\u957f\u5ea6\u4e3a 15 \u00d7 4 &#061; 60 \u5b57\u8282&#xff0c;\u5176\u4e2d\u9ed8\u8ba4\u7684 20 \u5b57\u8282\u662f\u56fa\u5b9a\u9996\u90e8&#xff0c;\u5269\u4e0b\u7684 40 \u5b57\u8282\u7559\u7ed9\u9009\u9879\u5b57\u6bb5\u3002<\/p>\n<\/li>\n<li>\n<p>\u6807\u5fd7\u4f4d\u7ec4\u5408\u4f7f\u7528&#xff1a;<\/p>\n<p>TCP \u7684\u8fde\u63a5\u5efa\u7acb&#xff08;\u4e09\u6b21\u63e1\u624b&#xff09;\u4f7f\u7528 SYN \u548c ACK \u7ec4\u5408&#xff0c;\u8fde\u63a5\u7ec8\u6b62&#xff08;\u56db\u6b21\u6325\u624b&#xff09;\u4f7f\u7528 FIN \u548c ACK \u7ec4\u5408&#xff0c;\u5f02\u5e38\u65ad\u5f00\u4f7f\u7528 RST\u3002<\/p>\n<\/li>\n<li>\n<p>\u6821\u9a8c\u548c\u7684\u4f2a\u9996\u90e8&#xff1a;<\/p>\n<p>TCP \u6821\u9a8c\u548c\u8ba1\u7b97\u65f6\u4f1a\u5305\u542b\u4e00\u4e2a\u4f2a\u9996\u90e8&#xff0c;\u5176\u4e2d\u5305\u542b\u6e90 IP\u3001\u76ee\u7684 IP\u3001\u534f\u8bae\u53f7\u548c TCP \u957f\u5ea6&#xff0c;\u7528\u4e8e\u9632\u6b62\u62a5\u6587\u88ab\u9519\u8bef\u4ea4\u4ed8\u5230\u5176\u4ed6\u4e3b\u673a\u6216\u534f\u8bae\u3002<\/p>\n<\/li>\n<h2>3.\u786e\u8ba4\u5e94\u7b54(ACK)\u673a\u5236&#043;32\u4f4d\u5e8f\u53f7&amp;\u786e\u8ba4\u53f7&#xff08;\u53ef\u9760\u6027\u4fdd\u8bc1&#xff09;&#xff08;\u91cd\u70b9&#xff09;<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024219-696eeb8b106db.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>TCP\u5c06\u6bcf\u4e2a\u5b57\u8282\u7684\u6570\u636e\u90fd\u8fdb\u884c\u4e86\u7f16\u53f7&#xff0c;\u5373\u4e3a\u5e8f\u5217\u53f7\u3002<\/p>\n<p>\u53ef\u9760\u6027&#xff1a;<\/p>\n<li>TCP\u534f\u8bae\u5177\u6709\u5e94\u7b54&#xff0c;\u53ef\u4ee5\u4fdd\u8bc1\u5bf9\u5386\u53f2\u6d88\u606f\u7684\u53ef\u9760\u6027&#xff01;<\/li>\n<li>\u901a\u4fe1\u4e2d&#xff0c;\u6700\u65b0\u7684\u62a5\u6587&#xff0c;\u6c38\u8fdc\u6ca1\u6709\u5e94\u7b54&#xff0c;\u6700\u65b0\u62a5\u6587\u7684\u53ef\u9760\u6027\u65e0\u6cd5\u4fdd\u8bc1\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024219-696eeb8b62ac3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\n<p>\u6bcf\u4e00\u4e2a\u6709ACK\u786e\u8ba4\u5e94\u7b54\u4fe1\u53f7\u7684\u62a5\u6587\u90fd\u5e26\u6709\u5bf9\u5e94\u7684\u786e\u8ba4\u5e8f\u5217\u53f7&#xff0c;\u610f\u601d\u662f\u544a\u8bc9\u53d1\u9001\u8005&#xff0c;\u6211\u5df2\u7ecf\u6536\u5230\u4e86\u54ea\u4e9b\u6570\u636e&#xff1b;\u4e0b\u4e00\u6b21\u4f60\u4ece\u54ea\u91cc\u5f00\u59cb\u53d1\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0d\u9700\u8981\u5bf9\u5e94\u7b54\u505a\u5e94\u7b54\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>4. \u7406\u89e3\u201d\u4e22\u5305\u201c&#xff08;\u4e22\u5305&#xff08;Retransmission&#xff09; &#061; \u6570\u636e\u5df2\u53d1\u9001 &#043; \u672a\u6536\u5230 ACK &#043; \u65f6\u95f4\u8017\u5c3d&#xff08;RTO&#xff09;&#xff09;<\/h2>\n<h3>4.1 \u4e22\u5305<\/h3>\n<p>\u4e22\u5305\u6709\u4ee5\u4e0b\u4e24\u79cd\u60c5\u51b5&#xff1a;<\/p>\n<table>\n<tr><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024219-696eeb8ba3765.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024220-696eeb8c1689d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/tr>\n<tbody>\n<tr>\n<td>\u4e22\u6570\u636e<\/td>\n<td>\u4e22\u5e94\u7b54<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u6ce8\u610f&#xff1a;\u4ee5\u4e3b\u673aA\u4e3a\u5ba2\u6237\u7aef\u6765\u770b&#xff0c;\u65e0\u6cd5\u786e\u8ba4\u662f\u6570\u636e\u4e22\u5931\u8fd8\u662f\u5e94\u7b54\u4e22\u5931\u3002\u65e0\u6cd5100%\u4fdd\u8bc1\u5bf9\u65b9\u662f\u5426\u6536\u5230\u6d88\u606f\u3002\u65e0\u6cd5\u4fdd\u8bc1\u53ef\u9760\u6027\u3002<\/li>\n<\/ul>\n<p>\u4e22\u5305\u5b9a\u4e49&#xff1a;\u53ea\u6709 \u6536\u4e0d\u5230\u5e94\u7b54 &amp;&amp; \u8d85\u65f6 \u540c\u65f6\u53d1\u751f&#xff0c;\u624d\u4f1a\u8ba4\u4e3a\u662f\u4e22\u5305\u4e86&#xff0c;\u5e76\u4e14&#xff0c;\u4e22\u5305\u6982\u5ff5\u662f\u4e3b\u89c2\u6982\u5ff5\u3002\u5e76\u4e0d\u662f100%\u786e\u5b9a\u7684\u3002<\/p>\n<ul>\n<li>\n<p>\u4e3b\u673aA\u53d1\u9001\u6570\u636e\u7ed9B\u4e4b\u540e&#xff0c;\u53ef\u80fd\u56e0\u4e3a\u7f51\u7edc\u62e5\u5835\u7b49\u539f\u56e0&#xff0c;\u6570\u636e\u65e0\u6cd5\u5230\u8fbe\u4e3b\u673aB&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u4e3b\u673aA\u5728\u4e00\u4e2a\u7279\u5b9a\u65f6\u95f4\u95f4\u9694\u5185\u6ca1\u6709\u6536\u5230B\u53d1\u6765\u7684\u786e\u8ba4\u5e94\u7b54&#xff0c;\u5c31\u4f1a\u8fdb\u884c\u91cd\u53d1&#xff1b;<\/p>\n<\/li>\n<\/ul>\n<p>\u4f46\u662f&#xff0c;\u4e3b\u673aA\u672a\u6536\u5230B\u53d1\u6765\u7684\u786e\u8ba4\u5e94\u7b54&#xff0c;\u4e5f\u53ef\u80fd\u662f\u56e0\u4e3aACK\u4e22\u5931\u4e86&#xff1b;\u56e0\u6b64\u4e3b\u673aB\u4f1a\u6536\u5230\u5f88\u591a\u91cd\u590d\u6570\u636e\u3002\u90a3\u4e48TCP\u534f\u8bae\u9700\u8981\u80fd\u591f\u8bc6\u522b\u51fa\u90a3\u4e9b\u5305\u662f\u91cd\u590d\u7684\u5305&#xff0c;\u5e76\u4e14\u628a\u91cd\u590d\u7684\u4e22\u5f03\u6389\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u524d\u9762\u63d0\u5230\u7684\u5e8f\u5217\u53f7&#xff0c;\u5c31\u53ef\u4ee5\u5f88\u5bb9\u6613\u505a\u5230\u53bb\u91cd\u7684\u6548\u679c\u3002&#xff08;\u5e8f\u53f7\u7684\u4f5c\u7528&#xff1a;\u786e\u8ba4\u5e94\u7b54\u3001\u6309\u5e8f\u5230\u8fbe\u3001\u53bb\u91cd&#xff09;<\/p>\n<h3>4.2 \u8d85\u65f6\u91cd\u4f20\u673a\u5236<\/h3>\n<p>&#x1f60a;\u90a3\u4e48&#xff0c;\u5982\u679c\u8d85\u65f6\u7684\u65f6\u95f4\u5982\u4f55\u786e\u5b9a?<\/p>\n<ul>\n<li>\u6700\u7406\u60f3\u7684\u60c5\u51b5\u4e0b&#xff0c;\u627e\u5230\u4e00\u4e2a\u6700\u5c0f\u7684\u65f6\u95f4&#xff0c;\u4fdd\u8bc1 \u201c\u786e\u8ba4\u5e94\u7b54\u4e00\u5b9a\u80fd\u5728\u8fd9\u4e2a\u65f6\u95f4\u5185\u8fd4\u56de\u201d\u3002\u4f46\u662f\u8fd9\u4e2a\u65f6\u95f4\u7684\u957f\u77ed&#xff0c;\u968f\u7740\u7f51\u7edc\u73af\u5883\u7684\u4e0d\u540c&#xff0c;\u662f\u6709\u5dee\u5f02\u7684\u3002\n<ul>\n<li>\u5982\u679c\u8d85\u65f6\u65f6\u95f4\u8bbe\u7684\u592a\u957f&#xff0c;\u4f1a\u5f71\u54cd\u6574\u4f53\u7684\u91cd\u4f20\u6548\u7387&#xff1b;<\/li>\n<li>\u5982\u679c\u8d85\u65f6\u65f6\u95f4\u8bbe\u7684\u592a\u77ed&#xff0c;\u6709\u53ef\u80fd\u4f1a\u9891\u7e41\u53d1\u9001\u91cd\u590d\u7684\u5305&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&#x1f609;TCP\u4e3a\u4e86\u4fdd\u8bc1\u65e0\u8bba\u5728\u4efb\u4f55\u73af\u5883\u4e0b\u90fd\u80fd\u6bd4\u8f83\u9ad8\u6027\u80fd\u7684\u901a\u4fe1&#xff0c;\u56e0\u6b64\u4f1a\u52a8\u6001\u8ba1\u7b97\u8fd9\u4e2a\u6700\u5927\u8d85\u65f6\u65f6\u95f4\u3002<\/p>\n<ul>\n<li>\n<p>Linux\u4e2d(BSD Unix\u548cWindows\u4e5f\u662f\u5982\u6b64)&#xff0c;\u8d85\u65f6\u4ee5500ms\u4e3a\u4e00\u4e2a\u5355\u4f4d\u8fdb\u884c\u63a7\u5236&#xff0c;\u6bcf\u6b21\u5224\u5b9a\u8d85\u65f6\u91cd\u53d1\u7684\u8d85\u65f6\u65f6\u95f4\u90fd\u662f500ms\u7684\u6574\u6570\u500d\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u91cd\u53d1\u4e00\u6b21\u4e4b\u540e&#xff0c;\u4ecd\u7136\u5f97\u4e0d\u5230\u5e94\u7b54&#xff0c;\u7b49\u5f85 2*500ms \u540e\u518d\u8fdb\u884c\u91cd\u4f20\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u4ecd\u7136\u5f97\u4e0d\u5230\u5e94\u7b54&#xff0c;\u7b49\u5f85 4*500ms \u8fdb\u884c\u91cd\u4f20\u3002\u4f9d\u6b21\u7c7b\u63a8&#xff0c;\u4ee5\u6307\u6570\u5f62\u5f0f\u9012\u589e\u3002<\/p>\n<\/li>\n<li>\n<p>\u7d2f\u8ba1\u5230\u4e00\u5b9a\u7684\u91cd\u4f20\u6b21\u6570&#xff0c;TCP\u8ba4\u4e3a\u7f51\u7edc\u6216\u8005\u5bf9\u7aef\u4e3b\u673a\u51fa\u73b0\u5f02\u5e38&#xff0c;\u5f3a\u5236\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>5. \u8fde\u63a5\u7ba1\u7406\u673a\u5236&#xff08;\u516d\u4e2a\u6807\u5fd7\u4f4d\u7684\u4f5c\u7528&#xff09;<\/h2>\n<h3>5.1 \u4e09\u6b21\u63e1\u624b\u5efa\u7acb\u8fde\u63a5&#xff08;SYN&amp;ACK&#xff09;<\/h3>\n<li>\u4e09\u6b21\u63e1\u624b\u671f\u95f4&#xff0c;\u4e0d\u80fd\u643a\u5e26\u6570\u636e&#xff0c;\u56e0\u4e3a\u8fd8\u6ca1\u6709\u5b8c\u6210\u8fde\u63a5\u7684\u5efa\u7acb\u3002\u6b64\u65f6\u53ea\u80fd\u4f20TCP\u62a5\u5934<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024220-696eeb8c8a628.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e00\u3001TCP \u4e09\u6b21\u63e1\u624b\u7684\u5b8c\u6574\u6d41\u7a0b<\/p>\n<p>TCP \u4e09\u6b21\u63e1\u624b\u662f\u4e3a\u4e86\u5728\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u5efa\u7acb\u4e00\u4e2a\u53ef\u9760\u7684\u5168\u53cc\u5de5\u8fde\u63a5&#xff0c;\u786e\u4fdd\u53cc\u65b9\u90fd\u5177\u5907\u6536\u53d1\u6570\u636e\u7684\u80fd\u529b\u3002<\/p>\n<li>\u7b2c\u4e00\u6b21\u63e1\u624b&#xff08;\u5ba2\u6237\u7aef \u2192 \u670d\u52a1\u5668&#xff09;\n<ul>\n<li>\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u5668\u53d1\u9001\u4e00\u4e2a SYN \u62a5\u6587&#xff0c;\u8bf7\u6c42\u5efa\u7acb\u8fde\u63a5\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u5ba2\u6237\u7aef\u8fdb\u5165 SYN_SENT \u72b6\u6001&#xff0c;\u7b49\u5f85\u670d\u52a1\u5668\u7684\u786e\u8ba4\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e8c\u6b21\u63e1\u624b&#xff08;\u670d\u52a1\u5668 \u2192 \u5ba2\u6237\u7aef&#xff09;\n<ul>\n<li>\u670d\u52a1\u5668\u6536\u5230 SYN \u62a5\u6587\u540e&#xff0c;\u56de\u590d\u4e00\u4e2a SYN&#043;ACK \u62a5\u6587&#xff0c;\u65e2\u786e\u8ba4\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u4e5f\u5411\u5ba2\u6237\u7aef\u53d1\u8d77\u81ea\u5df1\u7684\u8fde\u63a5\u8bf7\u6c42\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u670d\u52a1\u5668\u8fdb\u5165 SYN_RCVD \u72b6\u6001\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e09\u6b21\u63e1\u624b&#xff08;\u5ba2\u6237\u7aef \u2192 \u670d\u52a1\u5668&#xff09;\n<ul>\n<li>\u5ba2\u6237\u7aef\u6536\u5230 SYN&#043;ACK \u62a5\u6587\u540e&#xff0c;\u53d1\u9001\u4e00\u4e2a ACK \u62a5\u6587&#xff0c;\u786e\u8ba4\u670d\u52a1\u5668\u7684\u8fde\u63a5\u8bf7\u6c42\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u5ba2\u6237\u7aef\u8fdb\u5165 ESTABLISHED \u72b6\u6001&#xff1b;\u670d\u52a1\u5668\u6536\u5230 ACK \u62a5\u6587\u540e&#xff0c;\u4e5f\u8fdb\u5165 ESTABLISHED \u72b6\u6001&#xff0c;\u8fde\u63a5\u6b63\u5f0f\u5efa\u7acb\u3002<\/li>\n<\/ul>\n<\/li>\n<p>\u4e8c\u3001SYN \u548c ACK \u662f\u4e09\u6b21\u63e1\u624b\u4e2d\u7684\u6838\u5fc3\u6807\u5fd7\u4f4d<\/p>\n<p>\u662f\u7684&#xff0c;SYN \u548c ACK \u662f\u4e09\u6b21\u63e1\u624b\u4e2d\u6700\u91cd\u8981\u7684\u4e24\u4e2a\u6807\u5fd7\u4f4d&#xff0c;\u6ca1\u6709\u5b83\u4eec\u5c31\u65e0\u6cd5\u5b8c\u6210\u8fde\u63a5\u7684\u5efa\u7acb&#xff1a;<\/p>\n<ul>\n<li>SYN&#xff08;Synchronize&#xff09;&#xff1a;\u7528\u4e8e\u53d1\u8d77\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u540c\u6b65\u53cc\u65b9\u7684\u521d\u59cb\u5e8f\u53f7\u3002<\/li>\n<li>ACK&#xff08;Acknowledgment&#xff09;&#xff1a;\u7528\u4e8e\u786e\u8ba4\u5bf9\u65b9\u7684\u62a5\u6587&#xff0c;\u8868\u660e\u5df2\u6536\u5230\u5e76\u8ba4\u53ef\u3002<\/li>\n<\/ul>\n<p>\u4e09\u3001\u4e09\u6b21\u63e1\u624b\u4e2d SYN \u548c ACK \u7684\u5177\u4f53\u8bbe\u7f6e<\/p>\n<table>\n<tr>\u63e1\u624b\u9636\u6bb5\u53d1\u9001\u65b9\u6807\u5fd7\u4f4d\u8bbe\u7f6e\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u7b2c\u4e00\u6b21\u63e1\u624b<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef<\/td>\n<td align=\"center\">SYN&#061;1&#xff0c;ACK&#061;0<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef\u4e3b\u52a8\u53d1\u8d77\u8fde\u63a5&#xff0c;\u4ec5\u9700\u53d1\u9001\u540c\u6b65\u8bf7\u6c42&#xff0c;\u6b64\u65f6\u8fd8\u6ca1\u6709\u9700\u8981\u786e\u8ba4\u7684\u62a5\u6587&#xff0c;\u6240\u4ee5 ACK \u4e3a 0\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e8c\u6b21\u63e1\u624b<\/td>\n<td align=\"center\">\u670d\u52a1\u5668<\/td>\n<td align=\"center\">SYN&#061;1&#xff0c;ACK&#061;1<\/td>\n<td align=\"center\">\u670d\u52a1\u5668\u9700\u8981\u540c\u65f6\u505a\u4e24\u4ef6\u4e8b&#xff1a;\u7528 SYN&#061;1 \u5411\u5ba2\u6237\u7aef\u53d1\u8d77\u81ea\u5df1\u7684\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u7528 ACK&#061;1 \u786e\u8ba4\u6536\u5230\u4e86\u5ba2\u6237\u7aef\u7684 SYN \u62a5\u6587\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e09\u6b21\u63e1\u624b<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef<\/td>\n<td align=\"center\">SYN&#061;0&#xff0c;ACK&#061;1<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef\u4ec5\u9700\u786e\u8ba4\u6536\u5230\u4e86\u670d\u52a1\u5668\u7684 SYN \u62a5\u6587&#xff0c;\u6240\u4ee5 ACK&#061;1&#xff1b;\u6b64\u65f6\u8fde\u63a5\u8bf7\u6c42\u5df2\u5b8c\u6210&#xff0c;\u65e0\u9700\u518d\u53d1\u9001 SYN&#xff0c;\u6240\u4ee5 SYN&#061;0\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u56db\u3001\u4e3a\u4ec0\u4e48\u9700\u8981\u4e09\u6b21\u63e1\u624b&#xff1f;&#xff08;\u6280\u672f\u5c42\u9762\u7684 \u201c\u5fc5\u8981\u6027\u201d&#xff09;<\/p>\n<p>\u4e09\u6b21\u63e1\u624b\u7684\u6838\u5fc3\u76ee\u7684\u662f\u907f\u514d\u5386\u53f2\u8fde\u63a5\u7684\u5e72\u6270&#xff0c;\u786e\u4fdd\u53cc\u65b9\u7684\u521d\u59cb\u5e8f\u53f7\u90fd\u80fd\u88ab\u5bf9\u65b9\u6b63\u786e\u63a5\u6536\u548c\u786e\u8ba4&#xff0c;\u4ece\u800c\u5efa\u7acb\u4e00\u4e2a\u53ef\u9760\u7684\u8fde\u63a5\u3002\u5982\u679c\u53ea\u8fdb\u884c\u4e24\u6b21\u63e1\u624b&#xff0c;\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u63a5\u6536\u5e76\u5904\u7406\u5df2\u5931\u6548\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u9020\u6210\u8d44\u6e90\u6d6a\u8d39\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8981\u4e09\u6b21\u63e1\u624b&#xff08;\u8865\u5145\u7406\u89e3&#xff09;&#xff1a;<\/p>\n<li>\u4ee5\u6700\u77ed\u7684\u65b9\u5f0f\u8fdb\u884c\u9a8c\u8bc1\u5168\u53cc\u5de5&#xff0c;\u672c\u8d28\u662f\u9a8c\u8bc1&#xff1a;\u6211\u4eec\u4e24\u4e2a\u6240\u5904\u7684\u7f51\u7edc\u662f\u901a\u5e38\u7684&#xff0c;\u80fd\u591f\u652f\u6301\u5168\u53cc\u5de5&#xff01;<\/li>\n<li>\u4ee5\u6700\u5c0f\u6210\u672c&#xff0c;100%\u786e\u8ba4\u53cc\u65b9\u901a\u4fe1\u610f\u613f\u3002<\/li>\n<p>\u8865&#xff1a;\u9762\u5bf9\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42&#xff0c;\u670d\u52a1\u5668\u90fd\u9700\u8981\u65e0\u8111\u63a5\u53d7&#xff0c;\u4e09\u6b21\u63e1\u624b\u662f\u56db\u6b21\u63e1\u624b&#xff08;\u4f7f\u7528\u4e86\u634e\u5e26\u5e94\u7b54&#xff09;\u538b\u7f29\u540e\u7684\u4ea7\u7269\u3002<\/p>\n<p>\u4e94\u3001\u6ce8\u610f&#xff1a;<\/p>\n<ul>\n<li>\u5ba2\u6237\u7aef\u5728\u63a5\u6536\u5230\u5ba2\u6237\u7aef\u53d1\u6765\u7684\u7b2c\u4e8c\u6b21\u63e1\u624b\u65f6&#xff0c;\u5c31\u8ba4\u4e3a\u4e09\u6b21\u63e1\u624b\u5df2\u7ecf\u5b8c\u6210\u4e86<\/li>\n<li>\u670d\u52a1\u7aef\u8981\u5728\u63a5\u6536\u5230\u5ba2\u6237\u7aef\u53d1\u9001\u6765\u7684\u7b2c\u4e09\u6b21\u63e1\u624b\u65f6\u624d\u4f1a\u8ba4\u4e3a\u4e09\u6b21\u63e1\u624b\u5df2\u7ecf\u5b8c\u6210<\/li>\n<\/ul>\n<h3>5.2 \u56db\u6b21\u6325\u624b\u65ad\u5f00\u8fde\u63a5&#xff08;ACK&amp;FIN&#xff09;<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024225-696eeb911aaad.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e00\u3001TCP \u56db\u6b21\u6325\u624b\u7684\u5b8c\u6574\u6d41\u7a0b<\/p>\n<p>TCP \u56db\u6b21\u6325\u624b\u662f\u4e3a\u4e86\u7ec8\u6b62\u4e00\u4e2a\u5168\u53cc\u5de5\u8fde\u63a5&#xff0c;\u786e\u4fdd\u53cc\u65b9\u90fd\u6ca1\u6709\u6570\u636e\u8981\u53d1\u9001\u4e86&#xff0c;\u4e14\u6240\u6709\u6570\u636e\u90fd\u5df2\u4f20\u8f93\u5b8c\u6bd5\u3002<\/p>\n<li>\u7b2c\u4e00\u6b21\u6325\u624b&#xff08;\u5ba2\u6237\u7aef \u2192 \u670d\u52a1\u5668&#xff09;\n<ul>\n<li>\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a FIN \u62a5\u6587&#xff0c;\u8868\u793a\u81ea\u5df1\u6ca1\u6709\u6570\u636e\u8981\u53d1\u9001\u4e86&#xff0c;\u8bf7\u6c42\u5173\u95ed\u8fde\u63a5\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u5ba2\u6237\u7aef\u8fdb\u5165 FIN_WAIT_1 \u72b6\u6001\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e8c\u6b21\u6325\u624b&#xff08;\u670d\u52a1\u5668 \u2192 \u5ba2\u6237\u7aef&#xff09;\n<ul>\n<li>\u670d\u52a1\u5668\u6536\u5230 FIN \u62a5\u6587\u540e&#xff0c;\u56de\u590d\u4e00\u4e2a ACK \u62a5\u6587&#xff0c;\u8868\u793a \u201c\u6211\u77e5\u9053\u4f60\u8981\u5173\u95ed\u4e86&#xff0c;\u4f46\u6211\u53ef\u80fd\u8fd8\u6709\u6570\u636e\u6ca1\u53d1\u5b8c&#xff0c;\u8bf7\u7a0d\u7b49\u201d\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u670d\u52a1\u5668\u8fdb\u5165 CLOSE_WAIT \u72b6\u6001&#xff0c;\u5ba2\u6237\u7aef\u6536\u5230 ACK \u540e\u8fdb\u5165 FIN_WAIT_2 \u72b6\u6001\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e09\u6b21\u6325\u624b&#xff08;\u670d\u52a1\u5668 \u2192 \u5ba2\u6237\u7aef&#xff09;\n<ul>\n<li>\u670d\u52a1\u5668\u6570\u636e\u53d1\u9001\u5b8c\u6bd5\u540e&#xff0c;\u5411\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a FIN \u62a5\u6587&#xff0c;\u8868\u793a \u201c\u6211\u7684\u6570\u636e\u4e5f\u53d1\u5b8c\u4e86&#xff0c;\u73b0\u5728\u53ef\u4ee5\u5173\u95ed\u8fde\u63a5\u4e86\u201d\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u670d\u52a1\u5668\u8fdb\u5165 LAST_ACK \u72b6\u6001\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u56db\u6b21\u6325\u624b&#xff08;\u5ba2\u6237\u7aef \u2192 \u670d\u52a1\u5668&#xff09;\n<ul>\n<li>\u5ba2\u6237\u7aef\u6536\u5230 FIN \u62a5\u6587\u540e&#xff0c;\u56de\u590d\u4e00\u4e2a ACK \u62a5\u6587&#xff0c;\u8868\u793a \u201c\u6536\u5230&#xff0c;\u540c\u610f\u5173\u95ed\u201d\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;\u5ba2\u6237\u7aef\u8fdb\u5165 TIME_WAIT \u72b6\u6001&#xff0c;\u7b49\u5f85 2MSL \u540e\u5f7b\u5e95\u5173\u95ed&#xff1b;\u670d\u52a1\u5668\u6536\u5230 ACK \u540e\u7acb\u5373\u5173\u95ed\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<\/li>\n<p>\u4e8c\u3001\u56db\u6b21\u6325\u624b\u4e2d\u7684\u6838\u5fc3\u6807\u5fd7\u4f4d<\/p>\n<ul>\n<li>FIN&#xff08;Finish&#xff09;&#xff1a;\u7528\u4e8e\u91ca\u653e\u8fde\u63a5&#xff0c;\u8868\u793a\u53d1\u9001\u7aef\u6ca1\u6709\u6570\u636e\u8981\u4f20\u8f93\u4e86&#xff0c;\u8bf7\u6c42\u5173\u95ed\u8fde\u63a5\u3002<\/li>\n<li>ACK&#xff08;Acknowledgment&#xff09;&#xff1a;\u7528\u4e8e\u786e\u8ba4\u5bf9\u65b9\u7684\u62a5\u6587&#xff0c;\u8868\u660e\u5df2\u6536\u5230\u5e76\u8ba4\u53ef\u3002<\/li>\n<\/ul>\n<p>\u4e09\u3001\u56db\u6b21\u6325\u624b\u4e2d\u6807\u5fd7\u4f4d\u7684\u5177\u4f53\u8bbe\u7f6e<\/p>\n<table>\n<tr>\u6325\u624b\u9636\u6bb5\u53d1\u9001\u65b9\u6807\u5fd7\u4f4d\u8bbe\u7f6e\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">\u7b2c\u4e00\u6b21\u6325\u624b<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef<\/td>\n<td align=\"center\">FIN&#061;1&#xff0c;ACK&#061;0<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef\u4e3b\u52a8\u53d1\u8d77\u5173\u95ed\u8bf7\u6c42&#xff0c;\u6ca1\u6709\u6570\u636e\u53d1\u9001&#xff0c;\u4e5f\u6ca1\u6709\u9700\u8981\u786e\u8ba4\u7684\u62a5\u6587&#xff08;\u6b64\u65f6 ACK \u6807\u5fd7\u4f4d\u901a\u5e38\u4e3a 0&#xff0c;\u9664\u975e\u662f\u634e\u5e26\u5e94\u7b54&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e8c\u6b21\u6325\u624b<\/td>\n<td align=\"center\">\u670d\u52a1\u5668<\/td>\n<td align=\"center\">FIN&#061;0&#xff0c;ACK&#061;1<\/td>\n<td align=\"center\">\u670d\u52a1\u5668\u4ec5\u786e\u8ba4\u6536\u5230\u4e86\u5ba2\u6237\u7aef\u7684\u5173\u95ed\u8bf7\u6c42&#xff0c;\u4f46\u81ea\u5df1\u53ef\u80fd\u8fd8\u6709\u6570\u636e\u8981\u53d1&#xff0c;\u6240\u4ee5\u4e0d\u53d1\u9001 FIN&#xff0c;\u53ea\u53d1\u9001 ACK\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u4e09\u6b21\u6325\u624b<\/td>\n<td align=\"center\">\u670d\u52a1\u5668<\/td>\n<td align=\"center\">FIN&#061;1&#xff0c;ACK&#061;1<\/td>\n<td align=\"center\">\u670d\u52a1\u5668\u6570\u636e\u53d1\u9001\u5b8c\u6bd5&#xff0c;\u53d1\u8d77\u81ea\u5df1\u7684\u5173\u95ed\u8bf7\u6c42&#xff0c;\u540c\u65f6\u786e\u8ba4\u4e4b\u524d\u7684\u901a\u4fe1\u72b6\u6001&#xff08;ACK \u6807\u5fd7\u4f4d\u4e3a 1 \u662f\u4e3a\u4e86\u786e\u8ba4\u5e8f\u53f7&#xff09;\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\u7b2c\u56db\u6b21\u6325\u624b<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef<\/td>\n<td align=\"center\">FIN&#061;0&#xff0c;ACK&#061;1<\/td>\n<td align=\"center\">\u5ba2\u6237\u7aef\u4ec5\u786e\u8ba4\u6536\u5230\u4e86\u670d\u52a1\u5668\u7684\u5173\u95ed\u8bf7\u6c42&#xff0c;\u8fde\u63a5\u5373\u5c06\u5f7b\u5e95\u5173\u95ed&#xff0c;\u6240\u4ee5\u4e0d\u53d1\u9001 FIN&#xff0c;\u53ea\u53d1\u9001 ACK\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u56db\u3001\u4e3a\u4ec0\u4e48\u9700\u8981\u56db\u6b21\u6325\u624b&#xff1f;<\/p>\n<p>\u56e0\u4e3a TCP \u662f\u5168\u53cc\u5de5\u534f\u8bae&#xff0c;\u6570\u636e\u4f20\u8f93\u662f\u53cc\u5411\u7684\u3002<\/p>\n<ul>\n<li>\u7b2c\u4e00\u6b21\u548c\u7b2c\u4e8c\u6b21\u6325\u624b\u5173\u95ed\u7684\u662f\u5ba2\u6237\u7aef \u2192 \u670d\u52a1\u5668\u65b9\u5411\u7684\u8fde\u63a5&#xff1b;<\/li>\n<li>\u7b2c\u4e09\u6b21\u548c\u7b2c\u56db\u6b21\u6325\u624b\u5173\u95ed\u7684\u662f\u670d\u52a1\u5668 \u2192 \u5ba2\u6237\u7aef\u65b9\u5411\u7684\u8fde\u63a5\u3002<\/li>\n<li>\u670d\u52a1\u5668\u6536\u5230\u5ba2\u6237\u7aef\u7684 FIN \u540e&#xff0c;\u53ef\u80fd\u8fd8\u9700\u8981\u5904\u7406\u5269\u4f59\u6570\u636e&#xff0c;\u4e0d\u80fd\u7acb\u5373\u5173\u95ed\u8fde\u63a5&#xff0c;\u6240\u4ee5\u9700\u8981\u5148\u56de\u590d ACK&#xff0c;\u7b49\u6570\u636e\u5904\u7406\u5b8c\u518d\u56de\u590d FIN&#xff0c;\u8fd9\u5c31\u5bfc\u81f4\u4e86\u7b2c\u4e8c\u6b21\u548c\u7b2c\u4e09\u6b21\u6325\u624b\u7684\u5206\u79bb\u3002<\/li>\n<\/ul>\n<h3>5.3 \u8fde\u63a5\u5931\u8d25&#xff0c;\u91cd\u65b0\u8fde\u63a5&#xff08;RST\u6807\u5fd7\u4f4d&#xff09;<\/h3>\n<p>\u53ea\u8981 TCP \u534f\u8bae\u6808\u6536\u5230\u4e00\u4e2a\u62a5\u6587&#xff0c;\u4e14\u8be5\u62a5\u6587\u4e0d\u7b26\u5408\u5f53\u524d\u7684\u72b6\u6001\u673a\u903b\u8f91&#xff08;State Machine&#xff09;&#xff0c;\u4e3a\u4e86\u81ea\u6211\u4fdd\u62a4\u548c\u6e05\u7406\u65e0\u6548\u8d44\u6e90&#xff0c;\u5c31\u4f1a\u89e6\u53d1 RST\u3002<\/p>\n<table>\n<tr>\u573a\u666f\u5173\u952e\u7279\u5f81\u5178\u578b\u62a5\u9519<\/tr>\n<tbody>\n<tr>\n<td>\u7aef\u53e3\u672a\u5f00<\/td>\n<td>SYN \u53d1\u5230\u4e86\u9ed1\u6d1e<\/td>\n<td>Connection refused<\/td>\n<\/tr>\n<tr>\n<td>\u72b6\u6001\u51b2\u7a81<\/td>\n<td>\u4e00\u65b9\u8ba4\u4e3a\u65ad\u4e86&#xff0c;\u4e00\u65b9\u8ba4\u4e3a\u8fde\u7740<\/td>\n<td>Connection reset by peer<\/td>\n<\/tr>\n<tr>\n<td>\u534a\u6253\u5f00\u8fde\u63a5<\/td>\n<td>\u5bf9\u65b9\u6302\u4e86\u53c8\u91cd\u542f&#xff0c;\u6211\u53d1\u6570\u636e\u8fc7\u53bb<\/td>\n<td>Connection reset by peer<\/td>\n<\/tr>\n<tr>\n<td>\u66b4\u529b\u5173\u95ed<\/td>\n<td>\u5e94\u7528\u5c42\u5f3a\u5236 Kill \u6216\u914d\u7f6e\u4e86 LINGER<\/td>\n<td>(\u8fde\u63a5\u76f4\u63a5\u65ad\u5f00)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>TCP\u53ef\u9760\u6027\u662f\u56e0\u4e3a\u670932\u4f4d\u5e8f\u53f7\u4fdd\u8bc1\u6570\u636e\u6309\u7167\u987a\u5e8f\u5230\u8fbe\u63a5\u6536\u7f13\u51b2\u533a&#xff0c;\u7136\u540e\u5b57\u8282\u6d41\u5f0f\u7684\u63a5\u6536\u961f\u5217&#xff0c;\u5982\u679c\u6211\u4eec\u60f3\u8981\u6570\u636e\u88ab\u4f18\u5148\u5904\u7406&#xff0c;\u5c31\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6eURG\u6807\u5fd7\u4f4d&#xff0c;\u5e76\u8bbe\u7f6e16\u4f4d\u7d27\u6025\u6307\u9488&#xff08;\u504f\u79fb\u5730\u5740&#xff09;\u3002\u7d27\u6025\u6570\u636e\u7684\u5927\u5c0f\u4e00\u822c\u9650\u5236\u53ea\u6709\u4e00\u4e2a\u5b57\u8282\u3002<\/p>\n<h3>5.4 \u8fde\u63a5\u4e2d\u7684\u72b6\u6001\u53d8\u5316<\/h3>\n<p>\u5728\u6b63\u5e38\u60c5\u51b5\u4e0b&#xff0c;TCP\u8981\u7ecf\u8fc7\u4e09\u6b21\u63e1\u624b\u5efa\u7acb\u8fde\u63a5&#xff0c;\u56db\u6b21\u6325\u624b\u65ad\u5f00\u8fde\u63a5<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024229-696eeb95278de.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u4e09\u6b21\u63e1\u624b\u5efa\u7acb\u8fde\u63a5\u5728\u4ee3\u7801\u4e2d&#xff1a;<\/li>\n<p>connect\u53d1\u8d77\u4e09\u6b21\u63e1\u624b&#xff0c;\u4e09\u6b21\u63e1\u624b\u8fc7\u7a0b\u7531\u53cc\u65b9\u64cd\u4f5c\u7cfb\u7edf\u81ea\u52a8\u5b8c\u6210\u3002<\/p>\n<p>\u5ba2\u6237\u7aef\u4e0daccept&#xff0c;\u4e09\u6b21\u63e1\u624b\u4e5f\u80fd\u6210\u529f\u3002\u5373accept\u4e0d\u53c2\u4e0e\u4e09\u6b21\u63e1\u624b\u3002\u4e09\u6b21\u63e1\u624b\u8fc7\u7a0b\u7531\u53cc\u65b9\u64cd\u4f5c\u7cfb\u7edf\u81ea\u52a8\u5b8c\u6210\u3002<\/p>\n<p>\u670d\u52a1\u7aef\u72b6\u6001\u8f6c\u5316:<\/p>\n<ul>\n<li>\n<p>[CLOSED -&gt; LISTEN] \u670d\u52a1\u5668\u7aef\u8c03\u7528listen\u540e\u8fdb\u5165LISTEN\u72b6\u6001, \u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5;<\/p>\n<\/li>\n<li>\n<p>[LISTEN -&gt; SYN_RCVD] \u4e00\u65e6\u76d1\u542c\u5230\u8fde\u63a5\u8bf7\u6c42(\u540c\u6b65\u62a5\u6587\u6bb5), \u5c31\u5c06\u8be5\u8fde\u63a5\u653e\u5165\u5185\u6838\u7b49\u5f85\u961f\u5217\u4e2d, \u5e76\u5411\u5ba2\u6237\u7aef\u53d1\u9001SYN\u786e\u8ba4\u62a5\u6587.<\/p>\n<\/li>\n<li>\n<p>[SYN_RCVD -&gt; ESTABLISHED] \u670d\u52a1\u7aef\u4e00\u65e6\u6536\u5230\u5ba2\u6237\u7aef\u7684\u786e\u8ba4\u62a5\u6587, \u5c31\u8fdb\u5165ESTABLISHED\u72b6\u6001, \u53ef\u4ee5\u8fdb\u884c\u8bfb\u5199\u6570\u636e\u4e86.<\/p>\n<\/li>\n<li>\n<p>[ESTABLISHED -&gt; CLOSE_WAIT] \u5f53\u5ba2\u6237\u7aef\u4e3b\u52a8\u5173\u95ed\u8fde\u63a5(\u8c03\u7528close), \u670d\u52a1\u5668\u4f1a\u6536\u5230\u7ed3\u675f\u62a5\u6587\u6bb5,\u670d\u52a1\u5668\u8fd4\u56de\u786e\u8ba4\u62a5\u6587\u6bb5\u5e76\u8fdb\u5165CLOSE_WAIT;<\/p>\n<\/li>\n<li>\n<p>[CLOSE_WAIT -&gt; LAST_ACK] \u8fdb\u5165CLOSE_WAIT\u540e\u8bf4\u660e\u670d\u52a1\u5668\u51c6\u5907\u5173\u95ed\u8fde\u63a5(\u9700\u8981\u5904\u7406\u5b8c\u4e4b\u524d\u7684\u6570\u636e); \u5f53\u670d\u52a1\u5668\u771f\u6b63\u8c03\u7528close\u5173\u95ed\u8fde\u63a5\u65f6, \u4f1a\u5411\u5ba2\u6237\u7aef\u53d1\u9001FIN, \u6b64\u65f6\u670d\u52a1\u5668\u8fdb\u5165LAST_ACK\u72b6\u6001, \u7b49\u5f85\u6700\u540e\u4e00\u4e2aACK\u5230\u6765(\u8fd9\u4e2aACK\u662f\u5ba2\u6237\u7aef\u786e\u8ba4\u6536\u5230\u4e86FIN)<\/p>\n<\/li>\n<li>\n<p>[LAST_ACK -&gt; CLOSED] \u670d\u52a1\u5668\u6536\u5230\u4e86\u5bf9FIN\u7684ACK, \u5f7b\u5e95\u5173\u95ed\u8fde\u63a5.<\/p>\n<\/li>\n<\/ul>\n<p>\u5ba2\u6237\u7aef\u72b6\u6001\u8f6c\u5316:<\/p>\n<ul>\n<li>\n<p>[CLOSED -&gt; SYN_SENT] \u5ba2\u6237\u7aef\u8c03\u7528connect, \u53d1\u9001\u540c\u6b65\u62a5\u6587\u6bb5;<\/p>\n<\/li>\n<li>\n<p>[SYN_SENT -&gt; ESTABLISHED] connect\u8c03\u7528\u6210\u529f, \u5219\u8fdb\u5165ESTABLISHED\u72b6\u6001, \u5f00\u59cb\u8bfb\u5199\u6570\u636e;<\/p>\n<\/li>\n<li>\n<p>[ESTABLISHED -&gt; FIN_WAIT_1] \u5ba2\u6237\u7aef\u4e3b\u52a8\u8c03\u7528close\u65f6, \u5411\u670d\u52a1\u5668\u53d1\u9001\u7ed3\u675f\u62a5\u6587\u6bb5, \u540c\u65f6\u8fdb\u5165FIN_WAIT_1;<\/p>\n<\/li>\n<li>\n<p>[FIN_WAIT_1 -&gt; FIN_WAIT_2] \u5ba2\u6237\u7aef\u6536\u5230\u670d\u52a1\u5668\u5bf9\u7ed3\u675f\u62a5\u6587\u6bb5\u7684\u786e\u8ba4, \u5219\u8fdb\u5165FIN_WAIT_2, \u5f00\u59cb\u7b49\u5f85\u670d\u52a1\u5668\u7684\u7ed3\u675f\u62a5\u6587\u6bb5;<\/p>\n<\/li>\n<li>\n<p>[FIN_WAIT_2 -&gt; TIME_WAIT] \u5ba2\u6237\u7aef\u6536\u5230\u670d\u52a1\u5668\u53d1\u6765\u7684\u7ed3\u675f\u62a5\u6587\u6bb5, \u8fdb\u5165TIME_WAIT, \u5e76\u53d1\u51faLAST_ACK;<\/p>\n<\/li>\n<li>\n<p>[TIME_WAIT -&gt; CLOSED] \u5ba2\u6237\u7aef\u8981\u7b49\u5f85\u4e00\u4e2a**2MSL(Max Segment Life, \u62a5\u6587\u6700\u5927\u751f\u5b58\u65f6\u95f4)**\u7684\u65f6\u95f4, \u624d\u4f1a\u8fdb\u5165CLOSED\u72b6\u6001.<\/p>\n<\/li>\n<\/ul>\n<p>\u4e0b\u56fe\u662fTCP\u72b6\u6001\u8f6c\u6362\u7684\u4e00\u4e2a\u6c47\u603b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024229-696eeb958d736.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u8f83\u7c97\u7684\u865a\u7ebf\u8868\u793a\u670d\u52a1\u7aef\u7684\u72b6\u6001\u53d8\u5316\u60c5\u51b5&#xff1b;<\/li>\n<li>\u8f83\u7c97\u7684\u5b9e\u7ebf\u8868\u793a\u5ba2\u6237\u7aef\u7684\u72b6\u6001\u53d8\u5316\u60c5\u51b5&#xff1b;<\/li>\n<li>CLOSED\u662f\u4e00\u4e2a\u5047\u60f3\u7684\u8d77\u59cb\u70b9&#xff0c;\u4e0d\u662f\u771f\u5b9e\u72b6\u6001&#xff1b;<\/li>\n<\/ul>\n<h3>5.5 \u8fde\u63a5\u7ba1\u7406\u673a\u5236<\/h3>\n<h4>5.5.1 \u7406\u89e3TIME_WAIT\u72b6\u6001&#xff08;\u670d\u52a1\u7aef\u4e3b\u52a8\u5173\u95ed\u4e4b\u540e\u4e0d\u80fd\u7acb\u5373\u91cd\u542f&#xff09;<\/h4>\n<p>\u73b0\u5728\u505a\u4e00\u4e2a\u6d4b\u8bd5,\u9996\u5148\u542f\u52a8server,\u7136\u540e\u542f\u52a8client,\u7136\u540e\u7528Ctrl-C\u4f7fserver\u7ec8\u6b62,\u8fd9\u65f6\u9a6c\u4e0a\u518d\u8fd0\u884cserver, \u7ed3\u679c\u662f:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024229-696eeb95f1dc5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u662f\u56e0\u4e3a&#xff0c;\u867d\u7136server\u7684\u5e94\u7528\u7a0b\u5e8f\u7ec8\u6b62\u4e86&#xff0c;\u4f46TCP\u534f\u8bae\u5c42\u7684\u8fde\u63a5\u5e76\u6ca1\u6709\u5b8c\u5168\u65ad\u5f00&#xff0c;\u56e0\u6b64\u4e0d\u80fd\u518d\u6b21\u76d1\u542c\u540c\u6837\u7684server\u7aef\u53e3\u3002\u6211\u4eec\u7528netstat\u547d\u4ee4\u67e5\u770b\u4e00\u4e0b:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024230-696eeb960de7f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\n<p>TCP\u534f\u8bae\u89c4\u5b9a&#xff0c;\u4e3b\u52a8\u5173\u95ed\u8fde\u63a5\u7684\u4e00\u65b9\u8981\u5904\u4e8eTIME_ WAIT\u72b6\u6001&#xff0c;\u7b49\u5f85\u4e24\u4e2aMSL(maximum segmentlifetime)\u7684\u65f6\u95f4\u540e\u624d\u80fd\u56de\u5230CLOSED\u72b6\u6001\u3002<\/p>\n<\/li>\n<li>\n<p>\u6211\u4eec\u4f7f\u7528Ctrl-C\u7ec8\u6b62\u4e86server&#xff0c;\u6240\u4ee5server\u662f\u4e3b\u52a8\u5173\u95ed\u8fde\u63a5\u7684\u4e00\u65b9&#xff0c;\u5728TIME_WAIT\u671f\u95f4\u4ecd\u7136\u4e0d\u80fd\u518d\u6b21\u76d1\u542c\u540c\u6837\u7684server\u7aef\u53e3&#xff1b;<\/p>\n<\/li>\n<li>\n<p>MSL\u5728RFC1122\u4e2d\u89c4\u5b9a\u4e3a\u4e24\u5206\u949f&#xff0c;\u4f46\u662f\u5404\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b9e\u73b0\u4e0d\u540c&#xff0c;\u5728Centos7\/Ubuntu\u4e0a\u9ed8\u8ba4\u914d\u7f6e\u7684\u503c\u662f60s&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u901a\u8fc7 cat \/proc\/sys\/net\/ipv4\/tcp_fin_timeout \u67e5\u770bmsl\u7684\u503c&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u89c4\u5b9aTIME_WAIT\u7684\u65f6\u95f4\u8bf7\u8bfb\u8005\u53c2\u8003UNP 2.7\u8282&#xff1b;<\/p>\n<\/li>\n<\/ul>\n<p>\u60f3\u4e00\u60f3&#xff0c;\u4e3a\u4ec0\u4e48\u662fTIME_WAIT \u7684\u65f6\u95f4\u662f2MSL ?<\/p>\n<ul>\n<li>MSL \u662fTCP \u62a5\u6587\u7684\u6700\u5927\u751f\u5b58\u65f6\u95f4&#xff0c;\u56e0\u6b64TIME_WAIT \u6301\u7eed\u5b58\u57282MSL&#xff08;Max Segment Life, \u62a5\u6587\u6700\u5927\u751f\u5b58\u65f6\u95f4&#xff09;\u7684\u8bdd&#xff0c;\u5c31\u80fd\u4fdd\u8bc1\u5728\u4e24\u4e2a\u4f20\u8f93\u65b9\u5411\u4e0a\u7684\u5c1a\u672a\u88ab\u63a5\u6536\u6216\u8fdf\u5230\u7684\u62a5\u6587\u6bb5\u90fd\u5df2\u7ecf\u6d88\u5931(\u5426\u5219\u670d\u52a1\u5668\u7acb\u523b\u91cd\u542f&#xff0c;\u53ef\u80fd\u4f1a\u6536\u5230\u6765\u81ea\u4e0a\u4e00\u4e2a\u8fdb\u7a0b\u7684\u8fdf\u5230\u7684\u6570\u636e&#xff0c;\u4f46\u662f\u8fd9\u79cd\u6570\u636e\u5f88\u53ef\u80fd\u662f\u9519\u8bef\u7684)&#xff1b;<\/li>\n<li>\u540c\u65f6\u4e5f\u662f\u5728\u7406\u8bba\u4e0a\u4fdd\u8bc1\u6700\u540e\u4e00\u4e2a\u62a5\u6587\u53ef\u9760\u5230\u8fbe(\u5047\u8bbe\u6700\u540e\u4e00\u4e2aACK\u4e22\u5931&#xff0c;\u90a3\u4e48\u670d\u52a1\u5668\u4f1a\u518d\u91cd\u53d1\u4e00\u4e2aFIN\u3002\u8fd9\u65f6\u867d\u7136\u5ba2\u6237\u7aef\u7684\u8fdb\u7a0b\u4e0d\u5728\u4e86&#xff0c;\u4f46\u662fTCP\u8fde\u63a5\u8fd8\u5728&#xff0c;\u4ecd\u7136\u53ef\u4ee5\u91cd\u53d1LAST_ACK)&#xff1b;<\/li>\n<li>\n<ul>\n<li>\u67e5\u770bMSL\u6307\u4ee4&#xff1a;cat \/proc\/sys\/net\/ipv4\/tcp_fin_timeout<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>5.5.2 \u89e3\u51b3TIME_WAIT\u72b6\u6001\u5f15\u8d77\u7684bind\u5931\u8d25\u7684\u65b9\u6cd5<\/h4>\n<p>\u5728server \u7684TCP \u8fde\u63a5\u6ca1\u6709\u5b8c\u5168\u65ad\u5f00\u4e4b\u524d\u4e0d\u5141\u8bb8\u91cd\u65b0\u76d1\u542c, \u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u662f\u4e0d\u5408\u7406\u7684<\/p>\n<ul>\n<li>\n<p>\u670d\u52a1\u5668\u9700\u8981\u5904\u7406\u975e\u5e38\u5927\u91cf\u7684\u5ba2\u6237\u7aef\u7684\u8fde\u63a5(\u6bcf\u4e2a\u8fde\u63a5\u7684\u751f\u5b58\u65f6\u95f4\u53ef\u80fd\u5f88\u77ed, \u4f46\u662f\u6bcf\u79d2\u90fd\u6709\u5f88\u5927\u6570\u91cf\u7684\u5ba2\u6237\u7aef\u6765\u8bf7\u6c42).<\/p>\n<\/li>\n<li>\n<p>\u8fd9\u4e2a\u65f6\u5019\u5982\u679c\u7531\u670d\u52a1\u5668\u7aef\u4e3b\u52a8\u5173\u95ed\u8fde\u63a5(\u6bd4\u5982\u67d0\u4e9b\u5ba2\u6237\u7aef\u4e0d\u6d3b\u8dc3, \u5c31\u9700\u8981\u88ab\u670d\u52a1\u5668\u7aef\u4e3b\u52a8\u6e05\u7406\u6389)&#xff0c;\u5c31\u4f1a\u4ea7\u751f\u5927\u91cfTIME_WAIT\u8fde\u63a5.<\/p>\n<\/li>\n<li>\n<p>\u7531\u4e8e\u6211\u4eec\u7684\u8bf7\u6c42\u91cf\u5f88\u5927, \u5c31\u53ef\u80fd\u5bfc\u81f4TIME_WAIT\u7684\u8fde\u63a5\u6570\u5f88\u591a, \u6bcf\u4e2a\u8fde\u63a5\u90fd\u4f1a\u5360\u7528\u4e00\u4e2a\u901a\u4fe1\u4e94\u5143\u7ec4(\u6e90ip, \u6e90\u7aef\u53e3, \u76ee\u7684ip, \u76ee\u7684\u7aef\u53e3, \u534f\u8bae)\u3002\u5176\u4e2d\u670d\u52a1\u5668\u7684ip\u548c\u7aef\u53e3\u548c\u534f\u8bae\u662f\u56fa\u5b9a\u7684\u3002\u5982\u679c\u65b0\u6765\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u7684ip\u548c\u7aef\u53e3\u53f7\u548cTIME_WAIT\u5360\u7528\u7684\u94fe\u63a5\u91cd\u590d\u4e86&#xff0c;\u5c31\u4f1a\u51fa\u73b0\u95ee\u9898.\u4f7f\u7528 setsockopt()\u8bbe\u7f6esocket \u63cf\u8ff0\u7b26\u7684\u9009\u9879SO_REUSEADDR \u4e3a1 , \u8868\u793a\u5141\u8bb8\u521b\u5efa\u7aef\u53e3\u53f7\u76f8\u540c\u4f46IP\u5730\u5740\u4e0d\u540c\u7684\u591a\u4e2asocket \u63cf\u8ff0\u7b26<\/p>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024230-696eeb9622daf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>5.5.3 \u7406\u89e3 CLOSE_WAIT \u72b6\u6001<\/h4>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">pragma<\/span> <span class=\"token expression\">once<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;functional&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;tcp_socket.hpp&#034;<\/span><\/span><br \/>\n<span class=\"token keyword\">typedef<\/span> std<span class=\"token double-colon punctuation\">::<\/span>function<span class=\"token operator\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> std<span class=\"token double-colon punctuation\">::<\/span>string<span class=\"token operator\">&amp;<\/span> req<span class=\"token punctuation\">,<\/span> std<span class=\"token double-colon punctuation\">::<\/span>string<span class=\"token operator\">*<\/span> resp<span class=\"token punctuation\">)<\/span><span class=\"token operator\">&gt;<\/span><br \/>\nHandler<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">class<\/span> <span class=\"token class-name\">TcpServer<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">public<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token function\">TcpServer<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> std<span class=\"token double-colon punctuation\">::<\/span>string<span class=\"token operator\">&amp;<\/span> ip<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">uint16_t<\/span> port<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">:<\/span> <span class=\"token function\">ip_<\/span><span class=\"token punctuation\">(<\/span>ip<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token function\">port_<\/span><span class=\"token punctuation\">(<\/span>port<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">bool<\/span> <span class=\"token function\">Start<\/span><span class=\"token punctuation\">(<\/span>Handler handler<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token comment\">\/\/ 1. \u521b\u5efa socket;<\/span><br \/>\n<span class=\"token function\">CHECK_RET<\/span><span class=\"token punctuation\">(<\/span>listen_sock_<span class=\"token punctuation\">.<\/span><span class=\"token function\">Socket<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ 2. \u7ed1\u5b9a\u7aef\u53e3\u53f7<\/span><br \/>\n<span class=\"token function\">CHECK_RET<\/span><span class=\"token punctuation\">(<\/span>listen_sock_<span class=\"token punctuation\">.<\/span><span class=\"token function\">Bind<\/span><span class=\"token punctuation\">(<\/span>ip_<span class=\"token punctuation\">,<\/span> port_<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ 3. \u8fdb\u884c\u76d1\u542c<\/span><br \/>\n<span class=\"token function\">CHECK_RET<\/span><span class=\"token punctuation\">(<\/span>listen_sock_<span class=\"token punctuation\">.<\/span><span class=\"token function\">Listen<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ 4. \u8fdb\u5165\u4e8b\u4ef6\u5faa\u73af<\/span><br \/>\n<span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token comment\">\/\/ 5. \u8fdb\u884c accept<\/span><br \/>\nTcpSocket new_sock<span class=\"token punctuation\">;<\/span><br \/>\nstd<span class=\"token double-colon punctuation\">::<\/span>string ip<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">uint16_t<\/span> port <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span>listen_sock_<span class=\"token punctuation\">.<\/span><span class=\"token function\">Accept<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>new_sock<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>ip<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>port<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token keyword\">continue<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;[client %s:%d] connect!\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> ip<span class=\"token punctuation\">.<\/span><span class=\"token function\">c_str<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> port<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ 6. \u8fdb\u884c\u5faa\u73af\u8bfb\u5199<\/span><br \/>\n<span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\nstd<span class=\"token double-colon punctuation\">::<\/span>string req<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ 7. \u8bfb\u53d6\u8bf7\u6c42. \u8bfb\u53d6\u5931\u8d25\u5219\u7ed3\u675f\u5faa\u73af<\/span><br \/>\n<span class=\"token keyword\">bool<\/span> ret <span class=\"token operator\">&#061;<\/span> new_sock<span class=\"token punctuation\">.<\/span><span class=\"token function\">Recv<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>req<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span>ret<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n<span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;[client %s:%d] disconnect!\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> ip<span class=\"token punctuation\">.<\/span><span class=\"token function\">c_str<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> port<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ [\u6ce8\u610f!] \u5c06\u6b64\u5904\u7684\u5173\u95ed socket \u53bb\u6389<\/span><br \/>\n<span class=\"token comment\">\/\/ new_sock.Close();<\/span><br \/>\n<span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token comment\">\/\/ 8. \u8ba1\u7b97\u54cd\u5e94<\/span><br \/>\nstd<span class=\"token double-colon punctuation\">::<\/span>string resp<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token function\">handler<\/span><span class=\"token punctuation\">(<\/span>req<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>resp<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">\/\/ 9. \u5199\u56de\u54cd\u5e94<\/span><br \/>\nnew_sock<span class=\"token punctuation\">.<\/span><span class=\"token function\">Send<\/span><span class=\"token punctuation\">(<\/span>resp<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;[%s:%d] req: %s, resp: %s\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> ip<span class=\"token punctuation\">.<\/span><span class=\"token function\">c_str<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> port<span class=\"token punctuation\">,<\/span><br \/>\nreq<span class=\"token punctuation\">.<\/span><span class=\"token function\">c_str<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> resp<span class=\"token punctuation\">.<\/span><span class=\"token function\">c_str<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">return<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">private<\/span><span class=\"token operator\">:<\/span><br \/>\nTcpSocket listen_sock_<span class=\"token punctuation\">;<\/span><br \/>\nstd<span class=\"token double-colon punctuation\">::<\/span>string ip_<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">uint64_t<\/span> port_<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u6211\u4eec\u7f16\u8bd1\u8fd0\u884c\u670d\u52a1\u5668\u3002\u542f\u52a8\u5ba2\u6237\u7aef\u94fe\u63a5&#xff0c;\u67e5\u770b TCP \u72b6\u6001&#xff0c;\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u90fd\u4e3a ESTABLELISHED \u72b6\u6001&#xff0c;\u6ca1\u6709\u95ee\u9898\u3002\u7136\u540e\u6211\u4eec\u5173\u95ed\u5ba2\u6237\u7aef\u7a0b\u5e8f, \u89c2\u5bdf TCP \u72b6\u6001\u3002<\/p>\n<p>tcp<span class=\"token number\">0<\/span> <span class=\"token number\">0<\/span> <span class=\"token number\">0.0<\/span>.0.0:9090 <span class=\"token number\">0.0<\/span>.0.0:* LISTEN<span class=\"token number\">5038<\/span>\/.\/dict_server<br \/>\ntcp<span class=\"token number\">0<\/span> <span class=\"token number\">0<\/span> <span class=\"token number\">127.0<\/span>.0.1:49958 <span class=\"token number\">127.0<\/span>.0.1:9090 FIN_WAIT2-<br \/>\ntcp<span class=\"token number\">0<\/span> <span class=\"token number\">0<\/span> <span class=\"token number\">127.0<\/span>.0.1:9090 <span class=\"token number\">127.0<\/span>.0.1:49958CLOSE_WAIT <span class=\"token number\">5038<\/span>\/.\/dict_server<\/p>\n<p>\u6b64\u65f6\u670d\u52a1\u5668\u8fdb\u5165\u4e86 CLOSE_WAIT \u72b6\u6001&#xff0c;\u7ed3\u5408\u6211\u4eec\u56db\u6b21\u6325\u624b\u7684\u6d41\u7a0b\u56fe&#xff0c;\u53ef\u4ee5\u8ba4\u4e3a\u56db\u6b21\u6325\u624b\u6ca1\u6709\u6b63\u786e\u5b8c\u6210\u3002<\/p>\n<p>&#x1f389; \u5c0f\u7ed3: \u5bf9\u4e8e\u670d\u52a1\u5668\u4e0a\u51fa\u73b0\u5927\u91cf\u7684 CLOSE_WAIT \u72b6\u6001&#xff0c;\u539f\u56e0\u5c31\u662f\u670d\u52a1\u5668\u6ca1\u6709\u6b63\u786e\u7684\u5173\u95edsocket&#xff0c;\u5bfc\u81f4\u56db\u6b21\u6325\u624b\u6ca1\u6709\u6b63\u786e\u5b8c\u6210\u3002\u8fd9\u662f\u4e00\u4e2a BUG\u3002\u53ea\u9700\u8981\u52a0\u4e0a\u5bf9\u5e94\u7684 close \u5373\u53ef\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<p>\u8fde\u63a5\u4e5f\u8981\u88ab\u7ba1\u7406&#xff0c;\u5148\u63cf\u8ff0&#xff0c;\u518d\u7ec4\u7ec7&#xff0c;struct Link{}<\/p>\n<h2>6. TCP \u7d27\u6025\u6a21\u5f0f&#xff08;Urgent Mode&#xff09;\u8be6\u89e3&#xff08;URG\u6807\u5fd7\u4f4d&#xff09;<\/h2>\n<p>TCP \u63d0\u4f9b\u53ef\u9760\u6027\u7684\u57fa\u7840\u662f32 \u4f4d\u5e8f\u53f7\u548c\u5b57\u8282\u6d41\u673a\u5236&#xff0c;\u4fdd\u8bc1\u6570\u636e\u6309\u5e8f\u3001\u65e0\u5dee\u9519\u5730\u4ea4\u4ed8\u7ed9\u5e94\u7528\u5c42\u3002\u4f46\u5728\u67d0\u4e9b\u573a\u666f\u4e0b&#xff08;\u5982\u7ec8\u7aef Ctrl&#043;C \u4e2d\u65ad&#xff09;&#xff0c;\u6211\u4eec\u9700\u8981\u53d1\u9001\u6bd4\u666e\u901a\u6570\u636e\u66f4\u7d27\u6025\u7684\u4fe1\u606f&#xff0c;\u8fd9\u5c31\u9700\u8981\u7528\u5230 URG \u6807\u5fd7\u4f4d\u548c 16 \u4f4d\u7d27\u6025\u6307\u9488\u3002<\/p>\n<p>1.\u6838\u5fc3\u5b57\u6bb5\u5b9a\u4e49<\/p>\n<ul>\n<li>URG \u6807\u5fd7\u4f4d&#xff1a;\n<ul>\n<li>\u5f53 URG&#061;1 \u65f6&#xff0c;\u8868\u793a\u672c\u62a5\u6587\u6bb5\u4e2d\u5305\u542b\u7d27\u6025\u6570\u636e\u3002<\/li>\n<li>\u6b64\u65f6&#xff0c;TCP \u9996\u90e8\u4e2d\u7684 16 \u4f4d\u7d27\u6025\u6307\u9488 \u5b57\u6bb5\u624d\u6709\u6548\u3002<\/li>\n<\/ul>\n<\/li>\n<li>16 \u4f4d\u7d27\u6025\u6307\u9488&#xff08;Urgent Pointer&#xff09;&#xff1a;\n<ul>\n<li>\u8fd9\u662f\u4e00\u4e2a\u504f\u79fb\u91cf&#xff0c;\u9700\u8981\u4e0e\u9996\u90e8\u4e2d\u7684 32 \u4f4d\u5e8f\u53f7 \u76f8\u52a0\u3002<\/li>\n<li>\u8ba1\u7b97\u7ed3\u679c&#xff1a;\u5e8f\u53f7 &#043; \u7d27\u6025\u6307\u9488 &#8211; 1 &#061; \u7d27\u6025\u6570\u636e\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u8282\u7684\u4f4d\u7f6e\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b83\u6307\u5411\u7d27\u6025\u6570\u636e\u5757\u7684\u5c3e\u90e8&#xff0c;\u800c\u4e0d\u662f\u5934\u90e8\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>2.\u7d27\u6025\u6570\u636e\u7684\u683c\u5f0f\u4e0e\u5927\u5c0f<\/p>\n<p>\u4fee\u6b63\u70b9&#xff1a;\u7d27\u6025\u6570\u636e\u7684\u5927\u5c0f\u53ef\u4ee5\u662f\u4efb\u610f\u957f\u5ea6&#xff08;\u53ea\u8981\u4e0d\u8d85\u8fc7 MSS&#xff09;\u3002<\/p>\n<ul>\n<li>\n<p>\u683c\u5f0f&#xff1a;TCP \u62a5\u6587\u6bb5\u4e2d&#xff0c;\u4ece\u7b2c\u4e00\u4e2a\u5b57\u8282\u5f00\u59cb&#xff0c;\u5230 \u201c\u7d27\u6025\u6307\u9488\u6307\u5411\u7684\u4f4d\u7f6e\u201d \u4e4b\u524d\u7684\u6240\u6709\u6570\u636e&#xff0c;\u90fd\u88ab\u89c6\u4e3a\u7d27\u6025\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ed3\u6784&#xff1a;<\/p>\n<p> | \u7d27\u6025\u6570\u636e\u90e8\u5206 | \u666e\u901a\u6570\u636e\u90e8\u5206 |<br \/>\n| (Urgent)    | (Normal)    |<br \/>\n|&lt;&#8212; \u6307\u9488\u6307\u5411\u8fd9\u91cc (\u672b\u5c3e) &#8212;&gt;|\n <\/li>\n<li>\n<p>\u6ce8\u610f&#xff1a;\u867d\u7136\u534f\u8bae\u5141\u8bb8\u53d1\u9001\u957f\u7d27\u6025\u6570\u636e&#xff0c;\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d&#xff08;\u5982 Telnet\/Rlogin&#xff09;&#xff0c;\u901a\u5e38\u53ea\u53d1\u9001 1 \u4e2a\u5b57\u8282 \u7684\u63a7\u5236\u5b57\u7b26&#xff08;\u5982 0x03 \u4ee3\u8868 Ctrl&#043;C&#xff09;&#xff0c;\u56e0\u4e3a\u76ee\u7684\u53ea\u662f\u4e3a\u4e86\u901a\u77e5\u5bf9\u65b9 \u201c\u6709\u7d27\u6025\u4e8b\u4ef6\u53d1\u751f\u201d&#xff0c;\u800c\u4e0d\u662f\u4f20\u8f93\u5927\u91cf\u6570\u636e\u3002<\/p>\n<\/li>\n<\/ul>\n<p>3.\u5904\u7406\u673a\u5236&#xff08;\u5e26\u5916\u6570\u636e OOB&#xff09;<\/p>\n<p>\u5f53\u63a5\u6536\u7aef\u6536\u5230 URG&#061;1 \u7684\u62a5\u6587\u65f6&#xff1a;<\/p>\n<li>\u5185\u6838\u901a\u77e5&#xff1a;\u5185\u6838\u4f1a\u7acb\u5373\u901a\u77e5\u5e94\u7528\u7a0b\u5e8f&#xff08;\u4f8b\u5982\u901a\u8fc7\u4fe1\u53f7 SIGURG \u6216 I\/O \u590d\u7528\u4e8b\u4ef6&#xff09;\u3002<\/li>\n<li>\u8bfb\u53d6\u65b9\u5f0f&#xff1a;\n<ul>\n<li>\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u4f7f\u7528 MSG_OOB \u6807\u5fd7\u8bfb\u53d6\u8fd9\u90e8\u5206\u6570\u636e&#xff08;\u79f0\u4e3a\u5e26\u5916\u6570\u636e&#xff09;\u3002<\/li>\n<li>\u5982\u679c\u4e0d\u8bfb\u53d6\u7d27\u6025\u6570\u636e&#xff0c;\u5b83\u4f1a\u88ab\u7559\u5728\u7f13\u51b2\u533a\u4e2d&#xff0c;\u540e\u7eed\u8bfb\u53d6\u666e\u901a\u6570\u636e\u65f6\u4f1a\u6309\u987a\u5e8f\u8bfb\u5230\u5b83&#xff08;\u53d8\u6210\u666e\u901a\u6570\u636e&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<p>4.\u4e0e PSH \u6807\u5fd7\u4f4d\u7684\u533a\u522b<\/p>\n<ul>\n<li>URG&#xff08;\u7d27\u6025&#xff09;&#xff1a;\u544a\u8bc9\u5bf9\u65b9 \u201c\u8fd9\u4e2a\u6570\u636e\u5f88\u91cd\u8981&#xff0c;\u8bf7\u4f18\u5148\u5904\u7406&#xff0c;\u4e0d\u8981\u7b49\u7f13\u51b2\u533a\u6ee1\u4e86\u518d\u901a\u77e5\u5e94\u7528\u5c42\u201d\u3002\u5b83\u662f\u903b\u8f91\u4e0a\u7684\u4f18\u5148\u7ea7\u3002<\/li>\n<li>PSH&#xff08;\u63a8\u9001&#xff09;&#xff1a;\u544a\u8bc9\u5bf9\u65b9 \u201c\u6570\u636e\u53d1\u9001\u5b8c\u4e86&#xff0c;\u8bf7\u7acb\u5373\u9012\u4ea4\u7ed9\u5e94\u7528\u5c42&#xff0c;\u4e0d\u8981\u7f13\u5b58\u201d\u3002\u5b83\u662f\u4f20\u8f93\u4e0a\u7684\u7acb\u5373\u6027\u3002<\/li>\n<\/ul>\n<p>\u603b\u7ed3<\/p>\n<p>TCP \u7684\u53ef\u9760\u6027\u7531\u5e8f\u53f7\u4fdd\u8bc1&#xff0c;\u800c\u7d27\u6025\u6a21\u5f0f&#xff08;URG&#xff09;\u5219\u662f\u5728\u53ef\u9760\u5b57\u8282\u6d41\u4e4b\u4e0a\u63d0\u4f9b\u7684\u4e00\u79cd\u5e26\u5916\u901a\u4fe1&#xff08;Out-of-Band&#xff09;\u80fd\u529b\u3002<\/p>\n<ul>\n<li>URG&#061;1&#xff1a;\u6807\u8bb0\u6709\u7d27\u6025\u6570\u636e\u3002<\/li>\n<li>\u7d27\u6025\u6307\u9488&#xff1a;\u6307\u5411\u7d27\u6025\u6570\u636e\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u8282\u3002<\/li>\n<li>\u5927\u5c0f&#xff1a;\u7406\u8bba\u4e0a\u53ef\u53d8&#xff0c;\u5b9e\u9645\u5e38\u7528 1 \u5b57\u8282\u63a7\u5236\u7b26\u3002<\/li>\n<li>\u76ee\u7684&#xff1a;\u7528\u4e8e\u4f20\u8f93\u4e2d\u65ad\u6307\u4ee4&#xff08;\u5982 Ctrl&#043;C&#xff09;\u6216\u5f02\u5e38\u901a\u77e5\u3002<\/li>\n<\/ul>\n<p>\u2026\u8fc7\u4e91\u96e8\ue822-CSDN\u535a\u5ba2\u4e3b\u9875<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f551. TCP\u534f\u8bae\u56db\u5c42\u6a21\u578b2. TCP\u534f\u8bae\u6bb5\u683c\u5f0f2.1 TCP \u9996\u90e8\u6574\u4f53\u7ed3\u67842.2 \u5404\u5b57\u6bb5\u8be6\u7ec6\u89e3\u67902.3 \u5173\u952e\u8865\u5145\u8bf4\u660e3.\u786e\u8ba4\u5e94\u7b54(ACK)\u673a\u523632\u4f4d\u5e8f\u53f7&amp;\u786e\u8ba4\u53f7&#xff08;\u53ef\u9760\u6027\u4fdd\u8bc1&#xff09;&#xff08;\u91cd\u70b9&#xff09;4. \u7406\u89e3\u201d\u4e22\u5305\u201c&#xff08;\u4e22\u5305&#xff08;Retransmission&#xff09;  \u6570\u636e\u5df2\u53d1\u9001  \u672a\u6536\u5230 ACK  \u65f6\u95f4\u8017\u5c3d&#xff08;RTO&#xff09;&#xff09;4.1 \u4e22\u53054.2 \u8d85\u65f6\u91cd\u4f20\u673a\u52365. \u8fde\u63a5<\/p>\n","protected":false},"author":2,"featured_media":62604,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[205,78,176],"topic":[],"class_list":["post-62618","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-tcp-ip","tag-78","tag-176"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3 - \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\/62618.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f551. TCP\u534f\u8bae\u56db\u5c42\u6a21\u578b2. TCP\u534f\u8bae\u6bb5\u683c\u5f0f2.1 TCP \u9996\u90e8\u6574\u4f53\u7ed3\u67842.2 \u5404\u5b57\u6bb5\u8be6\u7ec6\u89e3\u67902.3 \u5173\u952e\u8865\u5145\u8bf4\u660e3.\u786e\u8ba4\u5e94\u7b54(ACK)\u673a\u523632\u4f4d\u5e8f\u53f7&amp;\u786e\u8ba4\u53f7&#xff08;\u53ef\u9760\u6027\u4fdd\u8bc1&#xff09;&#xff08;\u91cd\u70b9&#xff09;4. \u7406\u89e3\u201d\u4e22\u5305\u201c&#xff08;\u4e22\u5305&#xff08;Retransmission&#xff09; \u6570\u636e\u5df2\u53d1\u9001 \u672a\u6536\u5230 ACK \u65f6\u95f4\u8017\u5c3d&#xff08;RTO&#xff09;&#xff09;4.1 \u4e22\u53054.2 \u8d85\u65f6\u91cd\u4f20\u673a\u52365. \u8fde\u63a5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/62618.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-20T02:42:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024216-696eeb8875ba6.png\" \/>\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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62618.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/62618.html\",\"name\":\"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-20T02:42:31+00:00\",\"dateModified\":\"2026-01-20T02:42:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/62618.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/62618.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62618.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3\"}]},{\"@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":"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3 - \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\/62618.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f551. TCP\u534f\u8bae\u56db\u5c42\u6a21\u578b2. TCP\u534f\u8bae\u6bb5\u683c\u5f0f2.1 TCP \u9996\u90e8\u6574\u4f53\u7ed3\u67842.2 \u5404\u5b57\u6bb5\u8be6\u7ec6\u89e3\u67902.3 \u5173\u952e\u8865\u5145\u8bf4\u660e3.\u786e\u8ba4\u5e94\u7b54(ACK)\u673a\u523632\u4f4d\u5e8f\u53f7&amp;\u786e\u8ba4\u53f7&#xff08;\u53ef\u9760\u6027\u4fdd\u8bc1&#xff09;&#xff08;\u91cd\u70b9&#xff09;4. \u7406\u89e3\u201d\u4e22\u5305\u201c&#xff08;\u4e22\u5305&#xff08;Retransmission&#xff09; \u6570\u636e\u5df2\u53d1\u9001 \u672a\u6536\u5230 ACK \u65f6\u95f4\u8017\u5c3d&#xff08;RTO&#xff09;&#xff09;4.1 \u4e22\u53054.2 \u8d85\u65f6\u91cd\u4f20\u673a\u52365. \u8fde\u63a5","og_url":"https:\/\/www.wsisp.com\/helps\/62618.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-20T02:42:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120024216-696eeb8875ba6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/62618.html","url":"https:\/\/www.wsisp.com\/helps\/62618.html","name":"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-20T02:42:31+00:00","dateModified":"2026-01-20T02:42:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/62618.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/62618.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/62618.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9762\u8bd5\u5fc5\u95ee\uff1aTCP \u4e09\u6b21\u63e1\u624b\u4e0e\u56db\u6b21\u6325\u624b\u8be6\u89e3"}]},{"@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\/62618","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=62618"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62618\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/62604"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=62618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=62618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=62618"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=62618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}