101 · Question #537
ICMP is used by which command line tool?
The correct answer is C. traceroute. Traceroute relies on ICMP Time Exceeded messages returned by intermediate routers to map the path packets take to a destination.
Question
ICMP is used by which command line tool?
Options
- Acurt
- Btcpdump
- Ctraceroute
- Dnslookup
How the community answered
(47 responses)- A2% (1)
- B9% (4)
- C87% (41)
- D2% (1)
Why each option
Traceroute relies on ICMP Time Exceeded messages returned by intermediate routers to map the path packets take to a destination.
curl is an application-layer tool used to transfer data using protocols such as HTTP, FTP, and HTTPS, and does not use ICMP.
tcpdump is a packet capture and analysis tool that can capture ICMP traffic, but it does not generate or depend on ICMP to perform its function.
Traceroute works by sending packets with incrementally increasing TTL values; each router that decrements the TTL to zero returns an ICMP Time Exceeded (Type 11) message back to the sender. The final destination responds with an ICMP Echo Reply (Type 0) or ICMP Port Unreachable, allowing traceroute to record each hop. This makes ICMP fundamental to how traceroute discovers network path and latency.
nslookup is a DNS query tool that uses UDP or TCP on port 53 to resolve hostnames and has no dependency on ICMP.
Concept tested: ICMP usage in traceroute path discovery
Source: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml
Topics
Community Discussion
No community discussion yet for this question.