[LARTC] AF

Linux Advanced Routing and Traffic Control

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

 



Hi all,

I am trying out the example script afcbq. I tried to set different prio to the 3 DPs, but it always shows the default value(which is 8). Can anyone who has experimented with AF before point out where is my mistake?? Thanks.

# --- General setup ---
tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 set_tc_index
tc filter add dev eth1 parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2 pass_on
tc qdisc add dev eth1 parent 1:0 handle 2:0 cbq bandwidth 100Mbit cell 8 avpkt 1000 mpu 64
tc filter add dev eth1 parent 2:0 protocol ip prio 1 tcindex mask 0xf0 shift 4 pass_on


# --- AF Class 1 specific setup---
tc class add dev eth1 parent 2:0 classid 2:1 cbq bandwidth 100Mbit rate 2Mbit avpkt 1000 prio 1 bounded allot 1514 weight 1 maxburst 21
tc filter add dev eth1 parent 2:0 protocol ip prio 1 handle 1 tcindex classid 2:1
tc qdisc add dev eth1 parent 2:1 gred setup DPs 3 default 2


# --- AF Class 1 DP 1---
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 10 tcindex classid 1:111
tc qdisc change dev eth1 parent 2:1 gred limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit DP 1 probability 0.02 prio 2


# --- AF Class 1 DP 2---
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 12 tcindex classid 1:112
tc qdisc change dev eth1 parent 2:1 gred limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit DP 2 probability 0.04 prio 3


# --- AF Class 1 DP 3---
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 14 tcindex classid 1:113
tc qdisc change dev eth1 parent 2:1 gred limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit DP 3 probability 0.06 prio 4


# --- AF Class 2 specific setup---
tc class add dev eth1 parent 2:0 classid 2:2 cbq bandwidth 100Mbit rate 2Mbit avpkt 1000 prio 2 bounded allot 1514 weight 1 maxburst 21
tc filter add dev eth1 parent 2:0 protocol ip prio 1 handle 2 tcindex classid 2:2
tc qdisc add dev eth1 parent 2:2 gred setup DPs 3 default 2


# --- AF Class 2 DP 1---
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 18 tcindex classid 1:121
tc qdisc change dev eth1 parent 2:2 gred limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit DP 1 probability 0.02 prio 2


# --- AF Class 2 DP 2---
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 20 tcindex classid 1:122
tc qdisc change dev eth1 parent 2:2 gred limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit DP 2 probability 0.04 prio 3


# --- AF Class 2 DP 3---
tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 22 tcindex classid 1:123
tc qdisc change dev eth1 parent 2:2 gred limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit DP 3 probability 0.06 prio 4


#------BE Queue setup------
tc filter add dev eth1 parent 1:0 protocol ip prio 2 handle 0 tcindex mask 0 classid 1:1
tc class add dev eth1 parent 2:0 classid 2:5 cbq bandwidth 100Mbit rate 2Mbit avpkt 1000 prio 8 bounded allot 1514 weight 1 maxburst 21
tc filter add dev eth1 parent 2:0 protocol ip prio 1 handle 0 tcindex classid 2:5
tc qdisc add dev eth1 parent 2:5 red limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit probability 0.4


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




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