* Re: [LARTC] cbq (root class) rate problem]
@ 2002-05-07 17:07 Leandro Stasi
2002-05-07 18:07 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Leandro Stasi @ 2002-05-07 17:07 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
>>I did a workaround by creating an extra class with root class as parent
>>and isolated,bounded
>>
>>
>>But I don't like to have extra classes just becuse I can control root
>>class.
>>
>>tc qdisc add dev eth0 root handle 10:0 cbq bandwidth 10mbit avpkt 1000
>>cell 8
>>
>>tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10mbit
>>rate 50kbit allot 1514 cell 8 maxburst 20 avpkt 1000 isolated bounded
>>
>>tc class add dev eth0 parent 10:1 classid 10:10 cbq bandwidth 10mbit
>>rate 25kbit allot 1514 cell 8 maxburst 20 avpkt 1000 sharing borrow
>>
>>tc class add dev eth0 parent 10:1 classid 10:11 cbq bandwidth 10mbit
>>rate 25kbitallot 1514 cell 8 maxburst 20 avpkt 1000 sharing borrow
>>
> This is the way you should do it. That extra class is no problem.
You can
> remove the sharing and borrow parameter if you want. They are on by
default.
>
> Also provide a weight parameter (I take weight = rate/2) and attach the
> filters to the root qdisc and point them direclty to the end class.
>
> Stef
>
>
It is useless to attach a qdisc (like sfq) to the extra class?
What is the difference between attaching the filter to the root qdisc or
to the leaf classes?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] cbq (root class) rate problem]
2002-05-07 17:07 [LARTC] cbq (root class) rate problem] Leandro Stasi
@ 2002-05-07 18:07 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2002-05-07 18:07 UTC (permalink / raw)
To: lartc
> > Also provide a weight parameter (I take weight = rate/2) and attach the
> > filters to the root qdisc and point them direclty to the end class.
> >
> > Stef
>
> It is useless to attach a qdisc (like sfq) to the extra class?
No. Default, the classes uses a PRIO qdisc (or FIFO, I'm not sure) to send
the data. And you can replace it with SFQ.
> What is the difference between attaching the filter to the root qdisc or
> to the leaf classes?
If tried it a few times. And the result was that I had to supply the weight
parameter and uses filters attached to the root qdisc to get the results like
I wanted.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-07 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-07 17:07 [LARTC] cbq (root class) rate problem] Leandro Stasi
2002-05-07 18:07 ` Stef Coene
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.