SlideShare a Scribd company logo
PRESENTED BY : TEAV SOVANDARA (Dara)
Bandwidth Management
and QOS
MUM April 2015 – Phnom Penh
• Network Engineer at MaxBIT ISP
• Working with MikroTik for few years with both core and
edge network
• Certifications
• MikroTik:
• Academy Trainer (ACTR0207)
• MTCNA, MTCRE, MTCTCE, MTCINE
• Cisco: CCNA, CCNP
• Juniper: JNCIA-Junos
ABOUT ME
Objective
•Mangle
•HTB (Hierarchical Token Bucket)
•QOS Packet Flow
•Simple Queue
•Queue Tree
Mangle
What is Mangle?
• The mangle facility allows to mark IP packets with special
marks.
• These marks are used by other router facilities like routing
and bandwidth management to identified the packets.
• Additionally, the mangle facility is used to modify some
fields in the IP header, like TOS (DSCP) and TTL fields
Mangle Structure
• Mangle rules are organised in chains
• There are five built in chains:
• Prerouting
• Postrouting
• Input
• Output
• Forward
• New user-defined chains can be added, as necessary.
Mangle – Winbox view
Mark traffic by traffic type go to IP > firewall > mangle
Mangle – Script view
/ip firewall mangle
add action=jump chain=forward connection-mark=no-mark jump-target=MARK-CONN
add action=jump chain=forward connection-mark=!no-mark jump-target=MARK-PACKET
add action=mark-connection chain=MARK-CONN comment=rest connection-mark= no-mark new-connection-mark=ALL-
CONN
add action=mark-connection chain=MARK-CONN comment=voip dst-port= 5060-5061,16000-17000,40012 new-
connection-mark=VOIP-CONN protocol=udp
add action=mark-connection chain=MARK-CONN comment=video dst-address-list= AS15169 new-connection-
mark=VIDEO-CONN protocol=tcp
add action=mark-connection chain=MARK-CONN comment=Mail dst-port=25,110,143 new-connection-mark=MAIL-
CONN protocol=tcp
add action=return chain=conmark
add action=mark-packet chain=MARK-PACKET comment=VO connection-mark=VOIP-CONN new-packet-mark=VO
add action=mark-packet chain=MARK-PACKET comment=VI connection-mark= VIDEO-CONN new-packet-mark=VI
add action=mark-packet chain=MARK-PACKET comment=BE connection-mark=ALL-CONN new-packet-mark=BE
add action=mark-packet chain=MARK-PACKET comment=MAIL connection-mark= MAIL-CONN new-packet-mark=MAIL
HTB
(Hierarchical Token Bucket)
HTB (Hierarchical Token Bucket)
• All quality of service implementation in RouterOS is based
on Hierarchical Token Bucket
• HTB allows to create hierarchical queue structure and
determine relations between parent and child queues and
relation between child queues
• RouterOS v6.x supports 1 virtual HTB (global) while
RouterOS v5.x support 3 virtual HTB(global-in, global-
total, global-out)
HTB Structure
• As soon as queue have at least one child it become parent
queue
• All child queue (don’t matter how many levels of parents
they have) are on the same bottom level of HTB
• Child queues make actual traffic consumption, parent
queues are responsible only for traffic distribution
• Child queues will get limit-at first and then rest of traffic
will distributed by parents
HTB Features - Structure
Example
Dual Limitation
HTB has two rate limit:
• CIR (Committed Information Rate) – (limit-at in RouterOS)
worst case scenario, flow will get this amount of traffic no
matter what (assuming we can actually send so much
data)
• MIR (Maximal Information Rate) – (max-limit in
RouterOS) best case scenario, rate that flow can get up to,
if there queue's parent has spare bandwidth
• At first HTB will try to satisfy every child queue’s limit-at-
only then it will try to reach max-limit
Dual Limitation
• Maximal rate of the parent should be equal or bigger than
sum of committed rates of the children
• MIR (parent) >= CIR(child1) + ... + CIR(childN)
• Maximal rate of any child should be less or equal to
maximal rate of the parent.
• MIR (parent) ≥ MIR(child1) & MIR (parent) ≥ MIR(child2) & ... & MIR
(parent) ≥ MIR(childN)
Traffic Fundamentals
• Router Inbound traffic - traffic that is received by the router from
any side. Any frames serialised by someone else on the wire and
travelling towards the router.
• Router Outbound traffic - traffic that goes out of a router's
interface, towards the world or towards our clients. This is where
we set up limits and manage the bandwidth.
• RuterOS HTB allows us to work with the Outgoing traffic - the
traffic that is leaving the router via any interface.
QOS Packet Flow
QOS Packet flow V5
Packet Flow V5
Change in V6
•/queue tree entries with parent=global are performed separately from /queue simple and
before /queue simple;
Simple Queue
Simple Queue
• Fast and easy way to control bandwidth
• No need to mark can identify traffic based on dst-address,
interface, etc...
• Number of simple queue is not relevant anymore
• We can have thousands of them and we can easily create
them either dynamically or by scripts.
• Top level simple queues are now balanced between CPU
cores (32 queues 9x faster than 1 queue on CCR1036)
What new in simple queue ROSv6
• Completely new algorithm, build in kernel, faster.
• Better simple queues selection algorithm (hashing);
• “target-addresses” and “interface” parameters are joined
into one “target” parameter, and supports multiple
interfaces match for one queue
• “dst-address” parameter is changed to “dst” parameter
and now supports destination interface matching
• Separate “priority” parameter for download, upload and
total
Simple Queue ROSv5
Simple Queue ROSv6
Simple way to add simple queue
In menu Queue Simple
Laptop IP address
Simple Queue – Winbox view
Simple Queue – Script view
/queue simple add target=172.30.10.10 name=172.30.10.10 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.11 name=172.30.10.11 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.12 name=172.30.10.12 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.13 name=172.30.10.13 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.14 name=172.30.10.14 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.15 name=172.30.10.15 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.16 name=172.30.10.16 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.17 name=172.30.10.17 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.18 name=172.30.10.18 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.19 name=172.30.10.19 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.20 name=172.30.10.20 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.21 name=172.30.10.21 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.22 name=172.30.10.22 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.23 name=172.30.10.23 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.24 name=172.30.10.24 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.25 name=172.30.10.25 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.26 name=172.30.10.26 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.27 name=172.30.10.27 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.28 name=172.30.10.28 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.29 name=172.30.10.29 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
/queue simple add target=172.30.10.30 name=172.30.10.30 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
Queue Tree
Queue Tree
• Tree queue is one directional only and can be placed in
any of the available HTBs
• Queue Tree queues don't have any order – all traffic is
processed simultaneously
• All child queues must have packet marks
• we don't need separate marks per outgoing interface.
• The parent queue is only used to set the max-limit and to
group the leaf queues
Queue Tree – Winbox view
Queue Tree Export Script
/queue tree
add max-limit=2048k name=GLOBAL-QUEUE parent=global queue=default
add limit-at=1024k max-limit=2048k name=VIDEO packet-mark=VI parent=GLOBAL-QUEUE priority=3 queue=default
add limit-at=512k max-limit=2048k name=VOICE packet-mark=VO parent=GLOBAL-QUEUE priority=1 queue=default
add limit-at=256k max-limit=2048k name=MAIL packet-mark=MAIL parent=GLOBAL-QUEUE priority=2 queue=default
add limit-at=256k max-limit=2048k name=BEST-EFFORT packet-mark=BE parent=GLOBAL-QUEUE priority=3
queue=default
Summary
• Service type marking
• Service type queuing
• User limiting queuing
Reference
• MikroTik Wiki
• Qos Best Practice and RouterOS v6
presentation by Janis Megis
• QoS in RouterOS
presentation by Alfredo Giordano
E-Mail: t.sovandara@maxbit.com.kh
Website: maxbit.com.kh
Skype: sovandara-te
Phone: 077600905
Contact
Q & A
Thanks you

