Im needing to set up some queues to limit p2p traffic as well as equalize the total bandwidth across my internet link to the users if the link gets full. my setup is PPPoE server that auth’s against a freeradius server, that uses the Mikrotik-Rate-Limit/burst attributes. the “simple queues” list shows all the users in there as dynamic queues.. and this works well.
So.. how does one do this? as far as I understand I cant use the queue-tree setup because they are dynamic queues?
What I did so far was create a simple queue with target U/Download unlimited and set the interface to my internet link, priority 0., then created a child queue with P2P selected “all-p2p” and selected my main parent queue with limits set at 10k/10k., priority 8. and put those queues at the top of the simple queue list. it “seems” to work, but Im not entirely sure.?
Im still lost as to how I can equalize the link.
As you have a lot of requirements for the queues, probably it is easier to avoid dynamic queue configuration and use static for entire configuration.
PCQ is a nice feature to “equalize the link”.
I’m using PCQ (mangle,Q type , Q tree) , but i notice its not equalizing the bandwidth equally , if someone was alone on the net and was downloading with the total band and another user became online want to browse , it will be very slow browsing , the PCQ will not decrease the first user bandwidth ..
We need your configuration and detailed description of the problem.
mangle rules :
7 ;;; Upload
chain=prerouting in-interface=bridge1 protocol=tcp action=mark-packet new-packet-mark=Up-Packet passthrough=no
8 ;;; Download
chain=forward protocol=tcp action=mark-connection new-connection-mark=users-con passthrough=yes
9 chain=forward in-interface=internet protocol=tcp connection-mark=users-con action=mark-packet
new-packet-mark=down-packet passthrough=no
10 ;;; Proxy Marking
chain=output out-interface=bridge1 dst-address=!192.168.1.182 protocol=tcp action=mark-packet
new-packet-mark=down-packet passthrough=no
Q type
5 name=“pcq-download” kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=300
6 name=“pcq-upload” kind=pcq pcq-rate=0 pcq-limit=20 pcq-classifier=src-address pcq-total-limit=200
Q tree
0 name=“Upload” parent=global-total packet-mark=Up-Packet limit-at=0 queue=pcq-upload priority=1 max-limit=256000
burst-limit=0 burst-threshold=0 burst-time=0s
1 name=“Download” parent=bridge1 packet-mark=down-packet limit-at=0 queue=pcq-download priority=1 max-limit=1024000
burst-limit=0 burst-threshold=0 burst-time=0s
as in WIKI ..