Community discussions

MikroTik App
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

QoS not working

Sat Feb 25, 2017 10:51 am

Hello.

I have this simple scenario:

ether1 WAN
ether2 Tower with my customers.

I have set a parent queue with the total bandwidth available: ex. 60M down and 20M up.
then I have created all the queues of my customers, setting max-limit and limit-at per users.

when I apply the queues, the traffic is limited at about 10-15mbps, when I disable the queues, it goes up to 50m aggregate. The QoS, applied as is, is working perfectly in other towers.
I really dont know what I am missing.













































MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 6.37.4 (c) 1999-2017 http://www.mikrotik.com/

[?] Gives the list of available commands
command [?] Gives help on the command and list of arguments

[Tab] Completes the command/word. If the input is ambiguous,
a second [Tab] gives possible options

/ Move up to base level
.. Move up one level
/command Use command at the base level
[admin@RB Torre 3] > queue
[admin@RB Torre 3] /queue> export compact
# feb/25/2017 09:54:46 by RouterOS 6.37.4
# software id = E235-AAZU
#
/queue simple
add max-limit=4M/4M name="VOIP" queue=default/default target=xxxx/32
add dst=100.64.3.254/32 name="Traffic to RB T3" queue=default/default target=100.64.3.0/24
add dst=100.64.3.0/24 name="Traffic from Backbone to T3" queue=default/default target=100.64.0.0/23
add dst=100.64.0.0/23 name="Traffico to Backbone from T3" queue=default/default target=100.64.3.0/24
add max-limit=100M/100M name="Fiber link" queue=default/default target=100.64.3.0/24,100.65.3.0/24
add limit-at=256k/1M max-limit=1M/10M name="xxx" parent="FO Bagnacavallo" queue=default/default target=100.64.3.1/32 total-queue=default
add limit-at=256k/1M max-limit=1M/10M name="xxx" parent="FO Bagnacavallo" queue=default/default target=100.64.3.2/32 total-queue=default
add limit-at=256k/1M max-limit=1M/10M name="xxx" parent="FO Bagnacavallo" queue=default/default target=100.64.3.3/32 total-queue=default
add limit-at=256k/1M max-limit=1M/10M name="xxx" parent="FO Bagnacavallo" queue=default/default target=100.64.3.4/32 total-queue=default
add limit-at=256k/1M max-limit=1M/10M name="xxx" parent="FO Bagnacavallo" queue=default/default target=100.64.3.5/32 total-queue=default
add limit-at=256k/1M max-limit=1M/10M name="xxx" parent="FO Bagnacavallo" queue=default/default target=100.64.3.6/32 total-queue=default

This is working perfectly.

another one, changing only the ip addresses, works, but limits all at about 10/15mbps.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: QoS not working

Sat Feb 25, 2017 1:21 pm

Maybe your router is overloaded? What type is it?
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: QoS not working

Sat Feb 25, 2017 1:56 pm

Confirm you have taken working config and loaded it onto another router just changing the ip's . you need to make sure you copy the queue types as well. Personally I would use PCQ to limit each client and just have one rule that covers the client subnets. make sure you parent rule at the bottom of all the rules. and the IP correct for your parent rule.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sat Feb 25, 2017 1:59 pm

hello.
thank you to all for the interest in the topic.

I used the very same config in a different tower and it works.

the router are all 6.37.4 and a mix between HeX, CCR or 1100AHx2.

I dont want PCQ because I need to see the traffic of each one .

in this case I have 70 queues.
If I remove the parent, and I use 70 individual simple queue, the QoS is working fine, but obviously I cannot set limit-at MCR.
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:16 pm

Which queue is at the top. Make sure you parent queues target covers the whole subnet of your clients.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:19 pm

hello
as you can see:

add max-limit=100M/100M name="Fiber link" queue=default/default target=100.64.3.0/24,100.65.3.0/24

it covers 100.64.3.0/24 and 100.65.3.0/24
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:23 pm

confirm ifyou print in order is this at the bottom of the list.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:27 pm

in the queue list, if I sort for #
the parent queue is BEFORE the child queue.
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:28 pm

your parent queue should be below the child queues.

you can easily view traffic of each one using tcp accounting and sniffer service.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:32 pm

well.. in every tower I manage, the parent is before all the child.
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:40 pm

Traffic will move through the queues in order from 0 ----> . Once a queue is met it should not pass to other queue. When you put the parent queue above sometimes it works but it behaves with a certain irregularity for instance if I move my parent queue to the top. Only half my queues will be followed. the ones that re followed the performance is poor. I get less than 50% the performance I would normally get. This may be a bug I am not sure but if you order your queues correctly it works well. here is quote from manual
Simple queues have a strict order - each packet must go through every queue until it reaches one queue which conditions fits packet parameters or until the end of queues list is reached. (In case of 1000 queues, packet for last queue will need to proceed through 999 queues before it will reach the destination)
https://wiki.mikrotik.com/wiki/Manual:Queue
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:45 pm

I agree with you with the order of the simple queue. But when there is a parent queue, all the child are processed simultaneously.

Now I will try and I will post the results.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sat Feb 25, 2017 9:46 pm

exact results when put above.

in some RB they work perfecly, in other absolutely not.
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: QoS not working

Sat Feb 25, 2017 10:01 pm

I would try disable the queues create a test parent queue and a test child queue and run test. I have seen a number of people who have had an issue similar to this and have had to remove and recreate the rules exactly as they were and it resolves the issue. as far as order if your parent queue is above traffic will match that and will not be passed to child queues. viewtopic.php?t=28710
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: QoS not working

Sun Feb 26, 2017 12:59 pm

Are you sure you have disabled fasttrack? Fasttrack is only compatible with "queue tree" types of queing.
Also, I did not see an answer to my question what device this is. Is it a HeX? Not a g3 type? it may be overloaded
by this many queues. What is the CPU load?
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: QoS not working

Sun Feb 26, 2017 1:01 pm

fasttrack not enabled. Cpu load around 25%

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot] and 175 guests