102-500 · Question #30
Which of the following describes the Linux ping packet or datagram?
The correct answer is B. ICMP packet with a message type. ping uses the Internet Control Message Protocol (ICMP), which defines distinct message types - Type 8 for Echo Request (sent by ping) and Type 0 for Echo Reply (received back) - making B correct. Option A is wrong because IP is the encapsulating layer, not the protocol ping…
Question
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
(33 responses)- A12% (4)
- B76% (25)
- C3% (1)
- D6% (2)
- E3% (1)
Explanation
ping uses the Internet Control Message Protocol (ICMP), which defines distinct message types - Type 8 for Echo Request (sent by ping) and Type 0 for Echo Reply (received back) - making B correct. Option A is wrong because IP is the encapsulating layer, not the protocol ping operates at; calling it just an "IP packet" ignores the specific ICMP layer. Options D and E are wrong because ping never uses UDP - UDP is a transport-layer protocol used by applications like DNS and DHCP, whereas ICMP is a network-layer protocol. Option C is a partial truth that misleads: while ICMP packets do carry a small data payload, the defining characteristic of a ping packet is its message type, not the payload - without the type field, the receiver wouldn't know to treat it as an echo request.
Memory tip: ICMP = "I Control Messages" - ping is a control message (not application data), and every ICMP message is identified by its type number, so think "ICMP + type" whenever you see ping.
Topics
Community Discussion
No community discussion yet for this question.