ICMP, IP, PIM, Routing Protocol
ICMP, IP, PIM, Routing Protocol
ICMP, IP, PIM, Routing Protocol
Common Protocols
• ICMP
• IGMP
• IPSec
• Protocol Independent Multicast (PIM)
• Connectionless-mode Network Service (CLNS)
• Routing Protocols
Internet Control Message Protocol (ICMP)
• Since IP does not have a inbuilt mechanism for sending error and
control messages. It depends on Internet Control Message
Protocol(ICMP) to provide an error control. It is used for reporting
errors and management queries. It is a supporting protocol and used
by networks devices like routers for sending the error messages and
operations information. e.g. the requested service is not available or
that a host or router could not be reached.
ICMP Echo Request/Reply
ICMP Destination Unreachable
• Code 0 - Network unreachable - Tells you if a specific network is currently unreachable.
• Code 1 - Host unreachable - Tells you if a specific host is currently unreachable.
• Code 2 - Protocol unreachable - This code tells you if a specific protocol (tcp, udp, etc) can not be reached at the moment.
• Code 3 - Port unreachable - If a port (ssh, http, ftp-data, etc) is not reachable, you will get this message.
• Code 4 - Fragmentation needed and DF set - If a packet needs to be fragmented to be delivered, but the Do not fragment bit is set in the packet, the gateway will return this
message.
• Code 5 - Source route failed - If a source route failed for some reason, this message is returned.
• Code 6 - Destination network unknown - If there is no route to a specific network, this message is returned.
• Code 7 - Destination host unknown - If there is no route to a specific host, this message is returned.
• Code 8 - Source host isolated (obsolete) - If a host is isolated, this message should be returned. This code is obsoleted today.
• Code 9 - Destination network administratively prohibited - If a network was blocked at a gateway and your packet was unable to reach it because of this, you should get this ICMP
code back.
• Code 10 - Destination host administratively prohibited - If you where unable to reach a host because it was administratively prohibited (e.g., routing administration), youwill get
this message back.
• Code 11 - Network unreachable for TOS - If a network was unreachable because of a "bad" TOS setting in your packet, this code will be generated as a return packet.
• Code 12 - Host unreachable for TOS - If your packet was unable to reach a host because of the TOS of the packet, this is the message you get back.
• Code 13 - Communication administratively prohibited by filtering - If the packet was prohibited by some kind of filtering (e.g., firewalling), we get a code 13 back.
• Code 14 - Host precedence violation - This is sent by the first hop router to notify a connected host, to notify the host that the used precedence is not permitted for a specific
destination/source combination.
• Code 15 - Precedence cutoff in effect - The first hop router may send this message to a host if the datagram it received had a too low precedence level set in it.
ICMP Redirect
ICMP-Source Quench Message
Source quench message is request to decrease traffic rate for messages sending to the
host(destination). Or we can say, when receiving host detects that rate of sending packets (traffic rate)
to it is too fast it sends the source quench message to the source to slow the pace down so that no
packet can be lost.
ICMP will take source IP from the discarded packet and informs to
source by sending source quench message. Then source will reduce
the speed of transmission so that router will free for congestion.
ICMP-Source Quench Message
When the congestion router is far away from the source the ICMP
will send hop by hop source quench message so that every router
will reduce the speed of transmission.
ICMP-Parameter problem
Whenever packets come to the router then calculated
header checksum should be equal to received header
checksum then only packet is accepted by the router.