Date: Fri, 29 Mar 2024 16:54:05 +0200 (EET) Message-ID: <1021914072.471.1711724045911@help.mikrotik.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_470_1208550343.1711724045906" ------=_Part_470_1208550343.1711724045906 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Sub-menu: /tool=20 Packages required: system
The Bandwidth Tester can be used to measure the throughput to another Mi= kroTik router (either wired or wireless) and thereby help to discover netwo= rk "bottlenecks".
The TCP test uses the standard TCP protocol with acknowledgments and fol= lows the TCP algorithm on how many packets to send according to latency, dr= opped packets, and other features in the TCP algorithm. Please review the T= CP protocol for details on its internal speed settings and how to analyze i= ts behavior. Statistics for throughput are calculated using the entire size= of the TCP data stream. As acknowledgments are an internal working of TCP,= their size and usage of the link are not included in the throughput statis= tics. Therefore this statistic is not as reliable as the UDP statistic when= estimating throughput.
The UDP tester sends 110% or more packets than currently reported as rec= eived on the other side of the link. To see the maximum throughput of a lin= k, the packet size should be set for the maximum MTU allowed by the links w= hich is usually 1500 bytes. There is no acknowledgment required by UDP; thi= s implementation means that the closest approximation of the throughput can= be seen.
Sub-menu: /tool bandwidt= h-server
Property | Description |
---|---|
allocate-udp-ports-from&n=
bsp;(integer 1000..64000; Default: |
Beginning of UDP port range |
authenticate = (yes | no; Default: yes) | Communicate only with authenticated clients |
enabled (= yes | no; Default: yes) | Defines whether bandwidth server is enabled or n= ot |
max-sessions = (integer 1..1000; Default: 100)= | Maximal simultaneous test count |
Example
Bandwidth Server:
[admin@MikroTik] /tool b= andwidth-server> print =20 enabled: yes = =20 authenticate: yes = =20 allocate-udp-ports-from: 2000 = =20 max-sessions: 100 = =20 [admin@MikroTik] /tool bandwidth-server>
Activ= e sessions:
[admin@MikroTik] /tool b= andwidth-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 en= able bandwidth-test server without client authentica= tion:
[admin@MikroTik] /tool b= andwidth-server> set enabled=3Dyes authenticate=3Dno =20 [admin@MikroTik] /tool bandwidth-server> print = =20 enabled: yes = =20 authenticate: no = =20 allocate-udp-ports-from: 2000 = =20 max-sessions: 100 = =20 [admin@MikroTik] /tool bandwidth-server>
Sub-menu: /tool bandwidt= h-test
Property | Description |
---|---|
address (= IP address | IPv6 prefix[%interface]; Default:) | IP address of host |
direction (both | re= ceive | 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..18446744073709551615; Default: ) | Transfer test maximum speed (bits per second) |
local-udp-tx-size = span>(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..18446744073709551615; Default: ) | Receive test maximum speed (bits per second) |
remote-udp-tx-size <= /span>(integer: 28..64000) | Remote transmit packet size in bytes |
connection-count (integer 1..255; Default:) | Number of TCP connections to use |
user (str= ing; Default: "") | Remote user |
Example
To run 15-second long bandwidth-te= st to the 10.0.0.32 host sending and receiving= 1000-byte UDP packets and using username a= dmin to co= nnect:
[admin@MikroTik] /tool&g= t; bandwidth-test 10.0.0.32 duration=3D15s \ \... direction=3Dboth local-udp-tx-size=3D1000 protocol=3Dudp \ \... remote-udp-tx-size=3D1000 user=3Dadmin 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>
[admin@MikroTik] > /t= ool bandwidth-test fe80::34:23ff:fe6a:570c%local status: running duration: 5s rx-current: 23.9Mbps rx-10-second-average: 15.1Mbps rx-total-average: 15.1Mbps lost-packets: 0 random-data: no direction: receive rx-size: 1500