dear all, i’m confused how to set my bandwidth management right with pcq for equal bandwidth.
i’m using two ISPs. indosat (isp 1) is on dedicated bandwidth (512/512kbps), while speedy (isp 2) is on sharing bandwidth (64/384kbps).
interfaces:
- local (192.168.0.1/24)
- indosat (10.0.0.254/24)
- speedy (10.0.1.254/24)
route:
- default gateway goes to indosat (10.0.0.1/24)
- another gateway with routing-mark=indosat goes to indosat (10.0.0.1/24)
- another gateway with routing-mark=speedy goes to speedy (10.0.1.1)/24)
dns:
- indosat’s dns
- opendns’ dns
nat:
- src-nat, out interface indosat, masquerade.
- src-nat, out interface speedy, masquerade.
mangle:
10 chain=prerouting src-address=192.168.0.253 action=mark-routing
new-routing-mark=indosat passthrough=no
11 ;;; indosat marking
chain=forward routing-mark=indosat action=mark-connection
new-connection-mark=indosat-connection passthrough=yes
12 chain=forward connection-mark=indosat-connection action=mark-packet
new-packet-mark=indosat passthrough=no
25 chain=prerouting src-address=192.168.1.254 action=mark-routing
new-routing-mark=speedy passthrough=no
26 ;;; speedy marking
chain=forward routing-mark=speedy action=mark-connection
new-connection-mark=speedy-connection passthrough=yes
27 chain=forward connection-mark=speedy-connection action=mark-packet
new-packet-mark=speedy passthrough=no
queue type:
5 name="pcq-download" kind=pcq pcq-rate=0 pcq-limit=50
pcq-classifier=dst-address pcq-total-limit=2000
6 name="pcq-upload" kind=pcq pcq-rate=0 pcq-limit=50
pcq-classifier=src-address pcq-total-limit=2000
queue tree:
0 name="download" parent=global-out packet-mark="" limit-at=0 queue=default
priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
1 name="indosat-download" parent=download packet-mark=indosat limit-at=0
queue=pcq-download priority=8 max-limit=512000 burst-limit=0
burst-threshold=0 burst-time=0s
2 name="speedy-download" parent=download packet-mark=speedy limit-at=0
queue=pcq-download priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
3 name="indosat-upload" parent=indosat packet-mark=indosat limit-at=0
queue=pcq-upload priority=8 max-limit=512000 burst-limit=0
burst-threshold=0 burst-time=0s
4 name="speedy-upload" parent=speedy packet-mark=speedy limit-at=0
queue=pcq-upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
is my setting above right?
please help me since i can’t get the equal bandwidth runs on speedy (my 2nd isp), while the bandwidth equalizer runs excellent on indosat.
speedy is not guaranteed to have all the time 64/384kbps bandwidth, sometimes it can get 384kbps download, sometimes not. while indosat is guaranteed to have all the time 512/512kbps bandwidth.
my assumption is that pcq equal bandwidth don’t work very good with sharing bandwidth such as speedy (my isp).