The official Mikrotik router thread

So I guess the question is: is there a specific queue type that you can set up on the interface, that will manage throughput from the devices, e.g. 1 device can use the full 100Mbps. If another device starts using data, it splits the 100Mbps between the 2, etc.

sfq does this in a way, but not per ip but per combination of src dest ip and ports
I think you can set it to only use src ip , not near my router to check

SFQ​

Stochastic Fairness Queuing (SFQ) is ensured by hashing and round-robin algorithms. A traffic flow may be uniquely identified by a 4 options(src-address, dst-address, src-port and dst-port), so these parameters are used by SFQ hashing algorithm to classify packets into one of 1024 possible sub-streams. Then round-robin algorithm will start to distribute available bandwidth to all sub-streams, on each round giving sfq-allot bytes of traffic. The whole SFQ queue can contain 128 packets and there are 1024 sub-streams available
 
And with any queue, for optimal congestion control you would want to set it 5-10% below your line speed as there is a delay/burst of traffic in the beginning of a download/upload

This does come at the expense of total line speed though
 
sfq does this in a way, but not per ip but per combination of src dest ip and ports
I think you can set it to only use src ip , not near my router to check
Maybe a test is in order :)

What will happen if I run the sfq queue over the PPPOE interface, and disable the per IP queues?
Is my wife gonna moer me because she can't work? :)
 
I have a 100 Mbps fibre line, with multiple simple queues set up for the devices, limiting certain ones (like my son's PC, the PS5, Mi Box, etc) to not hog 100% of the line during downloads or streaming.

If I can get a queue setup for the interface, that will manage this better, all the better for me, then I can drop all the individual queues.

So I guess the question is: is there a specific queue type that you can set up on the interface, that will manage throughput from the devices, e.g. 1 device can use the full 100Mbps. If another device starts using data, it splits the 100Mbps between the 2, etc.

Thank you, dankie for the inputs
Thats exactly how I ran on Ros6, multiple sfq defined in a parent. Prioritising me and VoIP :)

Now since I upgraded to Ros7 I have one fq codel.

My suggestion is upgrade your router, but if you not confident yet, wait a little longer, then redo the queues when you have upgraded.
 
Thats exactly how I ran on Ros6, multiple sfq defined in a parent. Prioritising me and VoIP :)

Now since I upgraded to Ros7 I have one fq codel.

My suggestion is upgrade your router, but if you not confident yet, wait a little longer, then redo the queues when you have upgraded.
Will probably not upgrade to another Mikrotik. I am supposed to get a router from Level-7, however stuck to my Mikrotik, cause then I can have admin access :) BUT, I am still toying with the idea of getting another Mikrotik ...
 
Will probably not upgrade to another Mikrotik. I am supposed to get a router from Level-7, however stuck to my Mikrotik, cause then I can have admin access :) BUT, I am still toying with the idea of getting another Mikrotik ...
No my suggestion was upgrade the software for free from 6 to 7 so you can get all the new benefits.

If you are unsure what I am talking about, perhaps dont as its still in beta phase. Like every Windows release for the 1st year,,, or more ;)
 
No my suggestion was upgrade the software for free from 6 to 7 so you can get all the new benefits.

If you are unsure what I am talking about, perhaps dont as its still in beta phase. Like every Windows release for the 1st year,,, or more ;)
Sorry misunderstood ... didn't realise you were talking about the software upgrade, and not an actual router upgrade :)

Don't worry, I know what you are talking about now :)
 
Never knew about this. Enabled a simple queue on pppoe and went from a D at +300ms upload to an A+ +2ms. If I disable the queue while doing a cloud backup I immediately see the ping spike, so it's doing its job well.

My queue tree has been defeated by an algorithm and I couldn't be happier.
I decided to give fq codel a try.
No Queue:
View attachment 1280638

fq codel:
View attachment 1280640
You gents mind sharing how you did your setups? Might venture down this v7 queue setup tomorrow, to get rid of all my simple queues :)
 
You gents mind sharing how you did your setups? Might venture down this v7 queue setup tomorrow, to get rid of all my simple queues :)
I followed this tutorial and it worked nicely.

A few notes
  • You don't need to install a beta version any more, just get the latest 7.2.1 stable or something >= 7.1

  • Disable fast path for the queue to take effect
    Code:
    /ip settings set allow-fast-path=no

  • You can choose to use either cake or fq_codel. Cake seems to use more CPU but performs a bit better from my limited testing.

  • The speeds are a bit confusing:
    Target upload = your max download speed.
    Target download = your max upload speed.

  • On fq_codel try set the max speeds to around 90% of your max speed. Otherwise it won't kick in.
 
  • You don't need to install a beta version any more, just get the latest 7.2.1 stable or something >= 7.1
