Folks,
I am a newbie and trying to simulate LS link-state routing protocol on NS-2.
It works well with DV, distance-vector protocol.
I have attached the a fragment of the simulation script and the error
message below.
May be I am missing something simple.
Any help on how to debug/get it to work is Greatly Appreciated.
Thanks,
Ajay.
Here is the script fragment:
###############################################
*
*
*
#Set Queue Size of link (n2-n3) to 10
$ns queue-limit $n1 $n2 2
#Monitor the queue for link (n2-n3). (for NAM)
$ns duplex-link-op $n1 $n2 queuePos 0.5
#Simulate link failure
$ns rtmodel-at 0.2 down $n0 $n1
$ns rtmodel-at 1.9 up $n0 $n1
# now set up some events
$ns at 0.1 "$cbr start"
$ns at 2.0 "$cbr stop"
#Call the finish procedure after 3 seconds of simulation time
$ns at 3.0 "finish"
#Print CBR packet size and interval
puts "CBR packet size = [$cbr set packet_size_]"
puts "CBR interval = [$cbr set interval_]"
$ns rtproto LS
proc finish {} {
global ns f nf
$ns flush-trace
close $f
close $nf
puts "running nam..."
exec nam 4cycle.nam &
exit 0
}
$ns run
###############################################
I get the following error.
ns: _o131 get-all-nodes:
(_o131 cmd line 1)
invoked from within
"_o131 cmd get-all-nodes"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o131" line 2)
(SplitObject unknown line 2)
invoked from within
"_o131 get-all-nodes"
OSPF CONVERGENCE TABLE