Community discussions

MikroTik App
 
pospanko
Member Candidate
Member Candidate
Topic Author
Posts: 283
Joined: Sun Dec 18, 2005 4:23 pm

QOS. Is this good?

Fri Dec 05, 2008 12:44 am

I created some qos. I think it's working ok, but can someone, who knew more about this, maybe could review it.

On prerouting and postrouting I tried to make equal bandwith shearing among users, and on forward package sorting...

This is just a part of it but you will get the point...

Mangle
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
    bridge1 new-packet-mark=download passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no \
    new-packet-mark=upload out-interface=bridge1 passthrough=no

add action=mark-packet chain=forward comment=p2p disabled=no new-packet-mark=\
    p2p p2p=all-p2p passthrough=no
add action=mark-packet chain=forward comment=http disabled=no \
    new-packet-mark=http passthrough=no protocol=tcp src-port=80
add action=mark-packet chain=forward comment=other disabled=no \
    new-packet-mark=other passthrough=no
Queue
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=15000000 name=User_download packet-mark=download parent=\
    global-in priority=8 queue=pcq_dl
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=10000000 name=User_upload packet-mark=upload parent=bridge1 \
    priority=8 queue=pcq_ul

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=priority packet-mark="" parent=global-out priority=8 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=p2p packet-mark=p2p parent=priority priority=8 queue=\
    default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=winbox packet-mark=http parent=priority priority=1 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=snmp packet-mark=other parent=priority priority=7 queue=\
    default
If this is ok, what to use for queue type for sorting packages?
 
pospanko
Member Candidate
Member Candidate
Topic Author
Posts: 283
Joined: Sun Dec 18, 2005 4:23 pm

Re: QOS. Is this good?

Mon Dec 08, 2008 1:38 am

Anyone?
 
dot-bot
Member Candidate
Member Candidate
Posts: 164
Joined: Tue Oct 11, 2005 7:05 pm

Re: QOS. Is this good?

Tue Dec 09, 2008 12:47 am

For 'priority', queue type 'default' should be OK.

Are you trying something like this? http://wiki.mikrotik.com/wiki/Mangle%2C ... lmost_done

Does PCQ work for you? How are you testing it.
Last edited by dot-bot on Tue Dec 09, 2008 1:19 am, edited 1 time in total.
 
pospanko
Member Candidate
Member Candidate
Topic Author
Posts: 283
Joined: Sun Dec 18, 2005 4:23 pm

Re: QOS. Is this good?

Tue Dec 09, 2008 1:15 am

There's an error - src-port=80 should be dst-port=80
src-port is for download priority. src-port is port of web server. For now, I'm only trying to create priority queue for download traffic.
Similar is for upload, I think, but instead of src-port, should be dst-port.
When you started this discussion, is it beter way to create new queue for upload traffic priorization or to put it all together?
Are you trying something like this? http://wiki.mikrotik.com/wiki/Mangle%2C ... lmost_done
Yes, I tried that. But I dont want to limit users using simple queue. I want to have equal bandwith sharing among them. So it isn't a good way for me... If I dont use simple queue in that example, priority is set but... When someone pull lot of data othere get stucked. So I have to make different package markings...
Does PCQ work for you?
Tell us how you are testing it.
Yes, PCQ is working, but I'm not shure about priority, but PCQ is working well. I tried it on my "live" network. Since now no complaints.
Last edited by pospanko on Tue Dec 09, 2008 1:30 am, edited 2 times in total.
 
pospanko
Member Candidate
Member Candidate
Topic Author
Posts: 283
Joined: Sun Dec 18, 2005 4:23 pm

Re: QOS. Is this good?

Tue Dec 23, 2008 3:00 pm

Grrr... I posted wrong example.. For in and out interfaces I have global, not bridge1 which is local interface. Also in queu for upload isn't bridge1, it's global
Sorry...

This is right code for mangle:
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
    global new-packet-mark=download passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no \
    new-packet-mark=upload out-interface=global passthrough=no

add action=mark-packet chain=forward comment=p2p disabled=no new-packet-mark=\
    p2p p2p=all-p2p passthrough=no
add action=mark-packet chain=forward comment=http disabled=no \
    new-packet-mark=http passthrough=no protocol=tcp src-port=80
add action=mark-packet chain=forward comment=other disabled=no \
    new-packet-mark=other passthrough=no
This is right code for queue:
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=15000000 name=User_download packet-mark=download parent=\
    global-in priority=8 queue=pcq_dl
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=10000000 name=User_upload packet-mark=upload parent=global \
    priority=8 queue=pcq_ul

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=priority packet-mark="" parent=global-out priority=8 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=p2p packet-mark=p2p parent=priority priority=8 queue=\
    default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=winbox packet-mark=http parent=priority priority=1 \
    queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=snmp packet-mark=other parent=priority priority=7 queue=\
    default


Last bumped by pospanko on Tue Dec 23, 2008 3:00 pm.

Who is online

Users browsing this forum: AquaL1te2, GoogleOther [Bot], moonrocks, psw, sk0003, TFrench and 59 guests