18 - ICMP Messages Types
18 - ICMP Messages Types
ICMP Message
Error Reporting
messages Query Messages
Types of Error Reporting Messages
• ICMP has five types of error reporting messages :
1. Destination Unreachable
2. Source Quench
3. Time exceeded
4. Parameter Problems
5. Redirection
Destination Unreachable
• This error occurs when the packet does not reach the
destination.
• Suppose the sender sends the message, but the
message does not reach the destination.
• The intermediate router reports to the sender that
the destination is unreachable and will discard the
packet.
• Type: It defines the type of message and number 3
specifies that the destination is unreachable.
• Code (0 to 15): It is a 4-bit number which identifies
whether the message comes from some intermediate
router or the destination itself.
Source Quench
• There is no flow control or congestion control mechanism in
the network layer or the IP protocol.
• The sender is concerned with only sending the packets,
whether the receiver is ready to receive those packets or is
there any congestion occurs.
• In this case, ICMP provides feedback, i.e., source quench.
• A host and router uses source quench messages in order to
tell the original source that congestion has occured.
• The sender must either stop or slow down the sending of
datagrams until the congestion is reduced.
• The router sends one source-quench message for each
datagram that is discarded due to the congestion
Time exceeded