笔记首页 >> ICMP控制消息 汇总
控制消息由 类型 字段中的值标识。代码 字段给出了消息的附加上下文信息。自协议首次引入以来,一些控制消息已被弃用。
重要的ICMP Control Message控制信息
类型 |
码 |
状态 |
描述
|
0 –回声回复:14
|
0 |
|
回声回复(用于ping)
|
1和2
|
|
未分配 |
已预留
|
3 –无法到达目的地:4
|
0 |
|
目的网络不可达
|
1个 |
|
目标主机不可达
|
2 |
|
目标协议不可达
|
3 |
|
目的端口不可达
|
4 |
|
需要碎片,并且设置了DF标志
|
5 |
|
源路由失败
|
6 |
|
目的网络未知
|
7 |
|
目标主机未知
|
8 |
|
源主机隔离
|
9 |
|
网络在管理上被禁止
|
10 |
|
主机被行政禁止
|
11 |
|
ToS无法访问网络
|
12 |
|
主机无法访问ToS
|
13 |
|
行政上禁止交流
|
14 |
|
违反主机优先级
|
15 |
|
优先截止生效
|
4 –源骤冷
|
0 |
不推荐使用 |
源猝灭(拥塞控制)
|
5 –重定向消息
|
0 |
|
网络重定向数据报
|
1个 |
|
主机的重定向数据报
|
2 |
|
ToS和网络的重定向数据报
|
3 |
|
ToS和主机的重定向数据报
|
6 |
|
不推荐使用 |
备用主机地址
|
7 |
|
未分配 |
已预留
|
8 –回声请求
|
0 |
|
回声请求(用于ping)
|
9 –路由器广告
|
0 |
|
路由器广告
|
10 –路由器请求
|
0 |
|
路由器发现/选择/征求
|
11 –超过时间:6
|
0 |
|
TTL在运输途中过期
|
1个 |
|
碎片重组时间超出
|
12 –参数问题:错误的IP标头
|
0 |
|
指针指示错误
|
1个 |
|
缺少必需的选项
|
2 |
|
长度不好
|
13 –时间戳
|
0 |
|
时间戳记
|
14 –时间戳回复
|
0 |
|
时间戳回复
|
15 –信息请求
|
0 |
不推荐使用 |
信息请求
|
16 –信息回复
|
0 |
不推荐使用 |
信息回复
|
17 –地址掩码请求
|
0 |
不推荐使用 |
地址掩码请求
|
18 –地址掩码回复
|
0 |
不推荐使用 |
地址掩码回复
|
19 |
|
保留的 |
保留安全性
|
20至29 |
|
保留的 |
保留用于健壮性实验
|
30 – Traceroute
|
0 |
不推荐使用 |
信息请求
|
31 |
|
不推荐使用 |
数据报转换错误
|
32 |
|
不推荐使用 |
移动主机重定向
|
33 |
|
不推荐使用 |
你在哪里(最初是指IPv6)
|
34 |
|
不推荐使用 |
Here-I-Am(最初用于IPv6)
|
35 |
|
不推荐使用 |
手机注册要求
|
36 |
|
不推荐使用 |
手机注册回复
|
37 |
|
不推荐使用 |
域名请求
|
38 |
|
不推荐使用 |
域名回复
|
39 |
|
不推荐使用 |
SKIP算法发现协议,用于Internet协议的简单密钥管理
|
40 |
|
|
Photuris,安全性失败
|
41 |
|
实验性 |
用于实验移动性协议(例如Seamoby [RFC4065]的ICMP)
|
42 –扩展回声请求
|
0 |
|
请求扩展回显(XPing-请参阅扩展Ping(Xping))
|
43 –扩展回声回复
|
0 |
|
没错
|
1个 |
|
查询格式错误
|
2 |
|
没有这样的界面
|
3 |
|
没有这样的表条目
|
4 |
|
多个接口满足查询
|
44至252 |
|
未分配 |
已预留
|
253 |
|
实验性 |
RFC3692样式的实验1(RFC 4727)
|
254 |
|
实验性 |
RFC3692样式的实验2(RFC 4727)
|
255 |
|
保留的 |
已预留
|
为方便读者对照,以下为英文原版
Notable control messages
Type |
Code |
Status |
Description
|
0 – Echo Reply
|
0 |
|
Echo reply (used to ping)
|
1 and 2
|
|
unassigned |
Reserved
|
3 – Destination Unreachable
|
0 |
|
Destination network unreachable
|
1 |
|
Destination host unreachable
|
2 |
|
Destination protocol unreachable
|
3 |
|
Destination port unreachable
|
4 |
|
Fragmentation required, and DF flag set
|
5 |
|
Source route failed
|
6 |
|
Destination network unknown
|
7 |
|
Destination host unknown
|
8 |
|
Source host isolated
|
9 |
|
Network administratively prohibited
|
10 |
|
Host administratively prohibited
|
11 |
|
Network unreachable for ToS
|
12 |
|
Host unreachable for ToS
|
13 |
|
Communication administratively prohibited
|
14 |
|
Host Precedence Violation
|
15 |
|
Precedence cutoff in effect
|
4 – Source Quench
|
0 |
deprecated |
Source quench (congestion control)
|
5 – Redirect Message
|
0 |
|
Redirect Datagram for the Network
|
1 |
|
Redirect Datagram for the Host
|
2 |
|
Redirect Datagram for the ToS & network
|
3 |
|
Redirect Datagram for the ToS & host
|
6 |
|
deprecated |
Alternate Host Address
|
7 |
|
unassigned |
Reserved
|
8 – Echo Request
|
0 |
|
Echo request (used to ping)
|
9 – Router Advertisement
|
0 |
|
Router Advertisement
|
10 – Router Solicitation
|
0 |
|
Router discovery/selection/solicitation
|
11 – Time Exceeded
|
0 |
|
TTL expired in transit
|
1 |
|
Fragment reassembly time exceeded
|
12 – Parameter Problem: Bad IP header
|
0 |
|
Pointer indicates the error
|
1 |
|
Missing a required option
|
2 |
|
Bad length
|
13 – Timestamp
|
0 |
|
Timestamp
|
14 – Timestamp Reply
|
0 |
|
Timestamp reply
|
15 – Information Request
|
0 |
deprecated |
Information Request
|
16 – Information Reply
|
0 |
deprecated |
Information Reply
|
17 – Address Mask Request
|
0 |
deprecated |
Address Mask Request
|
18 – Address Mask Reply
|
0 |
deprecated |
Address Mask Reply
|
19 |
|
reserved |
Reserved for security
|
20 through 29 |
|
reserved |
Reserved for robustness experiment
|
30 – Traceroute
|
0 |
deprecated |
Information Request
|
31 |
|
deprecated |
Datagram Conversion Error
|
32 |
|
deprecated |
Mobile Host Redirect
|
33 |
|
deprecated |
Where-Are-You (originally meant for IPv6)
|
34 |
|
deprecated |
Here-I-Am (originally meant for IPv6)
|
35 |
|
deprecated |
Mobile Registration Request
|
36 |
|
deprecated |
Mobile Registration Reply
|
37 |
|
deprecated |
Domain Name Request
|
38 |
|
deprecated |
Domain Name Reply
|
39 |
|
deprecated |
SKIP Algorithm Discovery Protocol, Simple Key-Management for Internet Protocol
|
40 |
|
|
Photuris, Security failures
|
41 |
|
Experimental |
ICMP for experimental mobility protocols such as Seamoby [RFC4065]
|
42 – Extended Echo Request
|
0 |
|
Request Extended Echo (XPing – see Extended Ping (Xping))
|
43 – Extended Echo Reply
|
0 |
|
No Error
|
1 |
|
Malformed Query
|
2 |
|
No Such Interface
|
3 |
|
No Such Table Entry
|
4 |
|
Multiple Interfaces Satisfy Query
|
44 through 252 |
|
unassigned |
Reserved
|
253 |
|
Experimental |
RFC3692-style Experiment 1 (RFC 4727)
|
254 |
|
Experimental |
RFC3692-style Experiment 2 (RFC 4727)
|
255 |
|
reserved |
Reserved
|
觉得文章有用?
点个广告表达一下你的爱意吧 !