ICMP Flashcards
What is the purpose of ICMP?
Reports errors in network communication.
Diagnoses network issues.
Operates within the IP layer to manage and control device communication.
What are the main fields in an ICMP message?
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.
What is the purpose of ICMP Echo Request/Reply messages?
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.
What does an ICMP Destination Unreachable message indicate?
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.
What is the role of an ICMP Redirect message?
Type 5, Code 0: Informs the sender of a better route to the destination.
Provides the next router in the optimal path.
When is an ICMP Time Exceeded message used?
Type 11, Code 0: Indicates that the packet’s hop limit (TTL) reached zero, causing the packet to be dropped.
What does an ICMP Parameter Problem message indicate?
Type 12, Code 0: Signals an invalid or incomplete IP header in the packet.
How do ICMP Router Advertisement and Discovery messages work?
Type 9 (Advertisement): Routers announce their presence to hosts.
Type 10 (Discovery): Hosts search for routers actively.
How does the ping command utilize ICMP?
Sends an Echo Request (Type 8) to a target.
Waits for an Echo Reply (Type 0) to verify connectivity and measure round-trip time.
What is the process behind the traceroute tool?
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.