LX0-104 · Question #281
Which of the following describes the Linux ping packet or datagram?
The correct answer is B. ICMP packet with a message type. A Linux ping packet is an ICMP packet that includes a message type to indicate its purpose, specifically an Echo Request.
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
(36 responses)- B89% (32)
- C6% (2)
- D3% (1)
- E3% (1)
Why each option
A Linux `ping` packet is an ICMP packet that includes a message type to indicate its purpose, specifically an Echo Request.
While `ping` packets are encapsulated within IP packets, classifying them simply as 'IP packet with a packet type' is too general; the specific protocol at the next layer is ICMP.
The `ping` utility operates using the Internet Control Message Protocol (ICMP). Specifically, it sends ICMP Echo Request messages, which are identified by an ICMP message Type (e.g., Type 8 for Echo Request) and a Code (e.g., Code 0).
While ICMP packets can have a payload (e.g., for data in Echo Requests), the fundamental defining characteristic that identifies an ICMP message's purpose is its message type, making 'ICMP packet with a message type' a more precise and accurate description.
`ping` does not use UDP (User Datagram Protocol); it uses ICMP directly over IP.
`ping` does not use UDP (User Datagram Protocol); it uses ICMP directly over IP.
Concept tested: ICMP protocol and ping command
Source: https://www.ietf.org/rfc/rfc792.txt
Topics
Community Discussion
No community discussion yet for this question.