Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] CBQ not properly functioning !?
Date: Thu, 31 Oct 2002 20:12:40 +0000	[thread overview]
Message-ID: <marc-lartc-103609521409992@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103609384708269@msgid-missing>

On Thursday 31 October 2002 20:52, thomas bilke wrote:
> Hello,
>
> My link has an average bandwidth of 1.2Mbit/s. I want to shape the bulk
> traffic on several ports in my network. I used the mangle list to mark
> some traffic types and reroute them to class 1:1. After failure with my
> previous configuration I tried the following configuration to shape the
> in and outcoming traffic of a single host for all ip traffic:
>
> # tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 1.2Mbit avpkt 1000
> cell 8
>
> # tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Kbit
> rate 100Kbit weight 10Kbit prio 8 allot 1514 maxburst 20 avpkt 1000
> isolated bounded
>
> # tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src
> x.x.x.x flowid 1:1
>
> # tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
> x.x.x.x flowid 1:1
>
> I checked the class 1:1 with both parameter settings 100Kbit and
> 1.2Mbit, but nothing works. With this configuration it was for the host
> possible to send or receive data with more than 500Kbit/s.
> I work with Mandrake 8.2 and kernel 2.4.18. Did I configure something
> wrong?
You can not shape incoming and outgoing traffic at the same time.  You add the 
cbq qdisc to dev eth0 so you can only shaping traffic that leaves eth0.

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/

  reply	other threads:[~2002-10-31 20:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-31 19:52 [LARTC] CBQ not properly functioning !? thomas bilke
2002-10-31 20:12 ` Stef Coene [this message]
2002-10-31 20:32 ` thomas bilke
2002-10-31 21:35 ` Stef Coene
2002-10-31 21:52 ` Robert Felber
2002-10-31 22:14 ` Stef Coene
2002-10-31 22:50 ` thomas bilke
2002-10-31 23:07 ` Robert Felber
2002-11-01  8:56 ` 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-103609521409992@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