Skip to contentSkip to conversation

Still with HTB ..

LARTC [email protected] 2 participants 4 messages Apr 25, 2003 – Apr 26, 2003

lore
Share & tools
lore
#0 lore raw

Stef,
I ve tried just as you described earlier..
When using HTB qdisc, 10 hosts borrowing from the same parent results in unfairness. When host 1 open about 10 tcp connections, as soon as host 2 request for more bandwidth from parent, host 1 wont decrease the speed.

But, when i only try to attach 2 hosts to the same parent, it succeed! Host 2 get the requested bandwidth even if host 1 start 20 connections.

Could you analyze this for me ?

Regards,
Rio Martin.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

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

#1 lore raw
Quoted 10 lines · On Friday 25 April 2003 07:01, [email protected] wrote:

Stef,
I ve tried just as you described earlier..
When using HTB qdisc, 10 hosts borrowing from the same parent results in unfairness. When host 1 open about 10 tcp connections, as soon as host 2 request for more bandwidth from parent, host 1 wont decrease the speed.

But, when i only try to attach 2 hosts to the same parent, it succeed! Host 2 get the requested bandwidth even if host 1 start 20 connections.

Could you analyze this for me ?

Mhh. I suppose you placed each host in it's own class.
And if you have unfairness, do you have 10 hosts generating traffic in 10 different classes? So you have 10 active classes?

I (tried) to try it my self, and it seems that it works for me. I created 7 classes. I placed traffic in 6 of them. As soone as I started to generate traffic in the 7th class, the bandwidth was allocated.

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/
#2 lore raw
In reply to [email protected]

----- Original Message -----
From: Stef Coene <[email protected]>

Quoted 3 lines · On Friday 25 April 2003 07:01, [email protected] wrote:
Quoted 1 line

Could you analyze this for me ?

Mhh. I suppose you placed each host in it's own class.

Yup one host in one class, i set CEIL to maximum speed of parent class.

Quoted 3 lines

And if you have unfairness, do you have 10 hosts generating traffic in 10 different classes? So you have 10 active classes?

of course 10 active classes generating traffic with their own classes..

Quoted 1 line

I (tried) to try it my self, and it seems that it works for me. I created

7

Quoted 1 line

classes. I placed traffic in 6 of them. As soone as I started to

generate

Quoted 2 lines

traffic in the 7th class, the bandwidth was allocated.

I see, so this is worked for you. Lets begin analyze the different between your HTB and me..
My kernel is 2.4.20, with last iproute installed.
In my linux that acting as bandwidth manager there is only 1 ethernet which has 1 public ip and 1 private ip connecting to my LAN network.

Is this become a trouble ? If this become a trouble then i should separate private ip in one interface other than public ip that i have. Also i analyze other weirdness, when i tried to ping from other host via internet to my public ip, ping results is not normal, arround 2000ms - 3000ms, if i stop HTB, the normal ping should results between 700ms - 800ms.

Regards,
Rio Martin.

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

#3 lore raw
In reply to [email protected]
Quoted 22 lines · Rio Martin.

----- Original Message -----
From: Stef Coene <[email protected]>

Quoted 4 lines · On Friday 25 April 2003 07:01, [email protected] wrote:
Quoted 1 line

Could you analyze this for me ?

Mhh. I suppose you placed each host in it's own class.

Yup one host in one class, i set CEIL to maximum speed of parent class.

Quoted 2 lines

And if you have unfairness, do you have 10 hosts generating traffic in 10 different classes? So you have 10 active classes?

of course 10 active classes generating traffic with their own classes..

Quoted 2 lines

I (tried) to try it my self, and it seems that it works for me. I created

7

Quoted 1 line

classes. I placed traffic in 6 of them. As soone as I started to

Quoted 7 lines

generate

Quoted 1 line

traffic in the 7th class, the bandwidth was allocated.

I see, so this is worked for you. Lets begin analyze the different between your HTB and me..
My kernel is 2.4.20, with last iproute installed.

Here also.

Quoted 2 lines

In my linux that acting as bandwidth manager there is only 1 ethernet which has 1 public ip and 1 private ip connecting to my LAN network.

I have 2 boxes connected with a 10mbit hub.

Quoted 6 lines

Is this become a trouble ? If this become a trouble then i should separate private ip in one interface other than public ip that i have. Also i analyze other weirdness, when i tried to ping from other host via internet to my public ip, ping results is not normal, arround 2000ms - 3000ms, if i stop HTB, the normal ping should results between 700ms - 800ms.

Mhh. Can you try to limit all outgoing bandwidth to 95% of your link? So YOU are the bottleneck. And do you shape both upload and download? Because if you saturate upload, this can kill download because return packets can't be received.

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/