throughput = 0, Rx Packet = 0?

31 views
Skip to first unread message

Haftu Hagos

unread,
May 7, 2014, 8:35:15 AM5/7/14
to ns-3-...@googlegroups.com

I need your helps please?
 please tell me why the following things are happened?

1. while am executing the attached source then monitoring packet flows, Rx packet and throghput are zero for each wifi number.

2. maximum number of wifi that i can enter is 18, why not beyond?

any help is appreciated!!!

best regards.
mythird1.cc

Konstantinos

unread,
May 7, 2014, 8:52:46 AM5/7/14
to ns-3-...@googlegroups.com
1) Most probably it is a routing problem. Not configured properly. When you have mobile nodes, GlobalRouting is not the option you should use.
You most probably need to add a MANET routing protocol (OLSR, AODV, DSR)
See other discussions where AODV did not performed as expected with P2P links.


2) This has to do with the mobility model and configuration you use

mobility.SetPositionAllocator ("ns3::GridPositionAllocator",
                                 "MinX", DoubleValue (0.0),
                                 "MinY", DoubleValue (0.0),
                                 "DeltaX", DoubleValue (5.0),
                                 "DeltaY", DoubleValue (10.0),
                                 "GridWidth", UintegerValue (3),
                                 "LayoutType", StringValue ("RowFirst"));

  mobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel",
                             "Bounds", RectangleValue (Rectangle (-50, 50, -50, 50)));


You place them in a grid which increases 10m on Y-axis (DeltaY) every 3 nodes (GridWidth). 
However you specify that the node should walk in a rectangle that has max-Y 50. So, the 16th node will be placed outside of the rectangle.

Solutions: increase the area that they move and/or use a different position allocator.
Reply all
Reply to author
Forward
0 new messages