I am unable to create CBR traffic in ns-2.33 or ns-2.34 following the ns tutorial
http://www.isi.edu/nsnam/ns/tutorial/ as per below I keep getting the error "invalid command name cbr"
#############################################
[root@localhost Desktop]# ns
% set ns [new Simulator]
_o4
% set nf [open out.nam w]
file3
% ns namtrace-all $nf
warning: using backward compatibility mode
file3
% proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}
% set n0 [$ns node]
_o18
% set n1 [$ns node]
_o21
% ns duplex-link $n0 $n1 1Mb 10ms DropTail
% #Create a UDP agent and attach it to node n0
% set udp0 [new Agent/UDP]
_o44
% ns attach-agent $n0 $udp0
% #Create a CBR traffic source and attach it to udp0
% set cbr0 [new Application/Traffic/CBR]
_o46
% cbr0 set packetSize_ 500
invalid command name "cbr0"
% cbr0 set interval_ 0.005
invalid command name "cbr0"
% cbr attach-agent $udp0
invalid command name "cbr"
%
###################################################
I had this problem in ns-2.33 after installing and therefore installed ns-2.34 to see if it rectified, I installed each version following the instructions from
http://www.edaboard.com/ftopic297674.html and validated each installation which came back successful.
If anyone has any ideas please help me as I have no idea what is wrong.