Interview Prep/Networking/Performance, MTU, Latency & Tools

Your conntrack table is full: "nf_conntrack: table full, dropping packet". What do you do?

IntermediateScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → The kernel tracks every flow and drops new ones at the limit.

What I'd do →

  1. Check usage: sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max
  2. Raise: sysctl -w net.netfilter.nf_conntrack_max=1048576 and the hash size
  3. Lower timeouts for idle states like nf_conntrack_tcp_timeout_time_wait
  4. Reduce flows with keep-alive and pooling
  5. Exempt high-volume traffic from tracking with iptables -t raw -j NOTRACK

Why → Each tracked flow uses memory, and a busy NAT or Kubernetes node hits the cap sooner than expected.

Interview tip → Say you alert on conntrack usage above 80 percent.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools