Got it

Internet Control Message Protocol (ICMP)

Latest reply: Apr 21, 2022 12:42:08 79 7 6 0 0

Hi Everyone,


What is ICMP?

Internet Protocol (IP) is used when two or more devices connect and transcieve the information to and from each other in a network. However, there arise some instances when reporting of an error or raising a query is required from the destination towards the source. For this purpose, Internet Control Message Protocol (ICMP) is used. ICMP is a network layer protocol that uses IP address to send the query or report an error. These errors could be datagram reaching issues to the destination, datagram forwarding capacity issues of any network or node, redirection of the traffic or time exceeding issue. 


Description on ICMP Message Format:

As discussed above, ICMP messages are sent to the source through the basic IP header. The 8 byte header is divided into three section. First section is Type, second is Code and third section is Checksum. Type section uses 1 byte and defines the type of the message. Code specifies the reason of the message type and it is also of 1 byte. Lastly, Checksum is a 2 bytes long one's complement of the one's complement sum of the ICMP message and used for validation purposes. The data section carries the IP header and first 8 bytes of original data of the datagram.


1

Type in ICMP message has two categories. First is Error reporting message and second is Query Message. For Error reporting, 3, 4, 11, 12 & 5 types are used that refer to Unreachable Destination, Source Quench, Time Exceeded, Parameter Problem and Redirections errors respectively. For Query messages, 0 or 8 is used Echo Request/Reply, 13 or 14 is used Timestamp Request/Reply, 9 or 10 is used for routing solicitation or advertisement and lastly, 17 or 18 are for Address mask Request/Reply.


2

Just like Type section in the header, Code field defines the reason of message type. Code 0 is used for unreachable network that could be due to hardware failure. Code 1 for host unreachable that could be due to hardware failure too. Code 2 is for unreachable protocol. That means, upper layer protocol delivery has been failed. This can only be generated by destination host. Code 3 is for unreachable port. For the sake of understanding of Type and Codes usage in the header, redirection message format and the redirection concept in terms of hardware equipment is depicted below:3


Code 4 is used when fragmentation issues rises. i-e fragmentation was required but Don’t Fragment bit has been sent. Code 5 is for unsuccessful routing due to source routing issues in any of the router in the network. Code 6 is for undefined destination network. In this case, the router has no information of to which destination routing is to be done. Code 7 is similar to Code 6 as in this case destination host is unknown instead of destination network as in case of Code 6. Code 8, 9 and 10 are for source route failed, communication is administratively banned with the network and communication is administratively banned with host respectively. Code 11 & 12 are for Network or Host unreachable for any specific type of service. Code 13 is for unreachability issue due to administrative filtering. Lastly, Code 14 and 15 are for unreachability due to either of violation or cutting-off of the precedency of the host.


Thank You for reading.

 

Funstuff
Moderator Author Created Yesterday 18:46

  • x
  • convention:

taha_29four
taha_29four Created 6 Hours ago (0) (0)
nice work  
Rumana
Rumana Created 2 Hours ago (0) (0)
 
thanks to share
View more
  • x
  • convention:

Very interesting post
View more
  • x
  • convention:

Good share
View more
  • x
  • convention:

good post
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.