About Me Valens Riyadi, Citraweb (ID) MikroTik Cer8fied Engineer (MTCNA, MTCWE, MTCRE, MTCTCE, MTCUME, MTCINE)
MikroTik Cer8fied Trainer since 2004 MikroTik Cer8fied Consultant MikroTik Academy Coordinator Citra.net.id WISP CEO Manager for IDNIC (Indonesia Na8onal Internet Registry) IT Expert on Disaster Relief Proud member of “Routed World” community
2 Qos pada RouterOS v6
MikroTik Training Center • The first MikroTik Training Center in Asia Pasific, has at least 2200 par8cipants (112 classes).
• Mikro8k Academy Coordinator.
Qos pada RouterOS v6 5
Queue Parameter
• limit-‐at (CIR) • max-‐limit (MIR) • burst (threshold, limit, 8me) • queue type (FIFO, RED, SFQ, PCQ) • parent
Qos pada RouterOS v6 7
parent max-‐limit 10mbps Qos pada RouterOS v6 8
child B: limit-‐at=6mbps max-‐limit=8mbps
child A: limit-‐at=4mbps max-‐limit=8mbps
6mbps
4mbps
parent max-‐limit 10mbps Qos pada RouterOS v6 9
child B: limit-‐at=6mbps max-‐limit=8mbps
child A
8mbps
2mbps
parent max-‐limit 10mbps Qos pada RouterOS v6 10
child B: limit-‐at=6mbps max-‐limit=8mbps 8mbps
child A : 0mbps
Qos pada RouterOS v6 11
without parent, with 10mbps link
child B
child A
child B
child A child A
child B
child A
child B
Without parent, limit-‐at and priority will be ignored
Qos pada RouterOS v6 12
Check my presenta8on 5 years ago: hbp://mum.mikro8k.com/presenta8ons/US09/Valens-‐MUM2009USA.pdf
dynamic queue?
Qos pada RouterOS v6 13
Queue which is created automa8cally at simple queue from DHCP, Hotspot, PPP,
etc.
rate-‐limit
rx-‐rate[/tx-‐rate] [rx-‐burst-‐rate[/tx-‐burst-‐rate] [rx-‐burst-‐threshold[/tx-‐burst-‐threshold] [rx-‐burst-‐8me[/tx-‐burst-‐8me]]]]. All rates should be numbers with op8onal 'k' (1,000s) or 'M' (1,000,000s). If tx-‐rate is not specified, rx-‐rate is as tx-‐rate too. Same goes for tx-‐burst-‐rate and tx-‐burst-‐threshold and tx-‐burst-‐8me. If both rx-‐burst-‐threshold and tx-‐burst-‐threshold are not specified (but burst-‐rate is specified), rx-‐rate and tx-‐rate is used as burst thresholds. If both rx-‐burst-‐8me and tx-‐burst-‐8me are not specified, 1s is used as default
Dynamic QoS – Mikro8k Indonesia 14
Simple Queue at RoS v6
• Re-‐build from scratch, build in kernel, faster • 9 8mes faster if there are at least 32 parent queues on router with mul8 core processor
• Located ajer HTB global in chain input and postrou8ng
Dynamic QoS – Mikro8k Indonesia 16
Simple Packet Flow v6
Qos pada RouterOS v6 17
INPUT INTERFACE
OUTPUT INTERFACE
MANGLE PREROUTING
MANGLE POSTROUTING
MANGLE FORWARD
MANGLE OUTPUT
MANGLE INPUT
HTB INTERFACE
ROUTING DECISION
ROUTING DECISION
FILTER OUTPUT
LOCAL PROCESS
FILTER FORWARD
ROUTING ADJUSMENT
DST-‐NAT
INPUT
PRE ROUTING
OUTPUT
FORWARD
POST ROUTING
CONNECTION TRACKING
CONNECTION TRACKING
SIMPLE QUEUE
GLOBAL HTB
SRC-‐NAT FILTER INPUT
GLOBAL HTB SIMPLE QUEUE
Dynamic Queue -‐ DHCP
It’s possible to set simple queue posi8on ajer created automa8cally.
Dynamic QoS – Mikro8k Indonesia 18
PPP & Hotspot & Queue
• Since RoS v6.3, we can set queue type and parent queue parameter on dynamic queue from PPP and Hotspot
• This feature makes HTB (limit-‐at and priority) could work op8mal.
Dynamic QoS – Mikro8k Indonesia 19
PPP Profile -‐ Limits
Dynamic QoS – Mikro8k Indonesia 21
max-‐limit
burst-‐limit
burst threshold
burst-‐8me
priority
limit-‐at
Hotspot User Profile
Dynamic QoS – Mikro8k Indonesia 25
max-‐limit
burst-‐limit
burst threshold
burst-‐8me
priority
limit-‐at
HTB with Dynamic Queue
Because we can set limit-‐at, parent, and priority on the queue, HTB will work well, and we can work with a lot of QoS/HTB scenarios.
Dynamic QoS – Mikro8k Indonesia 28
Thank you
Comments and sugges8ons:
Valens Riyadi ([email protected]) @valensriyadi
Qos pada RouterOS v6 33
This license lets others remix, tweak, and build upon your work even for commercial purposes, as long as they credit you and license their new crea8ons under the iden8cal terms. This license is ojen compared to “copylej” free and open source sojware licenses. All new works based on yours will carry the same license, so any deriva8ves will also allow commercial use.
Top Related