Community discussions

MikroTik App
 
zombie
just joined
Topic Author
Posts: 7
Joined: Mon Nov 13, 2006 2:10 pm

queue tree setup help!

Fri Apr 18, 2008 11:38 pm

Hi!
My home network layout looks like this:
Image

Computer 1 and 2 use internet gateway 1, computer 3 uses internet gateway 2.
All works nice, until I try to set up traffic shaping.


For computer 3 all works nice, cause I can put the wifi interface as a queue tree parent.
For computers 1-2 it gets messy, I can't put an interface as a parent cause the net router is connected over the switch (MT has only one ethernet card), so I put global-in and global-out as parents.

What happens is (I think) MT can't figure what direction the traffic is going and in the UL queue counts both UL and DL (as they are on the same interface).

These are the my queue rules:
0 X name="queue-p2p-DL" parent=DL packet-mark=p2p limit-at=512000 queue=default priority=8 max-limit=4000000
     burst-limit=0 burst-threshold=0 burst-time=0s

1 X name="queue-p2p-UL" parent=UL packet-mark=p2p limit-at=64000 queue=default priority=8 max-limit=500000
     burst-limit=0 burst-threshold=0 burst-time=0s

2 X name="queue-http-UL" parent=UL packet-mark=http limit-at=384000 queue=default priority=3 max-limit=500000
     burst-limit=0 burst-threshold=0 burst-time=0s

3 X name="queue-http-DL" parent=DL packet-mark=http limit-at=3000000 queue=default priority=1 max-limit=4000000
     burst-limit=0 burst-threshold=0 burst-time=0s

4 X name="DL" parent=global-in packet-mark="" limit-at=0 queue=default priority=2 max-limit=4000000
     burst-limit=0 burst-threshold=0 burst-time=0s

5 X name="UL" parent=global-out packet-mark="" limit-at=0 queue=default priority=1 max-limit=512000
     burst-limit=0 burst-threshold=0 burst-time=0s 
Can some one point me in the right direction?
 
User avatar
mushmx
Frequent Visitor
Frequent Visitor
Posts: 82
Joined: Sat Jul 21, 2007 7:01 pm
Location: Mexico

Re: queue tree setup help!

Tue Apr 22, 2008 5:54 am

I recommend you do some change the diagram like connect the gateway2 to the Ether2 of the MKT and only connect the MKT and the Computers to switch.

this help you to get a best controll from the mikrotik because you can redirect the traffic to the correct gateway and do the rules like queues, bandwith control.
 
User avatar
ahmedsaffar76
Member
Member
Posts: 306
Joined: Sun Feb 17, 2008 2:56 pm
Location: Iraq

Re: queue tree setup help!

Fri Apr 25, 2008 3:24 am

Hi!
My home network layout looks like this:
Image

Computer 1 and 2 use internet gateway 1, computer 3 uses internet gateway 2.
All works nice, until I try to set up traffic shaping.


For computer 3 all works nice, cause I can put the wifi interface as a queue tree parent.
For computers 1-2 it gets messy, I can't put an interface as a parent cause the net router is connected over the switch (MT has only one ethernet card), so I put global-in and global-out as parents.

What happens is (I think) MT can't figure what direction the traffic is going and in the UL queue counts both UL and DL (as they are on the same interface).

These are the my queue rules:
0 X name="queue-p2p-DL" parent=DL packet-mark=p2p limit-at=512000 queue=default priority=8 max-limit=4000000
     burst-limit=0 burst-threshold=0 burst-time=0s

1 X name="queue-p2p-UL" parent=UL packet-mark=p2p limit-at=64000 queue=default priority=8 max-limit=500000
     burst-limit=0 burst-threshold=0 burst-time=0s

2 X name="queue-http-UL" parent=UL packet-mark=http limit-at=384000 queue=default priority=3 max-limit=500000
     burst-limit=0 burst-threshold=0 burst-time=0s

3 X name="queue-http-DL" parent=DL packet-mark=http limit-at=3000000 queue=default priority=1 max-limit=4000000
     burst-limit=0 burst-threshold=0 burst-time=0s

4 X name="DL" parent=global-in packet-mark="" limit-at=0 queue=default priority=2 max-limit=4000000
     burst-limit=0 burst-threshold=0 burst-time=0s

5 X name="UL" parent=global-out packet-mark="" limit-at=0 queue=default priority=1 max-limit=512000
     burst-limit=0 burst-threshold=0 burst-time=0s 
Can some one point me in the right direction?
Hi everyone ;
mushmx , i am not agree with you . he say the MT have only one ethernet card .
zombie , what you said that pc 1 & 2 use gateway1 so how the MT will manage them ???? :shock: , you need to give all pc's ip to the MT and not to the GW directly as i will write below .
what you want is a traffic shaping by using MT .
what you need to do is :
1 . put both gateway1 & 2 to enter the MT and as you have currently the gateway 1 use cable and gateway2 use wireless .
2. you need to define the wireless interface of the MT with ip and let's say xxx.xxx.xxx.xxx which it should be with the same ip range of the gateway 2 .
3. you need to define two ip's to the ethernet card of the MT , first ip like yyy.yyy.yyy.yyy which it sould be with the same ip range of gateway 1 and the second ip like 192.168.1.1 which will be used by the pc's .
here you will connect the pc's , gateway1 and MT to the switch .and form these ip's all pc's will follow MT .
you need to mark the paket coming from each group and then mark the route for each one to one of your gateways .by using static routes .
here your MT will work as manual load balance engine between two gateways and you could do the queue as you wish , i am have very simple ideas about traffic shaping which i will read about soon .
also i advice you to go to the link below which it givin to me by Galaxynet and it helped me alot with load balance
http://wiki.mikrotik.com/wiki/Load_Balancing_Persistent
if you need further help write again in this helpful forum and you will get it .
with best regards .
:D

Who is online

Users browsing this forum: No registered users and 43 guests