All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Udayan Borkar" <udayan@altigy.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Linux CBQ question
Date: Tue, 30 Apr 2002 21:38:09 +0000	[thread overview]
Message-ID: <marc-lartc-102020276928159@msgid-missing> (raw)

Hi,

Question on Linux-CBQ. I have a Pentium 4 based PC running Redhat 7.2 (kernel
2.4.7) with 2 100-Base T ethernet interfaces (Eth0, Eth1). Traffic received
on Eth0 is sent out on Eth1.

I am trying to restrict the outgoing traffic rate on Eth1 to 50Mbits/sec.
However, when I use the configuration below, I find that the rate on Eth1
is about 5 Mbits/sec. If I delete the keywords bounded, isolated, I get
a rate of 90 Mbits/sec. Measurements were made over an interval of 15 sec
to 1 min)

On trying other Minburst, Maxburst values, the rate changes (e.g. Maxburst
= 300, Minburst = 70) produces 25Mbits/sec etc.

(I was trying to create a hierarchy of classes whose total rate needs to
be limited to 50Mbits/sec, I have managed to reduce the problem from that
to this simplified configuration. I would prefer not to use HTB at the moment).

Can someone take a quick look at the configuration below and tell me what
I am doing wrong? (Ip address of Eth0=10.1.1.2, netmask=255.255.255.0; Eth1=10.1.2.2,netmask=255.255.255.0)

Thanks

Udayan

------------------

#!/bin/sh

sysctl -w net.ipv4.ip_forward=1

arp -s 10.1.2.4 00:80:AD:55:44:33

tc qdisc add dev eth1 root handle 1:0 cbq avpkt 1000 bandwidth 100Mbit mpu
64

tc class add dev eth1 parent 1:0 classid 1:1 cbq avpkt 1000 bandwidth 100Mbit
cell 8 maxburst 5 minburst 1 minidle 10 mpu 64 rate 50Mbit allot 1500 prio
1 weight 5Mbit bounded isolated

tc qdisc add dev eth1 parent 1:1 bfifo limit 200000

tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 10.1.2.4/32
flowid 1:1












_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2002-04-30 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-30 21:38 Udayan Borkar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-01  6:38 [LARTC] Linux CBQ question 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-102020276928159@msgid-missing \
    --to=udayan@altigy.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.