{"id":10005967,"date":"2022-07-22T11:37:44","date_gmt":"2022-07-22T03:37:44","guid":{"rendered":"https:\/\/ityet.com\/?p=10005967"},"modified":"2022-07-22T11:37:44","modified_gmt":"2022-07-22T03:37:44","slug":"%e9%9d%a2%e8%af%95%e7%aa%81%e5%87%bb67%ef%bc%9a%e8%af%b4%e4%b8%80%e4%b8%8b-tcp-ip-%e5%8d%8f%e8%ae%ae%ef%bc%9f%e4%bb%a5%e5%8f%8a%e6%af%8f%e5%b1%82%e7%9a%84%e4%bd%9c%e7%94%a8%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10005967","title":{"rendered":"\u9762\u8bd5\u7a81\u51fb67\uff1a\u8bf4\u4e00\u4e0b TCP\/IP \u534f\u8bae\uff1f\u4ee5\u53ca\u6bcf\u5c42\u7684\u4f5c\u7528\uff1f"},"content":{"rendered":"<p>TCP\/IP \u5305\u542b\u56db\u5c42\u6a21\u578b\uff0c\u4ece\u4e0a\u5c42\u5f80\u4e0b\u5c42\u5206\u522b\u662f\uff1a\u5e94\u7528\u5c42\u3001\u4f20\u8f93\u5c42\u3001\u7f51\u7edc\u5c42\u3001\u6570\u636e\u94fe\u8def\u5c42\u3002\u6709\u4e9b\u8d44\u6599\u4e5f\u4f1a\u8bf4 TCP\/IP \u662f\u4e94\u5c42\u6a21\u578b\uff0c\u6240\u8c13\u7684\u4e94\u5c42\u6a21\u578b\u6307\u7684\u662f\u5728\u6570\u636e\u94fe\u8def\u5c42\u4e0b\u9762\u8fd8\u6709\u4e00\u4e2a\u7269\u7406\u5c42\uff0c\u800c\u4f5c\u4e3a\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u4e00\u822c\u4e0d\u9700\u8981\u5173\u6ce8\u7269\u7406\u5c42\uff0c\u6240\u4ee5\u901a\u5e38\u6211\u4eec\u8bf4 TCP\/IP \u56db\u5c42\u6a21\u578b\u66f4\u591a\u4e00\u4e9b\u3002<\/p>\n<h2>1.\u5e94\u7528\u5c42<\/h2>\n<p><strong>\u5e94\u7528\u5c42\u7684\u4f5c\u7528\u662f\u8d1f\u8d23\u5e94\u7528\u7a0b\u5e8f\u95f4\u7684\u6570\u636e\u901a\u8baf\u7684\u3002<\/strong> \u4e0d\u540c\u7684\u7f51\u7edc\u5e94\u7528\u9700\u8981\u4e0d\u540c\u7684\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u6bd4\u5982\u7535\u5b50\u90ae\u4ef6\u4f20\u8f93 SMTP \u534f\u8bae\u3001\u6587\u4ef6\u4f20\u8f93 FTP \u534f\u8bae\u3001\u7f51\u7edc\u8fdc\u7a0b\u8bbf\u95ee Telnet \u534f\u8bae\u7b49\u7b49\u3002<\/p>\n<h3>\u5e38\u89c1\u534f\u8bae<\/h3>\n<p>\u5e94\u7528\u5c42\u7684\u5e38\u89c1\u534f\u8bae\u6709\u4ee5\u4e0b\u4e24\u4e2a\uff1a<\/p>\n<ul>\n<li>DNS \u57df\u540d\u89e3\u6790\u534f\u8bae\uff08Domain Name System\uff0c\u57df\u540d\u7cfb\u7edf\uff09\uff0cDNS \u662f\u5c06\u57df\u540d\u548c IP \u505a\u4e00\u4e2a\u6620\u5c04\uff0c\u56e0\u4e3a\u5728\u7a0b\u5e8f\u95f4\u901a\u8baf\u4f9d\u9760\u7684\u662f IP\uff0c\u4f46 IP \u5730\u5740\u4e0d\u65b9\u4fbf\u8bb0\u5fc6\uff0c\u800c\u57df\u540d\u65b9\u4fbf\u8bb0\u5fc6\uff0c\u6240\u4ee5\u5c06\u4e8c\u8005\u4f5c\u4e3a\u4e00\u4e2a key-value \u6620\u5c04\u5728\u4e00\u8d77\uff0c\u8fd9\u6837\u77e5\u9053\u4e86\u57df\u540d\u7f6e\u6362\u5c31\u80fd\u627e\u5bf9\u4e0e\u4e4b\u76f8\u5bf9\u5e94\u7684 IP \u4e86\uff0c\u8fd9\u6837\u65e2\u80fd\u65b9\u4fbf\u7528\u6237\u8bb0\u5fc6\uff0c\u540c\u65f6\u53c8\u80fd\u6ee1\u8db3\u7a0b\u5e8f\u95f4\u7684\u6570\u636e\u901a\u8baf\u3002<\/li>\n<li>HTTP \u534f\u8bae\uff08HyperText Transfer Protocol\uff0c\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff09\uff0c\u4e92\u8054\u7f51\u4e0a\u5e94\u7528\u6700\u4e3a\u5e7f\u6cdb\u7684\u4e00\u79cd\u7f51\u7edc\u534f\u8bae\u3002\u6240\u6709\u7684 WWW\uff08\u4e07\u7ef4\u7f51\uff09 \u6587\u4ef6\u90fd\u5fc5\u987b\u9075\u5b88\u8fd9\u4e2a\u6807\u51c6\u3002<\/li>\n<\/ul>\n<h2>2.\u4f20\u8f93\u5c42<\/h2>\n<p><strong>\u4f20\u8f93\u5c42\u7684\u4e3b\u8981\u4f5c\u7528\u662f\u8d1f\u8d23\u4e24\u53f0\u4e3b\u673a\u95f4\u7684\u6570\u636e\u4f20\u8f93\u7684\u3002<\/strong> \u5982\u4f20\u8f93\u63a7\u5236\u534f\u8bae (TCP)\uff0c\u80fd\u591f\u786e\u4fdd\u6570\u636e\u53ef\u9760\u7684\u4ece\u6e90\u4e3b\u673a\u53d1\u9001\u5230\u76ee\u6807\u4e3b\u673a\u3002<\/p>\n<blockquote><p>\u6ce8\u610f\uff1a\u5e94\u7528\u5c42\u548c\u4f20\u8f93\u5c42\u63cf\u8ff0\u7684\u4e3b\u4f53\u5bf9\u8c61\u662f\u4e0d\u540c\u7684\uff0c\u5e94\u7528\u5c42\u63cf\u8ff0\u7684\u4e3b\u4f53\u662f\u201c\u5e94\u7528\u7a0b\u5e8f\u95f4\u201d\uff0c\u800c\u4f20\u8f93\u5c42\u63cf\u8ff0\u7684\u4e3b\u4f53\u662f\u201c\u4e24\u53f0\u4e3b\u673a\u95f4\u201d\u3002\u5176\u4e2d\uff0c\u4e00\u4e2a\u4e3b\u673a\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u6240\u4ee5\u4e8c\u8005\u662f\u4e0d\u540c\u7684\u3002<\/p><\/blockquote>\n<h3>\u5e38\u89c1\u534f\u8bae<\/h3>\n<p>\u4f20\u8f93\u5c42\u7684\u5e38\u89c1\u534f\u8bae\u6709\u4ee5\u4e0b\u4e24\u4e2a\uff1a<\/p>\n<ul>\n<li>TCP \u534f\u8bae\uff08Transmission Control Protocol\uff0c\u4f20\u8f93\u63a7\u5236\u534f\u8bae\uff09\uff1a\u63d0\u4f9b\u4e86\u7a33\u5b9a\u7684\u3001\u9700\u8981\u8fde\u63a5\u7684\u3001\u9762\u5411\u5b57\u8282\u6d41\u7684\u534f\u8bae\u3002<\/li>\n<li>UDP \u534f\u8bae\uff08User Datagram Protocol\uff0c\u7528\u6237\u6570\u636e\u534f\u8bae\uff09\uff1a\u63d0\u4f9b\u4e86\u65e0\u8fde\u63a5\u7684\u3001\u4e0d\u7a33\u5b9a\u7684\u3001\u9762\u5411\u6570\u636e\u62a5\u7684\u534f\u8bae\u3002<\/li>\n<\/ul>\n<h2>3.\u7f51\u7edc\u5c42<\/h2>\n<p><strong>\u7f51\u7edc\u5c42\u7684\u4f5c\u7528\u662f\u8d1f\u8d23\u7f51\u7edc\u4e0a\u7684\u5730\u5740\u7ba1\u7406\u548c\u8def\u7531\u9009\u62e9\u7684\u3002<\/strong> \u5728\u6570\u636e\u901a\u8baf\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u5f88\u591a\u6761\u8def\u5f84\uff08\u62b5\u8fbe\u76ee\u7684\u5730\u7684\uff09\uff0c\u6bd4\u5982\u4ece\u897f\u5b89\u5230\u5317\u4eac\uff0c\u53ef\u4ee5\u9009\u62e9\u5148\u4ece\u897f\u5b89 -&gt; \u592a\u539f -&gt; \u5317\u4eac\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u4ece\u897f\u5b89 -&gt; \u90d1\u5dde -&gt; \u77f3\u5bb6\u5e84 -&gt; \u5317\u4eac\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u4ece\u897f\u5b89 -&gt; \u5ef6\u5b89 -&gt; \u547c\u548c\u6d69\u7279 -&gt; \u5f20\u5bb6\u53e3 -&gt; \u5317\u4eac\uff0c\u7a76\u7adf\u9009\u62e9\u90a3\u4e00\u6761\u8def\u5462\uff1f\u8fd9\u5c31\u662f\u7f51\u7edc\u5c42\u8d1f\u8d23\u7684\u3002<\/p>\n<h2>4.\u6570\u636e\u94fe\u8def\u5c42<\/h2>\n<p><strong>\u6570\u636e\u94fe\u8def\u5c42\u7684\u4f5c\u7528\u662f\u8d1f\u8d23\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u5e27\u7684\u4f20\u9001\u548c\u8bc6\u522b\u7684\u3002<\/strong> \u6570\u636e\u5728\u4f20\u8f93\u65f6\u9700\u8981\u7ecf\u8fc7\u591a\u4e2a\u8bbe\u5907\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u800c\u6570\u636e\u94fe\u8def\u5c42\u5c31\u662f\u8d1f\u8d23\u76f8\u90bb\u8bbe\u5907\u95f4\u7684\u6570\u636e\u4f20\u8f93\u548c\u8bc6\u522b\u7684\u3002<br \/>  \u6570\u636e\u94fe\u8def\u5c42\u53ef\u4ee5\u5b8c\u5168\u6d88\u9664\u7f51\u7edc\u5c42\u548c\u7269\u7406\u5c42\u4e4b\u95f4\u7684\u4e0d\u540c\uff0c\u5c06\u6570\u636e\u5728\u94fe\u8def\u5c42\u8fdb\u884c\u6709\u6548\u7684\u8bc6\u522b\u548c\u4f20\u8f93\u3002<\/p>\n<h2>5.\u7269\u7406\u5c42\uff08\u53ef\u9009\uff09<\/h2>\n<p><strong>\u7269\u7406\u5c42\u7684\u4f5c\u7528\u662f\u8d1f\u8d23\u5c06\u6570\u636e\u8f6c\u6362\u6210\u4fe1\u53f7\uff0c\u518d\u5c06\u4fe1\u53f7\u8f6c\u6362\u4e3a\u6570\u636e\u7684\u3002<\/strong> \u8f6c\u6362\u65b9\u6cd5\u56e0\u901a\u8baf\u5a92\u4f53\u4e0d\u540c\u800c\u4e0d\u540c\uff0c\u6240\u4ee5\u6ca1\u6709\u7279\u5b9a\u7684\u534f\u8bae\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>TCP\/IP \u5305\u542b\u4e86\u4e94\u5c42\uff08\u6216\u56db\u5c42\uff09\u6a21\u578b\uff0c\u4ece\u4e0a\u5c42\u5f80\u4e0b\u5c42\u5206\u522b\u662f\uff1a<\/p>\n<ul>\n<li>\u5e94\u7528\u5c42\uff1a\u8d1f\u8d23\u5e94\u7528\u7a0b\u5e8f\u95f4\u7684\u6570\u636e\u901a\u8baf\u3002<\/li>\n<li>\u4f20\u8f93\u5c42\uff1a\u8d1f\u8d23\u4e24\u53f0\u4e3b\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/li>\n<li>\u7f51\u7edc\u5c42\uff1a\u8d1f\u8d23\u7f51\u7edc\u5730\u5740\u7684\u7ba1\u7406\u548c\u8def\u7531\u9009\u62e9\u3002<\/li>\n<li>\u6570\u636e\u94fe\u8def\u5c42\uff1a\u8d1f\u8d23\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u5e27\u7684\u4f20\u9001\u548c\u8bc6\u522b\u3002<\/li>\n<li>\u7269\u7406\u5c42\uff08\u53ef\u9009\uff09\uff1a\u8d1f\u8d23\u6570\u636e\u548c\u4fe1\u53f7\u95f4\u7684\u8f6c\u6362\u3002<\/li>\n<\/ul>\n<blockquote>\n<p>\u662f\u975e\u5ba1\u4e4b\u4e8e\u5df1\uff0c\u6bc1\u8a89\u542c\u4e4b\u4e8e\u4eba\uff0c\u5f97\u5931\u5b89\u4e4b\u4e8e\u6570\u3002<\/p>\n<p>\u516c\u4f17\u53f7\uff1aJava\u9762\u8bd5\u771f\u9898\u89e3\u6790<\/p>\n<p>\u9762\u8bd5\u5408\u96c6\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=d1c2wh63TeaNp7ZGPqzWOw%3D%3D.0QZezIZj%2FQbIr2vaEZGbzB9qq%2FIHaNq0PxdJL%2BoUjUCZJtwQ%2BzHb74IxqImeqUqZ\" rel=\"nofollow\">https:\/\/gitee.com\/mydb\/interview<\/a><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042207268\">https:\/\/segmentfault.com\/a\/1190000042207268<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TCP\/IP \u5305\u542b\u56db\u5c42\u6a21\u578b\uff0c\u4ece\u4e0a\u5c42\u5f80\u4e0b\u5c42\u5206\u522b\u662f\uff1a\u5e94\u7528\u5c42\u3001\u4f20\u8f93\u5c42\u3001\u7f51\u7edc\u5c42\u3001\u6570\u636e\u94fe\u8def\u5c42\u3002\u6709\u4e9b\u8d44\u6599\u4e5f\u4f1a\u8bf4 TCP\/I [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10005967","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10005967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10005967"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10005967\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10005967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10005967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10005967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}