Hotspot custom queue

Hello..

I have this mangle

0 chain=prerouting action=jump jump-target=hotspot

1 chain=postrouting action=jump jump-target=hotspot

2 chain=hotspot action=mark-packet new-packet-mark=168-245 passthrough=yes src-address=192.168.168.245 dscp=!4

3 chain=hotspot action=mark-packet new-packet-mark=168-245 passthrough=yes dst-address=192.168.168.245 dscp=!4

4 chain=hotspot action=mark-connection new-connection-mark=168-245-conn passthrough=yes protocol=tcp
src-address=192.168.168.245 dst-port=21,80

5 chain=hotspot action=mark-connection new-connection-mark=168-245-conn passthrough=yes protocol=tcp
dst-address=192.168.168.245 dst-port=21,80

6 chain=hotspot action=mark-packet new-packet-mark=168-245-http-d passthrough=no protocol=tcp connection-mark=168-245-conn
connection-bytes=2000000-0

and Queue Tree

0 name=“Global 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=“Global Upload” parent=global-in packet-mark=“” limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s

2 name=“168-245-INT-D” parent=Global Download packet-mark=168-245 limit-at=64k queue=64k priority=8 max-limit=128k
burst-limit=256k burst-threshold=64k burst-time=10s

3 name=“168-245-INT-U” parent=Global Upload packet-mark=168-245 limit-at=64k queue=default priority=8 max-limit=128k
burst-limit=512k burst-threshold=64k burst-time=15s

4 name=“168-245-http-d” parent=168-245-INT-D packet-mark=168-245-http-d limit-at=20k queue=httpdown priority=8
max-limit=20k burst-limit=0 burst-threshold=0 burst-time=0s

5 name=“168-245-http-u” parent=168-245-INT-U packet-mark=168-245-http-d limit-at=20k queue=httpdown priority=8
max-limit=20k burst-limit=0 burst-threshold=0 burst-time=0s

My question is:

  1. Is there any shortest way to limit http download and ftp without create many mangle ? since I have to create mangle of /22 block ip :frowning:
  2. Since the http-download parent max-limit=128k, I found that queue tree number 4 can reach above 128k and fall back slowly to 20k ( any suggestion about this ? or maybe I make mistake creating mangle ? )
  3. Anyone have example or situation like this ? ( hotspot custom queue)

Thank you for your kind attention & help.

This may not be exactly what you are trying to achieve. But this example from the WIKI has worked amazingly for me.

The clever part is how the guy to thought this up really thought about the problem came up with a suggestion and then used the mikrotik to deploy.

The principle is based on the AMOUNT of data the connection is taking. He sets the priority lower for those downloads that are larger.

http://wiki.mikrotik.com/wiki/Traffic_Priortization%2C_RouterOS_QoS_Implemetation

give it a try.

Hello..

I’ll give it a try… thanks for your suggestion.