Re: Using CBQ with variable upload bandwidth

2007-11-17 Thread Girish Venkatachalam
On 20:12:45 Nov 16, Stuart Henderson wrote: Say you have a 10Mb ethernet feed, plugged into an unmanaged switch with a bunch of other people in the building connecting to other ports, who sometimes use up all available bandwidth on the uplink, and other times use nothing. I am not sure if

Re: Using CBQ with variable upload bandwidth

2007-11-17 Thread Jonathan Stewart
Girish Venkatachalam wrote: On 08:00:08 Nov 16, Jonathan Stewart wrote: I though about doing something like that but the usable upload is so variable that 60% could completely knock the normal_folk off when it gets congested. I have 256kbit up right now and get anywhere from as low as

Re: Using CBQ with variable upload bandwidth

2007-11-16 Thread Calomel
I have to agree with Girish. Take some time and find out the average bandwidth for your link. Then set the higher priority users a higher percentage of the total amount than the other users. You could also use a script. If you know what the current upload bandwidth amount is then you could vary

Re: Using CBQ with variable upload bandwidth

2007-11-16 Thread Stuart Henderson
On 2007/11/16 12:49, Calomel wrote: I have to agree with Girish. Take some time and find out the average bandwidth for your link. ... You could also use a script. If you know what the current upload bandwidth amount is then you could vary the altq on $ExtIf bandwidth 744Kb line to reflect

Using CBQ with variable upload bandwidth

2007-11-15 Thread Jonathan Stewart
Is it possible to use CBQ as a weighted round robin queue when the upload bandwidth is highly variable? This is on FreeBSD RELENG_7 which I believe uses pf from OpenBSD 4.1 Example queue idea: Root Queue (1Mbps) big_spenders (500Kbps, priority 5, borrow) normal_folk (500Kbps, priority

Re: Using CBQ with variable upload bandwidth

2007-11-15 Thread Calomel
Jonathan, HFSC will do what you want. You could setup a queue using the realtime directive to guarantee bandwidth to the big_spenders. Lets say 60% of the total connection speed. Then assign 20% to the normal_folk. Both queues can borrow from each other, but will always guarantee the amount of

Re: Using CBQ with variable upload bandwidth

2007-11-15 Thread Jonathan Stewart
Calomel wrote: Jonathan, HFSC will do what you want. You could setup a queue using the realtime directive to guarantee bandwidth to the big_spenders. Lets say 60% of the total connection speed. Then assign 20% to the normal_folk. Both queues can borrow from each other, but will always

Re: Using CBQ with variable upload bandwidth

2007-11-15 Thread Girish Venkatachalam
On 08:00:08 Nov 16, Jonathan Stewart wrote: I though about doing something like that but the usable upload is so variable that 60% could completely knock the normal_folk off when it gets congested. I have 256kbit up right now and get anywhere from as low as 64kbit to 160kbit+ actual