traffic priority

hi, how i can make for on interface to assign the traffic?

example:
50% Http
20% voip
20% ftp
10% p2p

thanks

I think there is no way to make QOS base on percent.
You need to define, how many kbps/mbps for each traffic.
You can do it with mangle, and then use the packer mark on queue tree.

an example?

even if this would be possible, what would happen to all other traffic which you do not assign any percent?

test2test, following Valens suggestion,
e.g. one user has limit 512 kbps, than queues have to be with the following limit values.
50% Http (0.5512000)
20% voip (0.2
512000)
20% ftp (0.2512000))
10% p2p (0.1
512000)
Do not forget to assign bandwidth to ‘OTHER’ traffic too,
There is no problems to assign packets-marks for HTTP, FTP, P2P, Other traffic in ‘ip firewall mangle’, and than use them in queues.

any examples … would be appreciated!

thank you guys in advance

Regards,

thx for response sergejs, but i meant any example of configuration practical, that is like making in order to shape several the passages,
practically what is the cofiguration of the mikrotik for assign packets-marks for HTTP, FTP, P2P, Other traffic in ‘ip firewall mangle’ ?

thanks

This is not an easy subject to do in a short example.

/ip firewall mangle
add chain=forward action=mark-packet new-packet-mark=OTHER \
     passthrough=yes comment="Mark ALL traffic first"
add chain=forward src-port=80 protocol=tcp action=mark-packet \
     new-packet-mark=HTTP comment="mark HTTP"
add chain=forward dst-port=80 protocol=tcp action=mark-packet \
     new-packet-mark=HTTP comment="mark HTTP"
add chain=forward src-port=25 protocol=tcp action=mark-packet \
     new-packet-mark=SMTP comment="mark SMTP"
add chain=forward dst-port=25 protocol=tcp action=mark-packet \
     new-packet-mark=SMTP comment="mark SMTP"

/queue tree
add name=INBOUND parent=private max-limit=1000000
add name=HTTP_IN parent=INBOUND  packet-mark=HTTP \
      max-limit=512000
add name=OTHER_IN parent=INBOUND  packet-mark=OTHER \
      max-limit=256000
add name=SMTP_IN parent=INBOUND  packet-mark=SMTP \
      max-limit=512000

There is a bit more to it, but this is the general idea. FWIW, this is documented in the 2.9 documentation.

Butch can u please explain more in /mangle the pre-routing and forward chain… when do we use them?

Regards,

This diagramm shows the difference between built-in chains,
http://www.mikrotik.com/docs/ros/2.9/ip/flow||0.13160143565202528

Forward is used in bridged public addresses, prerouting is used when you are doing marks to natted addresses…
Regards!
Alessio