icmp type code 对应表
TYPE | CODE | Description | Query | Error |
---|---|---|---|---|
0 | 0 | Echo Reply——回显应答(Ping应答) | x | |
3 | 0 | Network Unreachable——网络不可达 | x | |
3 | 1 | Host Unreachable——主机不可达 | x | |
3 | 2 | Protocol Unreachable——协议不可达 | x | |
3 | 3 | Port Unreachable——端口不可达 | x | |
3 | 4 | Fragmentation needed but no frag. bit set——需要进行分片但设置不分片比特 | x | |
3 | 5 | Source routing failed——源站选路失败 | x | |
3 | 6 | Destination network unknown——目的网络未知 | x | |
3 | 7 | Destination host unknown——目的主机未知 | x | |
3 | 8 | Source host isolated (obsolete)——源主机被隔离(作废不用) | x | |
3 | 9 | Destination network administratively prohibited——目的网络被强制禁止 | x | |
3 | 10 | Destination host administratively prohibited——目的主机被强制禁止 | x | |
3 | 11 | Network unreachable for TOS——由于服务类型TOS,网络不可达 | x | |
3 | 12 | Host unreachable for TOS——由于服务类型TOS,主机不可达 | x | |
3 | 13 | Communication administratively prohibited by filtering——由于过滤,通信被强制禁止 | x | |
3 | 14 | Host precedence violation——主机越权 | x | |
3 | 15 | Precedence cutoff in effect——优先中止生效 | x | |
4 | 0 | Source quench——源端被关闭(基本流控制) | ||
5 | 0 | Redirect for network——对网络重定向 | ||
5 | 1 | Redirect for host——对主机重定向 | ||
5 | 2 | Redirect for TOS and network——对服务类型和网络重定向 | ||
5 | 3 | Redirect for TOS and host——对服务类型和主机重定向 | ||
8 | 0 | Echo request——回显请求(Ping请求) | x | |
9 | 0 | Router advertisement——路由器通告 | ||
10 | 0 | Route solicitation——路由器请求 | ||
11 | 0 | TTL equals 0 during transit——传输期间生存时间为0 | x | |
11 | 1 | TTL equals 0 during reassembly——在数据报组装期间生存时间为0 | x | |
12 | 0 | IP header bad (catchall error)——坏的IP首部(包括各种差错) | x | |
12 | 1 | Required options missing——缺少必需的选项 | x | |
13 | 0 | Timestamp request (obsolete)——时间戳请求(作废不用) | x | |
14 | Timestamp reply (obsolete)——时间戳应答(作废不用) | x | ||
15 | 0 | Information request (obsolete)——信息请求(作废不用) | x | |
16 | 0 | Information reply (obsolete)——信息应答(作废不用) | x | |
17 | 0 | Address mask request——地址掩码请求 | x | |
18 | 0 | Address mask reply——地址掩码应答 | x |
https://www.ipv6s.com/basis/20100912134.html
针对ICMPv6协议属于IPv6协议的一部分,因此该部分对IPv6的ND邻居发现协议进行了很详细的分类,ND邻居发现协议由ICMPv6来实现,因此ND消息的各种Type以及各种选项options也在此部分定义。
以下为各种定义的取值范围及其含义:
ICMPv6协议中的Type取值范围及其含义:
Type Name Reference
—- ———————————————– ———
1 Destination Unreachable [RFC4443]
2 Packet Too Big [RFC4443]
3 Time Exceeded [RFC4443]
4 Parameter Problem [RFC4443]
100 Private experimentation [RFC4443]
101 Private experimentation [RFC4443]
102-126 Unassigned
127 Reserved for expansion of ICMPv6 error messages [RFC4443]
128 Echo Request [RFC4443]
129 Echo Reply [RFC4443]
130 Multicast Listener Query [RFC2710]
131 Multicast Listener Report [RFC2710]
132 Multicast Listener Done [RFC2710]
133 Router Solicitation [RFC4861]
134 Router Advertisement [RFC4861]
135 Neighbor Solicitation [RFC4861]
136 Neighbor Advertisement [RFC4861]
137 Redirect Message [RFC4861]
138 Router Renumbering [Crawford]
139 ICMP Node Information Query [RFC4620]
140 ICMP Node Information Response [RFC4620]
141 Inverse Neighbor Discovery Solicitation Message [RFC3122]
142 Inverse Neighbor Discovery Advertisement Message [RFC3122]
143 Version 2 Multicast Listener Report [RFC3810]
144 Home Agent Address Discovery Request Message [RFC3775]
145 Home Agent Address Discovery Reply Message [RFC3775]
146 Mobile Prefix Solicitation [RFC3775]
147 Mobile Prefix Advertisement [RFC3775]
148 Certification Path Solicitation Message [RFC3971]
149 Certification Path Advertisement Message [RFC3971]
150 ICMP messages utilized by experimental [RFC4065]
mobility protocols such as Seamoby
151 Multicast Router Advertisement [RFC4286]
152 Multicast Router Solicitation [RFC4286]
153 Multicast Router Termination [RFC4286]
154 FMIPv6 Messages [RFC5568]
155-199 Unassigned
200 Private experimentation [RFC4443]
201 Private experimentation [RFC4443]
255 Reserved for expansion of ICMPv6 informational [RFC4443]
messages
ICMPv6协议中Code取值范围及其含义:
Type Name Reference
—- ————————- ———
1 Destination Unreachable [RFC4443]
Code 0 – no route to destination
1 – communication with destination
administratively prohibited
2 – beyond scope of source address [RFC4443]
3 – address unreachable
4 – port unreachable
5 – source address failed ingress/egress policy [RFC4443]
6 – reject route to destination [RFC4443]
2 Packet Too Big [RFC4443]
Code 0
3 Time Exceeded [RFC4443]
Code 0 – hop limit exceeded in transit
1 – fragment reassembly time exceeded
4 Parameter Problem [RFC4443]
Code 0 – erroneous header field encountered
1 – unrecognized Next Header type encountered
2 – unrecognized IPv6 option encountered
128 Echo Request [RFC4443]
Code 0
129 Echo Reply [RFC4443]
Code 0
130 Multicast Listener Query [RFC2710]
Code 0
131 Multicast Listener Report [RFC2710]
Code 0
132 Multicast Listener Done [RFC2710]
Code 0
133 Router Solicitation [RFC4861]
Code 0
134 Router Advertisement [RFC4861]
Code 0
135 Neighbor Solicitation [RFC4861]
Code 0
136 Neighbor Advertisement [RFC4861]
Code 0
137 Redirect Message [RFC4861]
Code 0
138 Router Renumbering [Crawford]
Code 0 – Router Renumbering Command
1 – Router Renumbering Result
255 – Sequence Number Reset
139 ICMP Node Information Query [RFC4620]
Code 0 – The Data field contains an [RFC4620]
IPv6 address which is the Subject
of this Query.
1 – The Data field contains a name [RFC4620]
which is the Subject of this Query,
or is empty, as in the case of a NOOP.
2 – The Data field contains an [RFC4620]
IPv4 address which is the Subject
of this Query.
140 ICMP Node Information Response [RFC4620]
Code 0 – A successful reply. The Reply [RFC4620]
Data field may or may not be empty.
1 – The Responder refuses to supply [RFC4620]
the answer. The Reply Data field
will be empty.
2 – The Qtype of the Query is unknown [RFC4620]
to the Responder. The Reply Data
field will be empty.
141 Inverse Neighbor Discovery [RFC3122]
Solicitation Message
Code 0
142 Inverse Neighbor Discovery [RFC3122]
Advertisement Message
Code 0
144 Home Agent Address Discovery [RFC3775]
Request Message
Code 0
145 Home Agent Address Discovery [RFC3775]
Reply Message
Code 0
146 Mobile Prefix Solicitation [RFC3775]
Code 0
147 Mobile Prefix Advertisement [RFC3775]
Code 0
IPv6 ND邻居发现协议中Options取值范围及其含义:
Type Description Reference
—— ————————————– ———
1 Source Link-layer Address [RFC4861]
2 Target Link-layer Address [RFC4861]
3 Prefix Information [RFC4861]
4 Redirected Header [RFC4861]
5 MTU [RFC4861]
6 NBMA Shortcut Limit Option [RFC2491]
7 Advertisement Interval Option [RFC3775]
8 Home Agent Information Option [RFC3775]
9 Source Address List [RFC3122]
10 Target Address List [RFC3122]
11 CGA option [RFC3971]
12 RSA Signature option [RFC3971]
13 Timestamp option [RFC3971]
14 Nonce option [RFC3971]
15 Trust Anchor option [RFC3971]
16 Certificate option [RFC3971]
17 IP Address/Prefix Option [RFC5568]
18 New Router Prefix Information Option [RFC4068]
19 Link-layer Address Option [RFC5568]
20 Neighbor Advertisement Acknowledgment [RFC5568]
Option
21-22 Unassigned
23 MAP Option [RFC4140]
24 Route Information Option [RFC4191]
25 Recursive DNS Server Option [RFC5006][RFC-ietf-6man-dns-options-bis-08.txt]
26 RA Flags Extension Option [RFC5175]
27 Handover Key Request Option [RFC5269]
28 Handover Key Reply Option [RFC5269]
29 Handover Assist Information Option [RFC5271]
30 Mobile Node Identifier Option [RFC5271]
31 DNS Search List Option [RFC-ietf-6man-dns-options-bis-08.txt]
32-137 Unassigned
138 CARD Request option [RFC4065]
139 CARD Reply option [RFC4065]
140-252 Unassigned
253 RFC3692-style Experiment 1 (*) [RFC4727]
254 RFC3692-style Experiment 2 (*) [RFC4727]
IPv6 ND邻居发现协议中RA路由通告协议Flags取值范围及其含义:
RA Option Bit Description Reference
————- ————————————— ———
0 M – Managed Address Configuration Flag [RFC2461]
1 O – Other Configuration Flag [RFC2461]
2 H – Mobile IPv6 Home Agent Flag [RFC3775]
3 Prf – Router Selection Preferences [RFC4191]
4 Prf – Router Selection Preferences [RFC4191]
5 P – Neighbor Discovery Proxy Flag [RFC4389]
6-53 R – Reserved; Available for assignment [RFC5175]
54-55 Private Experimentation [RFC5175]
IPv6 ND安全邻居发现协议(SeND)中Trust Anchor option选项 (Type 15) Name Type取值范围及其含义:
Value Description Reference
——- ————————————— ———
0 Reserved [RFC-ietf-csi-send-name-type-registry-06.txt]
1 DER Encoded X.501 Name [RFC3971]
2 FQDN [RFC3971]
3 SHA-1 Subject Key Identifier (SKI) [RFC-ietf-csi-send-name-type-registry-06.txt]
4 SHA-224 Subject Key Identifier (SKI) [RFC-ietf-csi-send-name-type-registry-06.txt]
5 SHA-256 Subject Key Identifier (SKI) [RFC-ietf-csi-send-name-type-registry-06.txt]
6 SHA-384 Subject Key Identifier (SKI) [RFC-ietf-csi-send-name-type-registry-06.txt]
7 SHA-512 Subject Key Identifier (SKI) [RFC-ietf-csi-send-name-type-registry-06.txt]
8-252 Unassigned
253-254 Reserved for Experimental Use [RFC-ietf-csi-send-name-type-registry-06.txt]
255 Reserved [RFC-ietf-csi-send-name-type-registry-06.txt]
IPv6 ND安全邻居发现协议(SeND)中Certificate option 证书选项 (Type 16) 中Cert Type取值范围及其含义:
Value Description Reference
—– ———————————— ———
1 X.509v3 Certificate [RFC3971]
该数据由IANA维护,最新的数据可通过:
http://www.iana.org/assignments/icmpv6-parameters 查看。