ARP and ICMP
ARP and ICMP
and
ICMP
ARP operation
ARP packet
Encapsulation of ARP packet
Four cases using ARP
ICMP
The IP protocol has no error-reporting or
error-correcting mechanism. The IP protocol also lacks
a mechanism for host and management queries. The
Internet Control Message Protocol (ICMP) has been
designed to compensate for the above two deficiencies.
It is a companion to the IP protocol.
The IPv4 has no error-reporting or error-correcting mechanism. What
happens if something goes wrong?
• What happens if a router must discard a datagram because it cannot
find a route to the final destination, or because the time-to-live field
has a zero value?
• What happens if the final destination host must discard the received
fragments of a datagram because it has not received all fragments
within a predetermined time limit?
• These are examples of situations where an error has occurred and the
IP protocol has no built-in mechanism to notify the original host.
• The IP protocol also lacks a mechanism for host and management
queries. A host sometimes needs to determine if a router or another
host is alive. And sometimes a network manager needs information
from another host or router
ICMP messages are divided into two broad categories:
• error-reporting messages
• query messages.
The error-reporting messages report problems that a router or a host
(destination) may encounter when it processes an IP packet.