Docsity

ICMP: Understanding Control Messages and Error Types in Networking, Slides of Computer Networks

Partial preview of the text

Download ICMP: Understanding Control Messages and Error Types in Networking and more Slides Computer Networks in PDF only on Docsity!

TCP/IP Suite Error

Control Messages

Semester 2 – Module 8

Module Objectives:

 Describe ICMP  Describe ICMP message format  Identify ICMP error message types  Identify potential causes of specific ICMP error messages  Describe ICMP control messages  Identify a variety of ICMP control messages used in networks  Determine the causes for ICMP control messages

ICMP

  • Component of the TCP/IP protocol stack that addresses the basic limitations of IP due to its unreliable nature, but does not overcome the unreliability issues in IP
  • Used to report errors back to the source when a datagram delivery error occurs
  • Only notifies source of failure, does not send information about network changes
  • ICMP errors DO NOT generate their own ICMP error messages.
  • Encapsulated into Datagrams the same way other

i nformation is encapsulated

Ping

• Ping initiates the Echo Request

• Destination issues Echo Reply

  • Includes time-to-live (TTL) value
  • As each router processes the packet, it

decreases the TTL value by one

Echo Messages

• All ICMP message formats start with the

same three fields:

  • Type
    • 0 = echo Reply
    • 3 = unreachable desitnation
    • 8 = echo request
    • 11 = time exceeded
  • Code
  • Checksum

ICMP Redirect/Change Request

  • Can only be issued by a gateway
  • Default gateways only send ICMP redirect/change request messages if the following conditions are met: - The interface on which the packet comes into the router is the same interface on which the packet gets routed out. - The subnet/network of the source IP address is the same subnet/network of the next-hop IP address of the routed packet. - The datagram is not source-routed. - The route for the redirect is not another ICMP redirect or a default route. - The router is configured to send redirects. By default, Cisco routers send ICMP redirects. The interface subcommand no ip redirects will disable ICMP redirects.

ICMP Timestamps

• Designed to help alleviate the problem of

different network types using different

clock synchronization (simple method, but not the best)

• Timestamp request message allows a host

to ask for the current time according to the

remote host

• Remote host uses an ICMP timestamp

reply message to respond to the request

Router Discovery Message

  • A host can learn of available routers through the

process of router discovery

  • Host sends a router solicitation message to all

routers and uses the multicast address 224.0.0.

as the destination address

  • When a router that supports the discovery

process receives the router discovery message,

a router advertisement is sent in return

Congestion & Flow Control Messages

  • ICMP source quench messages are used to reduce the amount of data lost - asks senders to reduce the rate at which they

transmit packets