Page 1 of 1

Traffic priority

Posted: Thu Jan 03, 2008 3:56 pm
by pokeman
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

Re: Traffic priority

Posted: Thu Jan 03, 2008 4:23 pm
by shielder
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.

Re: Traffic priority

Posted: Sat Jan 05, 2008 12:13 pm
by pokeman
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

Re: Traffic priority

Posted: Sat Jan 05, 2008 1:08 pm
by balimore
----
Hai fren,
yes, you can mangle first, than create queue tree and put highest priority [1]

regards
Hasbullah.com
----

Re: Traffic priority

Posted: Tue Jan 08, 2008 9:30 am
by pokeman
hi Hasbullah

please read my pervious post i send my conf please correct this

Re: Traffic priority

Posted: Tue Jan 08, 2008 9:37 am
by butche
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