My 1st BW Manager
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thats exactly the problem i have been trying to solve for the last 2 months. Bandwith sharing works great, but when it comes to shape DAP programs, by any reason it fails, not granting the bw to other services. No idea why.
Stef, if you are interested in working around this problem, maybe we could meet in a chat room, and you can login to my box and see what happens, interested?
Original Message:
- - -----------------
From: Stef Coene [email protected]
Quoted 10 lines · On Friday 18 April 2003 19:21, [email protected] wrote:
I'm not sure, but I think you use htb.init. And this is not the htb.init
mailing list. This is the LARTC lists to discuss topics like shaping, advanced routing and other network stuff.
But answering on your question :
You have to create 1 class attached to the root qdisc and add the 4 other classes to that class (don't ask me how you have to do that with htb.init).
Can you also check that the filters are working and the traffic is placed in the class where it belongs?
Oh sorry about that, below is what command i inserted:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 30
tc class add dev eth0 parent 1: classid 1:2 htb rate 120Kbit burst 15k tc class add dev eth0 parent 1:2 classid 1:11 htb rate 6Kbit ceil 120Kbit burst 15k tc qdisc add dev eth0 parent 1:11 handle 11 sfq perturb 10 tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.1.1 classid 1:11 tc class add dev eth0 parent 1:2 classid 1:12 htb rate 6Kbit ceil 120Kbit burst 15k tc qdisc add dev eth0 parent 1:12 handle 12 sfq perturb 10 tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.1.2 classid 1:12 tc class add dev eth0 parent 1:2 classid 1:13 htb rate 6Kbit ceil 120Kbit burst 15k tc qdisc add dev eth0 parent 1:13 handle 13 sfq perturb 10 tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.1.3 classid 1:13 tc class add dev eth0 parent 1:2 classid 1:14 htb rate 6Kbit ceil 120Kbit burst 15k tc qdisc add dev eth0 parent 1:14 handle 14 sfq perturb 10 tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.1.4 classid 1:14
I ve tried those, and it worked, all hosts able to borrow bandwidth from parent class (120Kbit), but when any host start to download with DAP (download manager) that can consume high bandwidth, it can borrow 120Kbit from parent class and the speed wont decrease as the other hosts up and ask for more bandwidth.
Any idea why ?
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/
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPqEghH7diNnrrZKsEQItAwCggQXWt06vrZ9SOYpXJH+lmTh791kAoOAc QUsSeZZHm9v48of2SgmHz6hs
f8m
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 8 lines · GoMi
Thats exactly the problem i have been trying to solve for the last 2 months. Bandwith sharing works great, but when it comes to shape DAP programs, by any reason it fails, not granting the bw to other services. No idea why.
Stef, if you are interested in working around this problem, maybe we could meet in a chat room, and you can login to my box and see what happens, interested?
Yes, but not now. But I can check it out myself.
How do this DAP works? Do they open parallel tcp sessions the same server? And if they do, how many? And the other services that suffers from these DAP streams, is that also download (bulk traffic) or interactive traffic (ssh, telnet, dns)?
And I suppose the DAP traffic and the other traffic belongs to different classes.
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/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lets talk about KaZZa,E-Donkey,and IMESH. I have absolutely no idea about how they work, but i do split traffic with two classes, one fore interactive, and a second one for the rest acting as a default class. The problem is that when these programs start working, the interactive services do not have the bw granted.
- -----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Stef Coene
Enviado el: sábado, 19 de abril de 2003 14:01
Para: GoMi; [email protected]
Asunto: Re: RV: [LARTC] Re: My 1st BW Manager
Quoted 8 lines · GoMi
Thats exactly the problem i have been trying to solve for the last 2 months. Bandwith sharing works great, but when it comes to shape DAP programs, by any reason it fails, not granting the bw to other services. No idea why.
Stef, if you are interested in working around this problem, maybe we could meet in a chat room, and you can login to my box and see what happens, interested?
Yes, but not now. But I can check it out myself.
How do this DAP works? Do they open parallel tcp sessions the same server? And if they do, how many? And the other services that suffers from these DAP streams, is that also download (bulk traffic) or interactive traffic (ssh, telnet, dns)?
And I suppose the DAP traffic and the other traffic belongs to different classes.
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/AwUBPqFU0n7diNnrrZKsEQK+TACg8uM01JeH3L5CfxuxUUSVWrwFDbcAn04a osen2KdAqW4jxfihFGjUa274
=Ew3f
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 5 lines · GoMi
Lets talk about KaZZa,E-Donkey,and IMESH. I have absolutely no idea about how they work, but i do split traffic with two classes, one fore interactive, and a second one for the rest acting as a default class. The problem is that when these programs start working, the interactive services do not have the bw granted.
I somewhere read that kazaa sometimes uses ACK packages with payloads. So if you want to put ACK packages in a high priority class, you also have to check the length of the package.
I will do some tests myself, but not before monday. I will keep you informed about the results.
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/
Original Message:
-----------------
From: Stef Coene [email protected]
Quoted 7 lines · GoMi
Quoted 1 line
Stef, if you are interested in working around this problem, maybe we
could
Quoted 2 lines
meet in a chat room, and you can login to my box and see what happens, interested?
Yes, but not now. But I can check it out myself.
How do this DAP works? Do they open parallel tcp sessions the same server?
Hi Stef, Are u sure havent heard DAP before ? this is as same as prozilla under linux.
Quoted 6 lines
And if they do, how many? And the other services that suffers from these DAP
streams, is that also download (bulk traffic) or interactive traffic (ssh, telnet, dns)?
And I suppose the DAP traffic and the other traffic belongs to different classes.
Maximum 10 connections to the same destination server. If they open 1 DAP. Sadly my users often download with 3 - 5 DAP. So when i sniff their connection, the results of tcp connection arrount 30 tcp connection to remote host port 80.
DAP is badly sucks my total bandwidth. So all other traffic would be very slow and didnt get fair bandwidth as i located..
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/
Quoted 3 lines · On Saturday 19 April 2003 17:19, [email protected] wrote:
On Saturday 19 April 2003 12:10, GoMi wrote:
Hi Stef, Are u sure havent heard DAP before ? this is as same as prozilla under linux.
My average downloads are 400kbyte/s so I don't need a download accelerator to speed up downloads :)
Quoted 11 lines
Quoted 6 lines
And if they do, how many? And the other services that suffers from these DAP
streams, is that also download (bulk traffic) or interactive traffic (ssh, telnet, dns)?
And I suppose the DAP traffic and the other traffic belongs to different classes.Maximum 10 connections to the same destination server. If they open 1 DAP. Sadly my users often download with 3 - 5 DAP. So when i sniff their connection, the results of tcp connection arrount 30 tcp connection to remote host port 80.
So it's just parallel tcp sessions to the same hosts. But if you put the traffic from each host in 1 class, each class (and so each host) has the same right for bandwidth.
Quoted 2 lines
DAP is badly sucks my total bandwidth. So all other traffic would be very slow and didnt get fair bandwidth as i located..
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/
Original Message:
-----------------
From: Stef Coene [email protected]
Quoted 7 lines · On Saturday 19 April 2003 17:19, [email protected] wrote:
Quoted 4 lines · GoMi
Sadly my users often download with 3 - 5 DAP. So when i sniff their connection, the results of tcp connection arrount 30 tcp connection to remote host port 80.
So it's just parallel tcp sessions to the same hosts. But if you put the traffic from each host in 1 class, each class (and so each host) has the same right for bandwidth.
I give you real situation in my network:
eth0[PUBLIC.IP]
LINUX - BW - Manager
eth1[192.168.1.10]
|
|4 hosts: 192.168.1.1 - 192.168.1.4
My total bandwidth is only 128Kbit
All NICs are Realtek 10Mbit
So the solution as you offered is to put each class 128Kbit/4 = 32Kbit? If that so, then it would be good if i use CBQ qdisc, not HTB. I want to use HTB because HTB burstable.
Please suggest..
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/
Rio,
: I give you real situation in my network:
:
: eth0[PUBLIC.IP]
: LINUX - BW - Manager
: eth1[192.168.1.10]
: |
: |
: 4 hosts: 192.168.1.1 - 192.168.1.4
:
: My total bandwidth is only 128Kbit
: All NICs are Realtek 10Mbit
:
: So the solution as you offered is to put each class 128Kbit/4 = 32Kbit? : If that so, then it would be good if i use CBQ qdisc, not HTB. I want to : use HTB because HTB burstable.
I would suggest the following configuration (as Stef has proposed):
128kbit ceil 128kbit +---- rate 32kbit ceil 128kbit <-- 192.168.1.1
| |
+---------------+---- rate 32kbit ceil 128kbit <-- 192.168.1.2
|
+---- rate 32kbit ceil 128kbit <-- 192.168.1.3
|
+---- rate 32kbit ceil 128kbit <-- 192.168.1.4Now, you have four different classes, one for each IP. Each IP is guaranteed 128kbit. Each IP can consume up to 128kbit, if there isn't competition with other classes.
You should use the qdisc with which you are most comfortable--both CBQ and HTB can do this for you. For reference, it seems that the experience on this list leans toward HTB, though.
-Martin
Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Original Message:
-----------------
From: Martin A. Brown [email protected]
Quoted 11 lines
I would suggest the following configuration (as Stef has proposed):
128kbit ceil 128kbit +---- rate 32kbit ceil 128kbit <-- 192.168.1.1| | +---------------+---- rate 32kbit ceil 128kbit <-- 192.168.1.2 | +---- rate 32kbit ceil 128kbit <-- 192.168.1.3 | +---- rate 32kbit ceil 128kbit <-- 192.168.1.4 Now, you have four different classes, one for each IP. Each IP is guaranteed 128kbit. Each IP can consume up to 128kbit, if there isn'tcompetition with other classes.
Dear Martin,
I ve implemented before just exactly as you have described above, but the main problem was when some host, 192.168.1.4 for example, use DAP that open about 10 tcp streams, that host will get 128Kbit maximum when the other hosts in idle connection. But as soon as other host up and request for bandwidth, 192.168.1.4 wont decrease the speed of download into 32Kbit. I wonder why this is happened ?
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/
Quoted 22 lines · Martin A. Brown
Rio,
: I give you real situation in my network:
:
: eth0[PUBLIC.IP]
: LINUX - BW - Manager
: eth1[192.168.1.10]
:
:
: 4 hosts: 192.168.1.1 - 192.168.1.4
:
: My total bandwidth is only 128Kbit
: All NICs are Realtek 10Mbit
:
: So the solution as you offered is to put each class 128Kbit/4 = 32Kbit? : If that so, then it would be good if i use CBQ qdisc, not HTB. I want to : use HTB because HTB burstable.I would suggest the following configuration (as Stef has proposed):
128kbit ceil 128kbit +---- rate 32kbit ceil 128kbit <-- 192.168.1.1
Quoted 8 lines
+---------------+---- rate 32kbit ceil 128kbit <-- 192.168.1.2 +---- rate 32kbit ceil 128kbit <-- 192.168.1.3 +---- rate 32kbit ceil 128kbit <-- 192.168.1.4Now, you have four different classes, one for each IP. Each IP is guaranteed 128kbit.
Each IP Is guaranteed 32 kbit, not 128 kbit.
Quoted 6 lines
Each IP can consume up to 128kbit, if there isn't
competition with other classes.You should use the qdisc with which you are most comfortable--both CBQ and HTB can do this for you. For reference, it seems that the experience on this list leans toward HTB, though.
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/
Quoted 16 lines · On Monday 21 April 2003 05:12, [email protected] wrote:
Original Message:
-----------------
From: Martin A. Brown [email protected]Quoted 11 lines
I would suggest the following configuration (as Stef has proposed):
128kbit ceil 128kbit +---- rate 32kbit ceil 128kbit <-- 192.168.1.1+---------------+---- rate 32kbit ceil 128kbit <-- 192.168.1.2 +---- rate 32kbit ceil 128kbit <-- 192.168.1.3 +---- rate 32kbit ceil 128kbit <-- 192.168.1.4Now, you have four different classes, one for each IP. Each IP is guaranteed 128kbit. Each IP can consume up to 128kbit, if there isn't competition with other classes.
Quoted 7 lines
Dear Martin,
I ve implemented before just exactly as you have described above, but the main problem was when some host, 192.168.1.4 for example, use DAP that open about 10 tcp streams, that host will get 128Kbit maximum when the other hosts in idle connection. But as soon as other host up and request for bandwidth, 192.168.1.4 wont decrease the speed of download into 32Kbit. I wonder why this is happened ?
If you have 2 active userx, each user should get 50% so 64 kbit. I don't understand why this is not happening. I created 2 class with each 50% of the bandwidth. I had 5 tcp streams in 1 class so that class uses 100% of the bandwidth. The moment I started a tcp stream in the other class, that class got 50% like expected. So it works in my test setup.
Are you sure your filters are working? And how do you monitor the classes?
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/
Dear Stef,
Perhaps you could share your tc command so i could learn whats wrong with my shaper.
Thank you.
Regards,
Rio Martin.
Original Message:
-----------------
From: Stef Coene [email protected]
If you have 2 active userx, each user should get 50% so 64 kbit. I don't understand why this is not happening. I created 2 class with each 50%
of the bandwidth. I had 5 tcp streams in 1 class so that class uses 100% of
the bandwidth. The moment I started a tcp stream in the other class, that class got 50% like expected. So it works in my test setup.
Are you sure your filters are working? And how do you monitor the classes?
Stef
Signature · 15 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net -------------------------------------------------------------------- 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/
Quoted 3 lines · On Monday 21 April 2003 11:24, [email protected] wrote:
Dear Stef,
Perhaps you could share your tc command so i could learn whats wrong with my shaper.
All I have can be found on www.docum.org
Or you can try http:/home.docum.org/qos/ so you can create your own commands.
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/