Hello all:
I have an CLIP interface 'atm0'. I am trying to set up a set of classes 
from a linux box A to another linux box B over a Fore ATM switch. 

BOX A <---> SWITCH <---> BOX B

I have pvcs between boxes and the switches. I have set the CBR rate on the
pvcs set to 10Mbps (this is 'cause I am trying to emulate a link which has
only 10Mbps).

What I intend doing is have a set of classes (just 2 currently) and give
higher priority to one class. At the same time, I intend to throttle the
rate at which the boxes send using a TBF. I have attached the script I 
used for this purpose at the end of this mail. I ran this script on one
machine only, as I wanted to test the throughput in one direction only. 

I ran a ttcp (with UDP) and tried to see the results. However, I seem to 
be getting very different values everytime. I get 0.02 Mb/s at times and
then I get 1.12 Mb/s at times, and again, I get 8.12 Mb/s at times. I am
not sure why this difference is there. Any help would be highly
appreciated. 

Thanks a lot, 
Sarav


This is the script I used:

------------------------------------------------------------------------
# Set up the outer-most queuing discipline.
tc qdisc add dev atm0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt
1000 mpu 64

tc class add dev atm0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
10Mbit allot 1514 weight 1 prio 7 maxburst 20 avpkt 1000 bounded

# Set up class 1.
tc class add dev atm0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate
2Mbit allot 1514 weight 1 prio 1 maxburst 20 avpkt 1000 bounded

# Set up the TBF for this class.
tc qdisc add dev atm0 parent 1:2 tbf rate 1024Kbit burst 10K limit 10Kb

# Set up the filter for class 1.
tc filter add dev atm0 parent 1:0 prio 1 handle 1: protocol ip u32 divisor
1
tc filter add dev atm0 parent 1:0 prio 1 u32 match ip dst 10.0.0.14 match
ip protocol 17 0xff match ip dport 0x0fa1 0xffff flowid 1:2

# Set up class 2.
tc class add dev atm0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate
3Mbit allot 1514 weight 1 prio 2 maxburst 20 avpkt 1000 bounded isolated

# Set up the TBF for this class.
# tc qdisc add dev atm0 parent 1:3 tbf rate 1024Kbit burst 20K limit 10Kb

# Set up the filter for class 2.
tc filter add dev atm0 parent 1:0 prio 2 handle 2: protocol ip u32 divisor
1
tc filter add dev atm0 parent 1:0 prio 2 u32 match ip dst 10.0.0.14 match
ip protocol 17 0xff match ip dport 0x1389 0xffff flowid 1:3

-------------------------------------------------------------------------




-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to