Skip to contentSkip to conversation

TC with HTB qdisc

LARTC Rio Martin. 3 participants 6 messages Apr 20, 2003 – Apr 21, 2003

lore
Share & tools
lore
#0 lore raw

Dear folks,
Is there anyone succeed implementing traffic management using htb qdisc, specially implementing fair sharing among 2 hosts at the same speed ? I wonder why me, and lots of my friend from different ISP having the same problem just like me ? If their clients start to open pararel connection like Kazaa or DAP (Download Accelerator Pro), they borrowed bandwidth from their parent and when the other request more bandwidth from parent, parent didnt decrease the speed of first host who started DAP ?

Regards,
Rio Martin.

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

#1 lore raw
Quoted 8 lines · Rio Martin.

Dear folks,
Is there anyone succeed implementing traffic management using htb qdisc, specially implementing fair sharing among 2 hosts at the same speed ? I wonder why me, and lots of my friend from different ISP having the same problem just like me ? If their clients start to open pararel connection like Kazaa or DAP (Download Accelerator Pro), they borrowed bandwidth from their parent and when the other request more bandwidth from parent, parent didnt decrease the speed of first host who started DAP ?

If you put each host in a different class, all traffic from the hosts are considered ase one. So if 1 hosts generates 100 tcp streams and the other hosts 1, the 100 streams are considered as 1.

I did the test, I create 2 classes with each 50% of the bandwidth. I generated 5 streams in the first class. As soon as I generate a tcp stream in the other class, the other class gets 50% of the bandwidth

So if you put each host in his own class, you should be fine.

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 Rio Martin.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

That might work for 2 or 5 or even 10 hosts, but what about 150 hosts? I do have 150 users, should i create 150 classes? I have an AMD DURON 800. Would that work? I can create an script to do so, but i am worried about CPU load

- -----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Stef Coene Enviado el: domingo, 20 de abril de 2003 23:41
Para: Rio Martin.; [email protected]
Asunto: Re: [LARTC] TC with HTB qdisc

Quoted 9 lines · Rio Martin.

Dear folks,
Is there anyone succeed implementing traffic management using htb qdisc, specially implementing fair sharing among 2 hosts at the same speed ? I wonder why me, and lots of my friend from different ISP having the same problem just like me ? If their clients start to open pararel connection like Kazaa or DAP (Download Accelerator Pro), they borrowed bandwidth from their parent and when the other request more bandwidth from parent, parent didnt decrease the speed of first host who started DAP ?

If you put each host in a different class, all traffic from the hosts are considered ase one. So if 1 hosts generates 100 tcp streams and the other hosts 1, the 100 streams are considered as 1.

I did the test, I create 2 classes with each 50% of the bandwidth. I generated 5 streams in the first class. As soon as I generate a tcp stream in the other class, the other class gets 50% of the bandwidth

So if you put each host in his own class, you should be fine.

Stef

- --

[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/

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPqMVyX7diNnrrZKsEQLsTACfaL1dhoGs2FR+62h1m56yZnmHstYAoOkJ 2qgY7nUPIhmhx6uT13846QvV
=KW0v
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Rio Martin.
Quoted 3 lines · GoMi

That might work for 2 or 5 or even 10 hosts, but what about 150 hosts? I do have 150 users, should i create 150 classes? I have an AMD DURON 800. Would that work? I can create an script to do so, but i am worried about CPU load

Yes it should work.
But you can also take a look at the esfq qdisc. The esfq qdisc is capable to create 1 "queue" for each src address it sess. So each host is considered as
1. Of course, you can't classifiy packets within that queue.

In your case, I should create 1 class/host and see how your router reacts.

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/
#4 lore raw
In reply to Rio Martin.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am going to code a little script to create all the classes right now..but what about ingress traffic? If i am not mistaken, only imq0 and imq1 are available right? Or you can also create as many as you like?

- -----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Stef Coene Enviado el: domingo, 20 de abril de 2003 23:59
Para: GoMi; 'Rio Martin.'; [email protected]
Asunto: Re: [LARTC] TC with HTB qdisc

Quoted 4 lines · GoMi

That might work for 2 or 5 or even 10 hosts, but what about 150 hosts? I do have 150 users, should i create 150 classes? I have an AMD DURON
800. Would that work? I can create an script to do so, but i am worried about CPU load

Yes it should work.
But you can also take a look at the esfq qdisc. The esfq qdisc is capable to create 1 "queue" for each src address it sess. So each host is considered as
1. Of course, you can't classifiy packets within that queue.

In your case, I should create 1 class/host and see how your router reacts.

Stef

- --

[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/

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPqMyzn7diNnrrZKsEQIAWQCgjOjvL9eKGAvRdr85VY07l8P44eIAnjBf yK5LAK2UMszMPkca2rDkRriY
=HfgX
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#5 lore raw
In reply to Rio Martin.
Quoted 3 lines · GoMi

I am going to code a little script to create all the classes right now..but what about ingress traffic? If i am not mistaken, only imq0 and imq1 are available right? Or you can also create as many as you like?

You can specify how many devices you want if you load the imq module.

But if you have a router, you don't need the imq device. You can shape on both nics and so you can control both directions.

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/