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 / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to