CCNA2 Mod08
CCNA2 Mod08
1
ICMP Error & Control Messages
CCNA 2 v3.0: Module 8; 8.1-8.2
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 2
Internet Control Message Protocol
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 3
IP Packet Header
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 5
What ICMP can and cannot do
• ICMP does not know the path a packet took on
its way to the destination.
It cannot report error or control messages to other
routers along the path to the destination.
ICMP can only report to the source or the destination.
Failed ICMP message delivery is not reported.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 7
The ICMP Packet
• ICMP messages are contained within the IP
packet that original caused .
Common fields to all ICMP messages are “Type” and
“Code”.
Most messages also include a “Checksum”.
If the ICMP Packet is an error message, it should
include up to 576 bytes of the original packet’s data
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 8
ICMP Message Types
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 9
Most Common ICMP Messages
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 10
Ping Uses Two ICMP Messages
• You are already familiar with two ICMP message types.
The ping command both on PCs and routers uses two ICMP
messages: Echo Requests (Type 8) and Replies (Type 0)
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 12
Information Request and Reply
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 13
Timestamp Request and Reply
• Provides time information for
synchronizing a connection between the
source and destination.
Although still used, it has been largely
replaced by the Application Layer protocol,
Network Time Protocol (RFC 1305).
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 14
Address Mask Request and Reply
• Used by hosts to discover their subnet mask.
If the default gateway is known, then the host sends the
request to that IP address.
If unknown, host sends the request as a broadcast
(255.255.255.255).
• The router will respond with the appropriate subnet mask for
the network segment on which the host resides.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 15
Router Advertisement
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 16
Router Advertisement
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 17
Router Solicitation
• Avoids having to configure a host statically with a list of
default gateways on multicast links.
Host sends solicitations to multicast address 224.0.0.2.
If no advertisement response is received, the host can
broadcast the solicitation for up to a predefined number of
times. Then it must stop to avoid network congestion.
• Routers are configured to reply to router solicitation
messages by sending router advertisements.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 18
Destination Unreachable Error
• This message is generated by a router to inform
the source host that the destination address is
unreachable.
Like most ICMP error messages, this one includes
IP header information and the first 8 bytes of the
original packet. Below is the ICMP header format.
All 16 bits of the Code field have been specified and are
describe in the next slide.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 19
Destination Unreachable Codes
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 20
Redirect
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 21
Redirect Message Format
• Below is the message format and codes
for Redirect messages.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 22
Source Quench
• When a router or destination host detects
excessive congestion on a link, it may send back
an optional Source Quench message.
The source then slows down the speed of data
transfer.
For example, sending data out on to a slower WAN
link, as shown in the graphic.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 24
Time Exceeded
• Remember: The IP header has a TTL field that is
decremented at each hop.
If the value reaches zero, the detecting router drops
the packet and sends a Time Exceeded ICMP message
to the source (Example: RIP’s Hop Count Limit)
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 26
Parameter Problem
• A Parameter Problem is caused by data in the
header that cannot be processed further,
causing the packet to be dropped.
An invalid IP header (Code 0) or a required missing
option (Code 1) would cause a parameter problem.
Neither the network nor the destination host is the
cause of the problem.
Checksum errors in the header are NOT reported. The
packet is simply dropped.
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 27
Traceroute
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 28
Traceroute is an ICMP Message Type
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 30
Traceroute Reply Message Format
ICMP Error & Control Messages © 2003, Cisco Systems, Inc. All rights reserved. 31
Traceroute Output to the Source