More Related Content

PDF
Queue Type on Mikrotik
PDF
Python Network Programming For Network Engineers
PDF
Soal Modul C Cisco Packet Tracer Challenge - IT Networking Support LKS NTB 2017
PDF
Studi Kasus Konfigurasi RIP dan Cisco Access Control List (ACL)
PDF
Cisco Catalyst 2960-X Series Switching Architecture
PDF
La sécurité du Cloud Computing
PPTX
Materi protokol jaringan
PDF
Building DataCenter networks with VXLAN BGP-EVPN
Queue Type on Mikrotik
Python Network Programming For Network Engineers
Soal Modul C Cisco Packet Tracer Challenge - IT Networking Support LKS NTB 2017
Studi Kasus Konfigurasi RIP dan Cisco Access Control List (ACL)
Cisco Catalyst 2960-X Series Switching Architecture
La sécurité du Cloud Computing
Materi protokol jaringan
Building DataCenter networks with VXLAN BGP-EVPN

What's hot (20)

PDF
CyberOps Associate Modul 25 Network Security Data
PDF
2.5.1.2 packet tracer configure cisco routers for syslog, ntp, and ssh oper...
PDF
SMK.F.TKJ.DIS.1 Alur Tujuan Pembelajaran.pdf
PPTX
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 1
PPTX
Docker Kubernetes Istio
PDF
Configuration IPTables On CentOS 8
PDF
S04 企業内システムと Microsoft Azure の VPN 接続、ファイルサーバー連携
PDF
001 introduction Fortigate Administration Introduction
PDF
Solusi UTS Genap Praktikum Sistem Keamanan Jaringan - STMIK Bumigora
PPTX
Tugas Pengantar Komputasi Modern
PDF
Routing and switching essentials companion guide
PDF
Déploiement d'une infrastructure à  clé publique enjeux et conformité 1.2
PPTX
Cours 70 410-1
PDF
PNETLab.pdf
PPT
Vpn presentation
PDF
Protocoles SSL/TLS
PDF
Pembahasan Cisco Packet Tracer Challenge LKS SMK Provinsi NTB 2016
PDF
BGP filter with mikrotik
PDF
Try new transport protocol SRT (ver. 2)
CyberOps Associate Modul 25 Network Security Data
2.5.1.2 packet tracer configure cisco routers for syslog, ntp, and ssh oper...
SMK.F.TKJ.DIS.1 Alur Tujuan Pembelajaran.pdf
CCNA 1 Routing and Switching v5.0 Chapter 1
Docker Kubernetes Istio
Configuration IPTables On CentOS 8
S04 企業内システムと Microsoft Azure の VPN 接続、ファイルサーバー連携
001 introduction Fortigate Administration Introduction
Solusi UTS Genap Praktikum Sistem Keamanan Jaringan - STMIK Bumigora
Tugas Pengantar Komputasi Modern
Routing and switching essentials companion guide
Déploiement d'une infrastructure à  clé publique enjeux et conformité 1.2
Cours 70 410-1
PNETLab.pdf
Vpn presentation
Protocoles SSL/TLS
Pembahasan Cisco Packet Tracer Challenge LKS SMK Provinsi NTB 2016
BGP filter with mikrotik
Try new transport protocol SRT (ver. 2)
Ad

