RB941 hAP LITE - PANDUAN LENGKAP BANDWIDTH MANAGEMENT
Membangun sistem QoS (Quality of Service) dengan Simple Queue: limit bandwidth per user, per IP, per subnet,
priority queue, burst configuration, PCQ (Per Connection Queue), time-based queue, monitoring traffic, dan troubleshooting.
RB941 cocok untuk Simple Queue skala kecil-menengah. Performa queue tergantung CPU load.
Untuk bandwidth >30Mbps dengan banyak rule, pertimbangkan upgrade hardware.
CPU
AR9344 - 650MHz
RAM
32 MB DDR2
STORAGE
16 MB FLASH
ETHERNET
4x 10/100 Mbps
WIRELESS
2.4GHz b/g/n
MAX BW QUEUE
~30-50 Mbps
MAX QUEUE RULE
~50-100
CLIENT MAX
~20 DEVICE
POWER
5V DC / USB
OS DEFAULT
RouterOS v6 L4
DIMENSI
113 x 89 x 28mm
BERAT
160 gram
CATATAN QUEUE: Simple Queue di RB941 bekerja baik untuk 10-20 client dengan total bandwidth <50Mbps. Untuk hotspot dengan banyak user atau bandwidth >50Mbps, pertimbangkan hAP ac^2 atau CCR series.
PRINSIP: Simple Queue bekerja di layer 3 (IP level). Setiap rule queue membatasi bandwidth berdasarkan target IP/subnet. Format: upload/download (contoh: 5M/10M = upload 5Mbps, download 10Mbps).
VISUALISASI BANDWIDTH QUEUE
LIVE FLOW
Visualisasi bandwidth management: hijau tebal = priority tinggi (PC Kantor),
amber = priority sedang (PC Kasir),
merah tipis = priority rendah (HP Tamu). Packet bergerak dengan kecepatan sesuai limit queue.
Priority 1 (Fast)
Priority 3 (Medium)
Priority 8 (Slow)
Priority 8 (Very Slow)
Upload Packet
Download Packet
PRINSIP QOS: Saat bandwidth penuh, router prioritaskan packet dengan priority rendah (angka kecil). Priority 1 = paling prioritas, Priority 8 = paling rendah. Packet priority tinggi dapat jatah bandwidth dulu.
RESET & AKSES AWAL
STEP 01
Pastikan router dalam kondisi bersih sebelum konfigurasi. Hubungkan PC ke ether2 dengan kabel UTP.
RESET KE FACTORY DEFAULT
RESET
# CARA 1: Tombol fisik# 1. Cabut power router# 2. Tekan tombol RESET dengan pin# 3. Colok power sambil tetap tekan RESET# 4. Tunggu LED berkedip (~5 detik), lepas# 5. Router reboot dengan config default# CARA 2: Via terminal[admin@MikroTik] > /system reset-configurationDo you really want to reset configuration? [y/N]y# CARA 3: Reset tanpa default config[admin@MikroTik] > /system reset-configuration no-defaults=yes skip-backup=yes! WARNING: semua konfigurasi akan terhapus
AKSES ROUTER
METODE
ALAT
ALAMAT
WinBox
Aplikasi Windows
MAC Address / 192.168.88.1
WebFig
Browser
http://192.168.88.1
SSH
Terminal / PuTTY
ssh admin@192.168.88.1
MAC Telnet
WinBox
MAC Address
NEIGHBORS
# di WinBox, klik tab "Neighbors"MAC ADDRESS IDENTITY IP VERSIOND4:01:C3:XX:XX:XX MikroTik 192.168.88.1 6.48.6# klik dua kali -> Connect via MAC (paling aman)# login: admin | password: (kosong)
IDENTITY & USER MANAGEMENT
STEP 02
Beri nama router dan ganti password admin. WAJIB sebelum router terhubung internet.
SET IDENTITY
IDENTITY
[admin@MikroTik] > /system identity set name="QUEUE-GATEWAY"[admin@QUEUE-GATEWAY] > # prompt berubah otomatis
GANTI PASSWORD
USER
[admin@QUEUE-GATEWAY] > /user set admin password="Admin@Queue-2024!"# buat user operator (read-only)[admin@QUEUE-GATEWAY] > /user add name="monitor" password="monitor@2024" group="read"[admin@QUEUE-GATEWAY] > /user print
INTERFACE & BRIDGE
STEP 03
Setup interface: ether1 untuk WAN, ether2-4 dan wlan1 digabung dalam bridge untuk LAN.
CEK INTERFACE
INTERFACE
[admin@QUEUE-GATEWAY] > /interface print # NAME TYPE ACTUAL-MTU 0 R1 ether1 ether 1500 1 R2 ether2 ether 1500 2 R3 ether3 ether 1500 3 R4 ether4 ether 1500 4 R wlan1 wlan 1500 5 R bridge1 bridge 1500
[admin@QUEUE-GATEWAY] > /interface wireless set wlan1 mode=ap-bridge ssid="QUEUE-NET" country=indonesia frequency-mode=regulatory-domain[admin@QUEUE-GATEWAY] > /interface wireless set wlan1 channel=6 band=2ghz-b/g/n[admin@QUEUE-GATEWAY] > /interface wireless security-profiles set [find default=yes] mode=dynamic-keys authentication-types=wpa2-psk wpa2-pre-shared-key="wifi@queue2024!"[admin@QUEUE-GATEWAY] > /interface wireless set wlan1 tx-power-mode=all-rates-fixed tx-power=17
KONSEP SIMPLE QUEUE
CORE
Simple Queue adalah fitur bandwidth management di RouterOS yang bekerja di layer 3 (IP level).
Simple, mudah dikonfigurasi, cocok untuk kebanyakan kasus. Berbeda dengan Queue Tree yang lebih kompleks tapi lebih powerful.
SIMPLE QUEUE vs QUEUE TREE
FEATURE
SIMPLE QUEUE
QUEUE TREE
Kompleksitas
Mudah
Kompleks
Target
IP / Subnet / Interface
Packet mark (dari mangle)
Hierarki
Flat (tidak ada parent)
Tree (parent-child)
Kebutuhan Mangle
TIDAK
WAJIB
Kasus Penggunaan
Limit per user/IP/subnet
QoS complex, PCQ, marking
Performa
Lebih ringan
Lebih berat
Cocok untuk
Rumah, kantor kecil
ISP, kantor besar, hotspot
KAPAN PAKAI SIMPLE QUEUE?
RUMAH / SOHO
Limit bandwidth per device atau per user. Cegah satu user boros bandwidth.
KANTOR KECIL
Beri prioritas untuk departemen penting (HR, Finance). Limit departemen lain.
CAFE / WARUNG
Limit bandwidth tamu agar tidak habis untuk download. Prioritaskan browsing.
HOTSPOT SEDERHANA
Limit bandwidth per voucher. Simple queue bisa di-assign ke hotspot user profile.
FORMAT BANDWIDTH
FORMAT
# format: upload/download# contoh: 5M/10M# upload 5 Mbps, download 10 Mbps# satuan:# k = kilobit per second (Kbps)# M = Megabit per second (Mbps)# G = Gigabit per second (Gbps)# contoh lain:# 512k/1M = upload 512 Kbps, download 1 Mbps# 2M/5M = upload 2 Mbps, download 5 Mbps# 10M/20M = upload 10 Mbps, download 20 Mbps# jika hanya satu nilai:# 5M = upload 5 Mbps, download 5 Mbps (sama)
VISUALISASI BANDWIDTH
PC KANTOR
10M/20M
HIGH
PC KASIR
5M/10M
MED
HP TAMU
2M/5M
LOW
IoT DEVICE
1M/2M
MIN
TIPS: Total bandwidth semua queue tidak boleh melebihi bandwidth ISP. Jika ISP 50Mbps, total limit semua client maksimal 45-48Mbps (sisakan headroom 5-10% untuk overhead).
BASIC SIMPLE QUEUE
CORE
Membuat simple queue pertama: limit total bandwidth semua client, lalu limit per device.
CATATAN: Format max-limit di output ditampilkan download/upload (terbalik dari input). Input: 10M/20M (up/down), Output: 20M/10M (down/up). Ini normal, bukan error.
PARAMETER SIMPLE QUEUE
CORE
Pahami setiap parameter simple queue untuk konfigurasi optimal.
DAFTAR PARAMETER
PARAMETER
FUNGSI
CONTOH
name
Nama queue (identifier)
"pc-kantor"
target
IP / subnet / interface yang di-limit
"10.10.10.101/32"
target-upload
Target khusus upload (opsional)
"10.10.10.0/24"
target-download
Target khusus download (opsional)
"10.10.10.0/24"
max-limit
Batas maksimal bandwidth (up/down)
"5M/10M"
limit-at
Bandwidth dijamin (guaranteed)
"2M/5M"
priority
Prioritas saat bandwidth penuh (1-8)
"3/3"
queue
Algoritma queue
"pcq-upload-default/pcq-download-default"
burst-max-limit
Burst bandwidth maksimal
"10M/20M"
burst-threshold
Threshold untuk aktifkan burst
"5M/10M"
burst-time
Durasi burst
"10s/10s"
bucket-size
Ukuran bucket untuk burst
"0.1/0.1"
packet-mark
Mark packet dari mangle (untuk advanced)
"pkt-youtube"
comment
Keterangan
"PC Kantor"
LIMIT-AT vs MAX-LIMIT
LIMIT-AT
# limit-at = bandwidth DIJAMIN (guaranteed)# max-limit = bandwidth MAKSIMAL (ceiling)# contoh:# limit-at = 2M/5M# max-limit = 10M/20M# arti:# - client dijamin dapat minimal 2M upload / 5M download# - client bisa dapat sampai 10M upload / 20M download# - tapi jika bandwidth penuh, akan dikurangi ke limit-at# gunakan limit-at untuk:# - VoIP, video call (butuh bandwidth stabil)# - Server penting (butuh guaranteed bandwidth)# - Gaming (butuh latency rendah)
PRIORITY (1-8)
PRIORITY
LEVEL
KEGUNAAN
1
TERTINGGI
VoIP, video call, gaming
2-3
TINGGI
Browsing, email, aplikasi bisnis
4-5
SEDANG
Streaming, download normal
6-7
RENDAH
Social media, update otomatis
8
TERENDAH
Torrent, P2P, backup
TIPS: Priority hanya bekerja saat bandwidth penuh. Jika bandwidth masih ada, semua client dapat sesuai max-limit. Priority menentukan siapa dapat jatah dulu saat bandwidth kurang.
TARGET IP & SUBNET
CORE
Target menentukan siapa yang di-limit. Bisa per IP, per subnet, atau per interface.
# default: target = upload + download# bisa pisah untuk upload dan download# contoh: limit upload ketat, download longgar[admin@QUEUE-GATEWAY] > /queue simple add name="asymmetric" target="10.10.10.0/24" target-upload="10.10.10.0/24" target-download="10.10.10.0/24" max-limit="2M/20M"# atau pisah target:# target-upload = siapa yang upload (source)# target-download = siapa yang download (destination)# contoh advanced:[admin@QUEUE-GATEWAY] > /queue simple add name="server-queue" target-upload="10.10.10.50/32" target-download="10.10.10.0/24" max-limit="10M/50M"# upload dari server (10.10.10.50) di-limit 10M# download ke semua client (10.10.10.0/24) di-limit 50M
TIPS: Untuk kebanyakan kasus, pakai target subnet (/24) atau single IP (/32). Range dan address list untuk kasus spesifik. Jangan pakai interface kecuali memang butuh limit per physical port.
LIMIT BANDWIDTH
CORE
Cara menentukan limit bandwidth yang tepat untuk berbagai skenario.
FORMULA LIMIT
FORMULA
# bandwidth ISP = 50 Mbps# jumlah client = 10# formula sederhana:# limit per client = bandwidth ISP / jumlah client# = 50 / 10 = 5 Mbps per client# tapi ini tidak fair, karena:# - tidak semua client aktif bersamaan# - kebutuhan bandwidth berbeda per client# - ada yang butuh lebih (video call), ada yang kurang (browsing)# formula lebih baik:# - tentukan prioritas per client# - beri limit berbeda sesuai kebutuhan# - total limit semua client < bandwidth ISP# contoh:# PC Bos (1 user) : 10M/20M (20%)# PC Staff (5 user) : 5M/10M (50%)# Tamu (4 user) : 2M/5M (20%)# Total : 45M (90% - sisakan 10% headroom)
TIPS: Selalu sisakan headroom 10-20% dari bandwidth ISP. Jika ISP 50Mbps, total limit maksimal 40-45Mbps. Ini untuk hindari congestion dan latency spike.
PRIORITY QUEUE (QOS)
CORE
Priority menentukan siapa dapat jatah bandwidth dulu saat bandwidth penuh. Priority 1 = paling prioritas, 8 = paling rendah.
# SKENARIO: Bandwidth ISP 50Mbps, semua client aktif# Client A: priority 1, max-limit 10M/20M# Client B: priority 3, max-limit 5M/10M# Client C: priority 8, max-limit 2M/5M# Saat bandwidth PENUH (50Mbps terpakai semua):# 1. Router prioritaskan Client A (priority 1)# -> Client A dapat 20Mbps (sesuai max-limit)# 2. Sisa bandwidth: 50 - 20 = 30Mbps# 3. Router prioritaskan Client B (priority 3)# -> Client B dapat 10Mbps (sesuai max-limit)# 4. Sisa bandwidth: 30 - 10 = 20Mbps# 5. Router prioritaskan Client C (priority 8)# -> Client C dapat 5Mbps (sesuai max-limit)# 6. Sisa bandwidth: 20 - 5 = 15Mbps (idle)# Saat bandwidth TIDAK penuh (misal hanya 20Mbps terpakai):# Semua client dapat sesuai max-limit masing-masing# Priority tidak berpengaruh# KESIMPULAN:# Priority hanya bekerja saat bandwidth PENUH# Saat bandwidth cukup, semua client dapat sesuai max-limit
REKOMENDASI PRIORITY
PRIORITY 1-2
VoIP, video call, aplikasi kritis. Butuh latency rendah dan bandwidth stabil.
PRIORITY 3-4
Boss, VIP, manajemen. Butuh bandwidth besar untuk produktivitas.
PRIORITY 5-6
Staff biasa, browsing, email. Kebutuhan normal, tidak kritis.
PRIORITY 7-8
Tamu, download, torrent, backup. Bisa ditunda, tidak prioritas.
JANGAN: set semua priority sama (misal semua priority 5). Jika semua sama, router akan bagi rata (fair sharing). Set priority berbeda sesuai kebutuhan.
BURST CONFIGURATION
ADVANCED
Burst memungkinkan client dapat bandwidth lebih besar dari max-limit untuk waktu singkat.
Berguna untuk loading page, download file kecil, atau aplikasi yang butuh burst.
SETUP BURST
BURST
# contoh: max-limit 5M/10M, burst sampai 10M/20M selama 10 detik[admin@QUEUE-GATEWAY] > /queue simple add name="burst-queue" target="10.10.10.101/32" max-limit="5M/10M" burst-max-limit="10M/20M" burst-threshold="4M/8M" burst-time="10s/10s" bucket-size="0.1/0.1"# PENJELASAN:# max-limit = bandwidth normal (5M/10M)# burst-max-limit = bandwidth saat burst (10M/20M)# burst-threshold = threshold untuk aktifkan burst (4M/8M)# jika traffic < threshold, burst aktif# burst-time = durasi burst (10 detik)# bucket-size = ukuran bucket (0.1 = 10% dari burst-time)# CARA KERJA:# 1. Client mulai download# 2. Traffic < 4M/8M (threshold) -> burst aktif# 3. Client dapat 10M/20M (burst-max-limit)# 4. Setelah 10 detik, burst habis# 5. Client turun ke 5M/10M (max-limit)# 6. Jika traffic turun lagi < threshold, burst aktif lagi
PARAMETER BURST
PARAMETER
FUNGSI
REKOMENDASI
burst-max-limit
Bandwidth maksimal saat burst
2x max-limit
burst-threshold
Threshold untuk aktifkan burst
80% dari max-limit
burst-time
Durasi burst
5-15 detik
bucket-size
Ukuran bucket
0.1 (10% dari burst-time)
KAPAN PAKAI BURST?
LOADING WEB PAGE
Burst membantu loading page cepat. Setelah page loaded, traffic turun ke max-limit.
DOWNLOAD FILE KECIL
File <10MB dapat download cepat dengan burst. File besar tetap di-limit max-limit.
BUFFERING VIDEO
Burst membantu buffering awal video. Setelah buffer penuh, streaming lancar di max-limit.
JANGAN PAKAI UNTUK
Download besar (torrent, backup). Burst akan habis cepat, lalu turun ke max-limit. Tidak efektif.
TIPS: Burst tidak menambah bandwidth total. Jika bandwidth ISP penuh, burst tidak akan aktif. Burst hanya berguna jika ada bandwidth idle yang bisa "dipinjam" sementara.
PCQ (PER CONNECTION QUEUE)
ADVANCED
PCQ adalah algoritma queue yang membagi bandwidth secara fair per connection.
Jika ada 1 user download, dia dapat semua bandwidth. Saat user lain mulai browsing, bandwidth otomatis dibagi rata.
SETUP PCQ
PCQ
# gunakan PCQ di queue[admin@QUEUE-GATEWAY] > /queue simple add name="pcq-all" target="10.10.10.0/24" max-limit="45M/48M" queue="pcq-upload-default/pcq-download-default"# pcq-upload-default = PCQ untuk upload# pcq-download-default = PCQ untuk download# CARA KERJA PCQ:# 1. User A download (1 connection) -> dapat 48Mbps# 2. User B mulai browsing (1 connection) -> bandwidth dibagi 2# -> User A: 24Mbps, User B: 24Mbps# 3. User C mulai streaming (1 connection) -> bandwidth dibagi 3# -> User A: 16Mbps, User B: 16Mbps, User C: 16Mbps# 4. User A selesai -> bandwidth dibagi 2 lagi# -> User B: 24Mbps, User C: 24Mbps# KEUNTUNGAN PCQ:# - Fair sharing otomatis# - Tidak perlu set limit per user# - Bandwidth terpakai maksimal
CUSTOM PCQ
CUSTOM PCQ
# buat custom PCQ type[admin@QUEUE-GATEWAY] > /queue type add name="pcq-custom" kind=pcq pcq-classifier="src-address" pcq-rate="5M" pcq-limit-at="2M" pcq-burst-rate="10M" pcq-total-limit="45M"# parameter:# pcq-classifier = klasifikasi per apa (src-address, dst-address, dst-address:port, dll)# pcq-rate = rate per connection# pcq-limit-at = guaranteed rate per connection# pcq-burst-rate = burst rate per connection# pcq-total-limit = total limit semua connection# gunakan custom PCQ[admin@QUEUE-GATEWAY] > /queue simple add name="custom-pcq" target="10.10.10.0/24" max-limit="45M/48M" queue="pcq-custom/pcq-custom"
PCQ CLASSIFIER
CLASSIFIER
ARTI
KEGUNAAN
src-address
Per IP sumber
Fair sharing per upload client
dst-address
Per IP tujuan
Fair sharing per download client
src-address:port
Per IP + port sumber
Lebih granular
dst-address:port
Per IP + port tujuan
Lebih granular
src-address,dst-address
Per pair IP
Fair sharing per connection pair
KAPAN PAKAI PCQ?
BANYAK USER
Hotspot, kantor dengan banyak user. PCQ otomatis bagi rata tanpa perlu set limit per user.
FAIR SHARING
Ingin semua user dapat jatah adil. Tidak ada yang bisa boros bandwidth.
MAKSIMALKAN BANDWIDTH
Bandwidth ISP selalu terpakai maksimal. Tidak ada bandwidth idle.
JANGAN PAKAI UNTUK
User dengan kebutuhan berbeda (boss vs staff). PCQ bagi rata, tidak ada prioritas.
TIPS: Kombinasi PCQ + Priority = QoS optimal. PCQ untuk fair sharing, Priority untuk prioritas saat bandwidth penuh. Contoh: PCQ untuk semua user, tapi priority 1 untuk VoIP, priority 8 untuk torrent.
PER-IP QUEUE (AUTO GENERATE)
ADVANCED
Untuk hotspot atau network dengan banyak client dynamic, bisa generate queue per IP otomatis menggunakan script.
SCRIPT AUTO GENERATE
SCRIPT
# script untuk generate queue per IP dari DHCP lease[admin@QUEUE-GATEWAY] > /system script add name="gen-queue-per-ip" source=":foreach lease in=[/ip dhcp-server lease find where status=bound] do={ :local ip [/ip dhcp-server lease get $lease address]; :local mac [/ip dhcp-server lease get $lease mac-address]; :local host [/ip dhcp-server lease get $lease host-name]; :if ([/queue simple find where target=$ip] = \"\") do={ /queue simple add name=(\"queue-\" . $ip) target=($ip . \"/32\") max-limit=\"2M/5M\" priority=5/5 comment=(\"Auto: \" . $host) } }"# jalankan script[admin@QUEUE-GATEWAY] > /system script run gen-queue-per-ip# jadwalkan otomatis tiap 5 menit[admin@QUEUE-GATEWAY] > /system scheduler add name="auto-queue" interval=5m on-event="gen-queue-per-ip"# script ini akan:# 1. cek semua DHCP lease yang bound (aktif)# 2. untuk setiap lease, buat queue per IP# 3. limit 2M/5M, priority 5# 4. comment = hostname dari DHCP
CLEANUP QUEUE
CLEANUP
# script untuk hapus queue yang IP-nya tidak ada di DHCP lease[admin@QUEUE-GATEWAY] > /system script add name="cleanup-queue" source=":foreach q in=[/queue simple find where name~\"queue-\"] do={ :local target [/queue simple get $q target]; :local ip [:pick $target 0 [:find $target \"/\"]]; :if ([/ip dhcp-server lease find where address=$ip] = \"\") do={ /queue simple remove $q } }"# jalankan script[admin@QUEUE-GATEWAY] > /system script run cleanup-queue# jadwalkan otomatis tiap 10 menit[admin@QUEUE-GATEWAY] > /system scheduler add name="cleanup-queue" interval=10m on-event="cleanup-queue"
HOTSPOT USER PROFILE
HOTSPOT
# untuk hotspot, bisa set rate-limit di user profile[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="1jam-2Mbps" rate-limit="2M/5M" idle-timeout="10m"[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="3jam-5Mbps" rate-limit="5M/10M" idle-timeout="15m"[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="1hari-10Mbps" rate-limit="10M/20M" idle-timeout="30m"# saat user hotspot login, queue otomatis dibuat# saat logout, queue otomatis dihapus
TIPS: Untuk hotspot, pakai user profile rate-limit. Untuk network biasa dengan DHCP, pakai script auto-generate. Jangan buat queue manual untuk banyak client - akan merepotkan.
TIME-BASED QUEUE
ADVANCED
Aktifkan/nonaktifkan queue berdasarkan waktu. Berguna untuk limit bandwidth di jam tertentu saja.
SETUP TIME-BASED
TIME-BASED
# queue aktif hanya jam kerja (08:00 - 17:00)[admin@QUEUE-GATEWAY] > /queue simple add name="jam-kerja" target="10.10.10.0/24" max-limit="30M/40M" time="8h-17h,sun,mon,tue,wed,thu,fri"# queue aktif hanya malam (19:00 - 23:00)[admin@QUEUE-GATEWAY] > /queue simple add name="malam-hari" target="10.10.10.0/24" max-limit="20M/30M" time="19h-23h"# queue aktif hanya weekend[admin@QUEUE-GATEWAY] > /queue simple add name="weekend" target="10.10.10.0/24" max-limit="40M/45M" time="sat,sun"# format time:# Xh-Yh = jam X sampai jam Y# sun,mon,tue,wed,thu,fri,sat = hari# bisa kombinasi: "8h-17h,mon-fri"
SCHEDULER ALTERNATIF
SCHEDULER
# alternatif: pakai scheduler untuk enable/disable queue# buat queue (disabled by default)[admin@QUEUE-GATEWAY] > /queue simple add name="limit-malam" target="10.10.10.0/24" max-limit="20M/30M" disabled=yes# scheduler untuk enable jam 19:00[admin@QUEUE-GATEWAY] > /system scheduler add name="enable-malam" start-time="19:00:00" interval=1d on-event="/queue simple enable [find name=\"limit-malam\"]"# scheduler untuk disable jam 07:00[admin@QUEUE-GATEWAY] > /system scheduler add name="disable-malam" start-time="07:00:00" interval=1d on-event="/queue simple disable [find name=\"limit-malam\"]"# cara ini lebih fleksibel, bisa jalankan script kompleks
KASUS PENGGUNAAN
JAM KERJA KANTOR
Limit bandwidth ketat jam 08:00-17:00 untuk produktivitas. Longgar di luar jam kerja.
MALAM HARI
Limit download/torrent malam hari untuk hemat bandwidth. Pagi hari bebas.
WEEKEND VS WEEKDAY
Limit berbeda untuk weekday (ketat) dan weekend (longgar). Sesuai pola penggunaan.
JAM SEKOLAH
Limit social media/game jam sekolah. Bebas di luar jam sekolah untuk anak.
TIPS: Pastikan NTP sinkron sebelum pakai time-based queue. Jika waktu router salah, queue tidak aktif sesuai jadwal. Cek dengan /system clock print.
HOTSPOT QUEUE
ADVANCED
Integrasi Simple Queue dengan Hotspot untuk limit bandwidth per user/voucher.
USER PROFILE RATE-LIMIT
HOTSPOT PROFILE
# buat user profile dengan rate-limit[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="1jam-2Mbps" rate-limit="2M/5M" idle-timeout="10m" shared-users=1[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="3jam-5Mbps" rate-limit="5M/10M" idle-timeout="15m" shared-users=1[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="1hari-10Mbps" rate-limit="10M/20M" idle-timeout="30m" shared-users=2[admin@QUEUE-GATEWAY] > /ip hotspot user profile add name="1minggu-20Mbps" rate-limit="20M/40M" idle-timeout="1h" shared-users=3# buat user voucher[admin@QUEUE-GATEWAY] > /ip hotspot user add name="v001" password="abc123" profile="1jam-2Mbps" limit-uptime="1h"[admin@QUEUE-GATEWAY] > /ip hotspot user add name="v002" password="xyz789" profile="3jam-5Mbps" limit-uptime="3h"[admin@QUEUE-GATEWAY] > /ip hotspot user add name="v003" password="daily2024" profile="1hari-10Mbps" limit-uptime="1d"# saat user login hotspot:# - queue otomatis dibuat sesuai profile# - user dapat bandwidth sesuai rate-limit# saat user logout:# - queue otomatis dihapus
CEK HOTSPOT QUEUE
CHECK
# list hotspot user aktif[admin@QUEUE-GATEWAY] > /ip hotspot active print # USER ADDRESS UPTIME 0 v001 10.10.10.101 15m 32s 1 v002 10.10.10.102 2h 15m# list queue aktif (termasuk hotspot queue)[admin@QUEUE-GATEWAY] > /queue simple print # NAME TARGET MAX-LIMIT 0 total-hotspot 10.10.10.0/24 45M/48M 1 hs-v001 10.10.10.101 5M/2M <- auto 2 hs-v002 10.10.10.102 10M/5M <- auto# queue hs-* dibuat otomatis oleh hotspot# tidak perlu buat manual
TOTAL HOTSPOT QUEUE
TOTAL
# buat queue total untuk semua hotspot user[admin@QUEUE-GATEWAY] > /queue simple add name="total-hotspot" target="10.10.10.0/24" max-limit="45M/48M" queue="pcq-upload-default/pcq-download-default"# ini membatasi total bandwidth semua hotspot user# masing-masing user tetap di-limit oleh profile rate-limit
TIPS: Untuk hotspot, pakai user profile rate-limit. Jangan buat queue manual per user - akan merepotkan. Hotspot otomatis handle queue per user.
MONITORING QUEUE
ADVANCED
Monitor penggunaan bandwidth per queue untuk troubleshooting dan optimasi.
CEK QUEUE AKTIF
MONITOR
# list semua queue dengan usage[admin@QUEUE-GATEWAY] > /queue simple print # NAME TARGET MAX-LIMIT RATE 0 total-all 10.10.10.0/24 48M/45M 32M/28M 1 pc-kantor 10.10.10.101 20M/10M 8M/15M 2 pc-kasir 10.10.10.102 10M/5M 3M/7M 3 hp-tamu 10.10.10.103 5M/2M 1M/3M# RATE = bandwidth saat ini (real-time)# jika RATE = MAX-LIMIT, berarti queue penuh# detail per queue[admin@QUEUE-GATEWAY] > /queue simple print detail 0 name="pc-kantor" target=10.10.10.101/32 max-limit=20M/10M rate=8M/15M packets=154320/121000 bytes=1.2GB/450MB dropped=120/50 priority=1/1# packets/bytes = total traffic# dropped = packet yang di-drop karena limit
# statistik semua queue[admin@QUEUE-GATEWAY] > /queue simple print stats# hitung total traffic[admin@QUEUE-GATEWAY] > /queue simple print where target="10.10.10.0/24"# cek queue yang drop packet banyak[admin@QUEUE-GATEWAY] > /queue simple print detail where dropped~"100"# jika banyak drop, pertimbangkan naikkan limit
TIPS: Monitor queue rutin untuk deteksi masalah. Jika RATE = MAX-LIMIT terus, berarti client butuh bandwidth lebih. Jika dropped tinggi, pertimbangkan naikkan limit atau tambah bandwidth ISP.
TROUBLESHOOTING QUEUE
SUPPORT
Masalah umum Simple Queue dan solusinya.
QUEUE TIDAK BEKERJA (CLIENT TETAP DAPAT FULL BANDWIDTH)
KEMUNGKINAN PENYEBAB:
1. Target IP salah - cek dengan /queue simple print
2. Queue disabled - cek status disabled=no
3. Ada queue lain yang override - cek urutan queue
4. Client pakai IP yang tidak di-target
5. NAT masquerade tidak ada - queue butuh NAT SOLUSI: Cek target IP, pastikan queue enabled, cek urutan queue (yang spesifik di atas yang general).
BANDWIDTH LEBIH DARI MAX-LIMIT
KEMUNGKINAN PENYEBAB:
1. Burst aktif - cek burst-max-limit
2. Ada queue lain yang tidak nge-limit
3. Client bypass queue (pakai IP lain)
4. Queue target salah (tidak match client) SOLUSI: Disable burst, cek semua queue, pastikan target match client IP.
CPU LOAD TINGGI (>80%) SAAT QUEUE AKTIF
KEMUNGKINAN PENYEBAB:
1. Terlalu banyak queue rule
2. Bandwidth terlalu tinggi untuk RB941
3. PCQ dengan banyak connection
4. Burst aktif terus-menerus SOLUSI: Kurangi jumlah queue, turunkan bandwidth, disable burst, ganti PCQ ke simple. Jika terus overload, upgrade hardware.
PRIORITY TIDAK BEKERJA (SEMUA CLIENT DAPAT SAMA)
KEMUNGKINAN PENYEBAB:
1. Bandwidth tidak penuh - priority hanya bekerja saat bandwidth penuh
2. Semua queue priority sama
3. Ada queue total yang override SOLUSI: Test saat bandwidth penuh, pastikan priority berbeda, cek queue total tidak override.
HOTSPOT USER TIDAP DAPAT BANDWIDTH SESUAI PROFILE
KEMUNGKINAN PENYEBAB:
1. User profile rate-limit salah - cek /ip hotspot user profile print
2. User tidak pakai profile yang benar
3. Queue total hotspot terlalu kecil
4. Ada queue manual yang override SOLUSI: Cek user profile, pastikan user pakai profile yang benar, cek queue total hotspot.
TIME-BASED QUEUE TIDAK AKTIF SESUAI JADWAL
KEMUNGKINAN PENYEBAB:
1. Waktu router salah - cek /system clock print
2. NTP tidak sinkron - cek /system ntp client print
3. Format time salah - cek syntax
4. Timezone salah - cek /system clock print SOLUSI: Sinkronkan NTP, cek timezone, pastikan format time benar.
DIAGNOSTIC COMMANDS
DIAGNOSTIC
# cek semua queue[admin@QUEUE-GATEWAY] > /queue simple print[admin@QUEUE-GATEWAY] > /queue simple print detail# cek queue aktif (rate > 0)[admin@QUEUE-GATEWAY] > /queue simple print where rate~"[1-9]"# cek queue yang drop packet[admin@QUEUE-GATEWAY] > /queue simple print detail where dropped~"[1-9]"# cek CPU load[admin@QUEUE-GATEWAY] > /system resource print# traffic monitor[admin@QUEUE-GATEWAY] > /tool traffic-monitor interface=ether1# torch per IP[admin@QUEUE-GATEWAY] > /tool torch interface=bridge# test speed[admin@QUEUE-GATEWAY] > /tool bandwidth-test 10.10.10.101 duration=10s direction=both
BEST PRACTICE SIMPLE QUEUE
TIPS
HITUNG BANDWIDTH
Total limit semua queue maksimal 90% bandwidth ISP. Sisakan 10% headroom untuk overhead.
URUTAN QUEUE
Queue spesifik (per IP) di atas queue general (subnet). Queue pertama yang match akan dieksekusi.
PRIORITY BERBEDA
Set priority berbeda sesuai kebutuhan. Jangan semua priority sama - tidak ada efek QoS.
PAKAI PCQ UNTUK FAIR
Untuk banyak user, pakai PCQ agar fair sharing otomatis. Tidak perlu set limit per user.
BURST HEMAT
Pakai burst untuk loading page, bukan download besar. Burst-time 5-15 detik cukup.
TIME-BASED
Limit ketat jam kerja, longgar di luar jam kerja. Sesuai pola penggunaan.
MONITOR RUTIN
Cek queue usage rutin. Jika RATE = MAX-LIMIT terus, naikkan limit atau tambah bandwidth ISP.
BACKUP CONFIG
Backup config sebelum ubah queue. Jika salah, bisa restore dengan cepat.
DOKUMENTASI
Dokumentasikan setiap queue: nama, target, limit, priority, tujuan. Update saat ada perubahan.
UPDATE ROUTEROS
Update ke versi stable terbaru untuk patch keamanan dan perbaikan bug queue.
UPGRADE JIKA PERLU
Jika RB941 overload, upgrade ke hAP ac^2 atau CCR. Jangan paksakan hardware di luar limit.
TEST DULU
Test queue di lab environment sebelum production. Pastikan bekerja sesuai harapan.
INDIKATOR LED
REFERENCE
LED di panel depan RB941 memberi informasi status router.