cbq + gred doesn't drop packets

Linux Advanced Routing and Traffic Control

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

 



Hi i have configured my server with cbq and gred. The
problem is that the cbq doesnt drop packets. The cbq
is configured at a rate of 500Kbit
"qdisc cbq 4: rate 500000bit (bounded,isolated) prio
no-transmit
 Sent 100103048 bytes 73933 pkts (dropped 0,
overlimits 0)
  borrowed 0 overactions 0 avgidle 24000 undertime 0
"

The traffic that being generated is more than 5Mbit
with the appropriate tos. The traffic is identified
correctly and pass succesfully from the cbq but no one
packet gets dropped.. What do u suggest me to do?

Below is the code for the configuration.. it works
find and no error message appears

$tc qdisc add dev $DEV handle 1:0 root dsmark indices
64 set_tc_index
#default_index 0
$tc filter add dev $DEV parent 1:0 protocol ip prio 1
tcindex mask 0xfc shift 2 pass_on
$tc qdisc add dev $DEV parent 1:0 handle 2:0 prio
$tc filter add dev $DEV parent 2:0 protocol ip prio 1
tcindex mask 0xf00 shift 8

#  EF priority class, TBF, and its filter
echo 'installing EF'

$tc filter add dev $DEV parent 1:0 protocol ip prio 1
handle 0x2e tcindex classid 1:111
$tc filter add dev $DEV parent 2:0 protocol ip prio 1
handle 1 tcindex classid 2:1
$tc qdisc add dev $DEV parent 2:1 tbf rate $EF_RATE
burst $EF_BURST mtu $EF_MTU limit $EF_LIMIT


# AF & BE CBQ, and its filter
echo 'installing CBQ'

$tc filter add dev $DEV parent 2:0 protocol ip prio 1
handle 2 tcindex classid 2:2
$tc qdisc add dev $DEV parent 2:2 handle 4:0 cbq
bandwidth 500Kbit cell 8 avpkt 1500 mpu 64
$tc filter add dev $DEV parent 4:0 protocol ip prio 1
tcindex mask 0xf0 shift 4

# BE
echo 'installing BE'

$tc filter add dev $DEV parent 1:0 protocol ip prio 1
handle 0 tcindex classid 1:250
$tc class add dev $DEV parent 4:0 classid 4:5 cbq
bandwidth $Total_Rate rate $BE_RATE avpkt 1500 prio 1
bounded allot 1514 weight 1 maxburst 21
$tc filter add dev $DEV parent 4:0 protocol ip prio 1
handle 5 tcindex classid 4:5
$tc qdisc add dev $DEV parent 4:5 red limit $BE_LIMIT
min $BE_MIN max $BE_MAX burst $BE_BURST avpkt 1500
bandwidth $Total_Rate probability $BE_PROB


# AF1 Class
echo 'installing AF1'
$tc class add dev $DEV parent 4:0 classid 4:1 cbq
bandwidth $Total_Rate rate $AF_RATE1 avpkt 1500 prio 5
bounded allot 1514 weight 1 maxburst 21
$tc filter add dev $DEV parent 4:0 protocol ip prio 1
handle 1 tcindex classid 4:1
$tc qdisc add dev $DEV parent 4:1 gred setup DPs 3
default 3 $GRIO

# AF11
echo 'installing AF11'
$tc filter add dev $DEV parent 1:0 protocol ip prio 1
handle 0x0a tcindex classid 1:211
$tc qdisc change dev $DEV parent 4:1 gred limit
$DP_LIMIT1 min $DP_MIN1 max $DP_MAX1 burst $DP_BURST1
avpkt 1500 bandwidth $Total_Rate DP 1 probability 0.02
prio 2


# AF12
echo 'installing AF12'
$tc filter add dev $DEV parent 1:0 protocol ip prio 1
handle 0x0c tcindex classid 1:212
$tc qdisc change dev $DEV parent 4:1 gred limit
$DP_LIMIT2 min $DP_MIN2 max $DP_MAX2 burst $DP_BURST2
avpkt 1500 bandwidth $Total_Rate DP 2 probability 0.04
prio 3


# AF13
echo 'installing AF13'
$tc filter add dev $DEV parent 1:0 protocol ip prio 1
handle 0x0e tcindex classid 1:213
$tc qdisc change dev $DEV parent 4:1 gred limit
$DP_LIMIT3 min $DP_MIN3 max $DP_MAX3 burst $DP_BURST3
avpkt 1500 bandwidth $Total_Rate DP 3 probability 0.06
prio 4






		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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