ABDURROZAK
HOME ABOUT ME MICROSITE KONTAK PERSEMBAHAN HELP
ABDURROZAK.MY.ID // MIKROTIK TUTORIAL

SIMPLE QUEUE

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.

SPESIFIKASI HARDWARE RB941-2nD

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.
TOPOLOGI SIMPLE QUEUE SCHEMA
// SKEMA JARINGAN DENGAN BANDWIDTH MANAGEMENT // [ INTERNET / ISP ] -- 50 Mbps | v +---------------------------+ | MikroTik RB941 | | SIMPLE QUEUE SERVER | | | | ether1 = WAN | | | | bridge1 (LAN) | | |- ether2 | | |- ether3 | | |- ether4 | | |- wlan1 | | | | [ SIMPLE QUEUE ] | | |- total-all | 50M/50M (total BW) | |- pc-kantor | 10M/20M priority 1 | |- pc-kasir | 5M/10M priority 3 | |- wifi-tamu | 2M/5M priority 8 | |- iot-devices | 1M/2M priority 8 +---------------------------+ | | | v v v [PC KANTOR] [PC KASIR] [HP TAMU] 10Mbps/20Mbps 5Mbps/10Mbps 2Mbps/5Mbps Priority 1 Priority 3 Priority 8
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.

INTERNET 50 Mbps TOTAL MIKROTIK RB941 SIMPLE QUEUE - BANDWIDTH MANAGEMENT WAN ether1 QUEUE ENGINE e2 10M/20M e3 5M/10M e4 2M/5M WIFI 1M/2M PCQ / PRIORITY / BURST / TIME-BASED FORMAT: UPLOAD / DOWNLOAD (5M/10M) PC KANTOR 10.10.10.101 10M/20M | P1 PC KASIR 10.10.10.102 5M/10M | P3 HP TAMU 10.10.10.103 2M/5M | P8 IoT DEVICE 10.10.10.104 1M/2M | P8 // BANDWIDTH QUEUE FLOW // P1=FAST (10M/20M) | P3=MEDIUM (5M/10M) | P8=SLOW (1-2M) | TOTAL: 50Mbps
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-configuration Do 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
METODEALATALAMAT
WinBoxAplikasi WindowsMAC Address / 192.168.88.1
WebFigBrowserhttp://192.168.88.1
SSHTerminal / PuTTYssh admin@192.168.88.1
MAC TelnetWinBoxMAC Address
NEIGHBORS
# di WinBox, klik tab "Neighbors" MAC ADDRESS IDENTITY IP VERSION D4: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
BRIDGE SETUP
BRIDGE
[admin@QUEUE-GATEWAY] > /interface bridge port print # INTERFACE BRIDGE HW PVID 0 ether2 bridge1 yes 1 1 ether3 bridge1 yes 1 2 ether4 bridge1 yes 1 3 wlan1 bridge1 yes 1 [admin@QUEUE-GATEWAY] > /interface bridge set bridge1 protocol-mode=rstp fast-forward=yes
IP ADDRESS STEP 04

Setup IP gateway untuk LAN.

GANTI IP GATEWAY
IP ADDRESS
[admin@QUEUE-GATEWAY] > /ip address print # ADDRESS NETWORK INTERFACE 0 192.168.88.1/24 192.168.88.0 bridge # ganti IP gateway [admin@QUEUE-GATEWAY] > /ip address set [find interface=bridge] address="10.10.10.1/24" # skema IP: # Gateway : 10.10.10.1/24 # DHCP Pool : 10.10.10.100 - 10.10.10.200
DHCP CLIENT (WAN) STEP 05

Setup DHCP client di WAN (ether1) agar router dapat IP otomatis dari ISP.

SETUP DHCP CLIENT
DHCP CLIENT
[admin@QUEUE-GATEWAY] > /ip dhcp-client add interface=ether1 disabled=no use-peer-dns=yes use-peer-ntp=yes add-default-route=yes [admin@QUEUE-GATEWAY] > /ip dhcp-client print # INTERFACE STATUS ADDRESS 0 ether1 bound 10.10.10.5/24
DHCP SERVER (LAN) STEP 06

DHCP Server memberikan IP otomatis ke semua client.

