Community discussions

MUM Europe 2020
 
pokeman
Member Candidate
Member Candidate
Topic Author
Posts: 136
Joined: Fri Jun 05, 2009 10:52 pm

Traffic priority

Thu Jan 03, 2008 3:56 pm

hello

how to priority 1 below ports rest of all traffic on low priority . how can i do this ???


tcp 80,443,1863,5100
udp 53
 
shielder
Member Candidate
Member Candidate
Posts: 221
Joined: Wed Feb 09, 2005 7:09 pm
Location: Indonesia

Re: Traffic priority

Thu Jan 03, 2008 4:23 pm

mangle the traffic, if you wish to do it on simple queue, mark the connection and packet that you wish on the prerouting chain, then set the packet marks on simple queue with priority that you wish.
 
pokeman
Member Candidate
Member Candidate
Topic Author
Posts: 136
Joined: Fri Jun 05, 2009 10:52 pm

Re: Traffic priority

Sat Jan 05, 2008 12:13 pm

hello

this is is not working may be some mistake any body correct this
mangle rule

chain=forward action=mark-packet new-packet-mark=other passthrough=yes
chain=forward connection-mark=HTTP_Traffic action=mark-packet new-packet-mark=HTTP_Packet passthrough=no
chain=prerouting protocol=tcp dst-port=80 action=mark-connection new-connection-mark=HTTP_Traffic passthrough=yes
chain=prerouting protocol=tcp dst-port=443 action=mark-connection new-connection-mark=HTTP_Traffic passthrough=yes


simple queue
name="http-queue" dst-address=0.0.0.0/0 interface=all parent=none packet-marks=HTTP_Packet direction=both priority=> queue=default-small/default-small limit-at=0/0 max-limit=0/0 total-queue=default-small
name="other-queue" dst-address=0.0.0.0/0 interface=all parent=none packet-marks=other direction=both priority=8 queue=default-small/default-small limit-at=0/0 max-limit=0/0 total-queue=default-small
 
User avatar
balimore
Forum Veteran
Forum Veteran
Posts: 892
Joined: Mon Apr 10, 2006 3:38 am

Re: Traffic priority

Sat Jan 05, 2008 1:08 pm

----
Hai fren,
yes, you can mangle first, than create queue tree and put highest priority [1]

regards
Hasbullah.com
----
 
pokeman
Member Candidate
Member Candidate
Topic Author
Posts: 136
Joined: Fri Jun 05, 2009 10:52 pm

Re: Traffic priority

Tue Jan 08, 2008 9:30 am

hi Hasbullah

please read my pervious post i send my conf please correct this
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Traffic priority

Tue Jan 08, 2008 9:37 am

chain=forward action=mark-packet new-packet-mark=other passthrough=yes 
chain=forward connection-mark=HTTP_Traffic action=mark-packet new-packet-mark=HTTP_Packet passthrough=no 
chain=prerouting protocol=tcp dst-port=80 action=mark-connection new-connection-mark=HTTP_Traffic passthrough=yes 
chain=prerouting protocol=tcp dst-port=443 action=mark-connection new-connection-mark=HTTP_Traffic passthrough=yes 
Since you are using simple queues, you need to use prerouting to mark the packet. Also, you want to mark the connection first, THEN mark packet rules.
Look here to understand why: http://www.mikrotik.com/testdocs/ros/2.9/ip/flow.php
--
Butch Evans
Mikrotik Certified Trainer
Mikrotik Certified Consultant
BLOG: blog.butchevans.com
http://store.wispgear.net/

Who is online

Users browsing this forum: MSN [Bot] and 79 guests