[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Centralized Multicast error
Hi, I am trying to make a simulation using the Centralized Multicast as
I have read in the manual:
set ns [new Simulator]
Simulator set EnableMcast_ 1
set group [Node allocaddr]
Simulator set NumberInterfaces_ 1
Node set multiPath_ 1
for {set i 0} {$i < 71} {incr i} {
set n($i) [$ns node]
$n($i) shape "other"
}
#Start multicast configuration
set mproto CtrMcast
set mrthandle [$ns mrtproto $mproto {}]
$mrthandle set_c_rp {$n(26) $n(34)}
$mrthandle set_c_bsr {$n26:0 $n(34):1}
$mrthandle get_c_rp $n26 $group
$mrthandle get_c_bsr $n26
$mrthandle compute-mroutes
but I have obtained this error :
Flag variable Simulator::EnableMcast_ discontinued.
Use multicast methods as:
% set ns [new Simulator -multicast on]
% $ns multicast
invalid command name "$n(26)"
while executing
"$node getArbiter"
(procedure "_o1972" line 11)
(CtrMcastComp set_c_rp line 11)
invoked from within
"$mrthandle set_c_rp { $n(26) $n(34)}"
(file "exCBT.tcl" line 115)
Could anybody help me?
Thanks
--
Mailto:[email protected] Tel +33 (0) 4 76 61 52 16
* INRIA Rhone-Alpes FRANCE - Projet SIRAC (fax 52 52)
* http://sirac.inrialpes.fr/