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