{"id":477662,"date":"2023-08-09T09:18:35","date_gmt":"2023-08-09T09:18:35","guid":{"rendered":""},"modified":"2023-09-05T11:15:09","modified_gmt":"2023-09-05T11:15:09","slug":"internet-control-message-protocol","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/cn\/wiki\/internet-control-message-protocol\/","title":{"rendered":"\u4e92\u8054\u7f51\u63a7\u5236\u6d88\u606f\u534f\u8bae"},"content":{"rendered":"<h2>\u4ecb\u7ecd<\/h2>\n<p>\u4e92\u8054\u7f51\u63a7\u5236\u6d88\u606f\u534f\u8bae (ICMP) \u662f\u4e92\u8054\u7f51\u534f\u8bae (IP) \u5957\u4ef6\u4e2d\u4f7f\u7528\u7684\u4e00\u79cd\u57fa\u672c\u7f51\u7edc\u5c42\u534f\u8bae\u3002\u5b83\u5728\u4fc3\u8fdb\u7f51\u7edc\u4e0a\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u65b9\u9762\u8d77\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\uff0c\u5e76\u63d0\u4f9b\u5404\u79cd\u8bca\u65ad\u548c\u9519\u8bef\u62a5\u544a\u529f\u80fd\u3002ICMP \u901a\u5e38\u88ab\u89c6\u4e3a\u73b0\u4ee3\u7f51\u7edc\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\uff0c\u5141\u8bb8\u7f51\u7edc\u8bbe\u5907\u4ea4\u6362\u63a7\u5236\u6d88\u606f\u4ee5\u786e\u4fdd\u57fa\u4e8e IP \u7684\u7f51\u7edc\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<h2>\u5386\u53f2\u4e0e\u8d77\u6e90<\/h2>\n<p>ICMP \u6700\u521d\u662f\u5728 20 \u4e16\u7eaa 80 \u5e74\u4ee3\u521d\u671f\u8bbe\u8ba1\u7684\uff0c\u662f RFC 792 \u4e2d\u5b9a\u4e49\u7684\u539f\u59cb TCP\/IP \u89c4\u8303\u7684\u4e00\u90e8\u5206\u3002\u5b83\u7684\u521b\u5efa\u53ef\u4ee5\u5f52\u529f\u4e8e Dave Mills\uff0c\u4ed6\u5728\u4f20\u8f93\u63a7\u5236\u534f\u8bae (TCP) \u548c IP \u65b9\u9762\u7684\u5de5\u4f5c\u4e2d\u6982\u8ff0\u4e86 ICMP \u7684\u57fa\u672c\u6982\u5ff5\u3002\u4ece\u90a3\u65f6\u8d77\uff0cICMP \u7ecf\u5386\u4e86\u591a\u6b21\u4fee\u8ba2\u548c\u66f4\u65b0\uff0c\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u65b0\u529f\u80fd\u4e0d\u65ad\u589e\u52a0\u3002<\/p>\n<h2>\u6709\u5173 ICMP \u7684\u8be6\u7ec6\u4fe1\u606f<\/h2>\n<p>ICMP \u5728 OSI \u6a21\u578b\u7684\u7f51\u7edc\u5c42\uff08\u7b2c 3 \u5c42\uff09\u8fd0\u884c\uff0c\u4e0e IP \u534f\u540c\u5de5\u4f5c\u3002\u5176\u4e3b\u8981\u4efb\u52a1\u5305\u62ec\u62a5\u544a\u9519\u8bef\u3001\u8bca\u65ad\u529f\u80fd\u4ee5\u53ca\u63d0\u4f9b\u6709\u5173\u7f51\u7edc\u72b6\u51b5\u7684\u53cd\u9988\u3002ICMP \u662f\u4e00\u79cd\u65e0\u8fde\u63a5\u534f\u8bae\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u5728\u4f20\u8f93\u6d88\u606f\u4e4b\u524d\u4e0d\u4f1a\u5efa\u7acb\u4e13\u7528\u4f1a\u8bdd\u3002\u76f8\u53cd\uff0c\u5b83\u4f7f\u7528 IP \u670d\u52a1\u6765\u4f20\u9012\u6d88\u606f\u3002<\/p>\n<h2>\u5185\u90e8\u7ed3\u6784\u4ee5\u53ca ICMP \u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>ICMP \u6d88\u606f\u5c01\u88c5\u5728 IP \u6570\u636e\u5305\u4e2d\u3002\u5f53\u8def\u7531\u5668\u6216\u4e3b\u673a\u5728\u5904\u7406 IP \u6570\u636e\u5305\u65f6\u9047\u5230\u95ee\u9898\u65f6\uff0c\u5b83\u4f1a\u751f\u6210 ICMP \u6d88\u606f\u4ee5\u901a\u77e5\u6e90\u8bbe\u5907\u6709\u5173\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u5982\u679c\u8def\u7531\u5668\u6536\u5230\u53d1\u5f80\u4e0d\u5b58\u5728\u4e3b\u673a\u7684 IP \u6570\u636e\u5305\uff0c\u5b83\u5c06\u751f\u6210 ICMP\u201c\u76ee\u6807\u4e0d\u53ef\u8bbf\u95ee\u201d\u6d88\u606f\u4ee5\u901a\u77e5\u53d1\u9001\u8005\u3002<\/p>\n<p>ICMP \u4f9d\u8d56\u4e8e\u5404\u79cd\u6d88\u606f\u7c7b\u578b\uff0c\u6bcf\u79cd\u7c7b\u578b\u90fd\u6709\u7279\u5b9a\u7528\u9014\u3002\u4e00\u4e9b\u5e38\u89c1\u7684 ICMP \u6d88\u606f\u7c7b\u578b\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u56de\u663e\u8bf7\u6c42\u548c\u56de\u663e\u7b54\u590d\uff08\u7528\u4e8e\u8457\u540d\u7684\u201cping\u201d\u5b9e\u7528\u7a0b\u5e8f\u8fdb\u884c\u7f51\u7edc\u8fde\u63a5\u6d4b\u8bd5\uff09\u3002<\/li>\n<li>\u76ee\u6807\u4e0d\u53ef\u8fbe\uff08\u8868\u793a\u76ee\u6807\u4e3b\u673a\u6216\u7f51\u7edc\u4e0d\u53ef\u8fbe\uff09\u3002<\/li>\n<li>\u8d85\u51fa\u65f6\u95f4\uff08\u7528\u4e8e\u6307\u793a\u6570\u636e\u5305\u5df2\u8d85\u51fa\u5176\u751f\u5b58\u65f6\u95f4\u503c\u5e76\u88ab\u4e22\u5f03\uff09\u3002<\/li>\n<li>\u91cd\u5b9a\u5411\uff08\u901a\u77e5\u4e3b\u673a\u4f7f\u7528\u5907\u7528\u8def\u7531\u53d1\u9001\u6570\u636e\u5305\uff09\u3002<\/li>\n<\/ul>\n<p>ICMP \u6d88\u606f\u7531\u7c7b\u578b\u5b57\u6bb5\u548c\u4ee3\u7801\u5b57\u6bb5\u6807\u8bc6\uff0c\u53ef\u7528\u4e8e\u5bf9\u9519\u8bef\u8fdb\u884c\u5177\u4f53\u5206\u7c7b\u3002\u6821\u9a8c\u548c\u5b57\u6bb5\u7528\u4e8e\u9a8c\u8bc1 ICMP \u6d88\u606f\u7684\u5b8c\u6574\u6027\u3002<\/p>\n<h2>ICMP \u7684\u4e3b\u8981\u529f\u80fd<\/h2>\n<p>ICMP \u63d0\u4f9b\u4e86\u51e0\u4e2a\u5173\u952e\u529f\u80fd\uff0c\u4f7f\u5176\u6210\u4e3a\u57fa\u4e8e IP \u7684\u7f51\u7edc\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u9519\u8bef\u62a5\u544a<\/strong>\uff1aICMP \u4fc3\u8fdb\u7f51\u7edc\u8bbe\u5907\u4e4b\u95f4\u7684\u9519\u8bef\u62a5\u544a\uff0c\u5e2e\u52a9\u5feb\u901f\u8bc6\u522b\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8bca\u65ad\u529f\u80fd<\/strong>\uff1a\u652f\u6301\u201cping\u201d\u548c\u201ctraceroute\u201d\u7b49\u8bca\u65ad\u5de5\u5177\uff0c\u5e2e\u52a9\u7f51\u7edc\u7ba1\u7406\u5458\u6392\u9664\u7f51\u7edc\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7f51\u7edc\u8def\u5f84\u9a8c\u8bc1<\/strong>\uff1a\u8bf8\u5982\u201c\u8d85\u51fa\u65f6\u95f4\u201d\u548c\u201c\u91cd\u5b9a\u5411\u201d\u4e4b\u7c7b\u7684 ICMP \u6d88\u606f\u6709\u52a9\u4e8e\u786e\u5b9a\u7f51\u7edc\u8def\u5f84\u7684\u6548\u7387\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6d41\u91cf\u63a7\u5236<\/strong>\uff1aICMP \u5728\u6d41\u91cf\u63a7\u5236\u4e2d\u53d1\u6325\u4f5c\u7528\uff0c\u901a\u77e5\u8bbe\u5907\u6709\u5173\u62e5\u585e\u7684\u7f51\u7edc\u72b6\u51b5\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>ICMP \u6d88\u606f\u7684\u7c7b\u578b<\/h2>\n<p>ICMP \u5305\u542b\u5404\u79cd\u6d88\u606f\u7c7b\u578b\uff0c\u6bcf\u79cd\u7c7b\u578b\u90fd\u6709\u5176\u72ec\u7279\u7684\u7528\u9014\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1 ICMP \u6d88\u606f\u7c7b\u578b\u7684\u5217\u8868\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>ICMP \u7c7b\u578b<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>0<\/td>\n<td>\u56de\u97f3\u56de\u590d<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u65e0\u6cd5\u5230\u8fbe\u76ee\u7684\u5730<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u91cd\u5b9a\u5411<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>\u56de\u663e\u8bf7\u6c42<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>\u8d85\u51fa\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>\u2026<\/td>\n<td>\u2026<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4f7f\u7528\u3001\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>ICMP \u5728\u7f51\u7edc\u8bca\u65ad\u3001\u6545\u969c\u6392\u9664\u548c\u6027\u80fd\u76d1\u63a7\u65b9\u9762\u6709\u7740\u5e7f\u6cdb\u7684\u7528\u9014\u3002\u4e00\u4e9b\u5e38\u89c1\u7684\u7528\u4f8b\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>Ping \u548c\u8fde\u63a5\u6d4b\u8bd5<\/strong>\uff1aICMP \u7684 Echo Request \u548c Echo Reply \u6d88\u606f\u7528\u4e8e\u9a8c\u8bc1\u7f51\u7edc\u8fde\u63a5\u5e76\u6d4b\u91cf\u5f80\u8fd4\u65f6\u95f4 (RTT)\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7f51\u7edc\u6545\u969c\u6392\u9664<\/strong>\uff1aICMP \u76ee\u6807\u4e0d\u53ef\u8fbe\u6d88\u606f\u6709\u52a9\u4e8e\u8bc6\u522b\u8bf8\u5982\u4e3b\u673a\u6216\u7f51\u7edc\u4e0d\u53ef\u8fbe\u4e4b\u7c7b\u7684\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8def\u5f84\u8ffd\u8e2a<\/strong>\uff1aTraceroute \u5229\u7528 ICMP \u8d85\u65f6\u6d88\u606f\u6765\u786e\u5b9a\u6570\u636e\u5305\u901a\u8fc7\u7f51\u7edc\u6240\u91c7\u7528\u7684\u8def\u5f84\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u5c3d\u7ba1 ICMP \u53d1\u6325\u7740\u91cd\u8981\u4f5c\u7528\uff0c\u4f46\u5b83\u4e5f\u53ef\u80fd\u6210\u4e3a\u6076\u610f\u6d3b\u52a8\u7684\u76ee\u6807\uff0c\u4f8b\u5982 ICMP \u6d2a\u6c34\u653b\u51fb\u548c ping \u626b\u63cf\u3002\u7f51\u7edc\u7ba1\u7406\u5458\u4f7f\u7528\u9632\u706b\u5899\u548c\u5165\u4fb5\u9632\u5fa1\u7cfb\u7edf\u6765\u7f13\u89e3\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n<h2>\u7279\u70b9\u4e0e\u6bd4\u8f83<\/h2>\n<p>\u8ba9\u6211\u4eec\u4ece\u7279\u70b9\u65b9\u9762\u6bd4\u8f83\u4e00\u4e0bICMP\u4e0e\u5176\u4ed6\u534f\u8bae\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u534f\u8bae<\/th>\n<th>\u5c42<\/th>\n<th>\u9762\u5411\u8fde\u63a5<\/th>\n<th>\u9519\u8bef\u62a5\u544a<\/th>\n<th>\u76ee\u7684<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ICMP<\/td>\n<td>\u7b2c3\u5c42<\/td>\n<td>\u4e0d<\/td>\n<td>\u662f\u7684<\/td>\n<td>\u7f51\u7edc\u8bca\u65ad\u4e0e\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u4f20\u8f93\u63a7\u5236\u534f\u8bae<\/td>\n<td>\u7b2c 4 \u5c42<\/td>\n<td>\u662f\u7684<\/td>\n<td>\u662f\u7684<\/td>\n<td>\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td>UDP\u534f\u8bae<\/td>\n<td>\u7b2c 4 \u5c42<\/td>\n<td>\u4e0d<\/td>\n<td>\u4e0d<\/td>\n<td>\u4f4e\u5ef6\u8fdf\u6570\u636e\u4f20\u8f93<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u672a\u6765\u524d\u666f\u548c\u6280\u672f<\/h2>\n<p>\u968f\u7740\u6280\u672f\u7684\u8fdb\u6b65\uff0cICMP \u53ef\u80fd\u4f1a\u7ee7\u7eed\u5728\u7f51\u7edc\u8bca\u65ad\u548c\u6545\u969c\u6392\u9664\u4e2d\u53d1\u6325\u91cd\u8981\u4f5c\u7528\u3002\u968f\u7740\u7269\u8054\u7f51 (IoT) \u8bbe\u5907\u7684\u5174\u8d77\u548c IPv6 \u7684\u5b9e\u65bd\uff0cICMP \u53ef\u80fd\u4f1a\u5f97\u5230\u8fdb\u4e00\u6b65\u53d1\u5c55\uff0c\u4ee5\u9002\u5e94\u65b0\u7684\u9700\u6c42\u3002<\/p>\n<h2>\u4ee3\u7406\u670d\u52a1\u5668\u548c ICMP<\/h2>\n<p>\u4ee3\u7406\u670d\u52a1\u5668\u5145\u5f53\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u4e2d\u4ecb\uff0c\u8f6c\u53d1\u5ba2\u6237\u7aef\u8bf7\u6c42\u5e76\u63a5\u6536\u670d\u52a1\u5668\u54cd\u5e94\u3002\u867d\u7136\u4ee3\u7406\u670d\u52a1\u5668\u4e3b\u8981\u5728\u5e94\u7528\u5c42\u8fd0\u884c\uff0c\u4f46\u5b83\u4eec\u4e5f\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u5904\u7406 ICMP \u6d88\u606f\u3002\u4f46\u662f\uff0cICMP \u6d88\u606f\u901a\u5e38\u5c01\u88c5\u5728\u4ee3\u7406\u7684\u901a\u4fe1\u4e2d\uff0c\u5ba2\u6237\u7aef\u6216\u670d\u52a1\u5668\u53ef\u80fd\u65e0\u6cd5\u76f4\u63a5\u770b\u5230\u3002<\/p>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<p>\u6709\u5173Internet\u63a7\u5236\u6d88\u606f\u534f\u8bae\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u8d44\u6e90\uff1a<\/p>\n<ol>\n<li><a href=\"https:\/\/tools.ietf.org\/html\/rfc792\" target=\"_new\" rel=\"noopener nofollow\">RFC 792 \u2013 \u4e92\u8054\u7f51\u63a7\u5236\u6d88\u606f\u534f\u8bae<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Internet_Control_Message_Protocol\" target=\"_new\" rel=\"noopener nofollow\">\u7ef4\u57fa\u767e\u79d1\u4e0a\u7684 ICMP<\/a><\/li>\n<li><a href=\"https:\/\/www.iana.org\/assignments\/icmp-parameters\" target=\"_new\" rel=\"noopener nofollow\">\u4e92\u8054\u7f51\u53f7\u7801\u5206\u914d\u673a\u6784 (IANA) ICMP \u53c2\u6570<\/a><\/li>\n<\/ol>","protected":false},"featured_media":477663,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-477662","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>Internet Control Message Protocol (ICMP) - A Comprehensive Overview<\/mark>","faq_items":[{"question":"What is Internet Control Message Protocol (ICMP)?","answer":"<p>ICMP, or Internet Control Message Protocol, is a fundamental network layer protocol that operates within the Internet Protocol (IP) suite. It facilitates communication between devices on a network and serves various diagnostic and error reporting functions.<\/p>"},{"question":"How did ICMP originate, and who created it?","answer":"<p>ICMP was designed in the early 1980s as part of the original TCP\/IP specification. Its concepts were outlined by Dave Mills while working on TCP and IP.<\/p>"},{"question":"What is the role of ICMP in network communication?","answer":"<p>ICMP plays a crucial role in reporting errors, performing diagnostic functions, and providing feedback about network conditions. It operates at the network layer (Layer 3) of the OSI model.<\/p>"},{"question":"How does ICMP work internally?","answer":"<p>ICMP messages are encapsulated within IP packets, using IP services for delivery. When a router or host encounters an issue with an IP packet, it generates an ICMP message to inform the source device about the problem.<\/p>"},{"question":"What are some key features of ICMP?","answer":"<p>ICMP offers error reporting, diagnostic functions, network path verification, and flow control. It aids in troubleshooting and monitoring network performance.<\/p>"},{"question":"What are the different types of ICMP messages?","answer":"<p>ICMP encompasses various message types, such as Echo Request and Reply, Destination Unreachable, Redirect, Time Exceeded, and more.<\/p>"},{"question":"How is ICMP used, and what are the common problems associated with it?","answer":"<p>ICMP is widely used for ping testing, network troubleshooting, and path tracing. However, it can be targeted in malicious activities, such as ICMP flood attacks. Employing firewalls and intrusion prevention systems can help mitigate these issues.<\/p>"},{"question":"How does ICMP compare with other protocols like TCP and UDP?","answer":"<p>ICMP operates at Layer 3, while TCP and UDP operate at Layer 4. ICMP is connectionless and primarily used for diagnostics, whereas TCP provides reliable data transmission, and UDP offers low-latency data transmission.<\/p>"},{"question":"What is the future outlook for ICMP in networking technologies?","answer":"<p>As technology advances, ICMP is expected to remain essential in network diagnostics and troubleshooting. It may evolve to accommodate the requirements of emerging technologies like IoT and IPv6.<\/p>"},{"question":"How are proxy servers associated with ICMP?","answer":"<p>Proxy servers act as intermediaries in communication between clients and servers. While they primarily operate at the application layer, they can interact with ICMP messages to some extent, though such messages may not be directly visible to clients or servers.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477662\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media\/477663"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media?parent=477662"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}