Learn / Field guide

ICMP: network error and test messages

ICMP carries control messages: ping requests and replies, and errors like "destination unreachable" and "time exceeded". It's how the network tells you something went wrong, and how traceroute maps a path.

8 ICMP fields, explained

Field names are the ones Wireshark and TShark use, so you can search for them or use them in display filters.

icmp.type

The kind of ICMP message. 8 is a ping request; 0 is a ping reply.

Why it matters: Other types report problems, like "destination unreachable".

icmp.code

Extra detail for the ICMP type.

icmp.checksum

A check value for the ICMP message.

icmp.ident

An identifier that matches replies to requests.

icmp.seq

Counts pings, so each reply can be matched to its request.

Why it matters: Gaps in the sequence mean lost pings.

icmp.original_ip

The IP header of the packet that caused this error, copied back to the sender.

Why it matters: Its TTL and destination tell traceroute which probe this reply answers.

icmp.original_udp

The first 8 bytes of the packet that caused this error: its UDP ports and length.

Why it matters: Traceroute uses a different destination port per probe, so the port identifies the hop.

icmp.unused

Four bytes that are unused in this kind of ICMP message and are always zero.