Dear all,
I am using the MPLS simulator for ns-2.1b8a-win
(win NT).
I'm trying to run the essai.tcl but I 'm getting
the following errors. I used exactly the same code from tutorial, it's not
running. The errors that I'm getting are :
(_o3 cmd line 1) invoked from within "_o3 cmd MPLSnode" invoked from within "catch "$self cmd $args" ret" (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "$ns MPLSnode" invoked from within "set LSR2 [$ns MPLSnode]" (file "essai.tcl" line 18.
Someone who know this problem,
Please help me.
Thanx.
Bouallegue. **********************************************************************
ESSAI.TCL
***********************************************************************
set ns [new Simulator]
set nf [open test-mpls.nam w]
$ns namtrace-all $nf
proc finish {} {
global ns nf
$ns flush-trace
close $nf
#exec nam test-mpls.nam &
exit 0
}
#
# make nodes & MPLSnodes
#
set Node0 [$ns node]
set Node1 [$ns node]
set LSR2 [$ns MPLSnode]
set LSR3 [$ns MPLSnode]
set LSR4 [$ns MPLSnode]
set LSR5 [$ns MPLSnode]
set LSR6 [$ns MPLSnode]
set LSR7 [$ns MPLSnode]
set LSR8 [$ns MPLSnode]
set Node9 [$ns node]
set Node10 [$ns node]
$ns duplex-link $Node0 $Node1 1Mb 10ms
DropTail
$ns duplex-link $Node1 $Node9 1Mb 10ms
DropTail
$ns duplex-link $Node9 $Node10 1Mb 10ms
DropTail
#Create a Null agent (a traffic sink) and attach it to
node node10
set sink0 [new Agent/LossMonitor]
$ns attach-agent $Node10 $sink0
######Create a UDP agent and attach it to node
node0
set udp1 [new Agent/UDP]
$ns attach-agent $Node0 $udp1
# Create a CBR traffic source and attach it to
udp1
set cbr1 [new Application/Traffic/CBR]
$cbr1 set packetSize_ 500
$cbr1 set interval_ 0.005
$cbr1 attach-agent $udp1
$ns connect $udp1 $sink0
$ns at 10.0 "$cbr1 start"
$ns at 50.0 "$cbr1 stop"
$ns at 30.0 "finish"
$ns run
|