Andrea M schrieb: > Hello, I found this string in NS Manual, how can I use it? > > [quote]$mobilenode radius <r> > > The radius <r> denotes the node's range. All mobilenodes that fall within > the circle of radius <r> with the node at its center > are considered as neighbours.[/quote] > > I used it like: > $node_(0) radius 50 > > but It seems to do not work. >
This must be a very old piece of code and does not make any sense at all. In practice there is nothing like a transmission radius. If a node receives a packet depends on the propagation model. If you need a specific transmission radius (which btw is not really realistic) you can calculate the corresponding propagation parameters using the propagation.cc helper tool. Better setup the propagation parameters to reflect the conditions in the simulated environment and see what happens. Daniel.