Skip to content

Unable to run btest against RouterOS 6.48 #11

@NormHenderson

Description

@NormHenderson

Hi, this was a great contribution however I couldn't get it to work:

  1. Installed on Ubuntu 20.04 using
    git clone https://github.com/samm-git/btest-opensource
    cd btest-opensource
    gcc -o btest *.c -lpthread

  2. ran: ./btest -s -a admin -p password

  3. 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

  4. same results with no username/password on either end, and same results with dir=transmit or dir=receive

  5. 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

  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions