Name
Message Type
Synopsis
The Type field is used to specify the exact ICMP query message being sent.
- Size
Eight bits.
- Notes
ICMP essentially consists of a predefined dictionary of messages, allowing messages to be exchanged using numeric identifiers. The Type field is used to specify the major class of the message, while the Code field is used to specify the minor class, although some message Types do not have any subtype Codes.
Table 5.11 lists all of the ICMP query message Types used with IPv4 and their meanings.
Table 5.11. ICMP Error Message TypesType
Message Description
Usage Notes
0
Echo Reply
Used to respond to Echo Request query messages. Typically used by ping.
8
Echo Request
Used to test basic connectivity between two or more devices on a network. Typically used by ping.
9
Router Advertisement
Routers send these messages in response to a Router Solicitation query message and also send them as periodic updates. Used to inform network devices of available routers on the local network.
10
Router Solicitation
Used to locate routers on the local network.
13
Timestamp Request
Used to test network latency between two or more devices.
14
Timestamp Reply
Used to respond to Timestamp Request query messages.
17
Address Mask Request
Used to request a subnet mask for a device.
18
Address Mask Reply
Used to respond to Address Mask Request query messages.
- Capture Sample
In the capture shown in Figure 5.22, the Type field is set to 8, which is used for Echo Request query messages.
Figure 5.22. The Message Type field- See ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access