Mikrotik – Tools/Bandwidth Test

Bandwidth Server:

[admin@MikroTik] /tool bandwidth-server> print                                  
                  enabled: yes                                                  
             authenticate: yes                                                  
  allocate-udp-ports-from: 2000                                                 
             max-sessions: 100                                                  
[admin@MikroTik] /tool bandwidth-server>

Active sessions:

[admin@MikroTik] /tool bandwidth-server session> print
  # CLIENT          PROTOCOL DIRECTION USER
  0 35.35.35.1      udp      send      admin
  1 25.25.25.1      udp      send      admin
  2 36.36.36.1      udp      send      admin
[admin@MikroTik] /tool bandwidth-server session>

To enable bandwidth-test server without client authentication:

[admin@MikroTik] /tool bandwidth-server> set enabled=yes authenticate=no        
[admin@MikroTik] /tool bandwidth-server> print                                  
                  enabled: yes                                                  
             authenticate: no                                                   
  allocate-udp-ports-from: 2000                                                 
             max-sessions: 100                                                  
[admin@MikroTik] /tool bandwidth-server>

Bandwidth Test Client

/tool bandwidth-test

Example

To run 15-second long bandwidth-test to the 10.0.0.32 host sending and receiving 1000-byte UDP packets and using username admin to connect:

[admin@MikroTik] /tool> bandwidth-test 10.0.0.32 duration=15s \
\... direction=both local-udp-tx-size=1000 protocol=udp \
\... remote-udp-tx-size=1000 user=admin
                status: done testing
              duration: 15s
            tx-current: 272.8Mbps
  tx-10-second-average: 200.3Mbps
      tx-total-average: 139.5Mbps
            rx-current: 169.6Mbps
  rx-10-second-average: 164.8Mbps
      rx-total-average: 117.0Mbps
          lost-packets: 373
           random-data: no
             direction: both
               tx-size: 1000
               rx-size: 1000
[admin@MikroTik] /tool>
Property Description
address (IP address | IPv6 prefix[%interface]; Default:) IP address of host
direction (both | receive | transmit; Default: receive) Direction of data flow
duration (time; Default: ) Duration of the test
interval (time: 20ms..5s; Default: 1s) Delay between reports (in seconds)
local-tx-speed (integer 0..4294967295; Default: ) Transfer test maximum speed (bits per second)
local-udp-tx-size (integer: 28..64000) Local transmit packet size in bytes
password (string; Default: “”) Password for the remote user
protocol (udp | tcp; Default: udp) Protocol to use
random-data (yes | no; Default: no) If random-data is set to yes, the payload of the bandwidth test packets will have incompressible random data stream so that links that use data compression will not distort the results (this is CPU intensive and random-data should be set to no for low speed CPUs)
remote-tx-speed (integer 0..4294967295; Default: ) Receive test maximum speed (bits per second)
remote-udp-tx-size (integer: 28..64000) Remote transmit packet size in bytes
tcp-connection-count (integer 1..100; Default: 20) Number of TCP connections to use
user (string; Default: “”) Remote user

source: wiki.mikrotik.com

675 total views, 1 views today

Print Friendly