Similar to Mum bandwidth management and qos (20)

PDF
Lets talk about QoS by Megis.pdf
PDF
Mikrotik Traffic Control with HTB by Pennytone
PDF
Qo s of service with winbox
PPTX
MTCNA Show.pptx
PDF
ROUTERCONFIGURATION BOARD................
PDF
mikrotik router two wan load-balancing.pdf
PDF
Computer network (18)
PDF
infiniband.pdf
PPTX
Lec 2.pptx
PPT
Dynamic Routing RIP
PPT
Dynamic Routing RIP
PDF
Mikrotik Hotspot With Queue Tree BW Management
PDF
CN Module 5 part 2 2022.pdf
PPTX
Qo s oriented distributed routing protocols : anna university 2nd review ppt
PPT
routing2.ppt about the routing protocol for students
PPTX
ACN UNIT-2 INTSERV model for Internet.pptx
PPT
chap2.ppt
PPTX
UDEC_Redes_Comp_diapo_U1_p2_rev1_2024.pptx
PPTX
Lecture 22 What inside the Router.pptx
PPT
QoSintro.PPT
Lets talk about QoS by Megis.pdf
Mikrotik Traffic Control with HTB by Pennytone
Qo s of service with winbox
MTCNA Show.pptx
ROUTERCONFIGURATION BOARD................
mikrotik router two wan load-balancing.pdf
Computer network (18)
infiniband.pdf
Lec 2.pptx
Dynamic Routing RIP
Dynamic Routing RIP
Mikrotik Hotspot With Queue Tree BW Management
CN Module 5 part 2 2022.pdf
Qo s oriented distributed routing protocols : anna university 2nd review ppt
routing2.ppt about the routing protocol for students
ACN UNIT-2 INTSERV model for Internet.pptx
chap2.ppt
UDEC_Redes_Comp_diapo_U1_p2_rev1_2024.pptx
Lecture 22 What inside the Router.pptx
QoSintro.PPT
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
project resource management chapter-09.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
August Patch Tuesday
PDF
Architecture types and enterprise applications.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
NewMind AI Weekly Chronicles – August ’25 Week III
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Hybrid model detection and classification of lung cancer
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Zenith AI: Advanced Artificial Intelligence
A contest of sentiment analysis: k-nearest neighbor versus neural network
project resource management chapter-09.pdf
cloud_computing_Infrastucture_as_cloud_p
August Patch Tuesday
Architecture types and enterprise applications.pdf
Web App vs Mobile App What Should You Build First.pdf
TLE Review Electricity (Electricity).pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Getting Started with Data Integration: FME Form 101
observCloud-Native Containerability and monitoring.pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
A comparative study of natural language inference in Swahili using monolingua...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...

