[ns] How to assign different transmission ranges for different nodes ??

Mathiew Moussa mmm59 at aub.edu.lb
Tue Mar 3 01:14:01 PST 2009


Hello Daniel,

Thanks for offering the help.

Its weird that in NS2 the solution for my query isn't built in easily.
I think i got what your proposed solution is and i will try it soon.

You see all i wanted initially is to have a wireless sensor networks  
who's sinks can transmit at a radius of say 500m and sensors can  
transmit say around 200m and after that run a setup algorithm to see  
what sensors can reach which sinks.

The main problems I encountered were:
-setting the transmission ranges (the question you replied to)

-and constructing the neighbor lists, not at each node but rather at a  
command node which is central. For this I used god.cc because it has  
global parameters, it also had a constant "RANGE" which i ignored  
initially and then started asking    what made it different from the  
parameters you explained below.

Basically these were the main inquiries. Do you think there's  
something i'm doing wrong (im still a beginner).

Thanks.
Mathiew





Quoting Daniel Mahrenholz <mahrenholz at rt-solutions.de>:

> Hi Mathiew,
>
> you should keep one very important thing in mind: You CANNOT set
> transmission ranges. You can set transmitter and antenna properties for
> each node (power, gain, ...). Now the transmission range is the result
> of the combination of a sender (how strong is the signal transmitted),
> a propagation model aka environment (how strong is the signal
> attenuated), and a receiver (how sensitive is the antenna).
>
> Now for your initial question. If you instantiate a wireless node, you
> set all properties like transmission power, antenna gain etc.
> beforehand. If you change these properties before instantiating the
> next node, you will get nodes with different properties and hence
> "transmission ranges".
>
> If you plan to do serious wireless research you should take some time
> to understand wireless propagation - most CS people misunderstand this
> point. If you like to learn more, just ask me.
>
> Daniel.
>
> Mathiew Moussa schrieb:
>> Hi Kiran,
>>
>> Thanks for the reply.
>>
>> I didnt really understand what you tried to say, do you mean i set   
>> the range for each node in the initialization loop, if yes, can you  
>>  attach  a small example.
>>
>> I'm new to ns2, so I was also wondering, can you retrieve the    
>> transmission range value of the nodes in C++ ?
>>
>> Thanks alot.
>> Mathiew
>>
>> Quoting Kiran K Chauhan <kiran.cabs at gmail.com>:
>>
>>
>>> Hi Mathiew,
>>>
>>> You can do the same using the node-config for all nodes separately.
>>> Since Phy/WirelessPhy set Pt_ 0.2818       ;# 250m gets used during node
>>> configuration.
>>> So node-config for one node followed by initializing the node and   
>>> wise versa
>>>
>>> Regards
>>>
>>> Kiran
>>>
>>> On Mon, Mar 2, 2009 at 3:12 PM, Mathiew Moussa <mmm59 at aub.edu.lb> wrote:
>>>
>>>
>>>> Hi All,
>>>>
>>>> I was wondering if anyone knows how to assign different transmission
>>>> ranges for various Nodes in the network.
>>>>
>>>> In my network i have sinks and sensor and i want the sinks to have a
>>>> larger transmission range than that of the sensors.
>>>>
>>>> we usually assign the transmission range of nodes using a command in
>>>> tcl similar to :
>>>>
>>>> #Phy/WirelessPhy set Pt_ 0.2818       ;# 250m
>>>>
>>>> and so i was also wondering what the constant "RANGE" in mobile/god.h
>>>> stood for and what range it controlled ?? The RANGE is used in god.cc
>>>> by method isNeighbor to calculate if 2 nodes are neighbors.
>>>>
>>>>
>>>> I hope someone can help we this because it's urgent, thanks.
>>>>
>>>> Mathiew
>>>>
>>>>
>>>>
>>> --
>>> ........................................................................................................................................................
>>> Every footstep in life is full of possibilities we just need to know our
>>> ability to explore them
>>> ........................................................................................................................................................
>>> ........................................................................................................................................................
>>>
>>>
>>
>>
>>
>>
>>
>>






More information about the Ns-users mailing list