LX0-104 · Question #506
Which of the following commands manipulates the TTL (Time to Live) field in the IP protocol in order to get ICMP responses from gateways along the path to a host?
The correct answer is E. traceroute. The traceroute command is specifically designed to discover the path packets take to a destination by manipulating the IP TTL field to elicit ICMP Time Exceeded messages from intermediate routers.
Question
Options
- Adig
- Bhost
- Cping
- Dtcpdump
- Etraceroute
How the community answered
(36 responses)- A3% (1)
- D3% (1)
- E94% (34)
Why each option
The `traceroute` command is specifically designed to discover the path packets take to a destination by manipulating the IP TTL field to elicit ICMP Time Exceeded messages from intermediate routers.
`dig` is a network administration command-line tool for querying DNS name servers.
`host` is a simple utility for performing DNS lookups.
`ping` sends ICMP Echo Request packets to a host to test reachability and measure round-trip time, but it does not systematically manipulate TTL to discover intermediate hops.
`tcpdump` is a command-line packet analyzer that captures and displays TCP/IP and other packets, but it does not send packets or manipulate TTL to map a route.
Traceroute works by sending packets (typically UDP or ICMP) with an incrementally increasing Time to Live (TTL) value, starting from 1. Each router along the path decrements the TTL; when TTL reaches 0, the router discards the packet and sends an ICMP Time Exceeded message back to the source, allowing traceroute to identify the hops.
Concept tested: Network path discovery (traceroute)
Source: https://linux.die.net/man/8/traceroute
Topics
Community Discussion
No community discussion yet for this question.