Sedikit penambahan mengenai pembahasa manajemen bandwidth sederhana di Mikrotik sebelumnya.
Mari ricek
[admin@kosmo] > queue simple print
Flags: X - disabled, I - invalid, D - dynamic
0 name="global" target="" parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=0/0
max-limit=50M/50M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
1 name="broadband" target=192.168.20.0/24 parent=global packet-marks="" priority=8/8
queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=20M/20M burst-limit=0/0 burst-threshold=0/0
burst-time=0s/0s
[admin@kosmo] >
Priority merujuk pada urutan prioritas dari paket anda, dimana 1 adalah prioritas tertinggi dan 8 adalah terendah.
Opsi ini dapat kosmonuts gunakan apabila ingin membedakan antara paket standart dan paket premium, misalnya.
[admin@kosmo] > queue simple add name=broadband-premium target=192.168.30.0/24 max-limit=20M/20M queue=pcq-upload-default/pc
q-download-default parent=global priority=1/1
[admin@kosmo] > queue simple print
Flags: X - disabled, I - invalid, D - dynamic
0 name="global" target="" parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=0/0
max-limit=50M/50M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
1 name="broadband" target=192.168.20.0/24 parent=global packet-marks="" priority=8/8
queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=20M/20M burst-limit=0/0 burst-threshold=0/0
burst-time=0s/0s
2 name="broadband-premium" target=192.168.30.0/24 parent=global packet-marks="" priority=1/1
queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=20M/20M burst-limit=0/0 burst-threshold=0/0
burst-time=0s/0s
[admin@kosmo] >
Packet-Marks, biasanya digunakan apabila kita ingin menandai paket dengan tujuan tertentu. Misalnya anda tidak menginginkan adanya limitasi bandwidth ke IP tujuan 8.8.8.8, maka anda dapat melakukan packet-mark, untuk selanjutnya dimasukkan kedalam rule simple-queues diatas.
[admin@kosmo] > ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=dns-conn passthrough=yes dst-address=8.8.8.8
[admin@kosmo] > ip firewall mangle add chain=forward action=mark-package new-package-mark=dns passthrough=no connection-mark=dns-conn
[admin@kosmo] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=mark-connection new-connection-mark=dns-conn passthrough=yes dst-address=8.8.8.8 log=no
log-prefix=""
1 chain=forward action=mark-packet new-packet-mark=dns passthrough=no connection-mark=dns-conn log=no log-prefix=""
[admin@kosmo] > queue simple add name=dns target=0.0.0.0/0 parent=global packet-mark=dns priority=1/1
[admin@kosmo] > queue simple move dns 2
[admin@kosmo] > queue simple print
Flags: X - disabled, I - invalid, D - dynamic
0 name="global" target="" parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=0/0
max-limit=50M/50M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
1 name="dns" target="" parent=global packet-marks=dns priority=1/1 queue=default-small/default-small limit-at=0/0
max-limit=0/0 burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
2 name="broadband" target=192.168.20.0/24 parent=global packet-marks="" priority=8/8
queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=20M/20M burst-limit=0/0 burst-threshold=0/0
burst-time=0s/0s
3 name="broadband-premium" target=192.168.20.0/24 parent=global packet-marks="" priority=1/1
queue=pcq-upload-default/pcq-download-default limit-at=0/0 max-limit=20M/20M burst-limit=0/0 burst-threshold=0/0
burst-time=0s/0s
[admin@kosmo] >
Jangan lupa untuk memindahkan urutan rule yang akan dipakai, mikrotik membaca rule dari atas ke bawah.
Burst, digunakan apabila anda ingin memberikan bandwidth tambahan kepada pengguna anda melebihi angkat max-limit untuk jangka waktu tertentu. Disini kosmonuts harus menetapkan burst-limit, burst-time dan burst-threshold juga anda harus menetapkan angka limit-at.
Next….
What do you think?
Show comments / Leave a comment