Professional Documents
Culture Documents
Internet Command Message Protocol (ICMP) : CS-431 Dick Steflik
Internet Command Message Protocol (ICMP) : CS-431 Dick Steflik
Internet Command Message Protocol (ICMP) : CS-431 Dick Steflik
(ICMP)
CS-431
Dick Steflik
ICMP
Internet Command Message Protocol (ICMP)
RFC 792
Used to communicate IP status and error messages
between host and routers
ICMP
Used to communicate IP status and error messages
between hosts and routers
Uses IP to route its messages between hosts
Must be implemented with IP
remember, IP is just a packet delivery system
transmits and routes datagrams from sources to destinations through a
series of interconnected networks
it has a checksum in the IP header to detect lost bits
no error detection on the datagram payload though
0 - Echo Reply
3 - Destination Unreachable
4 - Source Quench
5 - Redirect
8 - Echo
11 - Time Exceeded
12 - Parameter Problem
13 - Timestamp
14 - Timestamp Reply
15 - Information Request
16 - Information Reply
17 - Address Mask Request
18 - Address Mask Reply
Redirect (5)
Same format as type 3
Code:
Code:
0 - misc parameter problem
2 - required option missing
Timestamp(13)/Timstamp Reply(14)
ICMP Header (4 bytes) + identifier (2 bytes) + seq num (2
bytes) + Originate Timestamp (4 bytes) + Receive
Timestamp (4 bytes) + Transmit Timestamp (4 bytes)
Timestamps are number of msec past midnight UTC
used to determine the latency between the sender and
receiver
receiver forms a message by
Hosts and routers can request the subnet address mask for
the network they reside on at boot time.
Host or router broadcasts it on the local network
a receiving router should return it in a reply message
ICMPv6
New version of ICMP to go along with IPv6
Absorbs many IGMP and ARP functions
Used for:
Reporting errors in IP packet processing
Performing diagnostics
performing Neighbor Discovery and reporting
IPv6 multicast memberships
Destination Unreachable
Packet too big
Time exceeded
Parameter problem
Informational Messages
Diagnostic messages
Multicast group management messages
Neighbor discovery messages
Message Format
0
1
2
3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
| Type
| Code
| Checksum
|
|-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
|
|
| Message Body
|
|
|
| +-------------------------------------------------------------+