GPSR usage, CreateDevices settings, NetAnim

61 views
Skip to first unread message

Marcin Waszczuk

unread,
Apr 9, 2014, 10:40:09 AM4/9/14
to ns-3-...@googlegroups.com
Hi,

I am using GPSR routing protocol in the simulations in ns3. I wonder if I could change the range of the signal because for now my nodes are communicating everybody to everybody, not like it should be in GPSR. I know that they should send headers, Hello messages, etc. but the point is that i cannot see the usage of the GPSR protocol exacly (ending data packets hop by hop). I would like to change the settings of the device, eg channel, device, etc.
In the code, parameters are set to Default. See below:

void
GpsrExample::CreateDevices ()
{
 
NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
  wifiMac
.SetType ("ns3::AdhocWifiMac");
 
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();  
 
YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default ();
  wifiPhy
.SetChannel (wifiChannel.Create ());
 
WifiHelper wifi = WifiHelper::Default ();
  wifi
.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode", StringValue ("OfdmRate6Mbps"), "RtsCtsThreshold", UintegerValue (0));
  devices
= wifi.Install (wifiPhy, wifiMac, nodes);

Another thing is NetAnim.
When i open .xml file in the NetAnim i cannot really see which packets are being sent. Is it possible to change the filter? I mean add a new one, eg "gpsr" packets? What NetAnim says so far is that the packet is unknown type.

Regards,

Marcin

Tommaso Pecorella

unread,
Apr 10, 2014, 2:05:24 AM4/10/14
to ns-3-...@googlegroups.com
Hi,

I hope you did add the mobility and position to the nodes, otherwise they'll be in the very same spot :P

About NetAnim, you'll probably will have to modify its code. I'd suggest to contact John directly.

Cheers,

T.

John Abraham

unread,
Apr 11, 2014, 2:02:30 PM4/11/14
to ns-3-...@googlegroups.com
Hi ,
So just send me the xml file you got let me take a look.
john
Reply all
Reply to author
Forward
0 new messages