Dear all,
I have 2 ISPs and 300 clients. I am using mangle to separate local and overseas traffic for each client, because we assign different rates for each kind of traffic. So for one client i have in Mangle 4 rules:
- Download Overseas Traffic
- Upload Overseas Traffic
- Download Local Traffic
- Upload Local Traffic
In Qtree I shape each kind of mangle rule, so again I have 4 shapers.
My Mikrotik setup is as follows:
Mangle
8 ;;; 192.168.0.2
chain=forward dst-address=192.168.0.2 src-address-list=!local action=mark-packet new-packet-mark=192.168.0.2-overseas-dl passthrough=no9 chain=forward src-address=192.168.0.2 dst-address-list=!local action=mark-packet new-packet-mark=192.168.0.2-overseas-ul passthrough=no
10 chain=forward dst-address=192.168.0.2 src-address-list=local action=mark-packet new-packet-mark=192.168.0.2-local-dl passthrough=no
11 chain=forward src-address=192.168.0.2 dst-address-list=local action=mark-packet new-packet-mark=192.168.0.2-local-ul passthrough=no
Qtree
0 name=“Overseas-Download” parent=Lan packet-mark=“” limit-at=0
queue=PCQ_Download priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s1 name=“Local-Upload” parent=global-out packet-mark=“” limit-at=0
queue=PCQ_Upload priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s2 name=“Local-Download” parent=Lan packet-mark=“” limit-at=0
queue=PCQ_Download priority=8 max-limit=25000000 burst-limit=0
burst-threshold=0 burst-time=0s3 name=“Overseas-Upload” parent=global-out packet-mark=“” limit-at=0
queue=PCQ_Upload priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s4 name=“192.168.0.2-local-dl” parent=Local-Download
packet-mark=192.168.0.2-local-dl limit-at=0 queue=default priority=8
max-limit=4000000 burst-limit=0 burst-threshold=0 burst-time=0s5 name=“192.168.0.2-local-ul” parent=Local-Upload
packet-mark=192.168.0.2-local-ul limit-at=0 queue=default priority=8
max-limit=2000000 burst-limit=0 burst-threshold=0 burst-time=0s6 name=“192.168.0.2-overseas-dl” parent=Overseas-Download
packet-mark=192.168.0.2-overseas-dl limit-at=0 queue=default priority=8
max-limit=512000 burst-limit=0 burst-threshold=0 burst-time=0s7 name=“192.168.0.2-overseas-ul” parent=Overseas-Upload
packet-mark=192.168.0.2-overseas-ul limit-at=0 queue=default priority=8
max-limit=512000 burst-limit=0 burst-threshold=0 burst-time=0s
My questions are:
- This setup takes too much CPU resources, is there possible any other kind of setup to achieve what I have done.
- I want to give priority to traffic as it was disscused here http://forum.mikrotik.com/t/burst-for-each-tcp-connection/10713/1 so each client can browse faster. The only way I made it is mangling each kind of traffic for each ip, but it’s 20 !!! mangle rules for IP. My idea is to give priority Globaly. As I understand with my setup I’m unable to achieve that because the packets will be remarked.
If not, how to accomplish this?
(I’m thinking of 2 Mikrotiks. One for priority and another for shaping each ip address).
Thank you for every answer.
Alex