Docsity

Slides for Internet Control Message Protocol | EE 432, Study notes of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
1
Internet Control Message Protocol
(ICMP)
Chapter 23
ICMP
•Usually sent in RESPONSE to an IP Datagram.
–Such are usually reporting an error condition of some
kind.
•Some ICMP messages are not responses but are
originated as ICMP requests or advertisements.
–These are informational messages.
List of ICMP
Messages
Examples of ICMP Error Messages
•Source Quench – Sent by a router to a host when
it has to discard datagrams from that host.
•Time Exceeded – Sent by a router when it
discards a packet whose time-to-live has expired.
•Destination Unreachable – Returned when router
determines it cannot deliver the packet. Tells
whether the network or host is down.
•Redirect – Tell host to send datagram to a
different router.
•Parameter Problem – Datagram contains a bad
parameter
Examples of Informational Messages
•Echo Request / Reply – ICMP software on any
computer is required to send a reply in response
to an echo request.
–Type 0, Code 0, Ping Reply
–Type 8, Code 0, Ping Request
•Address Mask Request / Reply – Upon boot a
host broadcasts a request for a mask. A nearby
router answers the request with the proper mask
for the network.
Traceroute
•Sends a series of ordinary datagrams to the
destination.
•Sets the TTL to 1, 2, 3....
• The Nth router discards the datagram because its TTL
has expired and returns an ICMP message Type 11,
code 0, to the source.
•ICMP message includes the IP address of the router
that sent the message.
•The procedure is repeated until the datagram actually
reaches the destination.
•The result is a list of routers along the way.
pf2

Partial preview of the text

Download Slides for Internet Control Message Protocol | EE 432 and more Study notes Computer Systems Networking and Telecommunications in PDF only on Docsity!

Internet Control Message Protocol

(ICMP)

Chapter 23

ICMP

  • Usually sent in RESPONSE to an IP Datagram.
    • Such are usually reporting an error condition of some kind.
  • Some ICMP messages are not responses but are originated as ICMP requests or advertisements. - These are informational messages.

List of ICMP

Messages

Examples of ICMP Error Messages

  • Source Quench – Sent by a router to a host when it has to discard datagrams from that host.
  • Time Exceeded – Sent by a router when it discards a packet whose time-to-live has expired.
  • Destination Unreachable – Returned when router determines it cannot deliver the packet. Tells whether the network or host is down.
  • Redirect – Tell host to send datagram to a different router.
  • Parameter Problem – Datagram contains a bad parameter

Examples of Informational Messages

  • Echo Request / Reply – ICMP software on any computer is required to send a reply in response to an echo request. - Type 0, Code 0, Ping Reply - Type 8, Code 0, Ping Request
  • Address Mask Request / Reply – Upon boot a host broadcasts a request for a mask. A nearby router answers the request with the proper mask for the network.

Traceroute

  • Sends a series of ordinary datagrams to the destination.
  • Sets the TTL to 1, 2, 3....
  • The Nth^ router discards the datagram because its TTL has expired and returns an ICMP message Type 11, code 0, to the source.
  • ICMP message includes the IP address of the router that sent the message.
  • The procedure is repeated until the datagram actually reaches the destination.
  • The result is a list of routers along the way.

Selected ICMP Messages

12 0 IP header bad 11 0 TTL^ expired 8 0 Echo^ Reply 3 7 Destination host unreachable 3 6 Destination^ network^ unreachable 3 3 Destination^ port^ unreachable 3 2 Destination protocol unreachable 3 1 Destination^ host^ unreachable 3 0 Destination^ network^ unreachable 0 0 Echo Request ICMP Type Code Description

ICMP Message Transport

  • ICMP messages are sent to the host who sent the IP datagram that caused the error or the host who sent the request.
  • If an ICMP packet causes an error, no error message is sent.

Path MTU Discovery

  • The source host is responsible for not sending packets that are too large for any part of the path.
  • Set the "Do Not Fragment" bit in the FLAGS field of the IP header.
  • If the datagram is too large for the route to send, it will discard the datagram and return an ICMP message, "fragmentation was required but not permitted".
  • Send successive datagrams with smaller and smaller sizes until datagram succeeds.
  • This procedure reduces CPU requirements for routers.