nerdexam
LPI

102-400 · Question #182

Which of the following describes the Linux ping packet or datagram?

The correct answer is B. ICMP packet with a message type. See the full explanation below for the reasoning.

Question

Which of the following describes the Linux ping packet or datagram?

Options

  • AIP packet with a packet type
  • BICMP packet with a message type
  • CICMP packet with a payload
  • DUDP datagram with a protocol type
  • EUDP datagram with a payload

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    77% (23)
  • C
    7% (2)
  • D
    13% (4)

Community Discussion

8
Carlos M.Carlos M.Jun 1, 2026

B is the right answer. The ping command sends ICMP Echo Request packets and receives ICMP Echo Reply packets. ICMP (Internet Control Message Protocol) is what defines the message types, specifically type 8 for the request and type 0 for the reply, so "ICMP packet with a message type" is exactly what you're looking at. UDP has nothing to do with ping, and while ICMP packets do carry a payload, that's not what distinguishes them the way the message type field does, so B is the most precise and correct description here.

8
Imani T.Imani T.May 9, 2026

B is correct. The ping command sends ICMP echo request packets, and ICMP defines specific message types, type 8 for the echo request and type 0 for the echo reply, which is exactly how the kernel knows what to do with the packet.

5
Carlos M.Carlos M.May 10, 2026

Right, and worth noting that it's the destination host's kernel replying with type 0, not a router along the path, so if you get no reply it could be the target itself dropping ICMP rather than a routing issue.

0
Mateus R.Mateus R.May 27, 2026

Think of ping like a postal service that only carries status notices, not packages, so the protocol it runs on is ICMP, the one built specifically for control messages, and each ICMP packet carries a type field that tells the receiver what kind of notice it is, like "echo request" or "echo reply." Now here is what trips a lot of folks up: do you know the difference between an ICMP message type and an ICMP payload, and why the exam specifically asks about the type field rather than the payload to describe what ping actually sends?

1
Imani T.Imani T.May 28, 2026

The type field is the whole story for exam purposes, but worth noting that ping also leans on the code field alongside type, since together they give the full classification of the message, like type 3 code 1 for host unreachable versus type 3 code 3 for port unreachable.

0
Ingrid P.Ingrid P.May 15, 2026

ICMP carries a data payload, that is exactly what ping sends.

0
Yusuf A.Yusuf A.Jun 9, 2026

The answer is B, ICMP packet with a message type. When my senior had me run a packet capture on a ping, the first thing he pointed out was that ping uses ICMP, not UDP, so you can knock out D and E right away. C tripped me up for a second because ICMP packets do carry a data payload, but the thing that actually identifies a ping specifically is the message type field, which is 8 for echo request and 0 for echo reply, and that is what makes B the precise answer. A is just wrong because IP is the layer beneath ICMP, not the protocol ping itself uses.

-1
Imani T.Imani T.Jun 11, 2026

Solid breakdown, just worth noting that ICMP technically rides inside IP (it is encapsulated in IP packets), so saying A is wrong because "IP is the layer beneath ICMP" is actually the reason ICMP exists at that layer, not a reason IP is irrelevant to ping, but yeah B is the right answer for what uniquely identifies a ping.

0
Full 102-400 Practice