Diagnosing Connectivity Failures
Interpreting ping and traceroute output, firewall drop vs reject behavior, MTU black holes, and asymmetric routing issues.
Overview
Overview Connectivity failures are one of the most common and frustrating categories of production incidents. A service that worked yesterday suddenly cannot be reached, or a new deployment fails to connect to a dependency. Systematic diagnosis using the right tools and a layered OSI-model approach dramatically reduces mean time to resolution.
The fundamental diagnostic loop is: determine what layer the failure is at (physical, IP, transport, application), then use layer-appropriate tools to isolate the exact failure point. Starting with ping and traceroute provides an initial map of IP-layer connectivity. If IP connectivity exists but TCP connections fail, tcpdump at both endpoints reveals whether SYN packets are arriving and whether RST or ICMP unreachable messages are being sent back. If TCP connects but application responses are wrong, curl and application-layer debugging tools take over.
Understanding the difference between ICMP unreachable (connection rejected, usually a firewall rule returning an explicit deny) and connection timeout (packet dropped silently, usually a stateful firewall or network ACL with no return) is critical. A firewall that sends TCP RST or ICMP port-unreachable is actually more helpful for diagnosis than one that silently drops — the error is immediate and informative. A silent drop causes the client to wait for the full connection timeout (typically 120 seconds) before failing.
MTU black holes are a notoriously difficult class of connectivity failure. TCP connections establish successfully (SYN/SYN-ACK/ACK use small packets) but data transfer fails or hangs. This happens when the Path MTU is smaller than the sender assumes, the DF (Don't Fragment) bit is set, and ICMP "fragmentation needed" messages are blocked by a firewall. The result is silent packet drops for any packet larger than the Path MTU.
In cloud environments, additional failure modes include security group misconfiguration, network ACL issues, route table problems, and DNS resolution failures that masquerade as connectivity issues.
Key concepts
- ICMP Unreachable vs Silent Drop
- Traceroute Interpretation
- Asymmetric Routing
- MTU Black Hole
- Network ACL vs Security Group
Interview questions
- Walk through your systematic process for diagnosing "service X cannot reach service Y" in a Kubernetes cluster deployed on AWS.
- How do you diagnose and fix an MTU black hole causing TCP connections to hang after the handshake?
Sign up free to read the full topic
More Networking topics
Start free on Cariara · Coding problems · System design studio