https://github.com/nerdalert/netperf-netserver
Container images for Netperf and Netserver for Docker/Podman or any other container runtime
https://github.com/nerdalert/netperf-netserver
Last synced: 5 months ago
JSON representation
Container images for Netperf and Netserver for Docker/Podman or any other container runtime
- Host: GitHub
- URL: https://github.com/nerdalert/netperf-netserver
- Owner: nerdalert
- Created: 2021-08-04T20:27:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-01T04:55:28.000Z (about 4 years ago)
- Last Synced: 2025-04-11T22:53:24.267Z (about 1 year ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# netperf-netserver
[](https://github.com/nerdalert/netperf-netserver/actions/workflows/build-image.yml)
Container images for Netperf and Netserver for Docker/Podman or any other container runtime.
- Exampe usage running netserver as a daemon with the -D option (example is on the same host using the private address of the container e.g. 172.17.0.x):
```
$ docker run -itd --rm --name=netserver -p 12865:12865 networkstatic/netserver -D
# or use podman and/or quay.io
$ podman run -itd --rm --name=netserver -p 12865:12865 quay.io/networkstatic/netserver -D
```
- Get the IP address of the instance you just started:
```
$ docker inspect --format "{{ .NetworkSettings.IPAddress }}" netserver
```
- Run client tests against the server using netperf with:
```
# docker run -it --rm quay.io/networkstatic/netperf -H
```
- Example output between two containers on the same host:
```
$ docker run -it --rm quay.io/networkstatic/netperf -H 172.17.0.2
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.17.0.2 () port 0 AF_INET : demo
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 14386.10
```
- See additional netserver runtime options passing the -h argument:
```
$ docker run -itd --rm --name=netserver -p 12865:12865 networkstatic/netserver -h
```