KatInterview

Debugging Low Bandwidth Performance in Containerized Environments

System DesignModel answer
EasyModel answerSystem DesignNetworkingContainersLinux

Last updated

Systematically troubleshoot degraded network throughput across container runtimes, host transport stacks, and physical network paths.

You are investigating an application deployed inside a containerized environment that is experiencing severely degraded network throughput compared to expected baseline performance.

Walk through a structured methodology to isolate the bottleneck. Your explanation should detail:

  1. Initial clarifying questions and baseline experiments.
  2. How to isolate host vs. container virtualization overhead.
  3. Network layer diagnostic steps (Transport, Network, and Link layers).
  4. Application and resource constraint checks.

Assume you have root shell access to both the host machine and the container instance.

Hints

Hint 1

Differentiate between application CPU/memory starvation and actual network-level throttling.

Hint 2

Compare raw network throughput (e.g., using iperf3) between host-to-host and container-to-container to isolate virtual network interfaces.

Hint 3

Check for TCP packet drops, window sizing issues, MTU mismatches, or cgroup network throttling.