Mum bandwidth management and qos

  • 1. PRESENTED BY : TEAV SOVANDARA (Dara) Bandwidth Management and QOS MUM April 2015 – Phnom Penh
  • 2. • Network Engineer at MaxBIT ISP • Working with MikroTik for few years with both core and edge network • Certifications • MikroTik: • Academy Trainer (ACTR0207) • MTCNA, MTCRE, MTCTCE, MTCINE • Cisco: CCNA, CCNP • Juniper: JNCIA-Junos ABOUT ME
  • 3. Objective •Mangle •HTB (Hierarchical Token Bucket) •QOS Packet Flow •Simple Queue •Queue Tree
  • 5. What is Mangle? • The mangle facility allows to mark IP packets with special marks. • These marks are used by other router facilities like routing and bandwidth management to identified the packets. • Additionally, the mangle facility is used to modify some fields in the IP header, like TOS (DSCP) and TTL fields
  • 6. Mangle Structure • Mangle rules are organised in chains • There are five built in chains: • Prerouting • Postrouting • Input • Output • Forward • New user-defined chains can be added, as necessary.
  • 7. Mangle – Winbox view Mark traffic by traffic type go to IP > firewall > mangle
  • 8. Mangle – Script view /ip firewall mangle add action=jump chain=forward connection-mark=no-mark jump-target=MARK-CONN add action=jump chain=forward connection-mark=!no-mark jump-target=MARK-PACKET add action=mark-connection chain=MARK-CONN comment=rest connection-mark= no-mark new-connection-mark=ALL- CONN add action=mark-connection chain=MARK-CONN comment=voip dst-port= 5060-5061,16000-17000,40012 new- connection-mark=VOIP-CONN protocol=udp add action=mark-connection chain=MARK-CONN comment=video dst-address-list= AS15169 new-connection- mark=VIDEO-CONN protocol=tcp add action=mark-connection chain=MARK-CONN comment=Mail dst-port=25,110,143 new-connection-mark=MAIL- CONN protocol=tcp add action=return chain=conmark add action=mark-packet chain=MARK-PACKET comment=VO connection-mark=VOIP-CONN new-packet-mark=VO add action=mark-packet chain=MARK-PACKET comment=VI connection-mark= VIDEO-CONN new-packet-mark=VI add action=mark-packet chain=MARK-PACKET comment=BE connection-mark=ALL-CONN new-packet-mark=BE add action=mark-packet chain=MARK-PACKET comment=MAIL connection-mark= MAIL-CONN new-packet-mark=MAIL
  • 10. HTB (Hierarchical Token Bucket) • All quality of service implementation in RouterOS is based on Hierarchical Token Bucket • HTB allows to create hierarchical queue structure and determine relations between parent and child queues and relation between child queues • RouterOS v6.x supports 1 virtual HTB (global) while RouterOS v5.x support 3 virtual HTB(global-in, global- total, global-out)
  • 11. HTB Structure • As soon as queue have at least one child it become parent queue • All child queue (don’t matter how many levels of parents they have) are on the same bottom level of HTB • Child queues make actual traffic consumption, parent queues are responsible only for traffic distribution • Child queues will get limit-at first and then rest of traffic will distributed by parents
  • 12. HTB Features - Structure
  • 14. Dual Limitation HTB has two rate limit: • CIR (Committed Information Rate) – (limit-at in RouterOS) worst case scenario, flow will get this amount of traffic no matter what (assuming we can actually send so much data) • MIR (Maximal Information Rate) – (max-limit in RouterOS) best case scenario, rate that flow can get up to, if there queue's parent has spare bandwidth • At first HTB will try to satisfy every child queue’s limit-at- only then it will try to reach max-limit
  • 15. Dual Limitation • Maximal rate of the parent should be equal or bigger than sum of committed rates of the children • MIR (parent) >= CIR(child1) + ... + CIR(childN) • Maximal rate of any child should be less or equal to maximal rate of the parent. • MIR (parent) ≥ MIR(child1) & MIR (parent) ≥ MIR(child2) & ... & MIR (parent) ≥ MIR(childN)
  • 16. Traffic Fundamentals • Router Inbound traffic - traffic that is received by the router from any side. Any frames serialised by someone else on the wire and travelling towards the router. • Router Outbound traffic - traffic that goes out of a router's interface, towards the world or towards our clients. This is where we set up limits and manage the bandwidth. • RuterOS HTB allows us to work with the Outgoing traffic - the traffic that is leaving the router via any interface.
  • 20. Change in V6 •/queue tree entries with parent=global are performed separately from /queue simple and before /queue simple;
  • 22. Simple Queue • Fast and easy way to control bandwidth • No need to mark can identify traffic based on dst-address, interface, etc... • Number of simple queue is not relevant anymore • We can have thousands of them and we can easily create them either dynamically or by scripts. • Top level simple queues are now balanced between CPU cores (32 queues 9x faster than 1 queue on CCR1036)
  • 23. What new in simple queue ROSv6 • Completely new algorithm, build in kernel, faster. • Better simple queues selection algorithm (hashing); • “target-addresses” and “interface” parameters are joined into one “target” parameter, and supports multiple interfaces match for one queue • “dst-address” parameter is changed to “dst” parameter and now supports destination interface matching • Separate “priority” parameter for download, upload and total
  • 26. Simple way to add simple queue In menu Queue Simple Laptop IP address
  • 27. Simple Queue – Winbox view
  • 28. Simple Queue – Script view /queue simple add target=172.30.10.10 name=172.30.10.10 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.11 name=172.30.10.11 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.12 name=172.30.10.12 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.13 name=172.30.10.13 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.14 name=172.30.10.14 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.15 name=172.30.10.15 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.16 name=172.30.10.16 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.17 name=172.30.10.17 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.18 name=172.30.10.18 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.19 name=172.30.10.19 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.20 name=172.30.10.20 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.21 name=172.30.10.21 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.22 name=172.30.10.22 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.23 name=172.30.10.23 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.24 name=172.30.10.24 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.25 name=172.30.10.25 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.26 name=172.30.10.26 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.27 name=172.30.10.27 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.28 name=172.30.10.28 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.29 name=172.30.10.29 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k /queue simple add target=172.30.10.30 name=172.30.10.30 max-limit=1024k/1024k burst-limit=2048k/2048k burst-time=8/8 burst-threshold=1024k/1024k
  • 30. Queue Tree • Tree queue is one directional only and can be placed in any of the available HTBs • Queue Tree queues don't have any order – all traffic is processed simultaneously • All child queues must have packet marks • we don't need separate marks per outgoing interface. • The parent queue is only used to set the max-limit and to group the leaf queues
  • 31. Queue Tree – Winbox view
  • 32. Queue Tree Export Script /queue tree add max-limit=2048k name=GLOBAL-QUEUE parent=global queue=default add limit-at=1024k max-limit=2048k name=VIDEO packet-mark=VI parent=GLOBAL-QUEUE priority=3 queue=default add limit-at=512k max-limit=2048k name=VOICE packet-mark=VO parent=GLOBAL-QUEUE priority=1 queue=default add limit-at=256k max-limit=2048k name=MAIL packet-mark=MAIL parent=GLOBAL-QUEUE priority=2 queue=default add limit-at=256k max-limit=2048k name=BEST-EFFORT packet-mark=BE parent=GLOBAL-QUEUE priority=3 queue=default
  • 33. Summary • Service type marking • Service type queuing • User limiting queuing
  • 34. Reference • MikroTik Wiki • Qos Best Practice and RouterOS v6 presentation by Janis Megis • QoS in RouterOS presentation by Alfredo Giordano
  • 36. Q & A