Recent twitter entries...


»»

English French German Spain Italian Russian Portuguese Japanese Korean Chinese Simplified






-

PCQ Mikrotik Bandwith Management



PCQ (Per Connection Queue)

adalah queue yang dapat digunakan secara dinamis menyamakan atau membagi trafik untuk beberapa pengguna. Hal ini dimungkinkan untuk membagi skenario pcq menjadi tiga kelompok utama: bandwidth yang sama untuk sejumlah pengguna, distribusi bandwidth tertentu yang sama antara pengguna, distribusi bandwidth yang tidak diketahui sama antara pengguna.

Berikut contoh emplementasi membuat QoS dengan sistem PCQ (Per Connection Queue) dengan asumsi :
- Ether1 ke line Upstream (contoh dengan IP default modem speedy 192.168.1.100/24)
- Ether2 ke LAN (IP privat bebas namun sebagai contoh 172.16.10.254/24)

1. Buat mangle untuk mark seluruh koneksi Total Download dan Total Upload

[admin@Mikrotik] > ip firewall mangle add chain=postrouting action=mark-connection new-connection-mark=Backbone passthrough=yes out-interface=ether1

[admin@Mikrotik] > ip firewall mangle add chain=postrouting action=mark-packet new-packet-mark=Packet-WAN passthrough=yes connection-mark=Backbone


2. Buat Queue type PCQ

[admin@Mikrotik] > queue type add name="pcq-downstream" kind=pcq pcq-classifier=dst-address

[admin@Mikrotik] > queue type add name="pcq-upstream" kind=pcq pcq-classifier=src-address


3. Buat Queue Tree Untuk Bandwith Total dan PCQ nya

[admin@Mikrotik] > queue tree add name="TOTAL Download" parent=global-out packet-mark=Packet-WAN



[admin@Mikrotik] > queue tree add name="TOTAL Upload" parent=global-in packet-mark=Packet-WAN



[admin@Mikrotik] > queue tree add name="Max DOWNLOAD" parent="TOTAL Download" queue=pcq-downstream max-limit=512000



[admin@Mikrotik] > queue tree add name="Max UPLOAD" parent="TOTAL Upload" queue=pcq-upstream max-limit=512000


4. Kemudian terahir buatlah Mangle dan Queue Tree untuk Client sejumlah Client yg diperlukan.
Sebagai contoh disini saya buatkan 2 Client, maka mangle dan queue tree nya seperti berikut :

;;; Client01 Download & Upload
[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=Client01-dl passthrough=yes dst-address=172.16.10.1

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=pct-client01-dl passthrough=yes connection-mark=Client01-dl

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=Client01-ul passthrough=yes src-address=172.16.10.1

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=pct-client01-ul passthrough=yes connection-mark=Client01-ul


;;; Client02 Download & Upload

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=Client02-dl passthrough=yes dst-address=172.16.10.2

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=pct-client02-dl passthrough=yes connection-mark=Client02-dl

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-connection new-connection-mark=Client02-ul passthrough=yes src-address=172.16.10.2

[admin@Mikrotik] > ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=pct-client02-ul passthrough=yes connection-mark=Client02-ul


Queue Tree Client01 & Client02

[admin@Mikrotik] > queue tree add name="Client01-dl" parent="Max DOWNLOAD" packet-mark=pct-client01-dl

[admin@Mikrotik] > queue tree add name="Client01-ul" parent="Max UPLOAD" packet-mark=pct-client01-ul

[admin@Mikrotik] > queue tree add name="Client02-dl" parent="Max DOWNLOAD" packet-mark=pct-client02-dl

[admin@Mikrotik] > queue tree add name="Client02-ul" parent=Max UPLOAD packet-mark=pct-client02-ul


Selanjutnya buatlah Mangle dan Queue Tree Client seperti diatas sesuai dengan keperluan.

Contoh Screen Shoot :

Comments (6)

iya pak. gak bisa tuh....

apanya yg ga bisa pak Ommat ?

Limit Download nya kok gak jalan ya ....?

coba cek lagi di Mangle nya gan, mungkin ada yang kurang sesuai misalnya IP address client yang dituju

tetap gak jalan limit downloadnya.....
ane udah setting ip...sama dengan contoh....
trus ane copas.........

oh iya mas, misal downloadnya ada yang menggunakan download manager, perlu tambahan lagi tidak ya? sebab saya coba pakai idm kok tetap jebol ya? thx..

ikiaku@gmail.com

Post a Comment

ADVERTISE SPACE AVAILABLE HERE
justikmal@gmail.com | www.justikmal.tk