Community discussions

MikroTik App
 
telasera
just joined
Topic Author
Posts: 3
Joined: Mon Sep 10, 2012 12:30 pm

Automated Bandwidth Tests

Mon Sep 10, 2012 12:41 pm

Hi Guys,

I have been lurking on the forums for the last few months trying to soak up some Dude exp.

I do have a question for the experts out there.

Would it be at all possible to script a bandwidth test between to high sites within the dude done once per day to confirm that the links are working correctly and not suffering from noise or interference thus limiting their connection speed?

I was thinking of using Cron every 24hrs to run a b-test but am not sure if you can use the command line or what the syntax would be.

Any ideas on how to approach this?

Thanks in advance.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 12:50 pm

Are you sure it's a good idea? When test is running, it will kill all other data for the time of the test.

Plus I think it's not possible to automate it with the Dude, maybe you can automate some other bandwidth testing program on a device connected directly to the wireless router (linux device + iperf)
 
telasera
just joined
Topic Author
Posts: 3
Joined: Mon Sep 10, 2012 12:30 pm

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 1:18 pm

Are you sure it's a good idea? When test is running, it will kill all other data for the time of the test.

Plus I think it's not possible to automate it with the Dude, maybe you can automate some other bandwidth testing program on a device connected directly to the wireless router (linux device + iperf)
Hi Normis, I understand your point of view but these tests will be done at midnight outside of business hours.

How would you approach this using iperf as I would want to test the routerboard itself without needing to deploy other linux hosts for testing?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 1:23 pm

In that case the test would be useless anyway. Running Btest from routerboard itself will severely affect CPU load, and decrease the test speed by up to 50%. The Btest is run by sending random data to the other end of the link, and this random data has to be generated by the same routerboard you are testing.

The only way to test wireless links is this:

[powerful PC] -- [SXT 1] ##### [SXT 2] -- [Powerful PC2]

(test runs on PC1 to PC2)
 
rmichael
Forum Veteran
Forum Veteran
Posts: 718
Joined: Sun Mar 08, 2009 11:00 pm

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 3:48 pm

In that case the test would be useless anyway. Running Btest from routerboard itself will severely affect CPU load, and decrease the test speed by up to 50%. The Btest is run by sending random data to the other end of the link, and this random data has to be generated by the same routerboard you are testing.

The only way to test wireless links is this:

[powerful PC] -- [SXT 1] ##### [SXT 2] -- [Powerful PC2]

(test runs on PC1 to PC2)
There are many other cases where scheduled [RB] #### [RB] bandwidth test would be useful. RB4xxAH can push 80Mbps in btest and I have plenty of locations where I (manually) check if 15Mbps can pass through (especially in PtMP). So IMO the question and methodology is not w/o merit.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 4:07 pm

You can run BW test in scripts

/tool bandwidth-test x.x.x.x duration=10s do={
... do whatever you need with bw test stats here...
}

Or better way is to use traffic generator which has more control over the traffic you are sending
http://wiki.mikrotik.com/wiki/Manual:To ... _Generator
 
telasera
just joined
Topic Author
Posts: 3
Joined: Mon Sep 10, 2012 12:30 pm

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 4:23 pm

You can run BW test in scripts

/tool bandwidth-test x.x.x.x duration=10s do={
... do whatever you need with bw test stats here...
}

Or better way is to use traffic generator which has more control over the traffic you are sending
http://wiki.mikrotik.com/wiki/Manual:To ... _Generator

Thanks I will look at the Traffic Generator tool and report back my findings.

Do you think I could graph the results from the bw-test or Traffic-gen via SNMP or another way then I can setup alerts if the speed drops below the baseline i have set?

Thanks for your input thus far.
 
Muriel
just joined
Posts: 1
Joined: Mon Sep 10, 2012 6:27 pm

Re: Automated Bandwidth Tests

Mon Sep 10, 2012 6:33 pm

hi, telasera!

So everything is fine now? If yes, could you please pm me and tell what exactly you did that helped?
i'd really appreciate it

__
http://swfplayer.info/

Who is online

Users browsing this forum: No registered users and 36 guests