ICMP Flashcards

1
Q

What is the purpose of ICMP?

A

Reports errors in network communication.
Diagnoses network issues.
Operates within the IP layer to manage and control device communication.

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

What are the main fields in an ICMP message?

A

Type (1 byte): Specifies the message type.
Code (1 byte): Provides sub-type details.
Checksum (2 bytes): Validates message integrity.
Data: Contains additional information based on the message type.

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

What is the purpose of ICMP Echo Request/Reply messages?

A

Type 8, Code 0 (Request): Asks the
send an identical message back (echo).

Type 0, Code 0 (Reply): Responds with the requested message.
Commonly used by the ping command to test connectivity and measure round-trip time.

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

What does an ICMP Destination Unreachable message indicate?

A

Type 3 messages signal issues reaching the destination. Common codes include:

Code 0: Network unreachable.
Code 1: Host unreachable.
Code 2: Protocol unreachable.
Code 3: Port unreachable.
Code 6: Network unknown.
Code 7: Host unknown.

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

What is the role of an ICMP Redirect message?

A

Type 5, Code 0: Informs the sender of a better route to the destination.
Provides the next router in the optimal path.

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

When is an ICMP Time Exceeded message used?

A

Type 11, Code 0: Indicates that the packet’s hop limit (TTL) reached zero, causing the packet to be dropped.

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

What does an ICMP Parameter Problem message indicate?

A

Type 12, Code 0: Signals an invalid or incomplete IP header in the packet.

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

How do ICMP Router Advertisement and Discovery messages work?

A

Type 9 (Advertisement): Routers announce their presence to hosts.
Type 10 (Discovery): Hosts search for routers actively.

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

How does the ping command utilize ICMP?

A

Sends an Echo Request (Type 8) to a target.
Waits for an Echo Reply (Type 0) to verify connectivity and measure round-trip time.

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

What is the process behind the traceroute tool?

A

Sends packets with incrementing hop limits (TTL).
Routers decrement the TTL and return an ICMP Time Exceeded message when it reaches zero.
Repeats until the destination is reached, revealing the path taken.

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