Skip to contentSkip to conversation

Does each filter share bandwidth in a class?

LARTC Carl Peterson 1 participant 1 message Sep 22, 2006

lore
Share & tools
lore
#0 lore raw

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
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc