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.
On Sunday 20 April 2003 13:03, Rio Martin. wrote: > 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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net
=20 -----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: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl] En = nombre de Stef Coene Enviado el: domingo, 20 de abril de 2003 23:41 Para: Rio Martin.; lartc@mailman.ds9a.nl Asunto: Re: [LARTC] TC with HTB qdisc On Sunday 20 April 2003 13:03, Rio Martin. wrote: > Dear folks, > Is there anyone succeed implementing traffic management using htb=20 > qdisc, specially implementing fair sharing among 2 hosts at the same=20 > speed ? I wonder why me, and lots of my friend from different ISP=20 > having the same problem just like me ? If their clients start to open=20 > pararel connection like Kazaa or DAP (Download Accelerator Pro), they=20 > borrowed bandwidth from their parent and when the other request more=20 > bandwidth from parent, parent didnt decrease the speed of first host=20 > who started DAP ? If you put each host in a different class, all traffic from the hosts = are=20 considered ase one. So if 1 hosts generates 100 tcp streams and the = other=20 hosts 1, the 100 streams are considered as 1. I did the test, I create 2 classes with each 50% of the bandwidth. I=20 generated 5 streams in the first class. As soon as I generate a tcp = stream=20 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 - --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl = http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPqMVyX7diNnrrZKsEQLsTACfaL1dhoGs2FR+62h1m56yZnmHstYAoOkJ 2qgY7nUPIhmhx6uT13846QvV =3DKW0v -----END PGP SIGNATURE-----
On Sunday 20 April 2003 23:48, GoMi wrote: > 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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net
=20 -----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: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl] En = nombre de Stef Coene Enviado el: domingo, 20 de abril de 2003 23:59 Para: GoMi; 'Rio Martin.'; lartc@mailman.ds9a.nl Asunto: Re: [LARTC] TC with HTB qdisc On Sunday 20 April 2003 23:48, GoMi wrote: > 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=20 > 800. Would that work? I can create an script to do so, but i am=20 > worried about CPU load Yes it should work. =20 But you can also take a look at the esfq qdisc. The esfq qdisc is = capable to=20 create 1 "queue" for each src address it sess. So each host is = considered as=20 1. Of course, you can't classifiy packets within that queue. =20 In your case, I should create 1 class/host and see how your router = reacts. Stef - --=20 stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl = http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPqMyzn7diNnrrZKsEQIAWQCgjOjvL9eKGAvRdr85VY07l8P44eIAnjBf yK5LAK2UMszMPkca2rDkRriY =3DHfgX -----END PGP SIGNATURE-----
On Monday 21 April 2003 01:52, GoMi wrote: > 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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net