Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Beat Meier <bmeier@infovia.com.ar>
To: lartc@vger.kernel.org
Subject: [LARTC] How can I get min 64kbps max 128kbps bandwidth
Date: Thu, 31 Aug 2006 19:46:39 +0000	[thread overview]
Message-ID: <44F73C9F.8080206@infovia.com.ar> (raw)

Hi all

I have read the lartc manual, I have read the some faqs but still don't
know how to achive the following:

I have a 512kbps line which I share with 8 customers.
Now what I have is everyone gets max 64kbps. That's fine.

DEV=ath0
DEV_MAX_RATE=6mbit
DEV_RAT_LOWdkbit
DEV_RATE_HIGH\x128kbit

tc qdisc del dev $DEV root
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth
$DEV_MAX_RATE cell 8 mpu 64
tc class add dev $DEV parent 1:0 classid 1:1 cbq bandwidth $DEV_MAX_RATE
rate $DEV_RATE_HIGH avpkt 1000 prio 5 bounded isolated \
allot 1514 weight 1 maxburst 21
tc filter add dev $DEV parent 1: protocol ip prio 5 u32 match ip dst
0.0.0.0/0 flowid 1:1

But what I want is if there is unused bandwith i.e. others are not
'working' I want to divide this
available bandwith euqal to the users who are working BUT only at a
maxmimum of 128kbps.
I.e. min 64kbps max 128kbps for every user.
I now from reading that you can do such things with borrow but how??

Any help very welcome

Thanks

Beat


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2006-08-31 19:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=44F73C9F.8080206@infovia.com.ar \
    --to=bmeier@infovia.com.ar \
    --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