Wed Jun 29, 2011 8:20 am
I just went through this exercise.
Generally, there's no need to prioritize inbound traffic. Your WAN connection is likely the bottleneck. The place to put QoS for inbound traffic is on the opposite side. If your ISP is like most, they probably don't bother. The best you can do is put QoS on the outbound side - to let the VoIP traffic cut to the front of the line.
/ip firewall mangle
add action=mark-packet chain=prerouting disabled=no new-packet-mark=voip \
passthrough=yes src-mac-address={VOIP box mac}
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit={wan uplink bandwidth * .95} name=Outgoing parent=ether1-gateway priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=VoIP packet-mark=voip parent=Outgoing priority=2 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name="Not VoIP" packet-mark=no-mark parent=Outgoing priority=\
8 queue=default