All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tzeh Yeu Leang" <ltyvjc@hotmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] AF
Date: Fri, 11 May 2001 02:26:52 +0000	[thread overview]
Message-ID: <marc-lartc-98954802304509@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98929007623241@msgid-missing>

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.


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

  reply	other threads:[~2001-05-11  2:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-08  2:47 [LARTC] AF Tzeh Yeu Leang
2001-05-11  2:26 ` Tzeh Yeu Leang [this message]
2001-05-14  6:43 ` Juergen
2001-05-14 17:06 ` Rodrigo Goya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98954802304509@msgid-missing \
    --to=ltyvjc@hotmail.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.