Menu
I have a mikrotik router and i want to limit the speed of wlan users. I create a queue for target = wlan and set the limit downloa and upload = 64k, but when i test it, this seems not working correctly! Test download speed > 500k.The router config is default.How can i do that
Mehdi Amrollahi
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.
Mehdi AmrollahiMehdi Amrollahi
2 Answers
Disable any fasttrack rules on your firewall.
Fasttrack will bypass pretty much the whole stack - including the queues.
It's mentioned very clearly in the documentation.
http://wiki.mikrotik.com/wiki/Manual:Wiki/Fasttrack
http://wiki.mikrotik.com/wiki/Manual:Wiki/Fasttrack
Description
IPv4 FastTrack handler is automatically used for marked connections. Use firewall action 'fasttrack-connection' to mark connections for fasttrack. Currently only TCP and UDP connections can be actually fasttracked (even though any connection can be marked for fasttrack). IPv4 FastTrack handler supports NAT (SNAT, DNAT or both).
Note that not all packets in a connection can be fasttracked, so it is likely to see some packets going through slow path even though connection is marked for fasttrack. This is the reason why fasttrack-connection is usually followed be identical action=accept rule. Fasttracked packets bypass firewall, connection tracking, simple queues, queue tree with parent=global, ip traffic-flow(restriction removed in 6.33), ip accounting, ipsec, hotspot universal client, vrf assignment, so it is up to administrator to make sure fasttrack does not interfere with other configuration;
Cha0sCha0s
You need simple queue with PCQ in order to control all (or specific range) users bandwidth. following are one example:
More Info here.queue example
iBBiiBBi
Not the answer you're looking for? Browse other questions tagged mikrotik or ask your own question.
Posted by3 years ago
Archived
Mikrotik router speed issues
Hello, I have a Mikrotik RB751GL-2HnB (off the top of my head. It has 5 gigabit ports and 2.4GHz wireless).
Anyways, my problem is that when I have it set as my main router I get speeds around 100mb/s down and 12 my/s up. I pay for 250 down and 20 up.
When I have my virtualized Sophos UTM as my main router I get expected speeds (or higher).
When the Mikrotik is behind Sophos, I get expected speeds (250/20+) through 2 layers of NAT.
The only difference is that Sophos is doing http(s) content filtering and blocking ads, and has a 2x1GB link to the switch.
Edit: plugged everything back in the way it was about a week ago after doing another factory reset and getting these results. https://imgur.com/a/vQYt8 Also to note, these tests were done on a computer using the same ad blocking rules automatically applied by the virtualized router/firewall. On a system without these rules, in which ads are visible, I am seeing speeds around 100 down and 10 up. This is most likely due to ISP traffic shaping using embedded urls, as these would normally be blocked by the rules on the firewall. These speeds are verified on both machines by speedof.me, and speedtest.net. Additionally, the speeds are the same on speedtest.net for both machines, which I have confirmed to be caused by my ISP working with said site. (Rogers), speedof.me confirms that these speeds are expected.
The profile (system resource use) shows ~60 idle usage when getting 250 down / '600' up. I am unable to confirm or deny the veracity of the 600 up.
Thanks for all of the help everyone.
100% Upvoted