Skip to contentSkip to conversation

Not bounded but almost....

LARTC Torbjörn Eklöv 1 participant 1 message Sep 27, 2001

lore
Share & tools
lore
#0 lore raw

Hi, I have a question about CBQ and wonder if I can make a class that are guaranteed 2Mbit but can borrow excess bandwith and only to specific rate. In my exampel below I want to guarantee the network x.x.x.x/y 2Mbit and they can borrow up to MAX 4Mbit.
I have tried to create subclasses but it only works like bounded or not.

# tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 
cell 8 mpu 64 
# tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate 
10Mbit weight 1Mbit \
prio 8 allot 1514  maxburst 20 avpkt 1000
# tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 10Mbit 
rate 2048Kbit weight \
200Kbit prio 5 allot 1514  maxburst 20 avpkt 1000 "not bounded but max 
4Mbit" <------------------
# tc qdisc add dev eth0 parent 10:1 sfq quantum 1514b perturb 8
# tc filter add dev eth0 parent 10:0 protocol ip prio 5 u32 match ip src 
x.x.x.x/y flowid 10:200

Regards, Tobbe Eklov
Interlan Sweden

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