Community discussions

MikroTik App
 
whoknew
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Wed Oct 13, 2010 8:51 pm

traffic prioritization

Mon Oct 24, 2011 6:53 pm

Hello All,

I currently have over 50 Routers running RouterOS in various forms. One of the big things that I'm wanting to do now is to prioritize http traffic ahead of say p2p etc to maybe take off some fo the bandwidth issues I am seeing at certain sites.

I use pcq rules now and limit users to a set amount of bandwidth, this works well right up until you get those 5 or 6 people that are consuming 5Mbps each downloading with P2P while they are not at their machines. You get the picture.

Is there a way to leave my pcq rules in place and setup some simple queue rules to limit p2p traffic to a certain rate and prioritize anything destined for port 80? Maybe point me in the correct direction and I can probably figure it out.
 
Chewers
newbie
Posts: 39
Joined: Sun Oct 23, 2011 7:41 pm

Re: traffic prioritization

Tue Oct 25, 2011 5:39 am

Im not sure - maybe something has changed, but there are no realy 100% working solution to capture p2p (torrent) traffic. You can try implant layer7 or set to http traffic higher queue.

Maybe im wrong - if so - correct me.
 
whoknew
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Wed Oct 13, 2010 8:51 pm

Re: traffic prioritization

Tue Oct 25, 2011 5:45 am

I don't need to capture it all, maybe free up some bandwidth and prioritize http traffic while keeping my pcq rules.
 
hel
Member Candidate
Member Candidate
Posts: 199
Joined: Sun Jun 12, 2011 6:31 am
Location: Kirov, Russia

Re: traffic prioritization

Wed Oct 26, 2011 1:15 am

You should mark as many popular services your clients use as possible and then mark other traffic which was left untouched - it would contain p2p, encrypted traffic and so on.

Maybe priority will work for you (for me it's not working at all), good luck.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

traffic prioritization

Wed Oct 26, 2011 1:38 am

You could use connection bytes to mark downloads in general.
 
CCDKP
Member Candidate
Member Candidate
Posts: 170
Joined: Fri Jan 28, 2011 11:24 pm
Location: Midwest, United States

Re: traffic prioritization

Wed Oct 26, 2011 4:56 pm

Is there a way to leave my pcq rules in place and setup some simple queue rules to limit p2p traffic to a certain rate and prioritize anything destined for port 80? Maybe point me in the correct direction and I can probably figure it out.
Something that helped a lot for one of my clients was to start limiting the number of simultaneous UDP connections. Something like:
add action=drop chain=forward connection-limit=12,32 disabled=no dst-port=!53 protocol=udp
A lot of p2p apps either use UDP exclusively, or default to UDP and fail over to TCP (Bittorrent for example). While this won't stop the p2p traffic, it will push the connections over to TCP, which will allow it to respond to QoS (most p2p UDP traffic is basically immune to ingress traffic shaping).

Double Queuing is also an effective tool. A great start is Janis's US09 Mum talk on QoS:
Video: http://www.tiktube.com/index.php?video= ... xClIoEKDH=
Slides: http://mum.mikrotik.com/presentations/U ... is_qos.pdf

Toward the end he covers double queuing. The highlights are:
Prioritization: Mangle in prerouting, QoS on Global-In.
PCQ: Mangle in Forward / Postrouting, QoS on out-interface (unless the router does NAT, then use Global-Out)

Who is online

Users browsing this forum: AndHe, djvabe, pajapatak and 109 guests