SETUP DHCP SERVER
DHCP SERVER
[admin@QUEUE-GATEWAY] > /ip pool add name="pool-lan" ranges=10.10.10.100-10.10.10.200 [admin@QUEUE-GATEWAY] > /ip dhcp-server add name="dhcp-lan" interface=bridge address-pool="pool-lan" lease-time=10m authoritative=yes [admin@QUEUE-GATEWAY] > /ip dhcp-server network add address=10.10.10.0/24 gateway=10.10.10.1 dns-server=10.10.10.1,8.8.8.8 domain="rumah.local" [admin@QUEUE-GATEWAY] > /ip dhcp-server lease print
NAT MASQUERADE STEP 07

NAT masquerade WAJIB agar client bisa akses internet.

SETUP MASQUERADE
NAT
[admin@QUEUE-GATEWAY] > /ip firewall nat add chain=srcnat action=masquerade out-interface=ether1 [admin@QUEUE-GATEWAY] > /ip firewall nat print
DNS FORWARDING STEP 08

Setup DNS agar client bisa resolve domain.

SETUP DNS
DNS
[admin@QUEUE-GATEWAY] > /ip dns set servers=1.1.1.1,8.8.8.8 allow-remote-requests=yes cache-size=2048KiB [admin@QUEUE-GATEWAY] > /ping google.com count=4
NTP & TIMEZONE STEP 09

Waktu akurat penting untuk time-based queue.

SETUP NTP
NTP
[admin@QUEUE-GATEWAY] > /system ntp client set enabled=yes mode=unicast primary-ntp=132.163.96.1 secondary-ntp=8.8.8.8 [admin@QUEUE-GATEWAY] > /system clock set time-zone-name="Asia/Jakarta" [admin@QUEUE-GATEWAY] > /system clock print
FIREWALL DASAR STEP 10

Firewall dasar untuk melindungi router.

FIREWALL FILTER
FIREWALL
[admin@QUEUE-GATEWAY] > /ip firewall filter add chain=input connection-state=established,related action=accept in-interface=ether1 [admin@QUEUE-GATEWAY] > /ip firewall filter add chain=input connection-state=invalid action=drop in-interface=ether1 [admin@QUEUE-GATEWAY] > /ip firewall filter add chain=input action=drop in-interface=ether1 [admin@QUEUE-GATEWAY] > /ip firewall filter add chain=forward connection-state=established,related action=accept [admin@QUEUE-GATEWAY] > /ip firewall filter add chain=forward connection-state=invalid action=drop
WIRELESS SETUP STEP 11

Setup WiFi untuk client wireless.

