nerdexam
CompTIA

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.

Networking Fundamentals

Question

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?

Options

  • Adig
  • Bhost
  • Cping
  • Dtcpdump
  • Etraceroute

How the community answered

(36 responses)
  • A
    3% (1)
  • D
    3% (1)
  • E
    94% (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.

Adig

`dig` is a network administration command-line tool for querying DNS name servers.

Bhost

`host` is a simple utility for performing DNS lookups.

Cping

`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.

Dtcpdump

`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.

EtracerouteCorrect

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

#traceroute#TTL#ICMP#network diagnostics

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice