From: Amit Kucheria <amitk@ittc.ku.edu>
To: lartc@vger.kernel.org
Subject: [LARTC] CBQ bounded & isolated
Date: Wed, 21 Aug 2002 22:29:54 +0000 [thread overview]
Message-ID: <marc-lartc-102996904822756@msgid-missing> (raw)
I am trying to reproduce Stef's CBQ tests from www.docum.org
My setup is very simple :
testbed43 --------> testbed44 -------> testbed45
(src) (CBQ) (sink)
192.168.10.2 in: 192.168.10.254 192.168.100.2
out: 192.168.100.254
I have 2 isolated classes (2:2 and 2:3) which need to share the
bandwidth. I have only one traffic source at the moment whose traffic is
sent into 2:2, but *doesnot* get limited to the rate specified in 2:2.
Any clues would be welcome.
TIA.
ciao,
Amit
p.s. Stef - You 'tests' page is down.
The script follows:
-----------------------------------------------------------------
#!/bin/sh -x
# Script to see the working of bounded and isolated
TC="/usr/bin/tc"
DEV="dev eth1"
AVPKT="avpkt 1514"
BW="bandwidth 10Mbit"
MAXBURST="maxburst 200"
MPU="mpu 64"
CELL="cell 8"
ALLOT="allot 1514"
#RATE1="rate 6Mbit weight 600Kbit"
#RATE2="rate 4Mbit weight 400Kbit"
RATE1="rate 150Kbit weight 150Kbit"
RATE2="rate 200Kbit weight 200Kbit"
# Root qdisc (10 Mbit)
$TC qdisc add $DEV root handle 1:0 cbq $BW $AVPKT $CELL
# Root class (10Mbit)
$TC class add $DEV parent 1:0 classid 1:1 cbq $BW $CELL \
prio 3 rate 10Mbit $ALLOT $MAXBURST $AVPKT \
bounded
# Enclosing qdisc (10 Mbit)
$TC qdisc add $DEV parent 1:1 handle 2:0 cbq $BW $AVPKT $CELL
# Enclosing class (10 Mbit)
$TC class add $DEV parent 2:0 classid 2:1 cbq $BW $CELL \
prio 3 rate 10Mbit $ALLOT $MAXBURST $AVPKT
# Real-time class (6Mbit)
$TC class add $DEV parent 2:1 classid 2:2 cbq $BW $CELL \
prio 3 $RATE1 $ALLOT $MAXBURST $AVPKT \
isolated
# Best-effort class (4Mbit)
$TC class add $DEV parent 2:1 classid 2:3 cbq $BW $CELL \
prio 3 $RATE2 $ALLOT $MAXBURST $AVPKT \
isolated
# Dummy filter (qdisc 1:0 to class 1:1)
$TC filter add $DEV parent 1:0 protocol ip prio 2 u32 match ip tos 0x00
0x00 flowid 1:1
# RSVP filter to send RT traffic from 2:0 to 2:2
$TC filter add $DEV parent 2:0 protocol ip prio 2 rsvp \
ipproto udp session 192.168.100.2/9001 flowid 2:2
-----------------------------------------------------------------
--
I'm an angel!!! Honest!
The horns are just there to hold the halo up straight.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Amit Kucheria
EECS Grad. Research Assistant
University of Kansas @ Lawrence
(R): +1-785-830-8521 ||| (C): +1-785-760-2871
____________________________________________________
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2002-08-21 22:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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-102996904822756@msgid-missing \
--to=amitk@ittc.ku.edu \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox