HTTP traffic limiting
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Alexey Sheshka
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.
Quoted 4 lines
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.
Signature · 13 lines
########################################## # | p0wer | # # __ | GG#1877248 | # # (oo) | [email protected] | # # / \/ \ Go away or I will replace you # # `V__V' with a very small shell script. # ########################################## _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/