A command-line wrapper for the NSS UDP Speed Test kernel module on OpenWrt systems.
- Single command operation for UDP speed tests
- JSON formatted output
- Automatic resource cleanup
- Integration with NSS UDP Speed Test kernel module
- on sait pas trop ce qu'on va ajouter
The package can be installed on OpenWrt 23.05 using opkg:
opkg update
opkg install linksys-udp-stThe utility provides three main commands:
linksys-udp-st start --src-ip <source_ip> --dst-ip <destination_ip> \
--src-port <source_port> --dst-port <destination_port> \
--protocol <tcp|udp> --direction <upstream|downstream>This will:
- Load the kernel module
- Configure the test parameters
- Start the speed test
- Run for 20 seconds by default
linksys-udp-st statusReturns JSON output with:
- Current test status (idle/running/completed/failed)
- Current throughput (if test is running)
linksys-udp-st stopThis will:
- Stop the current test
- Output final results in JSON format
- Unload the kernel module
- Clean up resources
To start a UDP speed test, use this command:
linksys-udp-st start --src-ip 192.168.1.144 --dst-ip 192.168.1.64 --src-port 5201 --dst-port 5201 --protocol udp --direction upstream--src-ip: Source IP address (sender)- For upstream tests: your local device's IP
- For downstream tests: the remote device's IP
--dst-ip: Destination IP address (receiver)- For upstream tests: the remote device's IP
- For downstream tests: your local device's IP
--src-port: Source port number (typically 5201)--dst-port: Destination port number (typically 5201)--protocol: Either 'udp' or 'tcp'--direction: Either 'upstream' or 'downstream'
- Testing Upload Speed (Upstream):
linksys-udp-st start \
--src-ip 192.168.1.144 \ # Your local device
--dst-ip 192.168.1.64 \ # Remote device
--src-port 5201 \
--dst-port 5201 \
--protocol udp \
--direction upstream- Testing Download Speed (Downstream):
linksys-udp-st start \
--src-ip 192.168.1.64 \ # Remote device
--dst-ip 192.168.1.144 \ # Your local device
--src-port 5201 \
--dst-port 5201 \
--protocol udp \
--direction downstreamStatus check while running:
{
"status": "running",
"throughput": 1000000000,
"unit": "bps"
}Final results:
{
"test_config": {
"src_ip": "192.168.1.100",
"dst_ip": "192.168.1.200",
"src_port": 5201,
"dst_port": 5201,
"protocol": "udp",
"direction": "upstream"
},
"results": {
"throughput": 1000000000,
"unit": "bps"
}
}- kmod-nss-udp-st: NSS UDP Speed Test kernel module
GPL-2.0-or-later