Skip to content

Debian linux image with network performance tools of iperf2, iperf3, netperf, wrk.

License

Notifications You must be signed in to change notification settings

t-katsumura/k8s-network-performance

Repository files navigation

logo

k8s network performance test container

This project provides a container for network performance tests.

The container is available at DockerHub.

What's in the contaienr

Note that the iperf2 and iperf3 are not compatible. See the Iperf 2 & Iperf 3 Comparison Table.

Container structure

  • Debian is used for the base image.
  • No Entrypoint defined.
  • CMD is /bin/bash.
  • Installed tools are
    • nano
    • wrk
    • curl
    • netperf
    • iperf2
    • iperf3
    • net-tools

Environmental variables

No environmental variables are defined for the container.

Run the container

iperf2

Official documentation can be found at iperf.fr.

iperf command is installed in the PATH.

  1. Create a test network that connect servfer and client.
docker network create netperf
  1. Run an iperf2 server.
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf -s
  1. Run iperf2 client and check performance.
docker run -it --rm --network netperf tomopiro/netperf iperf -c netperf

iperf3

Official documentation can be found at iperf.fr.

iperf3 command is installed in the PATH.

  1. Create a test network that connect servfer and client.
docker network create netperf
  1. Run an iperf3 server.
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf3 -s
  1. Run iperf3 client and check performance.
docker run -it --rm --network netperf tomopiro/netperf iperf3 -c netperf

netperf

Official documentation can be found at Care and Feeding of Netperf 2.7.X.

netperf command is installed in the PATH.

  1. Create a test network that connect servfer and client.
docker network create netperf
  1. Run a netperf server.
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf netserver -D -L 0.0.0.0
  1. Run netperf client and check performance.
docker run -it --rm --network netperf tomopiro/netperf netperf -H netperf