background image
TCP/IP Protocols 229
Figure 5-13
Sample Network for Discussing ICMP Unreachable
Host Unreachable is a code used if that single host is unavailable. If Router A had a route to
10.1.2.0/24, the packet would get to Router B. However, if the Web server is down, Router B
will not get an ARP reply from Web; Router B will send an unreachable back to Fred, with the
Host Unreachable code field.
Can't Fragment is the third unreachable code that is likely to be sent by a router. If Router A or
Router B needed to fragment the packet, but the Do Not Fragment bit was set in the IP header,
the router would send an unreachable back to Fred with the Can't Fragment value in the code
field.
If the packet successfully arrives at the Web server, two other unreachable codes are possible.
One implies that the protocol above IP, typically TCP or UDP, is not running on that host. This
is highly unlikely today. If true, this host would reply with an unreachable with the code field
value implying Protocol Unavailable. The final code field value is more likely today. If the
server was up but the Web server software was not running, the TCP/IP code on the server
would reply with an unreachable with the code field implying Port Unavailable. In other words,
the Web server software has not opened a listening socket connection using the Web server
well-known port of 80.
Cisco IOS documentation and configuration commands sometimes treat each different code
value as a separate message. For example, the documentation lists ping responses, stating
something like an "ICMP host unreachable" message. There is no such message, but there is a
"destination unreachable" with the Host Unreachable code set. The exam probably will not
expect you to know that there is no Host Unreachable message, though.
Table 5-6 summarizes the ICMP unreachable codes.
Table 5-6
ICMP Unreachable Codes
Unreachable
Code
When Used
Typically Sent
By...
Network
Unreachable
There is no match in a routing table for the destination of the
packet.
Router
Host Unreachable
The packet can be routed to a router connected to the
destination subnet, but the host is not responding.
Router
Fred
10.1.2.14
Web
B
A
10.1.3.0 / 24
10.1.1.0 / 24
10.1.2.0 / 24
continues
ch05.fm Page 229 Monday, March 20, 2000 5:06 PM