[ns] using CBRGEN.tcl script

James Büültjens j.buultjens at student.qut.edu.au
Sat Apr 9 07:26:38 PDT 2005


Hi

i'm using cbrgen.tcl to generate traffic. i get the following
where the #comment contradicts the actual node assignment. any
ideas on how to correct this ?

# 4 connecting to 6 at time 146.96568928983328
#
set udp_(2) [new Agent/UDP]
$ns_ attach-agent $node_(4) $udp_(2)
set null_(2) [new Agent/Null]
$ns_ attach-agent $node_(6) $null_(2)
set cbr_(2) [new Application/Traffic/CBR]
$cbr_(2) set packetSize_ 512
$cbr_(2) set interval_ 0.25
$cbr_(2) set random_ 1
$cbr_(2) set maxpkts_ 10000
$cbr_(2) attach-agent $udp_(2)
$ns_ connect $udp_(2) $null_(2)
$ns_ at 146.96568928983328 "$cbr_(2) start"

TIA

James



More information about the Ns-users mailing list