Académique Documents
Professionnel Documents
Culture Documents
i. ICMP Position.
ii. ICMP Packets.
Basic Functionality.
Header Format.
ICMP Functions.
ICMP Message Classes.
Types of Messages.
ICMP Applications- Ping, Trace route.
Issues.
Conclusion.
Introduction
ICMP is an “error reporting” protocol.
- Code
Subtype of message
- Checksum
1’s complement
computed over entire
ICMP message
- Checksum set to zero
Announce Network Errors :
A kind of failure causes a host or the entire network to be
unreachable.
Informational (or Query) Messages: These are messages that are used to let
devices exchange information, implement certain IP-related features, and perform
testing. They do not indicate errors and are typically not sent in response to a
regular datagram transmission. They are generated either when directed by an
application, or on a regular basis to provide information to other devices. An
informational ICMP message may also be sent in reply to another informational
ICMP message, since they often occur in request/reply or
solicitation/advertisement functional pairs.
ICMP Message Types
Type Description ICMP Message Types
0 Echo Reply (Ping Reply, used with Type 8, Ping Request)
3 Destination Unreachable
4 Source Quench
5 Redirect
8 Echo Request (Ping Request, used with Type 0, Ping Reply)
14
If a router finds that a network is congested,
router sends ICMP source quench message to the
source.
The source then sets the window size to minimum
after receiving this message.
Message Types Contd…
The REDIRECT MESSAGE is used when a router notices that a packet seems to be routed
wrong. It is used by the router to tell the sending host about the probable error.
The ECHO and ECHO REPLY messages are used to see if a given destination is reachable and
alive. Upon receiving the ECHO message, the destination is expected to send an ECHO REPLY
message back.
The TIMESTAMP REQUEST and TIMESTAMP REPLY messages are similar, except that
the arrival time of the message and the departure time of the reply are recorded in the reply. This
facility is used to measure network performance.
18
Destination Unreachable Codes
Code Definition
0 Net Unreachable
1 Host Unreachable
2 Protocol Unreachable
3 Port Unreachable
4 Fragmentation needed & Don’t Fragment was set
5 Source Route failed
6 Destination Network Unknown
7 Destination Host Unknown
8 Source Host Isolated
9 Communication Destination Network is Administratively
Prohibited
10 Communication Destination Host is Administratively Prohibited
11 Destination Network Unreachable for Type of Service
12 Destination Host Unreachable for Type of Service
13 Communication Administratively Prohibited
14 Host Precedence Violation
15 Precedence Cutoff Violation
19
Redirect Codes
Code Definition
20
Time Exceeded Codes
Code Definition
Code Definition
0 Pointer Indicates the
Error
1 Missing a Required
Option
2 Bad Length
ICMP-APPLICATIONS
PING
Traceroute
Ping:
A program for checking if host is alive
Exists in most Operation Systems
DoS
gateway DoS
Source Target