Latest Updates

Internet Control Message Protocol

Internet Control Message Protocol (ICMP) defined by RFC 792 and RFC 1122 is used for network error reporting and generating messages that require attention. The errors reported by ICMP are generally related to datagram processing. ICMP only reports errors involving fragment 0 of any fragmented datagrams. The IP, UDP or TCP layer will usually take action based on ICMP messages. ICMP generally belongs to the IP layer of TCP/IP but relies on IP for support at the network layer. ICMP messages are encapsulated inside IP datagrams.
ICMP will report the following network information:
  • Timeouts
  • Network congestion
  • Network errors such as an unreachable host or network.
The ping command is also supported by ICMP, and this can be used to debug network problems.

ICMP Messages:

The ICMP message consists of an 8 bit type, an 8 bit code, an 8 bit checksum, and contents which vary depending on code and type. The below table is a list of ICMP messages showing the type and code of the messages and their meanings. 

TypeCodesDescriptionPurpose
00Echo replyQuery
30Network UnreachableError
31Host UnreachableError
32Protocol UnreachableError
33Protocol UnreachableError
34Fragmentation needed with don't fragment bit setError
35Source route failedError
36Destination network unknownError
37Destination host unknownError
38Source host isolatedError
39Destination network administratively prohibitedError
310Destination host administratively prohibitedError
311Network Unreachable for TOSError
312Host Unreachable for TOSError
313Communication administratively prohibited by filteringError
314Host precedence violationError
315Precedence cutoff in effectError
40Source quenchError
50Redirect for networkError
51Redirect for hostError
52Redirect for type of service and networkError
53Redirect for type of service and hostError
80Echo requestQuery
90Normal router advertisementQuery
916Router does not route common trafficQuery
100Router SolicitationQuery
110Time to live is zero during transitError
111Time to live is zero during reassemblyError
120IP header badError
121Required option missingError
122Bad lengthError
130Timestamp requestQuery
140Timestamp replyQuery
150Information requestQuery
160Information replyQuery
170Address mask requestQuery
180Address mask requestQuery
ICMP is used for many different functions, the most important of which is error reporting. Some of these are "port unreachable", "host unreachable", "network unreachable", "destination network unknown", and "destination host unknown". Some not related to errors are:
  • Timestamp request and reply allows one system to ask another one for the current time.
  • Address mask and reply is used by a diskless workstation to get its subnet mask at boot time.
  • Echo request and echo reply is used by the ping program to test to see if another unit will respond.
 http://www.comptechdoc.org/independent/networking/guide/neticmp.html

0 Response to "Internet Control Message Protocol"

Post a Comment