Andres Salazar wrote:
Hello,

For some reason I cannot get this to work properly... We have a
1Megabyte/sec connection, and I want this box to be capped at up to
200KiloBytes/sec .

However everytime I try, it just always ends up using the entire link.
If I modify it to 1Kb , it ends up using around 80Kilobytes/sec .
I don't think you can use the upperlimit directive in the altq definition, but you can use it on each queue to force a maximum amount of bandwidth, i.e. "queue ack bandwidth 20% priority 2 qlimit 500 hfsc (realtime 40Kb upperlimit 40Kb)".

If you want each child to be able to borrow free bandwidth from the total 200Kb, then you can create a queue with upperlimit of 200Kb and create your ack and bulk as subqueues with realtime of 40Kb and 160Kb so they have guaranteed bandwidth, but then they can also borrow any free bandwidth from the 200Kb parent when it's available. I'm doing this in one case and it works fine.

Bryan

Reply via email to