[LARTC] Not bounded but almost....

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux