Skip to contentSkip to conversation

Ok, a simple one then..

LARTC Paul Wisén 2 participants 2 messages Dec 8, 2001

lore
Share & tools
lore
#0 lore raw

I use CBQ with sfq and tbf.

I want to have one "mother" class that gets all traffic in our network. So I define cbq-0010.mother
with RULE=:,192.0.0.0/24

and I want a subclass to get all the data from a specific ip. So I define a subclass

cbq-0065.8011_in
with
PARENT:0010
and RULE2.0.0.10

It doesnt matter how I do it. I've tested chainging the names, parent numbers and so on.
The mother class always gets all the data.. Why ?
Ofcourse the first rule says that it should but, what if there'se some other class that also would have triggerd on the packet ? How do I control witch class gets what packet, if therese multiple true rules.. ??

please, anyone ??

/ Paul

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#1 lore raw
Quoted 1 line · Paul Wis?n

I use CBQ with sfq and tbf.

Paul, I've seen your 'small ISP' posting but have not yet gotten round to thinking it over.

Quoted 4 lines

I want to have one "mother" class that gets all traffic in our network. So I define cbq-0010.mother
with RULE=:,192.0.0.0/24

You are using cbq.init.

Quoted 4 lines

and I want a subclass to get all the data from a specific ip. So I define a subclass

Quoted 8 lines

cbq-0065.8011_in
with
PARENT:0010
and RULE2.0.0.10

It doesnt matter how I do it. I've tested chainging the names, parent numbers and so on.
The mother class always gets all the data.. Why ?

# LEAF=none|tbf optional, default "tbf"
#

#       Instructs the script to attach leaf queueing discipline to CBQ class.
#       By default, TBF is used. This parameter is useful for parent classes
#       where you probably want to specify LEAF=none. In future it might be
#       possible to use SFQ or CBQ (or other) as leaf qdisc.

You might want to specify that. But it might be that you are exceeding the limits of cbq.init.

What you basically need is to get your second class to have a filter that comes *first*, before the filter directing all everything to cbq-0010!

Quoted 3 lines

Ofcourse the first rule says that it should but, what if there'se some other class that also would have triggerd on the packet ? How do I control witch class gets what packet, if therese multiple true rules.. ??

You can also set cbq.init to write out what it will do. Then you can change the priority of filters, making sure that the more specific rules get tested first.

Regards,

bert

Signature · 8 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
Trilab                                 The Technology People
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/