MUM-‐ID-‐2013 @Yogyakarta, Indonesia
Dynamic QoS RouterOS v6.3
Valens Riyadi (Citraweb)
[email protected]
About Me Valens Riyadi, Citraweb (ID) MikroTik Cer8fied Engineer (MTCNA, MTCWE, MTCRE, MTCTCE, MTCUME, MTCINE)
MikroTik Cer8fied Trainer & Consultant MikroTik Academy Coordinator Citra.net.id WISP CEO Manager for IDNIC (Indonesia Na8onal Internet Registry) IT Expert on Disaster Relief Qos pada RouterOS v6
2
www.mikro8k.co.id
distributor
Qos pada RouterOS v6
3
Qos pada RouterOS v6
4
MikroTik Training Center • The first MikroTik Training Center in Asia Pasific, has taught at least 2200 par8cipants (112 classes). • Mikro8k Academy Coordinator.
Qos pada RouterOS v6
5
konsep dasar QoS Qos pada RouterOS v6
6
Parameter Queue • • • • •
limit-‐at (CIR) max-‐limit (MIR) burst (threshold, limit, 8me) queue type (FIFO, RED, SFQ, PCQ) parent
Qos pada RouterOS v6
7
child B: limit-‐at 4mbps 4mbps max-‐limit=8mbps child A: limit-‐at 6mbps 6mbps max-‐limit=8mbps parent max-‐limit 10mbps Qos pada RouterOS v6
8
child B
child A: limit-‐at 6mbps max-‐limit=8mbps
2mbps
8mbps
parent max-‐limit 10mbps Qos pada RouterOS v6
9
child B : 0mbps child A: limit-‐at 6mbps max-‐limit=8mbps
8mbps
parent max-‐limit 10mbps Qos pada RouterOS v6
10
tanpa parent, kapasitas 10mbps child B
child A
child B child B child B child A child A child A Qos pada RouterOS v6
11
Tanpa parent, maka parameter limit-‐at dan priority akan diabaikan (8dak berfungsi) Qos pada RouterOS v6
12
dynamic queue? Queue yang dibuat secara otoma8s di simple queue, dari fitur lainnya, seper8 DHCP, Hotspot, PPP, dll. Qos pada RouterOS v6
13
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
Dynamic QoS
Dynamic QoS – Mikro8k Indonesia
15
Simple Queue di v6 • Dibuat ulang seluruhnya, build in kernel, lebih cepat • 9 kali lebih cepat, jika memiliki se8daknya 32 parent queue pada router dengan mul8 processor • Dilakukan setelah HTB global pada chain input dan postrou8ng
Dynamic QoS – Mikro8k Indonesia
16
FORWARD MANGLE FILTER FORWARD FORWARD POST ROUTING OUTPUT MANGLE ROUTING POSTROUTING ADJUSMENT SRC-‐NAT FILTER OUTPUT GLOBAL HTB MANGLE QUEUE OUTPUT SIMPLE CONNECTION HTB
Simple Packet Flow v6 ROUTING DECISION INPUT PRE ROUTING
DST-‐NAT MANGLE PREROUTING CONNECTION TRACKING INPUT INTERFACE
MANGLE INPUT
FILTER INPUT
GLOBAL HTB SIMPLE QUEUE LOCAL PROCESS
TRACKING ROUTING DECISION
Qos pada RouterOS v6
INTERFACE OUTPUT INTERFACE
17
Dynamic Queue -‐ DHCP Dimungkinkan untuk menentukan posisi simple queue setelah dibuat secara otoma8s
Dynamic QoS – Mikro8k Indonesia
18
PPP & Queue • Mulai RoS versi 6.3, dimungkinkan untuk menambahkan parameter queue type dan parent queue. • Hal ini memungkinkan HTB (limit-‐at dan priority) bisa berjalan dengan op8mal.
Dynamic QoS – Mikro8k Indonesia
19
PPP & Hotspot & Queue • Mulai RoS versi 6.3, dimungkinkan untuk menambahkan parameter queue type dan parent queue. • Hal ini memungkinkan HTB (limit-‐at dan priority) bisa berjalan dengan op8mal.
Dynamic QoS – Mikro8k Indonesia
20
PPPoE Server
Dynamic QoS – Mikro8k Indonesia
21
PPP Profile -‐ Limits
max-‐limit
burst threshold
burst-‐limit burst-‐8me Dynamic QoS – Mikro8k Indonesia
priority
limit-‐at 22
PPP Profile -‐ Queue
Dynamic QoS – Mikro8k Indonesia
23
PPPoE Client
Dynamic QoS – Mikro8k Indonesia
24
Dynamic Queue from PPPoE
Dynamic QoS – Mikro8k Indonesia
25
Hotspot User Profile
max-‐limit
burst-‐limit
burst threshold
priority
burst-‐8me
limit-‐at
Dynamic QoS – Mikro8k Indonesia
26
Hotspot Client
Dynamic QoS – Mikro8k Indonesia
27
Dynamic Queue
Dynamic QoS – Mikro8k Indonesia
28
HTB with Dynamic Queue Jika kita bisa menentukan limit-‐at, parent, dan priority, maka HTB bisa berjalan dengan baik, dan banyak skenario yang dapat dijalankan.
Dynamic QoS – Mikro8k Indonesia
29
User 1 Configura8on
Dynamic QoS – Mikro8k Indonesia
30
User 2 Configura8on
Dynamic QoS – Mikro8k Indonesia
31
Queue Parent
Dynamic QoS – Mikro8k Indonesia
32
Dynamic QoS – Mikro8k Indonesia
33
Thank you Comments and sugges8ons: Valens Riyadi (
[email protected]) @valensriyadi
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 omen compared to “copylem” free and open source somware licenses. All new works based on yours will carry the same license, so any deriva8ves will also allow commercial use. Qos pada RouterOS v6
34