Internet Control Message Protocol
Internet Control Message Protocol
Internet Control Message Protocol
Protocol
1
Position of ICMP in the network layer
2
ICMP encapsulation
3
General format of ICMP messages
All the ICMP messages are different. The only thing that is
common amongst all is the first 4 bytes.
5
ERROR REPORTING
IP, as an unreliable protocol, is not concerned with error checking and
error control. ICMP was designed, in part, to compensate for this
shortcoming.
Destination Unreachable
Source Quench
Time Exceeded
Parameter Problem
Redirection
6
Error-reporting messages
7
Note:
8
Contents of data field for the error messages
Destination Unreachable
10
Source-quench format
11
Time-exceeded message format
12
Note:
14
Redirection concept
Host routing tables start off small, usually with only one
entry - the default router.
15
Redirection concept
16
Redirection message format
17
9.4 QUERY
ICMP can also diagnose some network problems through the query
messages, a group of four different pairs of messages. In this type of
ICMP message, a node sends a message that is answered in a specific
format by the destination node.
18
Note:
Original timestamp = 46
Receive timestamp = 59
Transmit timestamp = 60
Return time = 67
What is:
Sending time =
Receiving time =
Round-trip time =
How does a host find out what routers are connected to its
own network? Or if those routers are functioning? It can
send out a router-solicitation message.
Ping and Traceroute (in Unix) and Ping and Tracert in Microsoft
both use ICMP and its various options to perform.
For the Ping command, the source host sends ICMP echo request
messages (type 8, code 0); the destination,if alive, responds
with ICMP echo reply messages.