Phitsanu Eamsomboon schrieb:
> Dear All
>         My name is Phitsanu from Thailand , I  to do my research about ad
> hoc network , In my research having 100 mobile nodes but I want to set 50
> nodes can communicated in 250 m and another 50 node communicated in 500 node
> . How can I set in tcl for NS-2 ?
>
>   
Use antennas with different gains. Change the global settings for the 
antenna gain before you create a node. That means, set it to (for 
example) to 2dBi for the first 50 nodes and 8dBi for the next 50. Use 
the propagation.cc utility to calculate the exact parameters (search the 
list for details).

But be aware, the transmission range depends on both, the sender and the 
receiver. That means, if you have two kinds of nodes (A and B) you get 3 
different combinations and hence communication ranges (e.g. A->A: 250m, 
A->B: 400m, B->B: 500m).

Hope this helps,
Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web:     www.rt-solutions.de

rt-solutions.de
networks you can trust.

Reply via email to