LFCS · 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 utilizes the TTL field to map the network path between a source and destination by progressively increasing the TTL.
Question
Options
- Adig
- Bhost
- Cping
- Dtcpdump
- Etraceroute
How the community answered
(33 responses)- A3% (1)
- B3% (1)
- E94% (31)
Why each option
The `traceroute` command utilizes the TTL field to map the network path between a source and destination by progressively increasing the TTL.
`dig` is a DNS lookup utility.
`host` is a simple utility for performing DNS lookups.
`ping` sends ICMP echo requests to test connectivity to a single host and does not systematically vary TTL to map a path.
`tcpdump` is a packet analyzer that captures and displays network traffic, not a tool for path discovery.
The `traceroute` command works by sending packets with incrementally increasing TTL values. Each router that receives a packet with a TTL of 1 (or 0 after decrementing) will drop it and send an ICMP 'Time Exceeded' message back to the source, allowing `traceroute` to identify each hop along the path.
Concept tested: Network path discovery (traceroute)
Source: https://man7.org/linux/man-pages/man8/traceroute.8.html
Topics
Community Discussion
No community discussion yet for this question.