Community discussions

MikroTik App
 
test2test
just joined
Topic Author
Posts: 13
Joined: Mon May 01, 2006 10:56 am

traffic priority

Thu May 11, 2006 9:46 pm

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

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

thanks
 
valens
Trainer
Trainer
Posts: 244
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Fri May 12, 2006 12:20 am

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.
 
test2test
just joined
Topic Author
Posts: 13
Joined: Mon May 01, 2006 10:56 am

Fri May 12, 2006 9:35 am

an example?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27066
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: traffic priority

Fri May 12, 2006 9:40 am

example:
50% Http
20% voip
20% ftp
10% p2p
even if this would be possible, what would happen to all other traffic which you do not assign any percent?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6703
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Fri May 12, 2006 10:01 am

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.5*512000)
20% voip (0.2*512000)
20% ftp (0.2*512000))
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.
 
User avatar
maroon
Member Candidate
Member Candidate
Posts: 230
Joined: Thu Oct 07, 2004 11:15 am
Location: Lebanon
Contact:

Fri May 12, 2006 10:32 am

any examples ... would be appreciated!

thank you guys in advance

Regards,
 
test2test
just joined
Topic Author
Posts: 13
Joined: Mon May 01, 2006 10:56 am

Sun May 14, 2006 11:30 pm

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
 
User avatar
butche
Trainer
Trainer
Posts: 430
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Mon May 15, 2006 7:59 am

an example?
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.
 
User avatar
maroon
Member Candidate
Member Candidate
Posts: 230
Joined: Thu Oct 07, 2004 11:15 am
Location: Lebanon
Contact:

Mon May 15, 2006 10:11 am

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

Regards,
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6703
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Mon May 15, 2006 1:20 pm

This diagramm shows the difference between built-in chains,
http://www.mikrotik.com/docs/ros/2.9/ip ... 3565202528
 
User avatar
Alessio Garavano
Member
Member
Posts: 306
Joined: Sat May 29, 2004 12:49 am
Location: Corrientes, Argentina
Contact:

Mon May 15, 2006 5:12 pm

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

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