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

[ns] DRR and how much each flow can send during its turn



Hello,

I'm in desperate need of help. I need to know how to set the quantum_ parameter 
for the RDD queue for different flows, in essence giving each flow a level of 
priority.

bellow is the relevant code:

$ns duplex-link $n0 $n2 1Mb 10ms DropTail
$ns duplex-link $n1 $n2 1Mb 10ms DropTail
$ns duplex-link $n2 $n3 1Mb 10ms DRR

set q [[$ns link $n2 $n3] queue]

$q set buckets_ 2
$q set quantum_ 400

this line however seems to set the quantum for both flows to the same value. I 
have two flows entering the queue and I want to give one flow a higher priority 
(quantum) than the other (I am trying to implement a simple model of an 
Audio/Video stream i.e. the audio always has a higher priority).

I have tried 

$udp0 set quantum_  400
$udp1 set quantum_  100

but this doesn't work either.

Please, Please, Please help.

PS. if you think I'm barking up the wrong tree with this approach to my priority 
problem then any alternative suggestions would be greatly appreciated.

Stephen Coulson
---------------
S.D.Coulson@scm.brad.ac.uk
sdcoulson@hotmail.com

*************************************
http://www.geocities.com/sdcoulson_uk
*************************************

Why Rule The World When I Can Eat Baked Beans (Neil Freeman 15/11/99)