All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberto Arcomano <berto@fatamorgana.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Simple example of bandwidth management
Date: Fri, 22 Mar 2002 18:10:44 +0000	[thread overview]
Message-ID: <marc-lartc-101682051615224@msgid-missing> (raw)

Hi all,
I tried to configure a simple script like this:

*************************************************
#!/bin/bash

SORG\x10.0.0.33
DEST\x10.0.0.34

ipchains -F
ipchains -A output -s $SORG -d $DEST -j ACCEPT -m 1

tc qdisc del dev eth0 root handle 1:0 cbq bandwidth 33600bps avpkt 1000
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 33600bps avpkt 1000

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 33600bps rate 
10000bps allot 1514 maxburst 20 avpkt 1000 prio 3

tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:1
********************************************************

My problem is that I cannot see any bandwidth reduction, I download from 
10.0.0.33 to 10.0.0.34 with same speed as before (normal ethernet speed).
Maybe there exists some file under /proc fs to modify?

Some other debug info:

*******************************************************
[root@adsl bin]# tc -d qdisc show dev eth0
qdisc cbq 1: rate 33600bps cell 8b (bounded,isolated) prio no-transmit/8 
weight 33600bps allot 1514b
level 1 ewma 5 avpkt 1000b maxidle 928us
[root@adsl bin]#
[root@adsl bin]#
[root@adsl bin]#
[root@adsl bin]# tc -d class show dev eth0
class cbq 1: root rate 33600bps cell 8b (bounded,isolated) prio no-transmit/8 
weight 33600bps allot 1514b
level 1 ewma 5 avpkt 1000b maxidle 928us
class cbq 1:1 parent 1: rate 10000bps cell 8b prio 3/3 weight 10000bps allot 
1514b
level 0 ewma 5 avpkt 1000b maxidle 62298us
[root@adsl bin]#
[root@adsl bin]#
[root@adsl bin]#
[root@adsl bin]#
[root@adsl bin]#
[root@adsl bin]# tc filter show dev eth0
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x1 classid 1:1
***************************************************************

My system is:
RedHat 7.2 with kernel 2.4.7-10 on Intel Celeron 300MHz - 128 MB ram
Please let me know what I'm wronging...
Thank you for your great support.
Regards
Roberto Arcomano
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2002-03-22 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-22 18:10 Roberto Arcomano [this message]
2002-03-23 19:55 ` [LARTC] Simple example of bandwidth management 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-101682051615224@msgid-missing \
    --to=berto@fatamorgana.com \
    --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.