ICMP Flashcards

(38 cards)

1
Q

What is the purpose of the Internet Control Message Protocol (ICMP)?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two broad categories of ICMP messages?

A
  • Error-reporting messages
  • Query messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the format of an ICMP message?

A

An 8-byte header and a variable-size data section

The first 4 bytes of the header are common to all ICMP messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the ‘type’ field in an ICMP message define?

A

The type of the message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the ‘code’ field in an ICMP message specify?

A

The reason for the particular message type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does ICMP handle error reporting?

A

It reports problems encountered by a router or host when processing an IP packet

ICMP does not correct errors; it simply reports them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What information is included in the data section of an error message?

A
  • The IP header of the original datagram
  • The first 8 bytes of data in that datagram
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does a destination-unreachable message signify?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does Code 0 in a destination-unreachable message indicate?

A

The network is unreachable, possibly due to hardware failure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Code 3 in a destination-unreachable message indicate?

A

The port is unreachable, meaning the application program is not running

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of the source-quench message in ICMP?

A

To inform the source that a datagram has been discarded due to congestion and to warn it to slow down the sending process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

True or False: The source-quench message informs the source when congestion has been relieved.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens when a router discards a datagram due to congestion?

A

It sends a source-quench message to the sender of the datagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which ICMP messages can only be created by the destination host?

A
  • Code 2
  • Code 3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the limitation of source-quench messages in many-to-one communication?

A

The router or destination host may not know which source is responsible for the congestion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Fill in the blank: ICMP does not correct errors; it simply ______ them.

17
Q

What does the IP protocol lack that ICMP compensates for?

A

Error-reporting and management query mechanisms

18
Q

What is the significance of the protocol field value ‘1’ in an IP datagram?

A

It indicates that the IP data is an ICMP message

19
Q

What is the role of the data section in query messages?

A

It carries extra information based on the type of query

20
Q

What does Code 4 in a destination-unreachable message indicate?

A

Fragmentation is required, but the DF field has been set

21
Q

What does Code 6 in a destination-unreachable message indicate?

A

The destination network is unknown

22
Q

What does Code 12 in a destination-unreachable message indicate?

A

The host is unreachable for the specified type of service

23
Q

What is a source-quench message?

A

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.

24
Q

How many source-quench messages are sent for discarded datagrams?

A

One source-quench message is sent for each datagram that is discarded due to congestion

This helps to notify the source of the issue.

25
What generates a time-exceeded message?
A time-exceeded message is generated when either the time-to-live value reaches 0 or when not all fragments of a datagram arrive within a certain time limit ## Footnote In both cases, the router must send this message to the original source.
26
What are the two codes for time-exceeded messages?
* Code 0: Datagram is discarded due to a time-to-live field value of zero * Code 1: Arrived fragments of a datagram are discarded because some fragments have not arrived within the time limit
27
What causes a parameter problem message?
Any ambiguity in the header part of a datagram can create issues as it travels through the Internet ## Footnote If a router or destination host discovers an ambiguous or missing value in any field, it discards the datagram and sends a parameter-problem message back to the source.
28
What are the codes for a parameter problem message?
* Code 0: There is an error or ambiguity in one of the header fields * Code 1: The required part of an option is missing
29
What is the purpose of a redirection message?
To update the routing table of a host when it sends a datagram to the wrong router ## Footnote The router that receives the datagram will forward it to the correct router and send a redirection message to the host.
30
What types of routes can a redirection message indicate?
* Code 0: Redirection for a network-specific route * Code 1: Redirection for a host-specific route * Code 2: Redirection for a network-specific route based on a specified type of service * Code 3: Redirection for a host-specific route based on a specified type of service
31
What two pairs of messages are used for query purposes in ICMP?
* Echo request and reply * Timestamp request and reply
32
What is the purpose of echo-request and echo-reply messages?
Designed for diagnostic purposes to identify network problems ## Footnote They help determine if there is communication at the IP level.
33
What is the significance of the receipt of an echo-reply message?
It is proof that the IP protocols in the sender and receiver are communicating ## Footnote It also indicates that the intermediate routers are processing and forwarding IP datagrams.
34
What can timestamp-request and timestamp-reply messages be used for?
To determine round-trip time and synchronize clocks in two machines ## Footnote The original timestamp field is filled with the clock at departure time.
35
What are the three timestamp fields in a timestamp message?
* Original timestamp field * Receive timestamp field * Transmit timestamp field
36
What is a key point about ICMP error messages?
No ICMP error message will be generated in response to specific types of datagrams ## Footnote These include datagrams carrying ICMP error messages, fragmented datagrams that are not the first fragment, and datagrams with multicast addresses.
37
Which ICMP messages have been deprecated?
* Information request and reply messages * Address mask request and reply messages * Router solicitation and advertisement messages
38
What are common debugging tools mentioned in TCP/IP?
* Ping * Traceroute