[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Centralized Multicast error
Paula,
The manual isn't as updated as the nsDoc documentation. This is
probably why your script isn't working quite right.
On Mon, 30 Nov 1998, Paula Rincon Mancheno wrote:
> 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)}
This should be:
$mrthandle set_c_rp $n(26) $(34)
> $mrthandle set_c_bsr {$n26:0 $n(34):1}
This should be:
$mrthandle set_c_bsr $n(26):0 $n(34):1
> $mrthandle get_c_rp $n26 $group
> $mrthandle get_c_bsr $n26
1. $n26 should be $n(26)
2. you need to create links to connect your 71 nodes somehow for the
get_c_rp and get_c_bsr function to work, so does compute-mroutes.
hope this helps
-Polly
> $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/
>