[ns] how to sonfigure variable bit rate

Aicho SAID(ENG) Aicho.Said at student.shu.ac.uk
Mon May 10 07:48:20 PDT 2004


Hello,

I am trying to generate variable bit rate sources using this commands

set rng [new RNG]
$rng seed 0

#Random packet size 
set RV [new RandomVariable/Uniform]
$RV set min_ 210
$RV set max_ 1500
$RV use-rng $rng


	#CBR TRAFFIC GENERATOR
	set cbr_($i) [new Application/Traffic/CBR]
	$cbr_($i) set packetSize_ $RV value
	$cbr_($i) set interval_ 9.23e-3
	$cbr_($i) attach-agent $udp_($i)

but the simulation finish very quickly and the only thing i see in the trace file is the node
movement information no traffic is going through. Can anyone help on the way it should be configure
so i can actually se the different packet size on the trace file. 

Thanks
Aisha

P.S: yes I enabled all trace levels

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

Miss Aisha Said
Research Student 
School of Engineering
Sheffield Hallam University
mail: aicho.said at student.shu.ac.uk
phone:+44 114 225 3254



More information about the Ns-users mailing list