Professional Documents
Culture Documents
Queue Tree - Mutiple Wan Interfaces - What Should Be The Parent - MikroTik
Queue Tree - Mutiple Wan Interfaces - What Should Be The Parent - MikroTik
Queue Tree - Mutiple Wan Interfaces - What Should Be The Parent - MikroTik
- MikroTik
Search…
Search
Quick links
Unanswered topics
Active topics
Search
FAQ
Active topics
Active topics
Forum
Quick links
Unanswered topics
Active topics
Community discussions
Search
FAQ
Active topics
Active topics
Forum
Register
Search… Login
1.
Announcements
RouterOS
RouterOS v7 BETA
Remember me
Search Beginner
Login Basics
General
Forwarding Protocols
Wireless Networking
Scripting
Virtualization
Useful user articles
Other topics
The Dude
RouterBOARD hardware
The User Manager
SwOS
Training
2. Home
3. Forum index
4. RouterOS
5. General
https://forum.mikrotik.com/viewtopic.php?t=115711 1/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
queue tree - mutiple wan interfaces - what should be the parent ? (#p572761)
Quote (./posting.php?mode=quote&p=572761)
#1 (#p572761)
(javascript:void(0);)
Thu Dec 15, 2016 10:57 am
ROS 6.7
I have a queue tree with wan1,wan2,wan3 interfaces with packet classifieres priority 1-8.
In my queue tree I have six top(parnet) nodes, up/down per each wanX interface with max-limit set specifically for each wanX interface,
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p572793)
Quote (./posting.php?mode=quote&p=572793)
#2 (#p572793)
(javascript:void(0);)
Thu Dec 15, 2016 2:43 pm
Good question! Some problem. Wan interface for upload streams, lan interface for download stream. Global for input/output chain. But what interface we install in download stream if have
multiple wan with different bandwidth ?? We need create correct mangle for each interface! Mangle for wan1, wan2...???
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p572832)
Quote (./posting.php?mode=quote&p=572832)
#3 (#p572832)
(javascript:void(0);)
Thu Dec 15, 2016 7:09 pm
I guess we have no choice,
If I set top node parent in que tree to 'wan1', the queu tree dont work, there is no average kbs, queue nodes show no averages kbs, as if nothing was going through the queue
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p572852)
Quote (./posting.php?mode=quote&p=572852)
#4 (#p572852)
(javascript:void(0);)
Thu Dec 15, 2016 9:26 pm
https://forum.mikrotik.com/viewtopic.php?t=115711 2/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Maybe incorrect mangle? Need more info about traffic type, source and dst... You can learn a traffic flow diagram...
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p572854)
Quote (./posting.php?mode=quote&p=572854)
#5 (#p572854)
(javascript:void(0);)
Thu Dec 15, 2016 9:37 pm
lan interfaces (vlan) admin => wan1, szkola => wan2, ( internat, mieszkania) => wan3
src-address-list=local-net
protocol=tcp
protocol=udp
new-connection-mark=p1 protocol=udp
new-connection-mark=p4
new-connection-mark=p5
new-connection-mark=p5
new-connection-mark=p7
jump-target=w3_d
out-interface=wan3
jump-target=w1_d
out-interface=wan1
https://forum.mikrotik.com/viewtopic.php?t=115711 3/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
add action=jump chain=forward comment="wan2 down" in-interface=wan2 \
jump-target=w2_d
out-interface=wan2
new-connection-mark=router_wan1 out-interface=wan1
connection-mark=router_wan1 new-routing-mark=wan1
new-connection-mark=router_wan2 out-interface=wan2
connection-mark=router_wan2 new-routing-mark=wan2
new-connection-mark=router_wan3 out-interface=wan3
connection-mark=router_wan3 new-routing-mark=wan3
new-packet-mark=w1_d_p8 passthrough=no
new-packet-mark=w1_d_p1 passthrough=no
new-packet-mark=w1_d_p2 passthrough=no
new-packet-mark=w1_d_p3 passthrough=no
new-packet-mark=w1_d_p4 passthrough=no
new-packet-mark=w1_d_p5 passthrough=no
new-packet-mark=w1_d_p6 passthrough=no
new-packet-mark=w1_u_p8 passthrough=no
new-packet-mark=w1_u_p1 passthrough=no
https://forum.mikrotik.com/viewtopic.php?t=115711 4/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
add action=mark-packet chain=w1_u comment="pmark p2" connection-mark=p2 \
new-packet-mark=w1_u_p2 passthrough=no
new-packet-mark=w1_u_p3 passthrough=no
new-packet-mark=w1_u_p4 passthrough=no
new-packet-mark=w1_u_p5 passthrough=no
new-packet-mark=w1_u_p6 passthrough=no
new-packet-mark=w1_u_p7 passthrough=no
w1_u_p8 passthrough=no
new-packet-mark=w2_d_p8 passthrough=no
new-packet-mark=w2_d_p1 passthrough=no
new-packet-mark=w2_d_p2 passthrough=no
new-packet-mark=w2_d_p3 passthrough=no
new-packet-mark=w2_d_p4 passthrough=no
new-packet-mark=w2_u_p8 passthrough=no
new-packet-mark=w2_u_p1 passthrough=no
new-packet-mark=w2_u_p2 passthrough=no
new-packet-mark=w2_u_p3 passthrough=no
new-packet-mark=w2_u_p4 passthrough=no
new-packet-mark=w2_u_p5 passthrough=no
new-packet-mark=w2_u_p6 passthrough=no
new-packet-mark=w2_u_p7 passthrough=no
w2_u_p8 passthrough=no
new-packet-mark=w3_d_p8 passthrough=no
new-packet-mark=w3_d_p7 passthrough=no
new-packet-mark=w3_d_p1 passthrough=no
new-packet-mark=w3_d_p2 passthrough=no
https://forum.mikrotik.com/viewtopic.php?t=115711 5/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
add action=mark-packet chain=w3_d comment="pmark p3" connection-mark=p3 \
new-packet-mark=w3_d_p3 passthrough=no
new-packet-mark=w3_d_p4 passthrough=no
new-packet-mark=w3_d_p5 passthrough=no
new-packet-mark=w3_d_p6 passthrough=no
new-packet-mark=w3_u_p8 passthrough=no
new-packet-mark=w3_u_p7 passthrough=no
new-packet-mark=w3_u_p1 passthrough=no
new-packet-mark=w3_u_p2 passthrough=no
new-packet-mark=w3_u_p3 passthrough=no
new-packet-mark=w3_u_p4 passthrough=no
new-packet-mark=w3_u_p5 passthrough=no
new-packet-mark=w3_u_p6 passthrough=no
w3_u_p8 passthrough=no
local-net src-address-list=local-net
10.172.88.10
new-packet-mark=w1_d_p7 passthrough=no
w1_d_p8 passthrough=no
w3_d_p8 passthrough=no
icmp
https://forum.mikrotik.com/viewtopic.php?t=115711 6/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
connection-state=new in-interface=wan3 new-connection-mark=router_wan3
passthrough=no
no
passthrough=no
new-packet-mark=w2_d_p5 passthrough=no
new-packet-mark=w2_d_p6 passthrough=no
new-packet-mark=w2_d_p7 passthrough=no
w2_d_p8 passthrough=no
Top
queue tree - mutiple wan interfaces - what should be the parent ? (#p573592)
Quote (./posting.php?mode=quote&p=573592)
#6 (#p573592)
(javascript:void(0);)
Tue Dec 20, 2016 12:35 pm
Can you attach screenshots of queue tree and mangle from winbox?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p573614)
Quote (./posting.php?mode=quote&p=573614)
#7 (#p573614)
(javascript:void(0);)
Tue Dec 20, 2016 1:54 pm
You do not have the required permissions to view the files attached to this post.
https://forum.mikrotik.com/viewtopic.php?t=115711 7/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p576694)
Quote (./posting.php?mode=quote&p=576694)
#8 (#p576694)
(javascript:void(0);)
Mon Jan 09, 2017 3:33 pm
Colleagues, did you find the solution?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p576750)
Quote (./posting.php?mode=quote&p=576750)
#9 (#p576750)
(javascript:void(0);)
Mon Jan 09, 2017 7:12 pm
> I have almost same situation
namely ?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p590221)
Quote (./posting.php?mode=quote&p=590221)
#10 (#p590221)
(javascript:void(0);)
Wed Mar 22, 2017 5:49 pm
me too
Now with 2 ISP link how to make sure band when one of them fall?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p590225)
Quote (./posting.php?mode=quote&p=590225)
#11 (#p590225)
(javascript:void(0);)
Wed Mar 22, 2017 5:56 pm
You have to set up a tree for each WAN interface, with each root queue's max-limit set to whatever that ISP's upstream bandwidth actually is.
You can re-use the same packet marks for each queue tree, though, so at least you shouldn't need to make the mangle table even larger.
Top
https://forum.mikrotik.com/viewtopic.php?t=115711 8/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611607)
Quote (./posting.php?mode=quote&p=611607)
#12 (#p611607)
(javascript:void(0);)
Fri Aug 04, 2017 3:41 pm
How do I define the different upload and download speeds for each WAN connections using the Queue Trees? - I understand how to get the Upload limit defined by setting the Interface of each
WAN as the parent of the queue tree, but how would I get the different download speeds recognised by the queue?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611613)
Quote (./posting.php?mode=quote&p=611613)
#13 (#p611613)
(javascript:void(0);)
Fri Aug 04, 2017 3:55 pm
https://forum.mikrotik.com/viewtopic.php?t=115711 9/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
add comment=w3_u_p2 limit-at=900k max-limit=1550k name=w3_u_p2 packet-mark=\
https://forum.mikrotik.com/viewtopic.php?t=115711 10/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
w1_d_p1 parent=w1_d priority=1 queue=pcq-download
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611691)
Quote (./posting.php?mode=quote&p=611691)
#14 (#p611691)
(javascript:void(0);)
Sat Aug 05, 2017 8:54 am
https://forum.mikrotik.com/viewtopic.php?t=115711 11/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611696)
Quote (./posting.php?mode=quote&p=611696)
#15 (#p611696)
(javascript:void(0);)
Sat Aug 05, 2017 10:11 am
I did mangling in Forward chain both in/out face are available in forward chain.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611812)
Quote (./posting.php?mode=quote&p=611812)
#16 (#p611812)
(javascript:void(0);)
Sun Aug 06, 2017 11:42 am
Mangle Rules:
4 ;;; DNS
7 ;;; VOIP
https://forum.mikrotik.com/viewtopic.php?t=115711 12/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
14 ;;; UDP
16 ;;; ICMP
19 ;;; ACK
21 ;;; HTTP
4 ;;; DNS
7 ;;; VOIP
https://forum.mikrotik.com/viewtopic.php?t=115711 13/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
12 chain=prerouting action=mark-packet new-packet-mark=VOIP-TCP passthrough=no connection-mark=VOIP-TCP
14 ;;; UDP
16 ;;; ICMP
19 ;;; ACK
21 ;;; HTTP
25 ;;; OTHER
https://forum.mikrotik.com/viewtopic.php?t=115711 14/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
1 name="MASTER_DOWN" parent=global packet-mark=W1_Download limit-at=0 queue=default priority=8 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
2 name="VOIP-TCP_U" parent=MASTER_UP packet-mark=VOIP-TCP limit-at=0 queue=default priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s b
3 name="VOIP-TCP_D" parent=MASTER_DOWN packet-mark=VOIP-TCP limit-at=0 queue=default priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
4 name="ACK_U" parent=MASTER_UP packet-mark=ACK limit-at=6M queue=default priority=2 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size
5 name="ACK_D" parent=MASTER_DOWN packet-mark=ACK limit-at=6M queue=default priority=2 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
6 name="DNS_U" parent=MASTER_UP packet-mark=DNS limit-at=6M queue=default priority=3 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size
7 name="DNS_D" parent=MASTER_DOWN packet-mark=DNS limit-at=6M queue=default priority=3 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
8 name="UDP_U" parent=MASTER_UP packet-mark=UDP limit-at=6M queue=default priority=4 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-size
9 name="UDP_D" parent=MASTER_DOWN packet-mark=UDP limit-at=6M queue=default priority=4 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
10 name="ICMP_U" parent=MASTER_UP packet-mark=ICMP limit-at=6M queue=default priority=5 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
11 name="ICMP_D" parent=MASTER_DOWN packet-mark=ICMP limit-at=6M queue=default priority=5 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
12 name="HTTP_U" parent=MASTER_UP packet-mark=HTTP limit-at=6M queue=default priority=6 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
13 name="HTTP_D" parent=MASTER_DOWN packet-mark=HTTP limit-at=6M queue=default priority=6 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
14 name="HTTP_BIG_U" parent=MASTER_UP packet-mark=HTTP_BIG limit-at=6M queue=default priority=7 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s b
15 name="HTTP_BIG_D" parent=MASTER_DOWN packet-mark=HTTP_BIG limit-at=6M queue=default priority=7 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s
16 name="OTHER_U" parent=MASTER_UP packet-mark=OTHER limit-at=6M queue=default priority=8 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
17 name="OTHER_D" parent=MASTER_DOWN packet-mark=OTHER limit-at=6M queue=default priority=8 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucke
18 name="VOIP-UDP_D" parent=MASTER_DOWN packet-mark=VOIP-UDP limit-at=0 queue=default priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
19 name="VOIP-UDP_U" parent=MASTER_UP packet-mark=VOIP-UDP limit-at=0 queue=default priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s b
20 name="MASTER_UP2" parent=global packet-mark=W2_Upload limit-at=0 queue=default priority=8 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s buck
https://forum.mikrotik.com/viewtopic.php?t=115711 15/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
21 name="ACK_U2" parent=MASTER_UP2 packet-mark=ACK limit-at=2M queue=default priority=2 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
22 name="DNS_U2" parent=MASTER_UP2 packet-mark=DNS limit-at=2M queue=default priority=3 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
23 name="HTTP_BIG_U2" parent=MASTER_UP2 packet-mark=HTTP_BIG limit-at=2M queue=default priority=7 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
24 name="HTTP_U2" parent=MASTER_UP2 packet-mark=HTTP limit-at=2M queue=default priority=6 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
25 name="ICMP_U2" parent=MASTER_UP2 packet-mark=ICMP limit-at=2M queue=default priority=5 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
26 name="OTHER_U2" parent=MASTER_UP2 packet-mark=OTHER limit-at=2M queue=default priority=8 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s bucke
27 name="UDP_U2" parent=MASTER_UP2 packet-mark=UDP limit-at=2M queue=default priority=4 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s bucket-si
28 name="VOIP-TCP_U2" parent=MASTER_UP2 packet-mark=VOIP-TCP limit-at=0 queue=default priority=1 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
29 name="VOIP-UDP_U2" parent=MASTER_UP2 packet-mark=VOIP-UDP limit-at=0 queue=default priority=1 max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
30 name="MASTER_DOWN2" parent=global packet-mark=W2_Download limit-at=0 queue=default priority=8 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=0s
31 name="ACK_D2" parent=MASTER_DOWN2 packet-mark=ACK limit-at=6M queue=default priority=2 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
32 name="DNS_D2" parent=MASTER_DOWN2 packet-mark=DNS limit-at=6M queue=default priority=3 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
33 name="HTTP_BIG_D2" parent=MASTER_DOWN2 packet-mark=HTTP_BIG limit-at=6M queue=default priority=7 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=
34 name="HTTP_D2" parent=MASTER_DOWN2 packet-mark=HTTP limit-at=6M queue=default priority=6 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucke
35 name="ICMP_D2" parent=MASTER_DOWN2 packet-mark=ICMP limit-at=6M queue=default priority=5 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucke
36 name="OTHER_D2" parent=MASTER_DOWN2 packet-mark=OTHER limit-at=6M queue=default priority=8 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s buc
37 name="UDP_D2" parent=MASTER_DOWN2 packet-mark=UDP limit-at=6M queue=default priority=4 max-limit=9M burst-limit=0 burst-threshold=0 burst-time=0s bucket-
38 name="VOIP-TCP_D2" parent=MASTER_DOWN2 packet-mark=VOIP-TCP limit-at=0 queue=default priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=
39 name="VOIP-UDP_D2" parent=MASTER_DOWN2 packet-mark=VOIP-UDP limit-at=0 queue=default priority=1 max-limit=10M burst-limit=0 burst-threshold=0 burst-time=
Thank you so much
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611860)
Quote (./posting.php?mode=quote&p=611860)
#17 (#p611860)
(javascript:void(0);)
Sun Aug 06, 2017 8:39 pm
Top
https://forum.mikrotik.com/viewtopic.php?t=115711 16/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611950)
Quote (./posting.php?mode=quote&p=611950)
#18 (#p611950)
(javascript:void(0);)
Mon Aug 07, 2017 8:28 am
I have run it yesterday, everything is mapped only to upload on the WAN1 queue
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611981)
Quote (./posting.php?mode=quote&p=611981)
#19 (#p611981)
(javascript:void(0);)
Mon Aug 07, 2017 11:09 am
Show winbox screens as in post 7, make sure you have showing columns as in post 7.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611985)
Quote (./posting.php?mode=quote&p=611985)
#20 (#p611985)
(javascript:void(0);)
Mon Aug 07, 2017 11:18 am
You do not have the required permissions to view the files attached to this post.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611992)
Quote (./posting.php?mode=quote&p=611992)
#21 (#p611992)
(javascript:void(0);)
Mon Aug 07, 2017 11:32 am
In top nodes (one that is parent to global) you must specify max limit
Child nodes should have max limit < parent max limit.
I am running 6.7, there were changes to packet flow between between ROS versions.
https://forum.mikrotik.com/viewtopic.php?t=115711 17/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p611994)
Quote (./posting.php?mode=quote&p=611994)
#22 (#p611994)
(javascript:void(0);)
Mon Aug 07, 2017 11:34 am
Running V6.40.1
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612001)
Quote (./posting.php?mode=quote&p=612001)
#23 (#p612001)
(javascript:void(0);)
Mon Aug 07, 2017 11:52 am
Would I have to jump in the forward chain all the 3rd level children so that the queues will pick it up properly?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612004)
Quote (./posting.php?mode=quote&p=612004)
#24 (#p612004)
(javascript:void(0);)
Mon Aug 07, 2017 11:56 am
You must not have two nodes in queue tree with the same packet mark.
When you marking packets in the mangle, make the INTERFACE (w.g, wan1,wan2), DIRECTION (up, down) part of the mark name, this way easier to catch mistakes in the queueu tree.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612007)
Quote (./posting.php?mode=quote&p=612007)
#25 (#p612007)
(javascript:void(0);)
Mon Aug 07, 2017 12:01 pm
Would I have to jump in the forward chain all the 3rd level children so that the queues will pick it up properly?
For now try to simplify the rules till you get up/down rate control working, then you can fine tune with more rules/categories.
Top
https://forum.mikrotik.com/viewtopic.php?t=115711 18/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612009)
Quote (./posting.php?mode=quote&p=612009)
#26 (#p612009)
(javascript:void(0);)
Mon Aug 07, 2017 12:13 pm
Like this?
You do not have the required permissions to view the files attached to this post.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612020)
Quote (./posting.php?mode=quote&p=612020)
#27 (#p612020)
(javascript:void(0);)
Mon Aug 07, 2017 1:42 pm
I suspect the new flows will only work with Postrouting and input chains?
You do not have the required permissions to view the files attached to this post.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612029)
Quote (./posting.php?mode=quote&p=612029)
#28 (#p612029)
(javascript:void(0);)
Mon Aug 07, 2017 2:07 pm
flow you quoted is for bridged mode, you are using routed mode (lan + wan(s))
In case of UDP download (VOIP video streams) you cannot control anything, even if you reject the UDP packet the bandwidth is already wasted, the sender will not slow down the rate of UDP
packets (as it would in case of TCP stream) because there is no ACKs and sliding window in UDP.
that is why you must count UDP downloads (wan1_download_udp) with priority 1 and assign it a max download value for the interface.
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612048)
Quote (./posting.php?mode=quote&p=612048)
#29 (#p612048)
(javascript:void(0);)
Mon Aug 07, 2017 3:39 pm
I set this up on my spare router and the queues seem to be working now based on the Interface.
You do not have the required permissions to view the files attached to this post.
Top
https://forum.mikrotik.com/viewtopic.php?t=115711 19/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612061)
Quote (./posting.php?mode=quote&p=612061)
#30 (#p612061)
(javascript:void(0);)
Mon Aug 07, 2017 4:05 pm
You must not have two nodes in queue tree with the same packet mark.
say mark "DNS", if QT sees "DNS" mark, how will it decide if it belongs to master UP or Down queue ?
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612064)
Quote (./posting.php?mode=quote&p=612064)
#31 (#p612064)
(javascript:void(0);)
Mon Aug 07, 2017 4:08 pm
You must not have two nodes in queue tree with the same packet mark.
say mark "DNS", if QT sees "DNS" mark, how will it decide if it belongs to master UP or Down queue ?
Thank you
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612067)
Quote (./posting.php?mode=quote&p=612067)
#32 (#p612067)
(javascript:void(0);)
Mon Aug 07, 2017 4:23 pm
Mangle Rules:
protocol=udp
https://forum.mikrotik.com/viewtopic.php?t=115711 20/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
ether1 new-packet-mark=DNS-WAN1-In passthrough=no
passthrough=no
icmp
https://forum.mikrotik.com/viewtopic.php?t=115711 21/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
ether1 new-packet-mark=ICMP-WAN1-In passthrough=no
protocol=tcp tcp-flags=ack
protocol=tcp tcp-flags=ack
src-address-list=internal-nets
protocol=tcp
https://forum.mikrotik.com/viewtopic.php?t=115711 22/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
Queue Tree:
priority=2 queue=default
priority=3 queue=default
priority=4 queue=default
priority=5 queue=default
priority=6 queue=default
queue=default
priority=2 queue=default
priority=3 queue=default
priority=4 queue=default
priority=5 queue=default
priority=6 queue=default
queue=default
priority=2 queue=default
priority=3 queue=default
https://forum.mikrotik.com/viewtopic.php?t=115711 23/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
priority=6 queue=default
priority=5 queue=default
MASTER_DOWN2 queue=default
priority=4 queue=default
priority=2 queue=default
priority=3 queue=default
priority=6 queue=default
priority=5 queue=default
queue=default
priority=4 queue=default
Top
Re: queue tree - mutiple wan interfaces - what should be the parent ? (#p612069)
Quote (./posting.php?mode=quote&p=612069)
#33 (#p612069)
(javascript:void(0);)
Mon Aug 07, 2017 4:29 pm
once they (UDP download packets) get to the router they have already consumed the bandwidth !!!,
even if you DROP them in firewall rules they will keep consuming the download bandwidth !
The only way to throttle them so they dont consume your download bandwith is to throttle at ISP router, imposibility in almost all cases.
throwing them out is useless and corrupts correct download queue average, makes qt think there is more bandwidth available than really is becuase if it throws out those UDP packets it thinks
that the bandwidth by those packets was not consumed, but it was !!!
https://forum.mikrotik.com/viewtopic.php?t=115711 24/25
28/10/21 15:40 queue tree - mutiple wan interfaces - what should be the parent ? - MikroTik
and make these packets top priority node with max limit equal to that of the parent max limit.
for example,
say download on wan1 is 500kbs, a remote computer sends 500kbs UDP packets to your router (voice stream),
there is no way in QT to lower the priority of these UDP packets to slow down the rate they arrive to your router, so they arrive after high priority packets, the UDP incoming stream of packets
competes with other packets (tcp, icmp, ...), at your ISP router, all you can do is to keep track of how much bandwith they (UDP packets) consume so the QT can control remaining (TCP
streams) using remaining bandwith
Top
Display posts from previous: All posts All posts
Sort by Post time Post time Ascending Ascending
Post Reply
Print view
Who is online
Users browsing this forum: Ahrefs [Bot], Baidu [Spider], Bing [Bot], flapviv, jaxed8, Majestic-12 [Bot], steen and 32 guests
1.
Announcements
RouterOS
RouterOS v7 BETA
Beginner Basics
General
Forwarding Protocols
Wireless Networking
Scripting
Virtualization
Useful user articles
Other topics
The Dude
RouterBOARD hardware
The User Manager
SwOS
Training
2. Home
3. Forum index
4. RouterOS
5. General
Delete cookies
Delete cookies
Powered by phpBB® Forum Software © phpBB Limited
Design by SlickThemes
×
https://forum.mikrotik.com/viewtopic.php?t=115711 25/25