This project provides a container for network performance tests.
The container is available at DockerHub.
Note that the iperf2 and iperf3 are not compatible. See the Iperf 2 & Iperf 3 Comparison Table.
- 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
No environmental variables are defined for the container.
Official documentation can be found at iperf.fr.
iperf
command is installed in the PATH.
- Create a test network that connect servfer and client.
docker network create netperf
- Run an iperf2 server.
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf -s
- Run iperf2 client and check performance.
docker run -it --rm --network netperf tomopiro/netperf iperf -c netperf
Official documentation can be found at iperf.fr.
iperf3
command is installed in the PATH.
- Create a test network that connect servfer and client.
docker network create netperf
- Run an iperf3 server.
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf iperf3 -s
- Run iperf3 client and check performance.
docker run -it --rm --network netperf tomopiro/netperf iperf3 -c netperf
Official documentation can be found at Care and Feeding of Netperf 2.7.X.
netperf
command is installed in the PATH.
- Create a test network that connect servfer and client.
docker network create netperf
- Run a netperf server.
docker run -it --rm --network netperf --hostname netperf tomopiro/netperf netserver -D -L 0.0.0.0
- Run netperf client and check performance.
docker run -it --rm --network netperf tomopiro/netperf netperf -H netperf