All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Strange filter behavior
@ 2005-01-06 14:54 Andre Correa
  0 siblings, 0 replies; only message in thread
From: Andre Correa @ 2005-01-06 14:54 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]


Hi list, I'm in trouble with a scenario and would like to know if you 
guys can help me explain and work it out:

I need to put some customers in a class of, lets say, 1Mbit/s and try to 
garantee then a percentage of the bandwith. So I came up with the 
following scenario

# root stuff
tc qdisc add dev eth0 root handle 1: htb default 2
tc class add dev eth0 parent 1: classid 1:1 htb rate 50000kbit
# default class
tc class add dev eth0 parent 1: classid 1:2 htb rate 2000kbit

# root class for this "garanteed bandwidth" service
tc class add dev eth0 parent 1: classid 1:3 htb rate 10Mbit

# class for this 1Mbit shared bandwidth
tc class add dev eth0 parent 1:3 classid 1:1024 htb rate 1Mbit
# qdisc used to _make my life easier numbering customer classes_
tc qdisc add dev eth0 parent 1:1024 handle 1024: htb default 250
# default class for this second qdisc
tc class add dev eth0 parent 1024: classid 1024:250 htb rate 32kbit

# each customer gets the following class and filter
tc class add dev eth0 parent 1024: classid 1024:1 htb rate 256kbit
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst 
xxx.xxx.xxx.xxx/yy flowid 1024:1

# another customer...
tc class add dev eth0 parent 1024: classid 1024:2 htb rate 256kbit
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst 
www.www.www.www/zzz flowid 1024:2


First, this filters doesn't work, all traffic goes to 1:2. Why? I can 
filter traffic to any class at 1:? but not to classes below the second 
qdisc (1:1024).

Shouldn't I make this filter pointing to 1024: as the parent? It doesn't 
let me do it...

Any help?

Tks for you help and attention.

ADC

[-- Attachment #2: andre.correa.vcf --]
[-- Type: text/x-vcard, Size: 203 bytes --]

begin:vcard
fn:Andre Correa
n:Correa;Andre
adr:;;;Sao Paulo;SP;;Brazil
email;internet:andre.correa@pobox.com
tel;fax:+1 503 907-8907
tel;cell:+55 11 9187-1906
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-06 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-06 14:54 [LARTC] Strange filter behavior Andre Correa

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.