neighbors not receiving each other's packet ?!!!!

37 views
Skip to first unread message

jen lo

unread,
May 13, 2012, 11:14:45 AM5/13/12
to ns-3-users
Hello.

In my simple network
--------------------------------
-node 1 and node 3 are neighbors ! (you can check the routing tables
below to verify this info)
-node 1 and node 0 are neighbors ! (you can check the routing tables
below to verify this info)


Scenario 1 : Install
----------------------------
-UPD client on node 3 : //echoClient.Install (c.Get (3));
-UPD server on node 1 : //echoServer.Install (c.Get (1))

==>When node 3 sends a packet to node 1, node 1 DOES NOT get it !!

HOWEVER IF i DO THE FOLLOWING:


Scenario 2 : Install
----------------------------
-UPD client on node 0 : //echoClient.Install (c.Get (0));
-UPD server on node 1 : //echoServer.Install (c.Get (1))

==>When node 0 sends a packet to node 1, node 1 DOES get it !!

this is SO weird !!! why is this happening ?! I need node 1 to receive
the packet from its neighbor node 3



More information about my network :
-------------------------------------------------------
-Its is a wifi ad hoc with OLSR routing protocol installed on the
nodes
-node 0's ip is 10.1.1.1
-node 1's ip is 10.1.1.2 ,
-node 3's ip is 10.1.1.4

-I used :
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
wifiPhy.Set ("RxGain", DoubleValue (-25) ); // Max range 115 m
YansWifiChannelHelper wifiChannel;

-Positions of the nodes:
node 0 : Vector (50,50,0)
node 1 : Vector (80,50,0)
node 3 : Vector (150,0,0)


Kindly note that I chose the RXGain and the position of each node
myself because I wanted to set up a "specific" network which is that
one :

http://shareimage.org/images/ugzd93r3exvh4m68qpfm.png


Anybody know how I can solve my problem ?
I need node 1 to receive the packet from its neighbor node 3.

Kindly note that this problem is happening in many other nodes in my
network.


Addition information :
----------------------------------

Below is the routing table of node 0
---------------------------------------------------------
Node: 0 Time: 20s Ipv4ListRouting table
Priority: 10 Protocol: ns3::olsr::RoutingProtocol
Destination NextHop Interface Distance
10.1.1.2 10.1.1.2 1 1
10.1.1.3 10.1.1.3 1 1
10.1.1.4 10.1.1.4 1 1
10.1.1.5 10.1.1.3 1 2
10.1.1.6 10.1.1.4 1 2
10.1.1.7 10.1.1.3 1 3



Below is the routing table of node 1
---------------------------------------------------------
Node: 1 Time: 20s Ipv4ListRouting table
Priority: 10 Protocol: ns3::olsr::RoutingProtocol
Destination NextHop Interface Distance
10.1.1.1 10.1.1.1 1 1
10.1.1.3 10.1.1.3 1 1
10.1.1.4 10.1.1.4 1 1
10.1.1.5 10.1.1.3 1 2
10.1.1.6 10.1.1.4 1 2
10.1.1.7 10.1.1.3 1 3


Below is the routing table of node 3
---------------------------------------------------------
Node: 3 Time: 20s Ipv4ListRouting table
Priority: 10 Protocol: ns3::olsr::RoutingProtocol
Destination NextHop Interface Distance
10.1.1.1 10.1.1.1 1 1
10.1.1.2 10.1.1.2 1 1
10.1.1.3 10.1.1.3 1 1
10.1.1.5 10.1.1.5 1 1
10.1.1.6 10.1.1.6 1 1
10.1.1.7 10.1.1.5 1 2

Massoudi Radhouene

unread,
May 13, 2012, 11:55:37 AM5/13/12
to ns-3-...@googlegroups.com
send you code plz


2012/5/13 jen lo <jen.lo...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


jen lo

unread,
May 13, 2012, 12:11:58 PM5/13/12
to ns-3-users
here is the link :

http://codepaste.net/161o6k

Kindly note that I got the number -25 in " wifiPhy.Set ("RxGain",
DoubleValue (-25) )"

using trial and error in order to connect the 7 nodes in that way :
http://shareimage.org/images/ugzd93r3exvh4m68qpfm.png

waiting impatiently for your help , it is highly appreciated
On May 13, 6:55 pm, Massoudi Radhouene <radhouene...@gmail.com> wrote:
> send you code plz
>
> 2012/5/13 jen lo <jen.lopez...@gmail.com>

Massoudi Radhouene

unread,
May 13, 2012, 12:14:40 PM5/13/12
to ns-3-...@googlegroups.com
thinks

2012/5/13 jen lo <jen.lo...@gmail.com>

jen lo

unread,
May 13, 2012, 12:17:35 PM5/13/12
to ns-3-users
what does " thinks" mean?

ANYBODY PLEASE HELP :(

On May 13, 7:14 pm, Massoudi Radhouene <radhouene...@gmail.com> wrote:
> thinks
>
> 2012/5/13 jen lo <jen.lopez...@gmail.com>
Reply all
Reply to author
Forward
0 new messages