456 字
2 分钟
ICMPv4类型

ICMPv4 Type#

TypeNameReference
0Echo Reply[RFC792]
1Unassigned
2Unassigned
3Destination Unreachable[RFC792]
4Source Quench (Deprecated)[RFC792][RFC6633]
5Redirect[RFC792]
6Alternate Host Address (Deprecated)[RFC6918]
7Unassigned
8Echo[RFC792]
9Router Advertisement[RFC1256]
10Router Solicitation[RFC1256]
11Time Exceeded[RFC792]
12Parameter Problem[RFC792]
13Timestamp[RFC792]
14Timestamp Reply[RFC792]
15Information Request (Deprecated)[RFC792][RFC6918]
16Information Reply (Deprecated)[RFC792][RFC6918]
17Address Mask Request (Deprecated)[RFC950][RFC6918]
18Address Mask Reply (Deprecated)[RFC950][RFC6918]
19Reserved (for Security)[Solo]
20-29Reserved (for Robustness Experiment)[ZSu]
30Traceroute (Deprecated)[RFC1393][RFC6918]
31Datagram Conversion Error (Deprecated)[RFC1475][RFC6918]
32Mobile Host Redirect (Deprecated)[David_Johnson][RFC6918]
33IPv6 Where-Are-You (Deprecated)[Simpson][RFC6918]
34IPv6 I-Am-Here (Deprecated)[Simpson][RFC6918]
35Mobile Registration Request (Deprecated)[Simpson][RFC6918]
36Mobile Registration Reply (Deprecated)[Simpson][RFC6918]
37Domain Name Request (Deprecated)[RFC1788][RFC6918]
38Domain Name Reply (Deprecated)[RFC1788][RFC6918]
39SKIP (Deprecated)[Markson][RFC6918]
40Photuris[RFC2521]
41ICMP messages utilized by experimental mobility protocols such as Seamoby[RFC4065]
42Extended Echo Request[RFC8335]
43Extended Echo Reply[RFC8335]
44-252Unassigned
253RFC3692-style Experiment 1[RFC4727]
254RFC3692-style Experiment 2[RFC4727]
255Reserved[JBP]

ICMPv4 Code Fields#

Type 0 — Echo Reply#

CodesDescriptionReference
0No Code

Type 1 — Unassigned#

CodesDescriptionReference
No registrations at this time.

Type 2 — Unassigned#

CodesDescriptionReference
No registrations at this time.

Type 3 — Destination Unreachable#

Codes Description Reference 
0Net Unreachable[RFC792]
1Host Unreachable[RFC792]
2Protocol Unreachable[RFC792]
3Port Unreachable[RFC792]
4Fragmentation Needed and Don’t Fragment was Set[RFC792]
5Source Route Failed[RFC792]
6Destination Network Unknown[RFC1122]
7Destination Host Unknown[RFC1122]
8Source Host Isolated[RFC1122]
9Communication with Destination Network is Administratively Prohibited[RFC1122]
10Communication with Destination Host is Administratively Prohibited[RFC1122]
11Destination Network Unreachable for Type of Service[RFC1122]
12Destination Host Unreachable for Type of Service[RFC1122]
13Communication Administratively Prohibited[RFC1812]
14Host Precedence Violation[RFC1812]
15Precedence cutoff in effect[RFC1812]

Type 4 — Source Quench (Deprecated)#

Codes Description Reference 
0No Code

Type 5 — Redirect#

Codes Description Reference 
0Redirect Datagram for the Network (or subnet)
1Redirect Datagram for the Host
2Redirect Datagram for the Type of Service and Network
3Redirect Datagram for the Type of Service and Host

Type 6 — Alternate Host Address (Deprecated)#

Codes Description Reference 
0Alternate Address for Host

Type 7 — Unassigned#

CodesDescriptionReference
No registrations at this time.

Type 8 — Echo#

Codes Description Reference 
0No Code

Type 9 — Router Advertisement#

Codes Description Reference 
0Normal router advertisement[RFC3344]
16Does not route common traffic[RFC3344]

Type 10 — Router Selection#

Codes Description Reference 
0No Code

Type 11 — Time Exceeded#

Codes Description Reference 
0Time to Live exceeded in Transit
1Fragment Reassembly Time Exceeded

Type 12 — Parameter Problem#

Codes Description Reference 
0Pointer indicates the error
1Missing a Required Option[RFC1108]
2Bad Length

Type 13 — Timestamp#

Codes Description Reference 
0No Code

Type 14 — Timestamp Reply#

Codes Description Reference 
0No Code

Type 15 — Information Request (Deprecated)#

Codes Description Reference 
0No Code

Type 16 — Information Reply (Deprecated)#

Codes Description Reference 
0No Code

Type 17 — Address Mask Request (Deprecated)#

Codes Description Reference 
0No Code

Type 18 — Address Mask Reply (Deprecated)#

Codes Description Reference 
0No Code

Type 19 — Reserved (for Security)#

CodesDescriptionReference
No registrations at this time.

Types 20-29 — Reserved (for Robustness Experiment)#

CodesDescriptionReference
No registrations at this time.

Type 30 — Traceroute (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 31 — Datagram Conversion Error (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 32 — Mobile Host Redirect (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 33 — IPv6 Where-Are-You (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 34 — IPv6 I-Am-Here (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 35 — Mobile Registration Request (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 36 — Mobile Registration Reply (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 37 — Domain Name Request (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 38 — Domain Name Reply (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 39 — SKIP (Deprecated)#

CodesDescriptionReference
No registrations at this time.

Type 40 — Photuris#

Codes Description Reference 
0Bad SPI
1Authentication Failed
2Decompression Failed
3Decryption Failed
4Need Authentication
5Need Authorization

Type 41 — ICMP messages utilized by experimental mobility protocols such as Seamoby#

CodesDescriptionReference
No registrations at this time.

Type 42 — Extended Echo Request#

Codes Description Reference 
0No Error[RFC8335]
1-255Unassigned

Type 43 — Extended Echo Reply#

Codes Description Reference 
0No Error[RFC8335]
1Malformed Query[RFC8335]
2No Such Interface[RFC8335]
3No Such Table Entry[RFC8335]
4Multiple Interfaces Satisfy Query[RFC8335]
5-255Unassigned

Types 44-252 — Unassigned#

CodesDescriptionReference
No registrations at this time.

Type 253 — RFC3692-style Experiment 1#

CodesDescriptionReference
No registrations at this time.

Type 254 — RFC3692-style Experiment 2#

CodesDescriptionReference
No registrations at this time.