8 different groups and about 400 clients with speed limits
before this day I had one simple queue for each client, now I want to do shaping by queue tree and pcq
I has adjusted my router as in http://mum.mikrotik.com/presentations/C ... _Megis.pdf
I made 8 adress lists for speed limit and 1 group to access to Internet
PCQ
Code: Select all
5 name="PCQ_down_270k" kind=pcq pcq-rate=270000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=5000
6 name="PCQ_up_270k" kind=pcq pcq-rate=270000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=5000
7 name="PCQ_down_140k" kind=pcq pcq-rate=140000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=7000
8 name="PCQ_up_140k" kind=pcq pcq-rate=140000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=7000
9 name="PCQ_down_80k" kind=pcq pcq-rate=80000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=500
10 name="PCQ_up_80k" kind=pcq pcq-rate=80000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=500
11 name="PCQ_down_1090k" kind=pcq pcq-rate=1090000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=1250
12 name="PCQ_up_1090k" kind=pcq pcq-rate=1090000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=1250
13 name="PCQ_down_1590k" kind=pcq pcq-rate=1090000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=200
14 name="PCQ_up_1590k" kind=pcq pcq-rate=1590000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=200
15 name="PCQ_down_2140k" kind=pcq pcq-rate=2140000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=500
16 name="PCQ_up_2140k" kind=pcq pcq-rate=2140000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=500
17 name="PCQ_down_400k" kind=pcq pcq-rate=400000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=1300
18 name="PCQ_up_400k" kind=pcq pcq-rate=400000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=1300
19 name="PCQ_down_540k" kind=pcq pcq-rate=540000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=500
20 name="PCQ_up_540k" kind=pcq pcq-rate=540000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=500
Code: Select all
0 chain=forward action=mark-connection new-connection-mark=mark_1090 passthrough=yes src-address-list=SHAPE_LIST_1090
1 chain=forward action=mark-packet new-packet-mark=1090_traffic passthrough=no connection-mark=mark_1090
2 chain=forward action=mark-connection new-connection-mark=mark_140 passthrough=yes src-address-list=SHAPE_LIST_140
3 chain=forward action=mark-packet new-packet-mark=140_traffic passthrough=no connection-mark=mark_140
4 chain=forward action=mark-connection new-connection-mark=mark_1590 passthrough=yes src-address-list=SHAPE_LIST_1590
5 chain=forward action=mark-packet new-packet-mark=1590_traffic passthrough=no connection-mark=mark_1590
6 chain=forward action=mark-connection new-connection-mark=mark_2140 passthrough=yes src-address-list=SHAPE_LIST_2140
7 chain=forward action=mark-packet new-packet-mark=2140_traffic passthrough=no connection-mark=mark_2140
8 chain=forward action=mark-connection new-connection-mark=mark_270 passthrough=yes src-address-list=SHAPE_LIST_270
9 chain=forward action=mark-packet new-packet-mark=270_traffic passthrough=no connection-mark=mark_270
10 chain=forward action=mark-connection new-connection-mark=mark_400 passthrough=yes src-address-list=SHAPE_LIST_400
11 chain=forward action=mark-packet new-packet-mark=400_traffic passthrough=no connection-mark=mark_400
12 chain=forward action=mark-connection new-connection-mark=mark_540 passthrough=yes src-address-list=SHAPE_LIST_540
13 chain=forward action=mark-packet new-packet-mark=540_traffic passthrough=no connection-mark=mark_540
14 chain=forward action=mark-connection new-connection-mark=mark_80 passthrough=yes src-address-list=SHAPE_LIST_80
15 chain=forward action=mark-packet new-packet-mark=80_traffic passthrough=no connection-mark=mark_80
Code: Select all
0 name="Total_download" parent=ether2 LOCAL limit-at=0 priority=1 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
1 name="queue_1090_down" parent=Total_download packet-mark=1090_traffic limit-at=0 queue=PCQ_down_1090k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
2 name="queue_140_down" parent=Total_download packet-mark=140_traffic limit-at=0 queue=PCQ_down_140k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
3 name="queue_1590_down" parent=Total_download packet-mark=1590_traffic limit-at=0 queue=PCQ_down_1590k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
4 name="queue_2140_down" parent=Total_download packet-mark=2140_traffic limit-at=0 queue=PCQ_down_2140k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
5 name="queue_270_down" parent=Total_download packet-mark=270_traffic limit-at=0 queue=PCQ_down_270k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
6 name="queue_400_down" parent=Total_download packet-mark=400_traffic limit-at=0 queue=PCQ_down_400k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
7 name="queue_80_down" parent=Total_download packet-mark=80_traffic limit-at=0 queue=PCQ_down_80k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
8 name="Total upload" parent=ether1 INTERNET limit-at=0 priority=3 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
9 name="queue_1090_up" parent=Total upload packet-mark=1090_traffic limit-at=0 queue=PCQ_up_1090k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
10 name="queue_140_up" parent=Total upload packet-mark=140_traffic limit-at=0 queue=PCQ_up_140k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
11 name="queue_1590_up" parent=Total upload packet-mark=1590_traffic limit-at=0 queue=PCQ_up_1590k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
12 name="queue_2140_up" parent=Total upload packet-mark=2140_traffic limit-at=0 queue=PCQ_up_2140k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
13 name="queue_270_up" parent=Total upload packet-mark=270_traffic limit-at=0 queue=PCQ_up_270k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
14 name="queue_400_up" parent=Total upload packet-mark=400_traffic limit-at=0 queue=PCQ_up_400k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
15 name="queue_540_up" parent=Total upload packet-mark=540_traffic limit-at=0 queue=PCQ_up_540k priority=6
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
16 name="queue_80_up" parent=Total upload packet-mark=80_traffic limit-at=0 queue=PCQ_up_80k priority=6 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
17 name="queue_540_down" parent=Total_download packet-mark=540_traffic limit-at=0 queue=PCQ_down_540k priority=2
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
Code: Select all
0 chain=srcnat action=masquerade out-interface=!ether2 LOCAL
1 chain=dstnat action=dst-nat to-addresses=192.168.0.2 dst-address=80.72.226.50
Code: Select all
0 ;;; Access to internet
chain=forward action=accept src-address-list=ACCESS_LIST
1 ;;; Drop All
chain=forward action=drop src-address=192.168.0.0/16
but all my clients with speed limit have astable ping to the router and gateway about 20-2000ms, even if they are not use the Internet,
why???
then I use simple queues, same situation is observed only if client is use all of they bandwidth
Thanks in advance for the help