ICMP Flashcards
(38 cards)
What is the purpose of the Internet Control Message Protocol (ICMP)?
To compensate for the deficiencies of the IP protocol regarding error reporting and management queries
ICMP is a companion protocol to the IP protocol, designed to provide feedback about issues in the communication environment.
What are the two broad categories of ICMP messages?
- Error-reporting messages
- Query messages
What is the format of an ICMP message?
An 8-byte header and a variable-size data section
The first 4 bytes of the header are common to all ICMP messages.
What does the ‘type’ field in an ICMP message define?
The type of the message
What does the ‘code’ field in an ICMP message specify?
The reason for the particular message type
How does ICMP handle error reporting?
It reports problems encountered by a router or host when processing an IP packet
ICMP does not correct errors; it simply reports them.
What information is included in the data section of an error message?
- The IP header of the original datagram
- The first 8 bytes of data in that datagram
What does a destination-unreachable message signify?
A router or host cannot route or deliver a datagram, leading to its discard
The message is sent back to the source host that initiated the datagram.
What does Code 0 in a destination-unreachable message indicate?
The network is unreachable, possibly due to hardware failure
What does Code 3 in a destination-unreachable message indicate?
The port is unreachable, meaning the application program is not running
What is the purpose of the source-quench message in ICMP?
To inform the source that a datagram has been discarded due to congestion and to warn it to slow down the sending process
True or False: The source-quench message informs the source when congestion has been relieved.
False
What happens when a router discards a datagram due to congestion?
It sends a source-quench message to the sender of the datagram
Which ICMP messages can only be created by the destination host?
- Code 2
- Code 3
What is the limitation of source-quench messages in many-to-one communication?
The router or destination host may not know which source is responsible for the congestion
Fill in the blank: ICMP does not correct errors; it simply ______ them.
[reports]
What does the IP protocol lack that ICMP compensates for?
Error-reporting and management query mechanisms
What is the significance of the protocol field value ‘1’ in an IP datagram?
It indicates that the IP data is an ICMP message
What is the role of the data section in query messages?
It carries extra information based on the type of query
What does Code 4 in a destination-unreachable message indicate?
Fragmentation is required, but the DF field has been set
What does Code 6 in a destination-unreachable message indicate?
The destination network is unknown
What does Code 12 in a destination-unreachable message indicate?
The host is unreachable for the specified type of service
What is a source-quench message?
A message that informs the source that a datagram has been discarded due to congestion in a router or the destination host
It requires the source to slow down the sending of datagrams until the congestion is relieved.
How many source-quench messages are sent for discarded datagrams?
One source-quench message is sent for each datagram that is discarded due to congestion
This helps to notify the source of the issue.