From: "BERTRAND Joël" <joel.bertrand@systella.fr>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Some questions about HTB
Date: Tue, 30 Oct 2007 09:21:46 +0000 [thread overview]
Message-ID: <4726F7AA.5060308@systella.fr> (raw)
In-Reply-To: <47262B0D.10106@systella.fr>
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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2007-10-30 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 18:48 [LARTC] Some questions about HTB BERTRAND Joël
2007-10-30 9:21 ` BERTRAND Joël [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4726F7AA.5060308@systella.fr \
--to=joel.bertrand@systella.fr \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.