Hello again, I am having a hard time splitting the bandwidth among my friends in my LAN. I use HTB and iptables. As far as I see HTB works great when it comes to limiting the bandwidth (ceil parameter), but when it comes to splitting the bandwidth as equal as possible (through the rate parameter). it is rather useless. For instance I have a 128kbps Internet connection. I give the same rate to all my 10 "clients" (somewhere around 12kbps each). If 2 of my clients are downloading from the internet one file each, the splitting works. and one client gets 64kbps and the other 64kbps. If one of those 2 clients are downloading by means of a Download Manager (like FlashGet or Download Accelerator) every gets messed up. The one downloading with multiple connections gets 90-95% of the bandwidth and the other client gets almost nothing. And of course, most of the time a client will have multiple connections to the Internet, not only one. Can you tell me if I am the only person using HTB that encountered this problem? Do you have an idea how to fix this? Thanks in advance, Vlad Mihai
> >I am having a hard time splitting the bandwidth among my friends in my LAN. > >I use HTB and iptables. As far as I see HTB works great when it comes to >limiting the bandwidth (ceil parameter), > >but when it comes to splitting the bandwidth as equal as possible (through >the rate parameter). it is rather useless. >disagree here... she''s fantastic> > >For instance I have a 128kbps Internet connection. I give the same rate to >all my 10 "clients" (somewhere around 12kbps each). >12kbps is too high for 10 clients, u shld accomodate burst, am sure ur probably breaking the ceil parameter> >If 2 of my clients are downloading from the internet one file each, the >splitting works. and one client gets 64kbps and the other 64kbps. >i believe perturb is 10secs>If one of those 2 clients are downloading by means of a Download Manager >(like FlashGet or Download Accelerator) every gets messed up. >there is sth wrong, for example i have 20 systems each having 4kbps and DAP running on one doesnt exceed the 4kbps dedication, if there browsing at the same time, there browsing alone gets slow cause the''ve used up almost all there allocation>The one downloading with multiple connections gets 90-95% of the bandwidth >and the other client gets almost nothing. > >u sure ur using sfq ?> >And of course, most of the time a client will have multiple connections to >the Internet, not only one. > > > >Can you tell me if I am the only person using HTB that encountered this >problem? Do you have an idea how to fix this? > >havent had the problem, wont mind taking alook at that script...> >Thanks in advance, > >Vlad Mihai > > >K _________________________________________________________________ From the hottest toys to tips on keeping fit this winter, you’ll find a range of helpful holiday info here. http://special.msn.com/network/happyholidays.armx _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
sfq generally creates a queue per connection. What you want is a simple modification to allow per source (for outgoing traffic) ip address allocation.>>The one downloading with multiple connections gets 90-95% of the bandwidth >>and the other client gets almost nothing. >> > u sure ur using sfq ? >> >>And of course, most of the time a client will have multiple connections to >>the Internet, not only one. >>_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
"Chijioke Kalu" <kchijioke@..> wrote:>>I am having a hard time splitting the bandwidth among my friends in my >> LAN. >>I use HTB and iptables. As far as I see HTB works great when it comes to >>limiting the bandwidth (ceil parameter), >>but when it comes to splitting the bandwidth as equal as possible >> (through >>the rate parameter). it is rather useless. > disagree here... she''s fantastic >>For instance I have a 128kbps Internet connection. I give the same rate >> to >>all my 10 "clients" (somewhere around 12kbps each). > 12kbps is too high for 10 clients, u shld accomodate burst, am sure ur > probably breaking the ceil parameterI have the same configuration and settings for 10 clients i have down here. Each clients get its proper rate. I agree that sometimes client get rate a little bit higher than the CEIL parameters, but that because SFQ able to burst. As far as i monitored my bandwidth manager, the rate wont get higher than 1 kilobit for each class i defined. Regards, Rio Martin.
"Chijioke Kalu" <kchijioke@..> wrote:>>I am having a hard time splitting the bandwidth among my friends in my >> LAN. >>I use HTB and iptables. As far as I see HTB works great when it comes to >>limiting the bandwidth (ceil parameter), >>but when it comes to splitting the bandwidth as equal as possible >> (through >>the rate parameter). it is rather useless. > disagree here... she''s fantastic >>For instance I have a 128kbps Internet connection. I give the same rate >> to >>all my 10 "clients" (somewhere around 12kbps each). > 12kbps is too high for 10 clients, u shld accomodate burst, am sure ur > probably breaking the ceil parameterI have the same configuration and settings for 10 clients i have down here. Each clients get its proper rate. I agree that sometimes client get rate a little bit higher than the CEIL parameters, but that because SFQ able to burst. As far as i monitored my bandwidth manager, the rate wont get higher than 1 kilobit for each class i defined. Regards, Rio Martin. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
try using SFQ.. or some similar wrr,esfq> > I am having a hard time splitting the bandwidth among my friends in my LAN. > > I use HTB and iptables. As far as I see HTB works great when it comes to > limiting the bandwidth (ceil parameter), > > but when it comes to splitting the bandwidth as equal as possible (through > the rate parameter). it is rather useless. > > > > For instance I have a 128kbps Internet connection. I give the same rate to > all my 10 "clients" (somewhere around 12kbps each). > > > > If 2 of my clients are downloading from the internet one file each, the > splitting works. and one client gets 64kbps and the other 64kbps. > > If one of those 2 clients are downloading by means of a Download Manager > (like FlashGet or Download Accelerator) every gets messed up. > > The one downloading with multiple connections gets 90-95% of the bandwidth > and the other client gets almost nothing. > > And of course, most of the time a client will have multiple connections to > the Internet, not only one.... _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I hope I am not that pushy, but I cannot figure this out. If 2 of my clients are downloading from the internet one file each, the splitting works and one client gets 64kbps and the other 64kbps. If one of those 2 clients are downloading by means of a Download Manager (like Flash Get or Download Accelerator) every gets messed up. The one downloading with multiple connections gets 90-95% of the bandwidth and the other client gets almost nothing. In my opinion if I have 2 clients downloading at the same time, the sum of all the connections from each other would have to be 64kbbit. Please tell me what I have to change to make sure that the splitting works ok. I am sure for you this is a piece of cake but for me it''s a nightmare :) This is the script that I use. $TC qdisc add dev $LAN_IFACE root handle 1: htb default 30 $TC class add dev $LAN_IFACE parent 1: classid 1:1 htb rate 128kbit ceil 128kbit burst 80k #--------default--------- $TC class add dev $LAN_IFACE parent 1:1 classid 1:30 htb rate 1kbit ceil 128kbit burst 80k $TC qdisc add dev $LAN_IFACE parent 1:30 handle 300: sfq perturb 10 #-----clients...------------- $TC class add dev $LAN_IFACE parent 1:1 classid 1:11 htb rate 8kbit ceil 128kbit burst 80k $FILTER_IP 192.168.0.121 flowid 1:11 $TC qdisc add dev $LAN_IFACE parent 1:11 handle 110: sfq perturb 10 $TC class add dev $LAN_IFACE parent 1:1 classid 1:13 htb rate 8kbit ceil 96kbit burst 80k $FILTER_IP 192.168.0.123 flowid 1:13 $TC qdisc add dev $LAN_IFACE parent 1:13 handle 130: sfq perturb 10 etc... _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 02 December 2003 16:42, Mihai Vlad wrote:> I hope I am not that pushy, but I cannot figure this out. > > > If 2 of my clients are downloading from the internet one file each, the > splitting works and one client gets 64kbps and the other 64kbps. > If one of those 2 clients are downloading by means of a Download Manager > (like Flash Get or Download Accelerator) every gets messed up. > The one downloading with multiple connections gets 90-95% of the bandwidth > and the other client gets almost nothing. > > In my opinion if I have 2 clients downloading at the same time, the sum of > all the connections from each other would have to be 64kbbit. > Please tell me what I have to change to make sure that the splitting works > ok. > I am sure for you this is a piece of cake but for me it''s a nightmare :) > > This is the script that I use. > > > > $TC qdisc add dev $LAN_IFACE root handle 1: htb default 30 > $TC class add dev $LAN_IFACE parent 1: classid 1:1 htb rate 128kbit ceil > 128kbit burst 80k > > > #--------default--------- > $TC class add dev $LAN_IFACE parent 1:1 classid 1:30 htb rate 1kbit ceil > 128kbit burst 80k > $TC qdisc add dev $LAN_IFACE parent 1:30 handle 300: sfq perturb 10 > > > > > #-----clients...------------- > > $TC class add dev $LAN_IFACE parent 1:1 classid 1:11 htb rate 8kbit ceil > 128kbit burst 80k > $FILTER_IP 192.168.0.121 flowid 1:11 > $TC qdisc add dev $LAN_IFACE parent 1:11 handle 110: sfq perturb 10 > > $TC class add dev $LAN_IFACE parent 1:1 classid 1:13 htb rate 8kbit ceil > 96kbit burst 80k > $FILTER_IP 192.168.0.123 flowid 1:13 > $TC qdisc add dev $LAN_IFACE parent 1:13 handle 130: sfq perturb 10I don''t know if it''s the cause if your problems, but burst 80k is too high and your rate is too low. Burst is made for small burst of a few k, not 80k. And htb needs a minimal burst before htb can work properly. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/