[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Error on simple multicast script



Hi!
I'm trying to simulate some multicast scenarios with ns. I got some errors
on those scenarios, so I decide to simulate a simpler one, but I still got
an error. This is the code of the script:

#---------------------------------------------------------------------------
-----------------
#simple multicast scenario
set ns [new Simulator -multicast on]
$ns color 1 Blue
set f [open ./mos075.tr w]
$ns trace-all $f
set nf [open ./aleatmos.nam w]
$ns namtrace-all $nf
proc finish {} {
global f nf ns
puts stdout "fin"
$ns flush-trace
close $f
close $nf
exec nam ./aleatmos.nam &
exit 0
}
set group [Node allocaddr]
set node0 [$ns node]
set node1 [$ns node]
set node2 [$ns node]
set node3 [$ns node]
$ns duplex-link $node0 $node1 1.5Mb 10ms DropTail
$ns duplex-link $node1 $node2 1.5Mb 10ms DropTail
$ns duplex-link $node1 $node3 1.5Mb 10ms DropTail
set mproto DM
DM set PruneTimeout 0.3
DM set CacheMissMode dvmrp
set mrthandle [$ns mrtproto $mproto]
set udp [new Agent/UDP]
$ns attach-agent $node0 $udp
set src [new Application/Traffic/CBR]
$src attach-agent $udp
$udp set dst_addr_ $group
$udp set dst_port_ 0
$udp set class_ 1
set rcvr [new Agent/LossMonitor]
$ns attach-agent $node2 $rcvr

set rcvrb [new Agent/LossMonitor]
$ns attach-agent $node3 $rcvrb
$ns at 0.2 "$src start"
$ns at 0.3 "$node2 join-group $rcvr $group"
$ns at 0.5 "$node3 join-group $rcvr $group"
$ns at 0.8 "$node2 leave-group $rcvr $group"
$ns at 1.0 "$src stop"
$ns at 1.5 "finish"
$ns run
#---------------------------------------------------------------------------
------------------------------
and this is the error I get from the simulation:
----------------------------------------------------------------------------
ns: _o132 timeout: no value given for parameter "oif" to "_o108"
(DM timeoutPrune line 1)
invoked from within
"$proto_ timeoutPrune"
(procedure "_o132" line 3)
(Timer/Iface/Prune timeout line 3)
invoked from within
"_o132 timeout"
----------------------------------------------------------------------------
--------------------------------------

Can anybody help me with this matter? Thank-you in advance.

Manuel P�rez de Castro (
[email protected])
ETSI. Telecomunicaciones- UPV
Valencia (Espa�a)