That is a matter of opinion however is one I share :thumbsup: However to be safe I still call it beta

Most people will say Ros7 is still in beta, the testing is alpha, and there is no long term aka stable.

Honestly I have had no hassles, but my requirements are very simple. Which luckily is like most people reading this forum. If you want to complain about the BGP implementation you do that on Mikrotiks forum.
 
I followed this tutorial and it worked nicely.

A few notes
  • You don't need to install a beta version any more, just get the latest 7.2.1 stable or something >= 7.1

  • Disable fast path for the queue to take effect
    Code:
    /ip settings set allow-fast-path=no

  • You can choose to use either cake or fq_codel. Cake seems to use more CPU but performs a bit better from my limited testing.

  • The speeds are a bit confusing:
    Target upload = your max download speed.
    Target download = your max upload speed.

  • On fq_codel try set the max speeds to around 90% of your max speed. Otherwise it won't kick in.
Fast path wont be running anyway, you need to disable the fast track rule in firewall

Fast path wont run if you have any firewall rules, connection tracking (needed for NAT and statefull firewall) active so for most of us it never runs
 
I have a 100 Mbps fibre line, with multiple simple queues set up for the devices, limiting certain ones (like my son's PC, the PS5, Mi Box, etc) to not hog 100% of the line during downloads or streaming.

If I can get a queue setup for the interface, that will manage this better, all the better for me, then I can drop all the individual queues.

So I guess the question is: is there a specific queue type that you can set up on the interface, that will manage throughput from the devices, e.g. 1 device can use the full 100Mbps. If another device starts using data, it splits the 100Mbps between the 2, etc.

Thank you, dankie for the inputs
Hmmm.

I think you said you have the RB750r2? That one will be mostly limited by your ethernet port speeds (Fast Ethernet) so you would basically saturate your WAN port should you be able to pull your full line speed.

I think SFQ or PFQ would be your best options to enable on your WAN link, judging by the Wiki. I personally would use PFQ, if you have the option available, and then enable that on your WAN port.

Mikrotik has nice options like having it on a schedule, so if you only want it to run during certain hours, or only target certain host IP addresses, you can even do that.

Happy to try and build a config for you if you can give me your IP range that you can test. Some more info available here
 
You gents mind sharing how you did your setups? Might venture down this v7 queue setup tomorrow, to get rid of all my simple queues :)
Come to the dark side!!!

1. Export compact - check your config just to remind you whats there, and then save it after making any last minute edits

2. Upgrade to Ros 7.2.1 stable

3. Upgrade firmware before you give Phireside nightmares :)

4. Check everything still works.....

5. Delete all simple queues

6. Add
/queue type
add kind=fq-codel name=fq_codel
/queue simple
add max-limit=85M/40M name=whatever_you_like queue=fq_codel/fq_codel target=name_of_your_pppoe

There are slightly better ways but this will work, and this assumes your 100meg Internet down minus 15%, and also assumes you have a 50meg up minus 20% - play with that according to what you actually get

Come back here and let us know how it went assuming you can still access the Internet ;)
 
Come to the dark side!!!

1. Export compact - check your config just to remind you whats there, and then save it after making any last minute edits

2. Upgrade to Ros 7.2.1 stable

3. Upgrade firmware before you give Phireside nightmares :)

4. Check everything still works.....

5. Delete all simple queues

6. Add
/queue type
add kind=fq-codel name=fq_codel
/queue simple
add max-limit=85M/40M name=whatever_you_like queue=fq_codel/fq_codel target=name_of_your_pppoe

There are slightly better ways but this will work, and this assumes your 100meg Internet down minus 15%, and also assumes you have a 50meg up minus 20% - play with that according to what you actually get

Come back here and let us know how it went assuming you can still access the Internet ;)
Lol, thanks man. Config already backed up, just waiting for everyone to get off so I can break it
 
If I could figure out how to replace the real-time ip traffic view generated using Attix5 by the output of 'Accounting' (which has been deprecated in RoS7) I'd upgrade as well.
 
Last edited:
If I could figure out how to replace the real-time ip traffic view generated using Attix5 by the output of 'Accounting' (which has been deprecated in RoS7) I'd upgrade as well.
Are you running Docker at all?
 
Top
Sign up to the MyBroadband newsletter
X