SETUP WIRELESS
WIRELESS
[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
FEATURESIMPLE QUEUEQUEUE TREE
KompleksitasMudahKompleks
TargetIP / Subnet / InterfacePacket mark (dari mangle)
HierarkiFlat (tidak ada parent)Tree (parent-child)
Kebutuhan MangleTIDAKWAJIB
Kasus PenggunaanLimit per user/IP/subnetQoS complex, PCQ, marking
PerformaLebih ringanLebih berat
Cocok untukRumah, kantor kecilISP, 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.

QUEUE TOTAL (SEMUA CLIENT)
TOTAL QUEUE
# limit total bandwidth semua client # pastikan tidak melebihi bandwidth ISP [admin@QUEUE-GATEWAY] > /queue simple add name="total-all" target="10.10.10.0/24" max-limit="45M/48M" queue="pcq-upload-default/pcq-download-default" priority="5/5" comment="Total bandwidth semua client" # target = subnet semua client # max-limit = batas maksimal bandwidth # queue = algoritma queue (pcq = fair sharing) # priority = prioritas (5 = medium) # cek queue [admin@QUEUE-GATEWAY] > /queue simple print # NAME TARGET MAX-LIMIT PRIORITY 0 total-all 10.10.10.0/24 48M/45M 5/5
QUEUE PER DEVICE
PER DEVICE
# queue untuk PC Kantor (priority tinggi) [admin@QUEUE-GATEWAY] > /queue simple add name="pc-kantor" target="10.10.10.101/32" max-limit="10M/20M" priority="1/1" comment="PC Kantor - Priority High" # queue untuk PC Kasir (priority medium) [admin@QUEUE-GATEWAY] > /queue simple add name="pc-kasir" target="10.10.10.102/32" max-limit="5M/10M" priority="3/3" comment="PC Kasir - Priority Medium" # queue untuk HP Tamu (priority rendah) [admin@QUEUE-GATEWAY] > /queue simple add name="hp-tamu" target="10.10.10.103/32" max-limit="2M/5M" priority="8/8" comment="HP Tamu - Priority Low" # queue untuk IoT devices (priority sangat rendah) [admin@QUEUE-GATEWAY] > /queue simple add name="iot-devices" target="10.10.10.104/32" max-limit="1M/2M" priority="8/8" comment="IoT - Priority Very Low" # cek semua queue [admin@QUEUE-GATEWAY] > /queue simple print # NAME TARGET MAX-LIMIT PRIORITY 0 total-all 10.10.10.0/24 48M/45M 5/5 1 pc-kantor 10.10.10.101 20M/10M 1/1 2 pc-kasir 10.10.10.102 10M/5M 3/3 3 hp-tamu 10.10.10.103 5M/2M 8/8 4 iot-devices 10.10.10.104 2M/1M 8/8
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
PARAMETERFUNGSICONTOH
nameNama queue (identifier)"pc-kantor"
targetIP / subnet / interface yang di-limit"10.10.10.101/32"
target-uploadTarget khusus upload (opsional)"10.10.10.0/24"
target-downloadTarget khusus download (opsional)"10.10.10.0/24"
max-limitBatas maksimal bandwidth (up/down)"5M/10M"
limit-atBandwidth dijamin (guaranteed)"2M/5M"
priorityPrioritas saat bandwidth penuh (1-8)"3/3"
queueAlgoritma queue"pcq-upload-default/pcq-download-default"
burst-max-limitBurst bandwidth maksimal"10M/20M"
burst-thresholdThreshold untuk aktifkan burst"5M/10M"
burst-timeDurasi burst"10s/10s"
bucket-sizeUkuran bucket untuk burst"0.1/0.1"
packet-markMark packet dari mangle (untuk advanced)"pkt-youtube"
commentKeterangan"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)
PRIORITYLEVELKEGUNAAN
1TERTINGGIVoIP, video call, gaming
2-3TINGGIBrowsing, email, aplikasi bisnis
4-5SEDANGStreaming, download normal
6-7RENDAHSocial media, update otomatis
8TERENDAHTorrent, 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.

TIPE TARGET
TIPEFORMATCONTOHKEGUNAAN
Single IPx.x.x.x/3210.10.10.101/32Limit 1 device spesifik
Subnetx.x.x.x/2410.10.10.0/24Limit semua device di subnet
Rangex.x.x.x-x.x.x.x10.10.10.100-10.10.10.150Limit range IP tertentu
Interfaceinterface-nameether2Limit semua traffic di interface
Address Listlist-name"staff-list"Limit berdasarkan address list
CONTOH TARGET
TARGET EXAMPLES
# 1. Single IP (1 device) [admin@QUEUE-GATEWAY] > /queue simple add name="pc-bos" target="10.10.10.101/32" max-limit="10M/20M" # 2. Subnet (semua device di subnet) [admin@QUEUE-GATEWAY] > /queue simple add name="all-staff" target="10.10.10.0/24" max-limit="30M/40M" # 3. Range IP [admin@QUEUE-GATEWAY] > /queue simple add name="staff-range" target="10.10.10.100-10.10.10.150" max-limit="20M/30M" # 4. Interface [admin@QUEUE-GATEWAY] > /queue simple add name="ether2-all" target="ether2" max-limit="20M/30M" # 5. Address List (advanced) [admin@QUEUE-GATEWAY] > /ip firewall address-list add list="vip-users" address="10.10.10.101" [admin@QUEUE-GATEWAY] > /ip firewall address-list add list="vip-users" address="10.10.10.102" [admin@QUEUE-GATEWAY] > /queue simple add name="vip-queue" target="vip-users" max-limit="15M/25M"
TARGET UPLOAD vs DOWNLOAD
DIRECTION
# 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)
REKOMENDASI LIMIT
AKTIVITASMINIMUMRECOMMENDEDKETERANGAN
Browsing512k/1M2M/5MCukup untuk browsing biasa
Email256k/512k1M/2MEmail + attachment kecil
Social Media1M/2M3M/5MInstagram, Facebook, TikTok
YouTube SD1M/3M3M/5MVideo 480p
YouTube HD3M/5M5M/10MVideo 720p-1080p
Video Call1M/2M2M/5MZoom, WhatsApp Video
Streaming Music256k/512k512k/1MSpotify, YouTube Music
Gaming512k/1M2M/5MButuh latency rendah
Download File2M/5M5M/10MTergantung ukuran file
VoIP128k/256k256k/512kButuh bandwidth stabil
SKENARIO REAL
SCENARIOS
# SKENARIO 1: RUMAH (ISP 30Mbps, 5 device) [admin@QUEUE-GATEWAY] > /queue simple add name="ayah" target="10.10.10.101/32" max-limit="5M/10M" priority="3/3" [admin@QUEUE-GATEWAY] > /queue simple add name="ibu" target="10.10.10.102/32" max-limit="3M/5M" priority="5/5" [admin@QUEUE-GATEWAY] > /queue simple add name="anak1" target="10.10.10.103/32" max-limit="3M/5M" priority="6/6" [admin@QUEUE-GATEWAY] > /queue simple add name="anak2" target="10.10.10.104/32" max-limit="2M/5M" priority="7/7" [admin@QUEUE-GATEWAY] > /queue simple add name="iot" target="10.10.10.105/32" max-limit="1M/2M" priority="8/8" # SKENARIO 2: KANTOR KECIL (ISP 50Mbps, 10 device) [admin@QUEUE-GATEWAY] > /queue simple add name="boss" target="10.10.10.101/32" max-limit="10M/20M" priority="1/1" [admin@QUEUE-GATEWAY] > /queue simple add name="manager" target="10.10.10.102/32" max-limit="8M/15M" priority="2/2" [admin@QUEUE-GATEWAY] > /queue simple add name="staff-hr" target="10.10.10.103/32" max-limit="5M/10M" priority="3/3" [admin@QUEUE-GATEWAY] > /queue simple add name="staff-finance" target="10.10.10.104/32" max-limit="5M/10M" priority="3/3" [admin@QUEUE-GATEWAY] > /queue simple add name="staff-it" target="10.10.10.105/32" max-limit="5M/10M" priority="3/3" [admin@QUEUE-GATEWAY] > /queue simple add name="staff-umum" target="10.10.10.106-10.10.10.110" max-limit="3M/5M" priority="5/5" [admin@QUEUE-GATEWAY] > /queue simple add name="tamu" target="10.10.10.150-10.10.10.200" max-limit="2M/5M" priority="8/8" # SKENARIO 3: CAFE (ISP 50Mbps, 20 device) [admin@QUEUE-GATEWAY] > /queue simple add name="kasir" target="10.10.10.101/32" max-limit="5M/10M" priority="1/1" [admin@QUEUE-GATEWAY] > /queue simple add name="tamu-all" target="10.10.10.100-10.10.10.200" max-limit="2M/5M" priority="6/6" queue="pcq-upload-default/pcq-download-default"
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.

SETUP PRIORITY
PRIORITY
# format priority: upload/download # contoh: priority=1/1 (upload priority 1, download priority 1) # Priority 1 - VoIP / Video Call [admin@QUEUE-GATEWAY] > /queue simple add name="voip" target="10.10.10.101/32" max-limit="1M/2M" priority="1/1" # Priority 2 - Boss / VIP [admin@QUEUE-GATEWAY] > /queue simple add name="boss" target="10.10.10.102/32" max-limit="10M/20M" priority="2/2" # Priority 3 - Staff penting [admin@QUEUE-GATEWAY] > /queue simple add name="staff-vip" target="10.10.10.103-10.10.10.105" max-limit="5M/10M" priority="3/3" # Priority 5 - Staff biasa [admin@QUEUE-GATEWAY] > /queue simple add name="staff" target="10.10.10.106-10.10.10.110" max-limit="3M/5M" priority="5/5" # Priority 8 - Tamu / Download [admin@QUEUE-GATEWAY] > /queue simple add name="tamu" target="10.10.10.150-10.10.10.200" max-limit="2M/5M" priority="8/8"
BAGAIMANA PRIORITY BEKERJA?
HOW IT WORKS
# 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
PARAMETERFUNGSIREKOMENDASI
burst-max-limitBandwidth maksimal saat burst2x max-limit
burst-thresholdThreshold untuk aktifkan burst80% dari max-limit
burst-timeDurasi burst5-15 detik
bucket-sizeUkuran bucket0.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.
CONTOH BURST
EXAMPLES
# Burst untuk browsing (cepat loading page) [admin@QUEUE-GATEWAY] > /queue simple add name="browsing-burst" target="10.10.10.0/24" max-limit="3M/5M" burst-max-limit="6M/10M" burst-threshold="2M/4M" burst-time="10s/10s" # Burst untuk VIP (lebih agresif) [admin@QUEUE-GATEWAY] > /queue simple add name="vip-burst" target="10.10.10.101/32" max-limit="10M/20M" burst-max-limit="20M/40M" burst-threshold="8M/16M" burst-time="15s/15s" # Burst untuk tamu (konservatif) [admin@QUEUE-GATEWAY] > /queue simple add name="tamu-burst" target="10.10.10.150-10.10.10.200" max-limit="2M/5M" burst-max-limit="3M/8M" burst-threshold="1M/3M" burst-time="5s/5s"
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
CLASSIFIERARTIKEGUNAAN
src-addressPer IP sumberFair sharing per upload client
dst-addressPer IP tujuanFair sharing per download client
src-address:portPer IP + port sumberLebih granular
dst-address:portPer IP + port tujuanLebih granular
src-address,dst-addressPer pair IPFair 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
TRAFFIC MONITOR
TRAFFIC
# traffic monitor real-time per interface [admin@QUEUE-GATEWAY] > /tool traffic-monitor interface=ether1 # torch - lihat traffic per IP [admin@QUEUE-GATEWAY] > /tool torch interface=bridge # SRC-ADDRESS DST-ADDRESS PROTO BYTES 0 10.10.10.101 142.250.x.x tcp 1.2MB 1 10.10.10.102 157.240.x.x tcp 450KB 2 10.10.10.103 31.13.x.x tcp 230KB # graphing (historical) [admin@QUEUE-GATEWAY] > /tool graphing interface add interface=ether1 # akses via http://10.10.10.1/graph/
LOG QUEUE
LOG
# aktifkan logging untuk queue [admin@QUEUE-GATEWAY] > /system logging add topics="queue" action=memory # lihat log [admin@QUEUE-GATEWAY] > /log print where topics="queue" # log akan mencatat: # - queue created/removed # - queue limit reached # - packet dropped
STATISTIK
STATS
# 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.

PWR
ON
Power normal
ACT
BLINK
Ada traffic
ETHER1
LINK
WAN OK
ETHER2-4
LINK
LAN OK
WLAN
BLINK
WiFi aktif
KONDISI LEDARTITINDAKAN
PWR ONPower normalOK
PWR OFFTidak ada powerCek adaptor/kabel
ACT BLINK CEPATTraffic tinggiNormal saat banyak client
ACT OFFTidak ada trafficCek koneksi
WLAN BLINKWiFi ada trafficNormal
WLAN OFFWiFi disabledAktifkan wireless
SIMPLE QUEUE CHEATSHEET QUICK REF
QUEUE COMMANDS
# SIMPLE QUEUE > /queue simple print # list queue > /queue simple print detail # detail > /queue simple add name=X target=X max-limit=X > /queue simple set [find name=X] max-limit=X > /queue simple remove [find name=X] > /queue simple enable [find name=X] > /queue simple disable [find name=X] # PARAMETER # target = IP / subnet / interface # max-limit = upload/download (5M/10M) # priority = 1-8 (1 = highest) # queue = algorithm (pcq, default, etc) # burst-max-limit, burst-threshold, burst-time # PCQ > /queue type print # list queue types > /queue type add name=X kind=pcq pcq-classifier=src-address # MONITORING > /tool traffic-monitor interface=ether1 # real-time > /tool torch interface=bridge # per IP > /tool graphing interface add interface=ether1 > /system resource print # CPU, memory # HOTSPOT QUEUE > /ip hotspot user profile add name=X rate-limit=5M/10M > /ip hotspot active print # active users # TIME-BASED > /queue simple add name=X target=X max-limit=X time="8h-17h" # SCRIPT > /system script add name=X source="..." > /system script run X > /system scheduler add name=X interval=5m on-event=X
ABDURROZAK.MY.ID // JARINGAN SOSIAL

s.id

Link Tree Utama

GitHub

Repositori Kode

Instagram

Galeri Visual

Threads

Diskusi Ringkas

Facebook

Jaringan Sosial

TikTok

Konten Video Pendek

YT Teacher

Edukasi & Tutorial

YT Course

Materi Pembelajaran

YT Studio

Produksi Konten

Hashnode

Artikel Teknis

WhatsApp

Komunikasi Langsung

Email

abdurrozak.skom@gmail.com