Networking Essentials easy
The `ping` command uses which protocol to check if a host is reachable?
- A TCP (Transmission Control Protocol), providing a connection-oriented stream to ensure the reliable delivery of diagnostic payloads.
- B HTTP (Hypertext Transfer Protocol), utilizing standard GET requests to poll the target server's status via a web-compatible interface.
- C ICMP (Internet Control Message Protocol), which is natively designed for network diagnostics, error reporting, and management tasks.
- D UDP (User Datagram Protocol), offering a high-speed, connectionless mechanism for transmitting small 'heartbeat' packets between nodes.
Answer: C. ICMP (Internet Control Message Protocol), which is natively designed for network diagnostics, error reporting, and management tasks.
The `ping` command is used for basic reachability tests. It operates at the IP layer using ICMP Echo Request and Echo Reply messages. Unlike TCP or UDP, which are designed to carry application data between programs, ICMP is a maintenance and diagnostic protocol. It is used by routers and hosts to communicate network-level information, such as 'Destination Unreachable' or 'Time Exceeded' (for Traceroute). While ICMP provides essential visibility into the network's health, it is often blocked by firewalls to prevent certain types of denial-of-service attacks or network mapping by hackers.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is the downside of enabling 'Sticky Sessions' (Session Affinity) on a Load Balancer?
- In WebRTC (P2P Mesh), why is a STUN server required?
- What is the fundamental difference between a Network Switch and a Router?
- In Cloud Networking (AWS), what is the limitation of VPC Peering compared to a Transit Gateway?
- Which protocol is ideal for real-time multiplayer gaming positions or Voice over IP (VoIP), and why?
- What is the purpose of the 'Time To Live' (TTL) field in an IP packet?