Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Explain the Error Reporting Messages in ICMP Protocol
The error-reporting messages in ICMP Protocol are generated when routers or hosts encounter problems while processing IP packets. These messages are sent back to the original source because the only addressing information available in a datagram is the source and destination IP addresses.
When network devices detect issues like unreachable destinations, congestion, or header problems, they use ICMP error messages to inform the sender about the specific problem encountered during packet processing.
Destination Unreachable
When a router cannot route a datagram or a host cannot deliver a datagram, the datagram is discarded and a destination unreachable message is sent back to the source host that originated the datagram.
Destination unreachable messages with codes 2 (protocol unreachable) or 3 (port unreachable) can only be generated by the destination host. Other destination unreachable messages are generated only by intermediate routers during the routing process.
Source Quench
The IP protocol lacks a built-in flow control mechanism, which can lead to congestion at routers or destination hosts. Network devices have limited-size queues (buffers) for incoming datagrams waiting to be forwarded or processed.
When datagrams arrive faster than they can be processed or forwarded, the queue may overflow. In such cases, the router or host discards excess datagrams and sends a source quench message to notify the sender to reduce its transmission rate.
Time Exceeded
The time exceeded message is generated in two specific scenarios:
-
TTL Expiration − When a router receives a datagram with a time-to-live (TTL) value of zero, it discards the datagram and sends a time exceeded message to the original source (Code 0).
-
Fragment Reassembly Timeout − When the destination host does not receive all fragments of a datagram within the allocated time limit, it discards received fragments and sends a time exceeded message to the source (Code 1).
Parameter Problem
Any ambiguity or corruption in the header fields of a datagram can cause serious problems as the packet traverses the Internet. When a router or destination host discovers an ambiguous, corrupted, or missing value in any field of the datagram header, it discards the datagram and sends a parameter problem message back to the source.
Redirection
Hosts typically start with minimal routing tables that are gradually updated during network operation. The redirection message serves as a tool for routers to inform hosts about better routing paths.
When a router determines that a host is using a suboptimal route, it forwards the original datagram and simultaneously sends a redirect message to the host, suggesting a more efficient path for future packets to the same destination.
Conclusion
ICMP error reporting messages provide essential feedback mechanisms in IP networks, enabling routers and hosts to communicate problems like unreachable destinations, congestion, timing issues, and routing inefficiencies. These messages help maintain network reliability and optimize data transmission paths across the Internet.
