Hi everyone,
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:
$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');
The RouterOS bandwidth-test has to ‘build up’ until it reaches maximum bandwidth over a link. I’m always extracting the value it has when the bandwidth-test ends. How is it possible that the graph is showing throughput that differs so much time to time?