Tree queues and traffic priority

Hi,

this is the network:

WAN have 10Mbps Bandwidth
I want to give:

  • a minimun of 500 Kbps for Lan 1 and Lan 2
  • a minimun of 2 Mbps for Lan 3 to Lan 6
  • these Bandwidths are refereed to internet (wan) connection. No limit to traffic from lan 1 to lan2 and so on.
  • these Bandwidths are minimum Bandwidths so, for example, if lan 2 and lan 3 don’t use internet all 10 Mbps are avaible for lan1.

I already read http://www.mikrotik.com/testdocs/ros/2.9/root/queue.php
and the (best) http://mum.mikrotik.com/presentations/US08/janism.pdf
but I have some difficults. I hope in the forum users.

  1. Bandwidths
  2. Priorities (take a look at page 32 of janism pdf)

Please, have someone a snippet code about these?

When I have a really working example I do a wiki page.

Thanks in advance
v.

Thanks for the PDF link.

Most enlightened specialists here seem to prefer keeping their secrets to themselves, not sharing proper configs, leaving many ISPs running MT crippled worldwide. It’s actually funny :laughing:

Try yourself and post your progress, but remember to export and paste /ip firewall mangle and /ip firewall address-lists and /queue or the entire router configuration, so that someone could comment on it.

Sounds to me that somebody just would like to get everything ready for him…

There are lots of materials in wiki:

You should start with:
http://wiki.mikrotik.com/wiki/Packet_Flow
Then you should be clear on what happens where

next thing to read and understand should be:
http://wiki.mikrotik.com/wiki/HTB
It will answer all your questions about priorities and limits.

Then to make sure nothing is missing read:
http://wiki.mikrotik.com/wiki/Queue
http://wiki.mikrotik.com/wiki/PCQ
http://wiki.mikrotik.com/wiki/Burst

Thanks! Now I print and read. After that… apply.

the rest of the PDFs are available here:
http://wiki.mikrotik.com/wiki/Events

nothing is hidden

I am trying to do this just right since the year of 2004 and MT version 2.9.6. and

these are two-three months old - there is new light being shined by those NOW. As well as that incomplete PDF.

I have spent entire months of my free time - not getting enough sleep, etc etc to try and figure out what in the name of Jesus do they mean in the manual :laughing: testing numerous misconfigurations - test after test - not working :laughing: Now with the new manual in the wiki and that PDF I might just succeed in my config, after 4+ years :laughing:

Yes, a ready MikroTik example, like in that PDF, but with the full info - the entire presentation including the voice, would be nice. Would save a lot of time. Money. Health. Frustration. Anger. etc.

:confused: It’s actually sad :laughing:

p.s. by the way, I am aiming for a complex config. - something like in the PDF - the QoS implemented over the already working PCQ.

Normis, pal, sorry for my funny words. I have not slept tonight, reading MikroTik manuals, PDFs, and forums. I may be a little dizzy.

Thanks to everyone for being so kind.

sorry, but these documents are maximum few days old, see History logs

the entire presentation including the voice, would be nice

we don’t have it

Ok, now I’m ready to go (read read read all materials) for a really configuration.

First step

  1. A mangle for each lan interface - chain prerouting (mark incoming traffic)
  2. A first Q1 queue type PCQ max-limit: 10 MB on global-out
  3. A queue for each mangle/lan interface with type PCQ with no max-limit and limit-at setted as table (50k, 50k, 2 MB…). These queues are children of Q1.

Correct?

Thanks in advance
v.

I write this little php page to automatic compile bandwidth rules:

http://lnx.zenfamily.it/progetti/routerOS

Is this correct?

v.

It is not wrong, but only in case you limit upload and download together.

You need separate packet marks for upload and download and separate limits.

Ok. I wanna limit upload and download together.

If I wanna prioritize traffic like describe in the last page of janism Pdf (see at http://mum.mikrotik.com/presentations/US08/janism.pdf ) do I need to mangle dns, www, ftp traffic for every lans?
Someone may give me an brief example applied to this lan schema?

v.

Well As far as I see - slide 31 can and should be directly transferred to mangle.

drzen,

In order to have control over the traffic in your described setup, you need need to know what traffic can go out a certain port of your router and set up mangle for ALL of it. You must not miss one packet that can go out that port. And setup a queue that gives priority to Internet traffic you want. This can be done in one Queue Tree with, for example, a child for local-to-local traffic and a child for internet traffic. The child for Internet traffic can have subqueues to arrange QoS etc. The Parent of all must have proper max-limit set. You can determine your max-limit with some sort of speedtest, do not trust the advertised speed of ports etc. since now bandwidth is dependent on a lot of things, like - how many firewall and mangle rules you have, what CPU etc. etc.

Please post more info about your setup, how many ports, etc. etc.

Regards.

This isn’t my problem. I have fully simmetric bandwidth.
So the question is: how to setup priority like pp 29-32 of janus pdf in a network like image of first post of this topic and with traffic shaping queues like http://lnx.zenfamily.it/progetti/routerOS ?
I think that correct strategy is:

  1. mangle traffic type according to janus p. 29
  2. create a set of sub queues managing this priority (like: /queue tree add name=‘esign_services’ packet-mark=esign_services limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s )
  3. set this set as child of every lan queues that shape lan’s traffic

correct?

v.

Post your configs so far for IP addresses, any address-lists, mangle, and queues:

/ip addr export
/ip fi address-list export
/ip fi man export
/que export

:slight_smile: