For a customer of mine I have created a Mikrotik management network of 8 RB2011's. These Mikrotiks are monitored in LibreNMS. I've created a plugin that measures ping statistics, SFP tx/rx dBm and throughput and puts these in Round Robin Database (RRD) files. The data in these RRD files are translated to graphical images. The SFP tx/rx dBm graphs seem to display the correct values, however for the throughput something weird is going on.
For example, I'm measuring the throughput between 2 Mikrotik routers with /tool bandwidth-test. I'm expecting bandwidth values in the range of 600 - 700 Mbps, but an example graph shows that the thoughput sometimes reaches the low 100s:
I'm extracting the data with the RouterOS PHP API:
Code: Select all
$bandwidth = new RouterOS\Request('/tool/bandwidth-test');
$bandwidth->setArgument('address', '10.10.10.1');
$bandwidth->setArgument('duration', '20s');
$bandwidth->setArgument('interval', '1s');
$bandwidth->setArgument('direction', 'transmit');