0
0
Computer Networksknowledge~20 mins

ICMP and ping/traceroute in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ICMP and Ping/Traceroute Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of the ICMP protocol?

ICMP is a fundamental protocol in networking. What is its main role?

ATo provide error messages and operational information about IP packet processing
BTo encrypt data packets for secure transmission
CTo establish and maintain TCP connections between hosts
DTo assign IP addresses dynamically to devices on a network
Attempts:
2 left
💡 Hint

Think about how devices report problems or status in IP networks.

📋 Factual
intermediate
1:30remaining
Which ICMP message type does the ping command use to check if a host is reachable?

The ping command sends a specific ICMP message to test connectivity. Which one?

ATime Exceeded
BDestination Unreachable
CEcho Request
DRedirect
Attempts:
2 left
💡 Hint

It asks the target to reply back to confirm it is alive.

🔍 Analysis
advanced
2:00remaining
What does the traceroute command primarily rely on to discover the path packets take to a destination?

Traceroute uses a specific field in IP packets and ICMP messages to map the route. What is this mechanism?

AIt sends TCP SYN packets to each router to get acknowledgments
BIt sends ICMP Echo Requests with different source ports to trace the path
CIt uses ARP requests to find each router along the path
DIt sends packets with increasing TTL values and listens for ICMP Time Exceeded messages
Attempts:
2 left
💡 Hint

Think about how routers handle packets with expired TTL.

Comparison
advanced
2:00remaining
How do ping and traceroute differ in their use of ICMP messages?

Both tools use ICMP but in different ways. Which statement correctly describes their difference?

APing uses ICMP Echo Request and Reply messages, while traceroute relies on ICMP Time Exceeded messages from routers
BPing uses ICMP Redirect messages, while traceroute uses ICMP Echo Reply messages
CBoth ping and traceroute only use ICMP Echo Request messages
DPing uses ICMP Destination Unreachable messages, traceroute uses ICMP Redirect messages
Attempts:
2 left
💡 Hint

Consider what each tool tries to achieve and how ICMP helps.

Reasoning
expert
2:30remaining
If a traceroute command to a destination shows the same IP address for multiple hops, what is the most likely explanation?

During a traceroute, you notice several consecutive hops report the same router IP. What does this indicate?

AThe router is configured to decrement TTL but does not forward packets properly, causing repeated responses
BThere is a routing loop causing packets to circle through the same router multiple times
CThe traceroute tool is malfunctioning and displaying incorrect IP addresses
DThe destination host is responding with its own IP for all hops
Attempts:
2 left
💡 Hint

Think about what repeated IPs in traceroute hops usually mean in network paths.