Skip to main content
3

Destination Unreachable

RFC 792Active

ICMP Type 3 Destination Unreachable is sent by a router or host when a packet cannot be delivered. The code field specifies why: network unreachable, host unreachable, port unreachable, fragmentation needed, and 12 more. Code 3 Port Unreachable is what UDP returns when no process is listening.

Description

ICMP Type 3 is the primary error reporting mechanism for undeliverable IP datagrams. Routers send codes 0-12 when they cannot forward a packet. Destination hosts send code 3 (Port Unreachable) when a UDP datagram arrives for a port with no listener.

Code 4 (Fragmentation Needed and DF Set) is critical for Path MTU Discovery (RFC 1191). When a router must fragment a packet but the Don't Fragment bit is set, it sends Type 3 Code 4 with the MTU of the next-hop link in the unused header field. TCP and QUIC use this to discover the path MTU and avoid fragmentation.

Blocking ICMP Type 3 Code 4 at firewalls breaks Path MTU Discovery, causing TCP black holes where connections establish but then stall when large packets are sent. This is one of the most common network misconfiguration patterns.

Common Causes

  • No route to destination network (code 0)
  • Host exists but is unreachable at layer 3 (code 1)
  • UDP datagram arrived but no process is listening on that port (code 3)
  • Packet too large and DF bit set – triggers PMTU Discovery (code 4)
  • Firewall or ACL blocking traffic to the destination (code 13)

Codes

CodeName
0Net Unreachable
1Host Unreachable
2Protocol Unreachable
3Port Unreachable
4Fragmentation Needed and DF Set
5Source Route Failed
6Destination Network Unknown
7Destination Host Unknown
8Source Host Isolated
9Communication with Destination Network Administratively Prohibited
10Communication with Destination Host Administratively Prohibited
11Destination Network Unreachable for Type of Service
12Destination Host Unreachable for Type of Service
13Communication Administratively Prohibited
14Host Precedence Violation
15Precedence Cutoff in Effect