Skip to content
Lesson: How ping and traceroute use ICMPSwitch
← How a network works

Lesson 3 of 6 · OSI Layer 3

How ping and traceroute use ICMP

ICMP is how IP reports problems and answers simple questions. Ping sends an echo and waits for a reply. Traceroute sends packets with a small TTL on purpose, so each router along the path reveals itself when it drops one.

Ping, then traceroute

Watch ICMP messages travel and return, and see how TTL maps the path.

LAPTOP192.168.1.10ROUTER 1192.168.1.1ROUTER 210.1.1.2SERVER203.0.113.10
IP proto 1 · ICMP type 8 (echo request) · dst 203.0.113.10

STEP 01 / 05

An echo request

Ping sends an ICMP echo request (type 8) inside an IP packet to the server. ICMP has no ports. It is carried directly in IP as protocol number 1.

Example addresses. Traceroute behaviour differs by operating system, as noted in step 4.

Check your understanding

How ping and traceroute use ICMP

All 1 sections · no timer

Unlimited retries

Questions from every section are combined into one assessment. Answer them all correctly to complete the article.

Your completion saves in this browser. Sign in to sync it to your account.