[LARTC] Does each filter share bandwidth in a class?
Carl Peterson
cpeterson at portnetworks.com
Fri Sep 22 06:52:44 CEST 2006
I want to give each user 1M of bandwidth. With the rules below, will they
share one Mb or will each user get 1Mb?
I want to give each user 1M of bandwidth. With the rules below, will they
share one Mb or will each user get 1Mb?
In reality there are over a thousand users, and also outbound rules, but this
should make it simple.
# eth2 inbound maclist
tc qdisc add dev eth2 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth2 parent 1: classid 1:1 cbq rate 1024kbit allot 1500 prio
5 bounded isolated
# user1
tc filter add dev eth2 parent 1: protocol ip prio 10 u32 match u16 0x0016
0xFFFF at -14 match u32 0xB629E4D6 0xFFFFFFFF at -12 flowid 1:1
# user 2
tc filter add dev eth2 parent 1: protocol ip prio 10 u32 match u16 0x0014
0xFFFF at -14 match u32 0xA5457120 0xFFFFFFFF at -12 flowid 1:1
Thanks,
Carl
More information about the LARTC
mailing list