Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 13
Joined: Thu Apr 01, 2010 7:07 pm

QoS and Queue tree

Thu Dec 14, 2017 3:39 pm

Two Question regarding QoS and Queue tree. I have check many tutorial on forum, web site, youtube. Most are using queue to throttle or divide bandwidth. Can’t find any example on how to achieve my goal, maybe my idea is wrong…


Site 1
100Mb/100Mb internet
PBX with coper line to telco
IP phone

Site 2
ether1 = WAN
ether2 = LAN
20Mb/20Mb internet
IP phone

L2TP tunnel S1 to S2 with static routing

On Site 2 I need some bandwidth management because of limited bandwidth

I am puzzled because VoIP traffic doesn’t go out on ether1-wan, it goes out on l2tp-tosite1. I don’t have any Voip traffic on ether1-wan.

Do I need two stage queue tree where first I prioritize l2tp traffic over other on ether1-wan then on l2tp-site1 tunnel I prioritize voip over other ?

Right now I mark packet to/from PBX and change priority, is that OK ?
/ip firewall address-list
add address= list=PBX

/ip firewall mangle
add action=mark-packet chain=forward comment="QoS - VoIP In" new-packet-mark=voip-inbound passthrough=no src-address-list=PBX
add action=mark-packet chain=forward comment="QoS - VoIP Out" dst-address-list=PBX new-packet-mark=voip-outbound passthrough=no
add action=mark-packet chain=forward comment="WAN - All other traffic" in-interface=ether1 new-packet-mark=no-mark-inbound
add action=mark-packet chain=forward comment="WAN - All other traffic" new-packet-mark=no-mark-outbound out-interface=ether1

/queue tree
add name="Inbound - VoIP" packet-mark=voip-inbound parent=global priority=1 queue=default
add name="Inbound - Other" packet-mark=no-mark-inbound parent=global queue=default
add name="Outbound - VoIP" packet-mark=voip-outbound parent=global priority=1 queue=default
add name="Outbound - Other" packet-mark=no-mark-outbound parent=global queue=default


I do understand how to set up pcq so each queue get equal bandwidth allocation. Is it possible to allocate 1Mb/1Mb to VOIP and allow other to “borrow” if VOIP is not in use.

Like if VOIP fight with other, it get prioritize up to 1Mb/1Mb. After 1Mb/1Mb VOIP and other fight with equal strength.
just joined
Posts: 4
Joined: Mon Sep 17, 2018 12:34 am

Re: QoS and Queue tree

Wed Mar 20, 2019 10:33 pm

I have the same Question. Is there a solution to this question in Mikrotik Land?
Member Candidate
Member Candidate
Posts: 212
Joined: Thu Jan 18, 2018 5:18 pm

Re: QoS and Queue tree

Wed Mar 20, 2019 11:43 pm

User avatar
Forum Guru
Forum Guru
Posts: 1796
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: QoS and Queue tree

Thu Mar 21, 2019 12:24 am

Configure tunnel with "dscp: inherit", use that to mangle / mark traffic and finally prioritise / shape

Who is online

Users browsing this forum: No registered users and 57 guests