cbq

From: Damir G (damirg_at_email.si)
Date: 11/29/03


Date: Sat, 29 Nov 2003 22:46:56 +0100

Can someone tell me what to add here so a person with limit 0x2 will have
all connections working at the same speed like 10 times 10kbit/s and make
full use of his 80kbit/s because he usually gets 6 to 7KB/s.

 /sbin/tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth
100mbit
  /sbin/tc class add dev eth1 parent 1: classid 1:1 cbq rate 1200kbit
allot 1492 prio 5 bounded isolated
  /sbin/tc filter add dev eth1 parent 1: protocol ip prio 4 handle 1 fw
flowid 1:1
 /sbin/tc qdisc add dev ppp0 root handle 1: cbq avpkt 1000 bandwidth
100mbit
  /sbin/tc class add dev ppp0 parent 1: classid 1:2 cbq rate 80kbit
allot 1492 prio 5 bounded isolated
  /sbin/tc class add dev ppp0 parent 1: classid 1:3 cbq rate 560kbit
allot 1492 prio 5 bounded isolated
  /sbin/tc filter add dev ppp0 parent 1: protocol ip prio 4 handle 2 fw
flowid 1:2
  /sbin/tc filter add dev ppp0 parent 1: protocol ip prio 5 handle 3 fw
flowid 1:3