nerdexam
CompTIA

LX0-104 · Question #665

How does the ping command work by default?

The correct answer is E. It sends an ICMP Echo Request to a remote host and waits to receive an ICMP Echo. The ping command operates by sending ICMP Echo Request packets to a remote host and awaiting ICMP Echo Reply packets to verify connectivity and measure latency.

Networking Fundamentals

Question

How does the ping command work by default?

Options

  • AIt sends a UDP packet to port 0 of the remote host and waits to receive a UDP error response
  • BIt sends an ARP request to a remote host and waits to receive an ARP response in return.
  • CIt sends a TCP SYN packet to a remote host and waits to receive an TCP ACK response in
  • DIt sends a broadcast packet to all hosts on the net and waits to receive, among others, a
  • EIt sends an ICMP Echo Request to a remote host and waits to receive an ICMP Echo

How the community answered

(27 responses)
  • B
    4% (1)
  • C
    7% (2)
  • D
    4% (1)
  • E
    85% (23)

Why each option

The ping command operates by sending ICMP Echo Request packets to a remote host and awaiting ICMP Echo Reply packets to verify connectivity and measure latency.

AIt sends a UDP packet to port 0 of the remote host and waits to receive a UDP error response

The ping command does not use UDP packets to port 0 to check connectivity; UDP is a connectionless protocol, and port 0 is reserved, not typically used for this diagnostic purpose.

BIt sends an ARP request to a remote host and waits to receive an ARP response in return.

ARP (Address Resolution Protocol) is a layer 2 protocol used to resolve IP addresses to MAC addresses on a local network segment, whereas ping operates at layer 3 to test end-to-end IP connectivity.

CIt sends a TCP SYN packet to a remote host and waits to receive an TCP ACK response in

The ping command does not establish a TCP connection using SYN/ACK packets; TCP is a connection-oriented transport layer protocol, while ping uses the network layer ICMP protocol.

DIt sends a broadcast packet to all hosts on the net and waits to receive, among others, a

The ping command typically sends unicast packets to a specific remote host's IP address, not broadcast packets to all hosts on a network, although some network utilities might use broadcast for discovery purposes.

EIt sends an ICMP Echo Request to a remote host and waits to receive an ICMP EchoCorrect

The ping command uses the Internet Control Message Protocol (ICMP) by sending an Echo Request message to the target host; if the host is reachable and configured to respond, it replies with an ICMP Echo Reply, confirming network connectivity and providing round-trip time.

Concept tested: ping command functionality

Source: https://www.man7.org/linux/man-pages/man8/ping.8.html

Topics

#ping command#ICMP#Network diagnostics

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice