* [LARTC] HTTP traffic limiting
@ 2002-08-12 21:40 Alexey Sheshka
2002-08-18 18:13 ` Radosław Łoboda
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Sheshka @ 2002-08-12 21:40 UTC (permalink / raw)
To: lartc
Hello!
Sorry for ugly english.
I was s’tup rules to limit outgoing HTTP traffic :
$TC qdisc add dev $DEVA root handle 1: htb default 30
$TC class add dev $DEVA parent 1: classid 1:1 htb rate 100mbit ceil 100mbit burst 15k
#HTTP 49Mbit
$TC class add dev $DEVA parent 1:1 classid 1:10 htb rate 49mbit ceil 100mbit burst 15k
#Other 51Mbit
$TC class add dev $DEVA parent 1:1 classid 1:30 htb rate 51mbit ceil 100mbit burst 15k
$TC class add dev $DEVA parent 1:10 classid 1:199 htb rate 49Mbit ceil 49mbit burst 15k
$TC qdisc add dev $DEVA parent 1:199 sfq perturb 10
/sbin/iptables -A OUTPUT -t mangle -s x.x.x.x --sport 80 -j MARK --set-mark 199
But it doesn't work ! Users download files via HTTP at full 100Mb, but if replase
last line with
/sbin/iptables -A OUTPUT -t mangle -s x.x.x.x -j MARK --set-mark 199
they got 51Mbit.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [LARTC] HTTP traffic limiting
2002-08-12 21:40 [LARTC] HTTP traffic limiting Alexey Sheshka
@ 2002-08-18 18:13 ` Radosław Łoboda
0 siblings, 0 replies; 2+ messages in thread
From: Radosław Łoboda @ 2002-08-18 18:13 UTC (permalink / raw)
To: lartc
On Tue, 13 Aug 2002, Alexey Sheshka wrote:
> Hello!
> Sorry for ugly english.
> /sbin/iptables -A OUTPUT -t mangle -s x.x.x.x --sport 80 -j MARK --set-mark 199
And where is your tc filter statement? You must set some filters to catch
the traffic into corresponding class.
> But it doesn't work ! Users download files via HTTP at full 100Mb, but if replase
> last line with
> /sbin/iptables -A OUTPUT -t mangle -s x.x.x.x -j MARK --set-mark 199
> they got 51Mbit.
Consider setting some TOS values, it could speed up some traffic if the
routers on the route are configured correctly. You could then attach the
traffic with each TOS to any of your HTB classes with tc filter statement.
--
##########################################
# | p0wer | #
# __ | GG#1877248 | #
# (oo) | p0wer@bojko.eu.org | #
# / \/ \ Go away or I will replace you #
# `V__V' with a very small shell script. #
##########################################
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-18 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-12 21:40 [LARTC] HTTP traffic limiting Alexey Sheshka
2002-08-18 18:13 ` Radosław Łoboda
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.