Skip to contentSkip to conversation

Strange HTB problem

LARTC Venceslav Vatashki 2 participants 2 messages Apr 2, 2003

lore
Share & tools
lore
#0 lore raw

Hello friends,
I have small LAN network with 5 computers.I use HTB init script with configuration like this :
//////
RATEЂKbit
PRIO=5
LEAF=sfq
RULE2.168.1.[1..6]
//////
The problem is when user start to download with Flashget,MassDownloader (with 10 threads) he kills the internet connection (240Kbit) without overlimiting his 80Kbit. Other users get 1-2kbps, witch is extremely unpleasant.

Btw which is the HTB version that ships with linux 2.4.20 ? Thank you

------------------- изпратено от mail.bG
Силна Анти-спам защита
12MB Място за поща
SMS за нов емeйл и към двата оператора!
POP3/WAP Достъп
_________________________________________
HOB БEЗПЛATEH AДPEC - http://mail.bg/new/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 5 lines · Venceslav Vatashki

Hello friends,
I have small LAN network with 5 computers.I use HTB init script with configuration like this :
//////
RATE€Kbit

Quoted 8 lines

PRIO=5
LEAF=sfq
RULE2.168.1.[1..6]
//////
The problem is when user start to download with Flashget,MassDownloader (with 10 threads) he kills the internet connection (240Kbit) without overlimiting his 80Kbit. Other users get 1-2kbps, witch is extremely unpleasant.

So you have 240Kbit, 1 user uses his 80kbit and other users don't get any bandwidth. Are all these users in the same class? If they are, it's the sfq qdisc that causes problems.
It will create 1 "queue" for each flow. Flows have different ip-addresses and ports. So the 10 downloads ends up in 10 different queues. So the more sessions a user opens, the more bandwidth he gets
You can try the esfq qdisc. That's an enhanced sfq qdisc. You can create the different queues based on ip-addresses and/or ports and this for source and/or destination. In your case, you can use the source address so each user has his own queue. So each user has the same amount of bandwidth. I have a link somewhere on the faq page on www.docum.org.

Quoted 1 line

Btw which is the HTB version that ships with linux 2.4.20 ?

I think it's 3.7 but it's the same code as version 3.6.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/