[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] dsr nodes
"Rebecca L. Braynard" wrote:
> When i am using the dsr ad hoc protocol, can I just create nodes with:
> #configure nodes
> $ns_ node-config -adhocRouting $val(rp) \
>
> ...
> for {set i 0} {$i < $val(nn) } {incr i} {
> set node_($i) [$ns_ node ]
> $node_($i) random-motion 0 ;# disable random motion
> }
Use this one. Ad hoc routing is now part of the standard nodes, so you
don't have to call *-create-mobile-node in your scripts. Don't forget to
set $val(rp) to DSR.
---
> or must i use something like:
> for {set i 0} {$i < $opt(nn) } {incr i} {
> dsr-create-mobile-node $i
> }
This is the old way from Monarch. It is not use any more.
-- Felix Hernandez Campos