Intermediate Topic 28 of 50 Computer Networks
ICMP and Ping
Control messages and the tool testing reachability.
How it works
The Internet Control Message Protocol carries control and error messages for IP, such as destination unreachable, time exceeded and redirect. Ping sends ICMP echo requests and measures round-trip time from the replies, and traceroute uses packets with increasing time-to-live values so each router on the path returns a time-exceeded message, revealing the route.
Step-by-step walkthrough
- Ping sends an ICMP echo request.
- The target replies with an echo reply.
- The round-trip time is printed.
- Traceroute raises TTL by one each time.
- Routers reply time exceeded, revealing every hop.
Where it is used
Network troubleshooting, monitoring availability and latency, and path MTU discovery depend on ICMP. Routers use it to signal problems back to senders.
Common pitfall
Blocking all ICMP in firewalls breaks path MTU discovery and makes diagnosing problems hard. A failed ping does not prove a host is down, as hosts may ignore echo. ICMP can be abused for floods, smurf attacks and covert channels, so rate-limit rather than blindly block. Interpret traceroute asterisks with care.
Where it fits in the course
ICMP and Ping is topic 28 of 50 in Computer Networks, rated Intermediate. It follows ARP. The next topic is NAT.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is ICMP and Ping?
Where do people use ICMP and Ping?
What is the most common mistake with ICMP and Ping?
What should I learn before this topic?
How can I practice it?
Is ICMP and Ping hard to learn?
How long does it take to learn ICMP and Ping?
Which topics are related to ICMP and Ping?
What should I study after ICMP and Ping?
Related topics
- ARP (Computer Networks)
- NAT (Computer Networks)
- CRC (Computer Networks)
- Routing Algorithms (Computer Networks)