在ICMPv6中的Type字段定义中,0-127为错误消息(Error messages),而128-255为信息消息(Informational messages),其中每种Type定义一种类型及其含义分类,而部分Type中由根据Code值指定该类别下更详细的错误或信息分类。
针对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 查看。
原创文章,作者:满天星,如若转载,请注明出处:https://www.ipv6s.com/basis/20100912134.html