Community discussions

MikroTik App
 
User avatar
raenius
just joined
Topic Author
Posts: 13
Joined: Thu Dec 29, 2005 12:15 am

Queue Tree and Prioritizing traffic

Wed Feb 01, 2006 2:49 am

Hello everyone,
I was looking for a few pointers on how to setup my queue tree and mangle rules.
I would like to prioritize traffic based on what type of traffic it is. So I setup the following in my mangle table. (Small Snippet sample)
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection new-connection-mark=http-con passthrough=yes
add chain=prerouting protocol=tcp dst-port=443 action=mark-connection new-connection-mark=http-con passthrough=yes
add chain=prerouting connection-mark=http-con action=mark-packet new-packet-mark=http passthrough=no

add  name="ClassB" parent=LAN2 packet-mark="" limit-at=1024000 queue=default priority=8 max-limit=1331000 burst-limit=0 burst-threshold=0 burst-time=0s

name="queue1" parent=ClassB packet-mark=http limit-at=256000 queue=FairQueue priority=5 max-limit=1331000 burst-limit=0 burst-threshold=0 burst-time=0s

(fairqueue is just an sfq queue type i made)

I was thinking of something like this
ClassA -> LAN1
leaf1 -> p2p
leaf2 -> http
leaf3 -> email
leaf4 -> bulk

I have a routerboard 532. The nics are setup similar to this.
LAN1 = 192.168.1.126/25
LAN2 = 192.168.1.254/25
WAN= 192.168.3.16/24

I'm just testing this stuff out at the moment but the goal is to share the bandwidth equally between all the users and also balance it between LAN1 and LAN2. Any comments would be appreciated. Can i use the pre-routing chain to mark incoming and outgoing traffic? Do I need to do anyting different for a bridge?

Am I way of base doing this? Is it worth doing this? I would also like to add stuff for voip in the future.

In case it matters it will be running as a router for a wireless network.

Who is online

Users browsing this forum: EnglishInfix and 23 guests