Академический Документы
Профессиональный Документы
Культура Документы
Message Protocol
(ICMP)
Type
0
3
3
3
4
5
8
9/10
11
12
13/14
17/18
Meaning
echo reply
network unreachable
host is unreachable
port is unreachable
source quench
redirection
echo request
router discovery/advertisement
time exceeded
parameter problem
time stamp request/reply
address mask request/reply
ERROR
REPORTING
ICMP always reports error messages to
the original source.
Error-reporting messages
Destination-unreachable format
Source-quench format
Time-exceeded message
Whenever a router receives a datagram
with a time-to-live value of zero, it discards
the datagram and sends a time-exceeded
message to the original source.
When the final destination does not receive
all of the fragments in a set time, it
discards the received fragments and sends
a time-exceeded message to the original
source.
In a time-exceeded message,
code 0 is used only by routers
to show that the value of the time-to-live
field is zero.
Code 1 is used only by the destina-tion
host to show that not all of the fragments
have arrived within a set time.
Parameter-problem message
A router or the destination host discovers that an
ambiguous or missing value in any field of the
datagram, it discards the datagram and sends a
parameter-problem message to the source
A parameter-problem message can be created by a
router or the destination host.
10
11
Redirection concept
12
Code 0:
Code 1:
Code 2:
Code 3:
Network specific
Host specific
Network specific (specified service)
Host specific (specified service)
13
Query messages
14
15
Timestamp-request and
timestamp-reply message format
Timestamp-request and
timestamp-reply messages can be used
to calculate the round-trip time
between a source and a destination
machine even if their
clocks are not synchronized.
We can calculate:
Sending time = 59 - 46 = 13 milliseconds
16
17
18
CHECKSUM
19
Debugging tools
ping
traceroute
20
ICMP package
42
43