QOS. Is this good?

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?

Anyone?

For ‘priority’, queue type ‘default’ should be OK.

Are you trying something like this? http://wiki.mikrotik.com/wiki/Mangle%2C_Queue_Tree_and_prio_by_fly_man_…_almost_done

Does PCQ work for you? How are you testing it.

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?

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…

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.

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