ICMP

Internet Control Message ProtocolInternet layer · OSI 3

Error reports and probes powering ping and traceroute

Step 1 of 4: Send a ping and get a reply. Running ping sends an Echo Request to the server. The server's operating system answers straight back with an Echo Reply .
0.0 s / 12.3 s
Your laptop192.168.1.10
LookupResponseControlLost or refusedRequest

Overview

is how routers and servers report network status and errors, such as when a packet's hop limit expires or a port is closed. Tools like ping and traceroute use it.

Internet Control Message Protocol (RFC 792 for IPv4; RFC 4443 for IPv6) travels directly inside (protocol number 1) without TCP or UDP ports, carrying typed diagnostic probes and error notifications.

Key facts

Layer
Internet (OSI Layer 3)
IP protocol
1 (no transport port)
Message format
Type + Code + Checksum
Built on ICMP
ping, tracert / traceroute
Defined in
RFC 792 (IPv6: RFC 4443)

Network diagnostics answered

Echo probes measured round-trip time, tiny TTL values revealed each router along the route, and a closed UDP port triggered an immediate Port Unreachable error.

Demonstrated ICMP Type 8/0 (Echo), Type 11/0 (Time Exceeded), and Type 3/3 (Port Unreachable) inside IPv4 protocol 1.

Echo
Type 8 request, Type 0 reply
TTL expired
Type 11, Code 0
Port closed
Type 3, Code 3
IPv6 spec
RFC 4443 (ICMPv6)

Try it yourself

Measure round-trip time with ping

Send four ICMP Echo Requests and observe the reply latency and TTL reported by the remote host.

ping -n 4 example.com

Trace each hop along the path

Watch routers reply with ICMP Time Exceeded as the TTL increases hop by hop.

tracert example.com