Hi,
I have a scenario where I have the following setup for simple queues:
10mb dedicated - Client1
5mb pool A- client2, client3, client4, client5, client6
5mb pool B- client7, client8, client9, client10, client11
This simple queue is working just fine, however I’m now wanting to give VoIP priority in the simple queues, i.e. in the “5mb pool A” or “5mb pool B”, if someone is doing a download at 5mbps and someone tries to make a voip call, the user doing the download must be slowed down and the voip call be given preference within the queue.
I have added the following queue trees & mangles, the counters are incrementing, however I now need to know how to assign them to a pool.
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=“” direction=both disabled=no dst-address=0.0.0.0/0 interface=all limit-at=10M/10M max-limit=10M/10M name=Client1 parent=none priority=8 queue=“Per connection queue/Per connection queue” target-addresses=180.1.0.32/30 total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=“” direction=both disabled=no dst-address=0.0.0.0/0 interface=all limit-at=5M/5M max-limit=5M/5M name=“5mb burst A” parent=none priority=8
queue=“Per connection queue/Per connection queue” target-addresses=“10.10.10.0/24,10.10.11.0/24,10.10.12.0/24” total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=“” direction=both disabled=no dst-address=0.0.0.0/0 interface=all limit-at=5M/5M max-limit=5M/5M name=“5mb burst B” parent=none priority=8
queue=“Per connection queue/Per connection queue” target-addresses=“192.168.1.0/24,192.168.2.0/24,192.168.3.0/24” total-queue=default-small
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=QoS_to_Internet parent=“ether1 - fiber” priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“2 - IN - VoIP” packet-mark=VoIP_Traffic parent=QoS_to_Internet priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“7 - IN - Unknown” packet-mark=“Unknown traffic” parent=QoS_to_Internet priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“5 - IN - Download Traffic” packet-mark=“Download traffic” parent=QoS_to_Internet priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“1 - IN - Management” packet-mark=Management parent=QoS_to_Internet priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k max-limit=1024k name=“8 - IN - P2P” packet-mark=“P2P traffic” parent=QoS_to_Internet priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“3 - IN - DNS” packet-mark=“DNS Traffic” parent=QoS_to_Internet priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“4 - IN - HTTP” packet-mark=“HTTP traffic” parent=QoS_to_Internet priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“6 - IN - Mail” packet-mark=“MAIL traffic” parent=QoS_to_Internet priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=QoS_to_Wireless parent=“ether2 - to wireless” priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“2 - OUT - VoIP” packet-mark=VoIP_Traffic parent=QoS_to_Wireless priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“7 - OUT - Unknown” packet-mark=“Unknown traffic” parent=QoS_to_Wireless priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“5 - OUT - Download Traffic” packet-mark=“Download traffic” parent=QoS_to_Wireless priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“1 - OUT - Management” packet-mark=Management parent=QoS_to_Wireless priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k max-limit=1024k name=“8 - OUT - P2P” packet-mark=“P2P traffic” parent=QoS_to_Wireless priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“3 - OUT - DNS” packet-mark=“DNS Traffic” parent=QoS_to_Wireless priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“4 - OUT - HTTP” packet-mark=“HTTP traffic” parent=QoS_to_Wireless priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“6 - OUT - Mail” packet-mark=“MAIL traffic” parent=QoS_to_Wireless priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“4 - IN - ICMP” packet-mark=“ICMP Traffic” parent=QoS_to_Internet priority=4 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=“4 - OUT - ICMP” packet-mark=“ICMP Traffic” parent=QoS_to_Wireless priority=4 queue=default
/ip firewall mangle
add action=mark-packet chain=forward comment=“DNS traffic” disabled=no dst-port=53 new-packet-mark=“DNS Traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“DNS traffic” disabled=no dst-port=53 new-packet-mark=“DNS Traffic” passthrough=no protocol=udp
add action=mark-packet chain=forward comment=“Telnet traffic” disabled=no dst-port=53 new-packet-mark=Management passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“SSH traffic” disabled=no dst-port=53 new-packet-mark=Management packet-size=0-1400 passthrough=no protocol=tcp
add action=mark-connection chain=forward comment=“2Talk VoIP Connection IN” disabled=no new-connection-mark=VoIP_Connection passthrough=yes src-address-list=2Talk
add action=mark-packet chain=forward comment=“2Talk VoIP Packet IN” connection-mark=VoIP_Connection disabled=no new-packet-mark=VoIP_Traffic passthrough=no
add action=mark-connection chain=forward comment=“2Talk VoIP Connection OUT” disabled=no dst-address-list=2Talk new-connection-mark=VoIP_Connection passthrough=yes
add action=mark-packet chain=forward comment=“2Talk VoIP Packet OUT” connection-mark=VoIP_Connection disabled=no new-packet-mark=VoIP_Traffic passthrough=yes
add action=mark-packet chain=forward comment=“SIP UDP Traffic” disabled=no dst-port=5060 new-packet-mark=VoIP_Traffic passthrough=yes protocol=udp
add action=mark-packet chain=forward comment=“SIP TCP Traffic” disabled=no dst-port=5060 new-packet-mark=VoIP_Traffic passthrough=no protocol=tcp
add action=mark-connection chain=forward comment=“HTTP Mark Traffic” disabled=no dst-port=80 new-connection-mark=“HTTP Connection” passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment=“HTTP Traffic” connection-bytes=0-500000 disabled=no dst-port=80 new-packet-mark=“HTTP traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“SSL Traffic” disabled=no dst-port=443 new-packet-mark=“HTTP traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“POP3 Traffic” disabled=no dst-port=110 new-packet-mark=“MAIL traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“SMTP Traffic” disabled=no dst-port=25 new-packet-mark=“MAIL traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“IMAPS Traffic” disabled=no dst-port=993 new-packet-mark=“MAIL traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“IMAP Traffic” disabled=no dst-port=143 new-packet-mark=“MAIL traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“POP3S Traffic” disabled=no dst-port=995 new-packet-mark=“MAIL traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“DOWNLOAD HTTP Traffic” connection-bytes=500000-0 disabled=no dst-port=80 new-packet-mark=“Download traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“DOWNLOAD FTP Data traffic” disabled=no dst-port=20 new-packet-mark=“Download traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“DOWNLOAD FTP traffic” disabled=no dst-port=21 new-packet-mark=“Download traffic” passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“DOWNLOAD SFTP traffic” disabled=no dst-port=22 new-packet-mark=“Download traffic” packet-size=1400-1500 passthrough=no protocol=tcp
add action=mark-packet chain=forward comment=“ICMP Traffic” disabled=no new-packet-mark=“ICMP Traffic” passthrough=no protocol=icmp
add action=mark-packet chain=forward comment=“P2P Traffic” disabled=no new-packet-mark=“P2P traffic” p2p=all-p2p passthrough=no
add action=mark-packet chain=forward comment=“Unknown traffic” disabled=no new-packet-mark=“Unknown traffic” passthrough=no
Thanks
Barry Murphy