-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Hi, this was a great contribution however I couldn't get it to work:
-
Installed on Ubuntu 20.04 using
git clone https://github.com/samm-git/btest-opensource
cd btest-opensource
gcc -o btest *.c -lpthread -
ran: ./btest -s -a admin -p password
-
On the router, ran:
/tool bandwidth-test dur=5s dir=both user=admin pass=password prot=tcp addr=10.1.0.1
status: test unsupported
tx-current: 0bps
tx-10-second-average: 0bps
tx-total-average: 0bps
rx-current: 0bps
rx-10-second-average: 0bps
rx-total-average: 0bps
random-data: no
direction: both
connection-count: 20
On the linux side, the output is:
Running in server mode
Listening
Cmd buffer: 01030114008000000000000000000000
proto=1
direction=3
random=1
tcp_conn_count=20
tx_size=32768
client_buf_size=0
remote_tx_speed=0
local_tx_speed=0
remoteIP=10.1.10.33
Listening on TCP cmdsock
Complete -
same results with no username/password on either end, and same results with dir=transmit or dir=receive
-
Other direction: ran ./btest -c 10.1.10.33 -r -t -a admin -p password
Remote did not return correct hello response
Response: 03000000
Same result with only -r or only -t -
Installed on a different Ubuntu 20.04 system and ran the server there (with user/password) and the client on the first Ubuntu system as: ./btest -c 10.1.13.248 -r -t -a admin -p password - that produced results as expected.
The first time I tried with -r only I got a series of 0.00kbps. However running it later with -r -t and then -t and then -r, all three cases produced realistic bandwidths.