neighbors that are within the transmission range of a wifi node

329 views
Skip to first unread message

amine zouaoui

unread,
Jul 9, 2013, 4:04:09 PM7/9/13
to ns-3-...@googlegroups.com
Hi;

I want to get a wifi node neighbors that are within its transmission range and not all the nodes that have a netDevice on the same channel object.

method : "Node::GetDevice (i)->GetChannel ()->GetNDevices();" return the number of neighbors of a device (node) and it counts all the devices which share the same channel. so method : "Node::GetDevice (i)->GetChannel ()->GetDevice(j);" (return the j neighbor device of a device (node)) can return a neighbor device which shares the same channel and which is not within the transmission range of our netDevice (node). 

Is there other methods that return just neighbors and number of neighbors that are within the transmission range of a node?

thank you. 

oark saha

unread,
Jul 23, 2013, 8:20:23 AM7/23/13
to ns-3-...@googlegroups.com
have you found the solution..please do post ...

Deep Singh

unread,
Jul 24, 2013, 1:16:03 AM7/24/13
to ns-3-...@googlegroups.com
Yeah I'm also looking for it. Please help us here...

PATEL RAJANKUMAR

unread,
Jul 24, 2013, 6:13:29 AM7/24/13
to ns-3-...@googlegroups.com
hi
could u send the complete code, please.
i need to use or discover the neighbor node.

thanks


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

amine zouaoui

unread,
Jul 25, 2013, 8:39:37 PM7/25/13
to ns-3-...@googlegroups.com
Hi;
I didn't find the solution yet, but I use a temporary solution -where neighboring relations is obtained from the topology-  until find another solution.
I'm working on a grid topology (X*Y) where nodes are at fixed position. and consider that :
-"DeltaX" and "DeltaY" = 175,
-"GridWidth" = X
-and "LayoutType" is "RowFirst"
so, neigbhors of node N are obtained as follow:
let :
m = N / X
and r = (N - (m * X)). or r= N%X
if ( r != 0 ) => node (N - 1) is a neighbor of node N
if ( r != ( X - 1 ) ) =>  node (N + 1) is a neighbor of node N
if ( m != ( Y - 1 ) => node (N + X) is a neighbor of node N
if ( m != 0 ) => node (N - X) is a neighbor of node N

for example : in a topology of 10*6, neighbors of node 33 are nodes : 32, 34, 43 and 23
and in a topology of 5*4, neighbors of node 14 are nodes : 13, 24 and 9.
I hope that helps.   


--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/rX3BoP2RioQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Prathap Uppara

unread,
Sep 30, 2014, 11:43:45 AM9/30/14
to ns-3-...@googlegroups.com
Hi,
Any update on finding the neighbor node?
Pls share if there is a API to find the same.
Thanks

Konstantinos

unread,
Sep 30, 2014, 12:31:11 PM9/30/14
to ns-3-...@googlegroups.com
Hi,

The simplest way to do that is to broadcast HELLO messages and keep track of those you hear.
This is already implemented in OLSR and AODV protocols and it is not hard to do it yourself.
Reply all
Reply to author
Forward
0 new messages