From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] How to limit forwarding rate of a device
Date: Thu, 31 Jul 2003 11:25:29 +0000 [thread overview]
Message-ID: <marc-lartc-105965082708087@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105963619027073@msgid-missing>
On Thursday 31 July 2003 04:36, anzp wrote:
> lartc
>
> Both NIC of my Linux Computer are 100M. I want to limit it to 1M. I
> used the following script: ----------------------------
> #/bin/sh
>
> DEV="dev eth0"
> echo $DEV
> TC="/usr/src/redhat/SOURCES/iproute2-2.4.7src/iproute2/tc/tc"
> $TC qdisc add $DEV handle 1:0 root dsmark indices 64 set_tc_index
> $TC filter add $DEV parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2
> $TC qdisc add $DEV parent 1:0 handle 2:0 cbq bandwidth 1Mbit cell 8 avpkt
> 1000 mpu 64 $TC class add $DEV parent 2:0 classid 2:1 cbq bandwidth 1Mbit
> rate 150Kbit avpkt 500 prio 1 bounded isolated allot 1514 weight 1 maxburst
> 10 $TC qdisc add $DEV parent 2:1 pfifo limit 5
> $TC filter add $DEV parent 2:0 protocol ip prio 1 handle 0x2e tcindex
> classid 2:1 pass_on #BE class(2:2)
> $TC class add $DEV parent 2:0 classid 2:2 cbq bandwidth 1Mbit rate 500Kbit
> avpkt 1000 prio 7 allot 1514 weight 1 maxburst 21 borrow split 2:0 defmap
> 0xffff $TC qdisc add $DEV parent 2:2 red limit 10KB min 1KB max 8KB burst 4
> avpkt 1000 bandwidth 1Mbit probability 0.4 $TC filter add $DEV parent 2:0
> protocol ip prio 2 handle 0 tcindex mask 0 classid 2:2 pass_on
>
> ------------------------------
> The device eth1 has similar script.
>
> But it looks like have no effect. I can download from it with 40Mbps
> through ftp protocol.
>
> Why, who can help me?
Your setup is wrong. Take a look at www.docum.org on the test pages. I have
some cbq scripts as example that you can use.
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/
parent reply other threads:[~2003-07-31 11:25 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <marc-lartc-105963619027073@msgid-missing>]
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-105965082708087@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 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.