From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] why so fast?
Date: Wed, 14 May 2003 09:46:08 +0000 [thread overview]
Message-ID: <marc-lartc-105290566714932@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105290440514012@msgid-missing>
On Wednesday 14 May 2003 11:25, sun reflex4 wrote:
> Hi,
> I am doing some test to control outgoing traffic, and I want to see if
> everything is working, but when I configure Compuetr A, and make a download
> in Computer B from A (e.g. in Computer A Apache is installed), the
> download goes so fast(not as in the ceil or rate!), even when I make the
> rate & ceil too small, am I doing something wrong??
> Example on Computer A:
> tc qdisc add dev eth0 root handle 1: htb default 19
>
> tc class add dev eth0 parent 1: classid 1:1 htb rate 10bps ceil 10bps
> tc class add dev eth0 parent 1: classid 1:19 htb rate 15bps ceil 15bps
>
> tc filter add dev eth0 parent 1: protocol ip handle 1 fw classid 1:1
>
> iptables -t mangle -A OUTPUT -d 192.168.0.11 -j MARK --set-mark 1
> #Compter B has ip 192.168.0.11
Your setup is good, but you put all packets coming from computer A (and marked
with 1) in class 1:1. The problem is that this is not a leaf class because
it has a child class. And a non-leaf class can not transmit packets itself.
So the packets are sended at link speed.
Solution : only leaf classes can shape traffic so make sure all packets ends
up in a leaf class. You can do this by removing the filter statement so all
packets are placed in the default class. Or change your filter statement so
all packets marked with a 1 are redireted to class 1:19.
If you are interested, I did some tests myself. You can find the results on
www.docum.org.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-05-14 9:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-14 9:25 [LARTC] why so fast? sun reflex4
2003-05-14 9:46 ` Stef Coene [this message]
2003-05-14 10:02 ` sun reflex4
2003-05-14 10:11 ` Stef Coene
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=marc-lartc-105290566714932@msgid-missing \
--to=stef.coene@docum.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox