* [LARTC] htb traffic shaping problem
@ 2006-09-08 8:01 Bugzilla-Redirect
2006-09-08 12:39 ` e.janz
2006-09-08 15:27 ` Charlie Meyer
0 siblings, 2 replies; 3+ messages in thread
From: Bugzilla-Redirect @ 2006-09-08 8:01 UTC (permalink / raw)
To: lartc
Hello.
I have a linux server connected to a gigabit lan, and though that lan to a
768kbps/768kbps DSL modem.
I'm trying to shape my webserver running on port 80/443 down to 512kbps,
while leaving all other ports alone. The current configuration script that
I'm using is as follows:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 99
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit ceil 1000mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil 512kbit
tc qdisc add dev eth0 parent 1:10 handle 10: sfq
tc class add dev eth0 parent 1:1 classid 1:99 htb rate 900mbit ceil 1000mbit
tc qdisc add dev eth0 parent 1:99 handle 99: sfq
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 80 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 443 0xffff
flowid 1:10
1:10 seems to be getting the correct traffic from port 80 and 443 while
everything else is run to 1:99. The problem is that, while 1:10 is slowing
the connection down to a degree, it's nowhere near the set limit. For
example: the connection will start out around 50kBps, and then suddenly
bounce to over 1MBps, far exceeding it's 64kBps setting.
Setting the parent down to 512kbits seems to work correctly, but it
cripples the local network.
Can anyone point out what I've done incorrectly, or is this a bug?
Thank you.
-Ryan Power
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] htb traffic shaping problem
2006-09-08 8:01 [LARTC] htb traffic shaping problem Bugzilla-Redirect
@ 2006-09-08 12:39 ` e.janz
2006-09-08 15:27 ` Charlie Meyer
1 sibling, 0 replies; 3+ messages in thread
From: e.janz @ 2006-09-08 12:39 UTC (permalink / raw)
To: lartc
[-- Attachment #1.1: Type: text/plain, Size: 2609 bytes --]
Good afternoon,
your configuration seems correct to me. Could you send us the output of
"tc -s -d class show dev eth0" during your probes?
What kernel and tc versions are you using?
Regards,
Eric Janz
Departamento de Sistemas
Grupo Barceló Viajes
C\ 16 de Julio, 75
07009 Polígono Son Castelló
Palma de Mallorca - Baleares
Tel.: +34 971 448030
Fax.: +34 971 436986
Bugzilla-Redirect <bugzilla@sysreset.com>
Enviado por: lartc-bounces@mailman.ds9a.nl
08/09/2006 10:02
Para
lartc@mailman.ds9a.nl
cc
Asunto
[LARTC] htb traffic shaping problem
Hello.
I have a linux server connected to a gigabit lan, and though that lan to a
768kbps/768kbps DSL modem.
I'm trying to shape my webserver running on port 80/443 down to 512kbps,
while leaving all other ports alone. The current configuration script
that
I'm using is as follows:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 99
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit ceil
1000mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil
512kbit
tc qdisc add dev eth0 parent 1:10 handle 10: sfq
tc class add dev eth0 parent 1:1 classid 1:99 htb rate 900mbit ceil
1000mbit
tc qdisc add dev eth0 parent 1:99 handle 99: sfq
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 80 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 443 0xffff
flowid 1:10
1:10 seems to be getting the correct traffic from port 80 and 443 while
everything else is run to 1:99. The problem is that, while 1:10 is
slowing
the connection down to a degree, it's nowhere near the set limit. For
example: the connection will start out around 50kBps, and then suddenly
bounce to over 1MBps, far exceeding it's 64kBps setting.
Setting the parent down to 512kbits seems to work correctly, but it
cripples the local network.
Can anyone point out what I've done incorrectly, or is this a bug?
Thank you.
-Ryan Power
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
--
ADVERTENCIA LEGAL
El contenido de este correo es confidencial y dirigido unicamente a su destinatario. Para acceder a su clausula de privacidad consulte http://www.barceloviajes.com/privacy
LEGAL ADVISORY
This message is confidential and intended only for the person or entity to which it is addressed. In order to read its privacy policy consult it at http://www.barceloviajes.com/privacy
[-- Attachment #1.2: Type: text/html, Size: 3579 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [LARTC] htb traffic shaping problem
2006-09-08 8:01 [LARTC] htb traffic shaping problem Bugzilla-Redirect
2006-09-08 12:39 ` e.janz
@ 2006-09-08 15:27 ` Charlie Meyer
1 sibling, 0 replies; 3+ messages in thread
From: Charlie Meyer @ 2006-09-08 15:27 UTC (permalink / raw)
To: lartc
[-- Attachment #1.1: Type: text/plain, Size: 3379 bytes --]
Hi,
I have a similar setup here, and what I did was instead of shaping the
traffic with tc, I used mod_cband on apache2 to limit concurrent connections
and bandwidth. There is a very helpful reference on getting it up and
running here:
http://www.howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling
Hope that helps a bit
Charlie Meyer
University of Illinois at Urbana-Champaign
Department of Computer Science - Undergraduate
cemeyer2@uiuc.edu
_____
From: lartc-bounces@mailman.ds9a.nl [mailto:lartc-bounces@mailman.ds9a.nl]
On Behalf Of e.janz@barceloviajes.com
Sent: Friday, September 08, 2006 7:40 AM
To: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] htb traffic shaping problem
Good afternoon,
your configuration seems correct to me. Could you send us the output of "tc
-s -d class show dev eth0" during your probes?
What kernel and tc versions are you using?
Regards,
Eric Janz
Departamento de Sistemas
Grupo Barceló Viajes
C\ 16 de Julio, 75
07009 Polígono Son Castelló
Palma de Mallorca - Baleares
Tel.: +34 971 448030
Fax.: +34 971 436986
Bugzilla-Redirect <bugzilla@sysreset.com>
Enviado por: lartc-bounces@mailman.ds9a.nl
08/09/2006 10:02
Para
lartc@mailman.ds9a.nl
cc
Asunto
[LARTC] htb traffic shaping problem
Hello.
I have a linux server connected to a gigabit lan, and though that lan to a
768kbps/768kbps DSL modem.
I'm trying to shape my webserver running on port 80/443 down to 512kbps,
while leaving all other ports alone. The current configuration script that
I'm using is as follows:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 99
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit ceil 1000mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil 512kbit
tc qdisc add dev eth0 parent 1:10 handle 10: sfq
tc class add dev eth0 parent 1:1 classid 1:99 htb rate 900mbit ceil 1000mbit
tc qdisc add dev eth0 parent 1:99 handle 99: sfq
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 80 0xffff
flowid 1:10
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 443 0xffff
flowid 1:10
1:10 seems to be getting the correct traffic from port 80 and 443 while
everything else is run to 1:99. The problem is that, while 1:10 is slowing
the connection down to a degree, it's nowhere near the set limit. For
example: the connection will start out around 50kBps, and then suddenly
bounce to over 1MBps, far exceeding it's 64kBps setting.
Setting the parent down to 512kbits seems to work correctly, but it
cripples the local network.
Can anyone point out what I've done incorrectly, or is this a bug?
Thank you.
-Ryan Power
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
--
ADVERTENCIA LEGAL
El contenido de este correo es confidencial y dirigido unicamente a su
destinatario. Para acceder a su clausula de privacidad consulte
http://www.barceloviajes.com/privacy
LEGAL ADVISORY
This message is confidential and intended only for the person or entity to
which it is addressed. In order to read its privacy policy consult it at
http://www.barceloviajes.com/privacy
[-- Attachment #1.2: Type: text/html, Size: 14129 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-08 15:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-08 8:01 [LARTC] htb traffic shaping problem Bugzilla-Redirect
2006-09-08 12:39 ` e.janz
2006-09-08 15:27 ` Charlie Meyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.