Thats what I was thinking, but my customer requested this for an apartment complex application so I figured I'd ask the experts. He was thinking of this because he claims he saw a product that does this, but it's very expensive. I think I can use ALTq to do something satisfactory, just not what he asked for. I appreciate the quick reply.
Thanks again, nb On Tue, Jul 15, 2003 at 06:55:58PM +0200, Daniel Hartmeier wrote: > On Tue, Jul 15, 2003 at 09:44:32AM -0500, Nicholas D . Buraglio wrote: > > > Multiple groups with different base rates; say the level 1 group will allow you a > > base rate of 128k and 5Mb of queuing. The first 5Mb you download would be at 3Mb, > > after that the speed would drop to 128k. Here is the twist. Let's say you > > download 4Mb out of your queue and then you continue to use around 56k constantly > > (obviously this would fluctuate). The queue would then build back to the 5Mb at > > the rate of the difference between your base rate (128k) and what you are using > > (56k). So in our example we would be charging our queue at 56k. > > I don't think this is doable. AltQ has no concept of 'the first 5Mb you > download'. Firstly, it doesn't know about users, just source/destination > addresses (so that would make it 'the first 5Mb sent/received by a > host'). Next, it doesn't know about connections, either, so you'd be > down to 'the first 5Mb of the total traffic sent/received by the host, > since reboot'. And AltQ doesn't even keep counters like these, so it's > totally unexpressable :) > > Currently, AltQ does not keep any per-host statistics/counters. All it > can read and update is per-queue values. And even if you'd create one > queue per host, it wouldn't care about the amount of past traffic, all > it cares about is rates. > > If I'm missing something, please correct me. > > Daniel --
