From: "Juergen" <lchou@staff.pccu.edu.tw>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] CBQ question
Date: Mon, 14 May 2001 05:57:24 +0000 [thread overview]
Message-ID: <marc-lartc-98981999408933@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373940416985@msgid-missing>
> Just add one more qdisc
>
> tc qdisc add dev eth1 parent 20:1 tbf rate 2Mbit buffer 30Kb/8 limit 15Kb
But I just want to use cbq to bound my bandwidth.
In classid 20:1 should have been limit to 2Mbit (I guess...), but not
active.
Or I have to add a tbf in this config???????
If I have to use tbf, I can just use tbf to limit my bandwidth without cbq
and it's also work....right??????
> > qdisc(cbq) 1:0
> > |
> > class 1:1
> > |
> > qdisc(cbq) 2:0
> > | |
> > class 2:1 class 2:2
> > |
> > qdisc(tbf) 3:0
> > Now when class 2:1 have rate 10Mbit and class 2:2 = 70Mbit
> > i can have 9.05 and 72.774
> >
>
> I want to do it and make a config
>
> --------------------------------------------------------------------------
--
> --------------------
> BANDWIDTH="bandwidth 10Mbit"
> RATE="rate 2Mbit"
> DEV="dev eth1"
> AVP="avpkt 1000"
>
> tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP
>
> tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
>
> tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP
>
> tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
>
>
> tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
> $IP flowid 20:1
> --------------------------------------------------------------------------
--
> --------------------
> but it's not active....the bandwidth is still 10Mbit....
> Is my config's error?????
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next prev parent reply other threads:[~2001-05-14 5:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-06 22:22 [LARTC] cbq question Forstner
2001-05-10 10:50 ` [LARTC] CBQ question Gery Kahn
2001-05-11 0:19 ` Juergen
2001-05-11 6:20 ` Stef Coene
2001-05-11 6:20 ` Stef Coene
2001-05-13 15:54 ` Gery Kahn
2001-05-14 2:02 ` Juergen
2001-05-14 5:45 ` Gery Kahn
2001-05-14 5:57 ` Juergen [this message]
2001-05-14 7:33 ` Stef Coene
2001-05-14 7:33 ` 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-98981999408933@msgid-missing \
--to=lchou@staff.pccu.edu.tw \
--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