Community discussions

MikroTik App
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Tree queues and traffic priority

Tue Dec 02, 2008 4:54 pm

Hi,

this is the network:

Image

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.
 
imtrulylovd
just joined
Posts: 20
Joined: Wed Nov 26, 2008 9:30 am

Re: Tree queues and traffic priority

Fri Dec 05, 2008 5:30 am

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 :lol:

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.
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1768
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Tree queues and traffic priority

Fri Dec 05, 2008 11:03 am

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 :lol:

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
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Re: Tree queues and traffic priority

Fri Dec 05, 2008 11:06 am

Thanks! Now I print and read. After that... apply.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26820
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Tree queues and traffic priority

Fri Dec 05, 2008 11:12 am

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

nothing is hidden
 
dot-bot
Member Candidate
Member Candidate
Posts: 164
Joined: Tue Oct 11, 2005 7:05 pm

Re: Tree queues and traffic priority

Fri Dec 05, 2008 12:57 pm

Sounds to me that somebody just would like to get everything ready for him....
I am trying to do this just right since the year of 2004 and MT version 2.9.6. and
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
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 :lol: testing numerous misconfigurations - test after test - not working :lol: Now with the new manual in the wiki and that PDF I might just succeed in my config, after 4+ years :lol:

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.

:? It's actually sad :lol:

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.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26820
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Tree queues and traffic priority

Fri Dec 05, 2008 1:07 pm

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
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Re: Tree queues and traffic priority

Mon Jan 12, 2009 5:30 pm

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.
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Re: Tree queues and traffic priority

Tue Jan 20, 2009 8:56 am

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

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

Is this correct?

v.
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1768
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Tree queues and traffic priority

Tue Jan 20, 2009 9:40 am

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.
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Re: Tree queues and traffic priority

Tue Jan 20, 2009 10:03 am

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.
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1768
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Tree queues and traffic priority

Tue Jan 20, 2009 11:59 am

Well As far as I see - slide 31 can and should be directly transferred to mangle.
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1376
Joined: Mon Jan 05, 2009 6:23 pm
Location: bit.ly/the-qos
Contact:

Re: Tree queues and traffic priority

Tue Jan 20, 2009 4:22 pm

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.
 
drzen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Aug 09, 2007 3:59 pm
Location: Pordenone, Italy
Contact:

Re: Tree queues and traffic priority

Tue Jan 20, 2009 4:45 pm

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.
 
User avatar
NetworkPro
Forum Guru
Forum Guru
Posts: 1376
Joined: Mon Jan 05, 2009 6:23 pm
Location: bit.ly/the-qos
Contact:

Re: Tree queues and traffic priority

Tue Jan 20, 2009 8:00 pm

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

:)

Who is online

Users browsing this forum: Bing [Bot], jdeckert and 57 guests