Skip to content

Lesson 9 of 9 · 28m

Production Failure Patterns You Should Recognize on Sight

Asymmetric routing, conntrack exhaustion, DNS masquerading as network failure, bridge loops, and partial MTU failure — the recurring incidents and the evidence that separates them.

Experience is mostly pattern compression. You still verify, but you recognize shapes: one-way traffic, everything slow at scale, only large requests failing, only some nodes affected. This lesson maps common shapes to first tests so you can shorten incidents without jumping to conclusions.

Asymmetric routing: one side is fine, the flow is not

Symptoms: SYN arrives, service responds, client never completes handshake; or traffic works in one direction only through a stateful firewall. First tests:

ip route get <remote-ip>; ip rule show; sysctl net.ipv4.conf.all.rp_filter
tcpdump -ni eth0 host <remote-ip> and tcp

Look for reply source addresses and egress interfaces that do not match the ingress path. Multi-homed hosts usually need policy routing or a topology correction, not random rp_filter changes.

Conntrack exhaustion: everything works until it doesn't

Symptoms: intermittent new connection failures under load, NAT gateways dropping flows, logs such as nf_conntrack: table full. First tests:

sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max; dmesg -T | grep -i conntrack | tail; conntrack -S 2>/dev/null | head

The fix may be raising limits, reducing timeout abuse, fixing port exhaustion, or removing unnecessary connection tracking. Increasing the table without understanding why it filled is just renting time.

DNS failure impersonating everything else

Symptoms: 'network is down' while IP-based tests succeed; intermittent application timeouts correlated with resolver behavior. First tests:

getent hosts database.internal; cat /etc/resolv.conf; resolvectl query database.internal 2>/dev/null || dig database.internal

Test both resolution time and answer correctness. A slow resolver creates application latency even though routing is perfect. Split-horizon DNS makes the same name intentionally different depending on source; wrong is not always broken.

Bridge loops: fast escalation, loud counters

Symptoms: sudden broadcast/multicast storms, high CPU in softirq, flapping MAC tables, widespread L2 instability. First tests:

bridge fdb show | sort; bridge vlan show; ip -statistics link show dev br0

Look for the same MAC learned alternately on multiple ports. Verify physical topology before enabling random filtering. Loops are architectural until proven otherwise.

Partial MTU black holes

Symptoms: TCP connects, TLS stalls mid-handshake, small API calls succeed, large responses hang. First tests:

ping -M do -s 1472 <gateway-or-peer>; tracepath <remote-ip>; ip link show dev <iface> | grep mtu

Encapsulation overhead matters: VXLAN commonly consumes 50 bytes, WireGuard has its own overhead depending on IP family, and PPPoE consumes 8. Correct MTU at the narrowest point or design consistent encapsulation-aware MTU end to end.

Field notes

  • Intermittency under load usually means capacity, timeouts, state exhaustion, or queueing — not random routing.
  • 'Only some nodes' often means hashing: ECMP paths, load balancer backends, DNS answers, or shard placement.
  • Capture timestamps matter. Correlate host logs, tcpdump, counters, and application traces within the same minute.
  • Fix root cause where you own it; mitigate where you do not. Confusing those two creates permanent brittle workarounds.
  • Every recurring incident deserves a reproducible test. If the fix cannot be tested, it probably cannot be trusted.

Was this lesson helpful?

Sign in to rate