Community discussions

 
Railander
just joined
Topic Author
Posts: 24
Joined: Thu Jun 16, 2016 11:30 pm

Queue priority of IPs within network

Fri Jun 17, 2016 12:41 am

Good evening.

I'm having trouble with a certain QoS configuration. I've looked online for the past couple of hours but could not find anything that addresses it.

My needs are very simple:
I have a bandwidth traffic for a certain network, lets say 100 Mb/s for 10.0.0.0/24.
Keeping that queue above, I want to also limit a specific IP within that range with a higher priority, lets say 25 Mb/s for 10.0.0.25/32.

For example, the /32 host is always guaranteed to have 25 Mb/s while also keeping the /24 network to ever surpass 100 Mb/s
If the /32 host is using 25 Mb/s, the rest of the /24 network is left with only 75 Mb/s.
If the /32 host is not using anything, the rest of the /24 network is left with the full 100 Mb/s.

I've searched quite a bit but the problem in my case seems to be that these two overlap with each other and all examples and tutorials I found require me to segregate traffic somehow, never overlapping.
Is this possible to achieve?

Running latest bugfix RouterOS version on a CCR1036.
 
User avatar
dgnevans
Member
Member
Posts: 463
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: Queue priority of IPs within network

Fri Jun 17, 2016 11:22 pm

What you can do is create 3 simple rules
 
add name="WAN" target=10.0.0.0/24 parent=none packet-marks="" priority=8/8 queue=synchronous-default/synchronous-default limit-at=0/0 max-limit=100M/100M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s 
add name="25M" target=10.0.0.25/32 parent=WAN packet-marks="" priority=1/1 queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=25M/25M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
add name="LAN USERS" target=10.0.0.0/24 parent=WAN packet-marks="" priority=1/1 queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=0/0 burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
Then rearrange the rules ensuring 25M rule at top of list. followed by LAN USERS followed by parent rule. The order is important as the queues are processed in their  order.
you can also create unique queue types and control speed in the PCQ instear of setting max limit in the simple queue.
 
Railander
just joined
Topic Author
Posts: 24
Joined: Thu Jun 16, 2016 11:30 pm

Re: Queue priority of IPs within network

Sat Jun 18, 2016 12:03 am

Thanks!

I didn't test it under load but the queues at least seem to be working.
Another question, is it possible to only limit the /32 host at 25 Mb/s if the /24 network is under full load but if it's using 0 Mb/s let the /32 host use as much as he wants, up to the 100 Mb/s?
 
User avatar
dgnevans
Member
Member
Posts: 463
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: Queue priority of IPs within network

Sun Jun 19, 2016 11:30 pm

I have not see anything in the literature talking about that. I will check and see if I can find anything.

Who is online

Users browsing this forum: No registered users and 56 guests