https://github.com/sio/router-throughput-test
https://github.com/sio/router-throughput-test
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sio/router-throughput-test
- Owner: sio
- Created: 2022-01-23T19:24:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-31T11:21:01.000Z (about 3 years ago)
- Last Synced: 2025-02-11T20:49:59.622Z (3 months ago)
- Language: Makefile
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test router throughput capabilities
This repo contains scripts for testing router throughput.
You will need two Linux (preferably Debian) computers to perform this test.
One of them will be connected to WAN port of the tested router, the other one -
to one of LAN ports.Here is a diagram of test network:
```
┌──────────────┐
│ ROUTER │
│ WAN LAN │
└─port────port─┘
▲ ▲
┌─────────────────┐ │ │ ┌─────────────────┐
│ "WAN side" │ │ │ │ "LAN side" │
│ │ │ │ │ │
│ User-controlled ├─┘ └─┤ User-controlled │
│ computer │ │ computer │
└─────────────────┘ └─────────────────┘
```## Usage
See `make help` for the description of Makefile targets
## Typical test sequence
#### WAN side
Install dependencies while connected to Internet:
```
$ make install-wan
```Disconnect from Internet, connect fake WAN device to router WAN port.
Then run:```
$ make static-ip
$ make dhcp-server &
$ make iperf3-server &
```#### LAN side
This device always stays connected to LAN port of the router, there should be
no physical actions involving this device or its Ethernet cable.Before replacing WAN connection with our fake ISP device:
```
$ make install-lan
```After setting up the test network according to the diagram above:
```
$ ifdown eth0; ifup eth0
$ make test
$ less iperf3.log
```