Thu Jun 07, 2007 11:52 am
Hi, I tried something similar, following the pcq examples in the MT reference manual and wiki.
I tried something like the following
Mangle rules for packet mark based on dst-address-list (for download):
/ip firewall mangle add chain=prerouting dst-address-list=my_addr_list action=mark-connection new-connection-mark=conn_down comment="Connection Download" passthrough=yes
/ip firewall mangle add chain=prerouting connection-mark=conn_down action=mark-connection new-connection-mark=mark_users_down comment="Packet Download Mark" passthrough=no
Queue Tree (Parent)
/queue tree add name=Download parent=Local max-limit=256K (in your case)
Queue Type (PCQ)
/queue type add name=pcq_down kind=pcq pcq-classifier=dst-address
Queue Tree (Child)
/queue tree add parent=Download queue=pcq_down packet-mark=mark_users_down
My problem was (and still is!), that by using Local interface as parent of the download queue (i.e., the interface where I have the pppoe access concentrator), I'm not able to see any traffic passing through the above pcq queue. So I tried using global-out or global-in as Download parent queue, but with decreasing performance result.
Finally, I switched back on using only the dynamic simple queues created based on the pppoe profile...
If you try and have better results ... I'm very very interesting on it...