Google
  Web www.spinics.net

Re: Some questions about HTB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


BERTRAND Joël wrote:
    Hello,

	I think I have found my mistake...

...
# eth0

tc qdisc add dev $PUBLIC_INTERFACE root handle 2: htb default 200
tc class add dev $PUBLIC_INTERFACE parent 2: classid 2:1 \
        htb rate $MAX_PUBLIC_RATE burst 20k

tc class add dev $PUBLIC_INTERFACE parent 2: classid 2:200 \
        htb rate 16kbit
tc qdisc add dev $PUBLIC_INTERFACE parent 2:200 sfq perturb 10

# 213.215.42.71

tc class add dev $PUBLIC_INTERFACE parent 2:1 classid 2:71 \
        htb rate 1024kbps ceil 1024kbps burst 20k
tc qdisc add dev $PUBLIC_INTERFACE parent 2:71 handle 71: sfq perturb 10
tc filter add dev $PUBLIC_INTERFACE protocol ip parent 2:71 \

should be
tc filter add dev $PUBLIC_INTERFACE protocol ip parent 2:

                prio 1 handle 71 fw flowid 2:71

# 213.215.42.72

tc class add dev $PUBLIC_INTERFACE parent 2:1 classid 2:72 \
        htb rate 512kbit
tc qdisc add dev $PUBLIC_INTERFACE parent 2:72 handle 72: sfq perturb 10
tc filter add dev $PUBLIC_INTERFACE protocol ip parent 2:72 \
        prio 1 handle 72 fw flowid 2:72

When I start for example a ftp connection (and only one) on 213.215.42.71, traffic shaping works fine (fw mark are set by iptables rules). When more than one connection are done, paquet transfert is very slow (~20 kbps even I specify 1024kbps). I suspect a mistake in my code but I don't know how fix it. I have tried to use quantum, r2q, burst, cburst without any success. Any idea ?

	Regards,

	JKB
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Bugtraq]     [Fedora Legacy]     [GCC Help]     [Yosemite News]     [Yosemite Photos]     [IP Tables]     [Netfilter Devel]     [Fedora Users]

Powered by Linux