2011年9月18日

ICMP-type values

ICMP協定
Using the ping and traceroute commands, we obtain the round-trip time (RTT). This is the time required to send an echo packet, and get an answer back. This can be useful to have a rough idea of the delay on the link. However, these figures are not precise enough to be used for performance evaluation.

When a packet destination is the router itself, this packet has to be process-switched. The processor has to handle the information from this packet, and send an answer back. This is not the main goal of a router. By definition, a router is built to route packets. Answering a ping is offered as a best-effort service.



ICMP TypeLiteral
0echo-reply
3destination unreachable
code 0 = net unreachable
1 = host unreachable
2 = protocol unreachable
3 = port unreachable
4 = fragmentation needed and DF set
5 = source route failed
4source-quench
5redirect
code 0 = redirect datagrams for the network
1 = redirect datagrams for the host
2 = redirect datagrams for the type of service and network
3 = redirect datagrams for the type of service and host
6alternate-address
8echo
9router-advertisement
10router-solicitation
11time-exceeded
code 0 = time to live exceeded in transit 1 = fragment reassembly time exceeded
12parameter-problem
13timestamp-request
14timestamp-reply
15information-request
16information-reply
17mask-request
18mask-reply
31conversion-error
32mobile-redirect

The table below lists the possible output characters from the ping facility:
CharacterDescription
!Each exclamation point indicates receipt of a reply.
.Each period indicates the network server timed out while waiting for a reply.
UA destination unreachable error PDU was received.
QSource quench (destination too busy).
MCould not fragment.
?Unknown packet type.
&Packet lifetime exceeded.

0 回應:

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.