The Pulse of the Internet

Published: 2026-01-20

URL: https://thecodinggopher.substack.com/p/understanding-icmp-ping


If you have ever stared at a “No Connection” dinosaur on your browser or troubleshot a laggy game, you’ve likely used—or at least heard of—Ping. It is the oldest, simplest, and arguably most important tool in a network engineer’s arsenal.

But what actually happens when you type ping google.com? Today, we are diving deep into the heartbeat of the internet. Note: The “no internet” dinosaur (or Chrome Dino) in Google Chrome appears strictly when your browser cannot connect to the internet, such as with ERRINTERNETDISCONNECTED or ERRNAMENOT_RESOLVED errors.

It is not specifically caused by high ping (latency), but rather by a complete break in connectivity, such as Wi-Fi turning off, your router losing its connection to the service provider, or a server being completely unreachable.

A Digital Sonar The term “Ping” isn’t an acronym. It was actually named after the sound a sonar makes in a submarine. Just like a submarine sends out a sound pulse and listens for the echo to detect objects underwater, your computer sends a digital signal to a target (like a server) and waits for a reply. If the “echo” comes back, you know the target exists and is reachable. If it doesn’t, you know you have a problem. Under the Hood: The ICMP Protocol Ping relies on a specific language called ICMP (Internet Control Message Protocol).

Unlike TCP or UDP, which are used to transport data (like Netflix streams or email), ICMP is used for diagnostics and control. When you run a ping command, a specific sequence occurs: Echo Request: Your computer sends a small packet of data (Type 8) to the destination IP address.

It essentially asks, “Are you there?” The Journey: The packet hops through various routers and switches across the internet to reach the destination. Echo Reply: If the destination machine is active and accepting pings, it immediately sends a packet back (Type 0) saying, “I am here.” How to Interpret Results When you ping a server, you usually get three key pieces of data back.

Here is how to read them:

  1. Latency (Time)

Usually measured in milliseconds (ms), this is the round-trip time (RTT). It measures how long it took for the packet to get there and get back. < 30ms: Blazing fast. Great for gaming. 100ms - 200ms: Noticeable delay, but usable for browsing.

400ms: Significant lag.
  1. TTL (Time to Live)

This isn’t how long the packet lives in seconds; it’s a “hop limit.” Every time your packet passes through a router, the TTL number decreases by one. If it hits zero, the packet dies. This prevents packets from looping infinitely in a broken network.

  1. Packet Loss

If you send 4 pings and only get 3 replies, you have 25% packet loss. This is the silent killer of internet performance, causing “rubber-banding” in games and robotic voices in Zoom calls. 𝐋𝐞𝐚𝐫𝐧 𝐭𝐨 𝐛𝐮𝐢𝐥𝐝 𝐆𝐢𝐭, 𝐃𝐨𝐜𝐤𝐞𝐫, 𝐑𝐞𝐝𝐢𝐬, 𝐇𝐓𝐓𝐏 𝐬𝐞𝐫𝐯𝐞𝐫𝐬, 𝐚𝐧𝐝 𝐜𝐨𝐦𝐩𝐢𝐥𝐞𝐫𝐬, 𝐟𝐫𝐨𝐦 𝐬𝐜𝐫𝐚𝐭𝐜𝐡. Get 40% OFF CodeCrafters: https://app.codecrafters.io/join?via=the-coding-gopher This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber.

Why doesn’t everyone reply? You might notice that pinging certain major websites (like Amazon or Microsoft) sometimes results in a “Request Timed Out,” even though the site is clearly working. This is usually due to Firewalls.

Many network administrators configure their firewalls to block ICMP requests. Why? Security: To hide their infrastructure from scanners. DoS Prevention: To prevent “Ping Floods” or the historical “Ping of Death,” where attackers would overwhelm a server with oversized packets.

A Ping of Death (PoD) is a type of Denial of Service (DoS) attack where an attacker sends a malformed or oversized packet—exceeding the maximum allowed size of 65,535 bytes—to a target system to cause it to freeze, crash, or reboot.

How the Attack Works Oversized Packet Creation: The attacker crafts a network packet (typically using the ICMP protocol used by the ping command) that is larger than the 65,535-byte limit defined by the Internet Protocol. Fragmentation: Because the packet exceeds the maximum size allowed for transmission, it is broken into smaller fragments by the sender’s system. Malicious Reassembly: When the target machine receives these fragments and tries to reassemble them into the original large packet, the total size exceeds its memory buffer.

System Crash: This reassembly process results in a buffer overflow, which corrupts memory and causes the target system to crash or “blue screen”. Buffer Overflow Quick Tip: The Continuous Ping By default, Windows sends only 4 pings and stops. If you are wiggling an ethernet cable trying to find a loose connection, use the continuous ping flag.

In Command Prompt (Windows): ping google.com -t(Press Ctrl + C to stop it) In Terminal (Mac/Linux): ping google.com(It runs continuously by default; press Ctrl + C to stop) Final Thought Next time your internet slows to a crawl, don’t just guess what’s wrong. Open your terminal and send a ping. It’s the digital equivalent of checking for a pulse—simple, primitive, but absolutely vital. TL;DR ICMP ping uses the Internet Control Message Protocol (ICMP) to test network connectivity by sending an Echo Request to a device and waiting for an Echo Reply, measuring round-trip time (latency) and packet loss; it’s a fundamental network diagnostic tool, though often blocked by security policies.

The command-line ping utility sends these requests, with the target host responding to confirm reachability, making it useful for troubleshooting, gaming latency, and basic network health checks. How it Works (The Ping Process) Send Request: Your computer sends an ICMP Echo Request packet to the target IP address. Target Responds: The target device receives the request and immediately sends back an ICMP Echo Reply packet. Measure: The ping utility calculates the time it took for the reply to return (Round-Trip Time or RTT) and reports it, along with any lost packets.

Uses of ICMP Ping Connectivity Testing: Verify if a host is online and reachable. Latency Measurement: Check network delay (higher RTT means more latency). Packet Loss Detection: Identify if any requests aren’t getting replies. Network Diagnostics: Part of broader tools like traceroute, which uses ICMP to map the path packets take. Technical Details & Security Protocol: ICMP is part of the TCP/IP suite, but unlike TCP, it’s connectionless and doesn’t use ports. Security: Many networks disable ICMP echo replies for security, making devices harder to discover or attack (e.g., ICMP flood attacks), so ping may fail even if a host is up.

This Substack is reader-supported. To receive new posts and support my work, consider becoming a free or paid subscriber. Thanks for reading! This post is public so feel free to share it. Share