All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Torbjörn Eklöv" <torbjorn.eklov@interlan.se>
To: lartc@vger.kernel.org
Subject: [LARTC] Not bounded but almost....
Date: Thu, 27 Sep 2001 07:12:21 +0000	[thread overview]
Message-ID: <marc-lartc-100157489228937@msgid-missing> (raw)

Hi, I have a question about CBQ and wonder if I can make a class that are 
guaranteed 2Mbit but can borrow excess bandwith and only to specific rate.
In my exampel below I want to guarantee the network x.x.x.x/y 2Mbit and 
they can borrow up to MAX 4Mbit.
I have tried to create subclasses but it only works like bounded or not.

# tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 
cell 8 mpu 64 
# tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate 
10Mbit weight 1Mbit \
prio 8 allot 1514  maxburst 20 avpkt 1000
# tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 10Mbit 
rate 2048Kbit weight \
200Kbit prio 5 allot 1514  maxburst 20 avpkt 1000 "not bounded but max 
4Mbit" <------------------
# tc qdisc add dev eth0 parent 10:1 sfq quantum 1514b perturb 8
# tc filter add dev eth0 parent 10:0 protocol ip prio 5 u32 match ip src 
x.x.x.x/y flowid 10:200


Regards, Tobbe Eklov
Interlan Sweden


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

                 reply	other threads:[~2001-09-27  7:12 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=marc-lartc-100157489228937@msgid-missing \
    --to=torbjorn.eklov@interlan.se \
    --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.