Hi,
I set up a Wifi-Chain Scenario with predefined static routes and an On-Off-Application at Node 0 (one end of chain), and a Packet Sink at Node 1 (other end of chain). Between Node 0 and 1 are three routing nodes. Each nodepair has a distance of 130m. I used YansWifi with following parameters:
YansWifiPhyHelper wifiPhy;
wifiPhy = YansWifiPhyHelper::Default ();
// Note: Detc.Threshold arround -96dB with 20dB TxPower this leads to arround 200m distance via log distance prop loss.
wifiPhy.Set ("TxPowerStart", DoubleValue (20.0));
wifiPhy.Set ("TxPowerEnd", DoubleValue (20.0));
wifiPhy.Set ("TxPowerLevels", UintegerValue (1));
wifiPhy.Set ("TxGain", DoubleValue (0));
wifiPhy.Set ("RxGain", DoubleValue (0));
// remove background noise
wifiPhy.Set ("RxNoiseFigure", DoubleValue (-1.79769e+308));
wifiPhy.Set ("ChannelNumber", UintegerValue (1));
wifiPhy.SetChannel (wifiChannel.Create());
std::string phyMode ("ErpOfdmRate54Mbps");
/* * ERP: Effective Radiated Power, equal to the antenna gain added to the power into that antenna. (Technically, called EIRP.) (http://www.wirelessnetworkproducts.com/wifitechfundamentals.aspx)
* * OFDM (Orthogonal Frequency-Division Multiplexing)
*/
WifiHelper wifi = WifiHelper::Default ();
wifi.SetStandard (WIFI_PHY_STANDARD_80211g);
wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager", "DataMode",
StringValue (phyMode), "ControlMode", StringValue (phyMode));
Note that I reduced the thermal background noise to gain such large distances (
wifiPhy.Set ("RxNoiseFigure", DoubleValue (-1.79769e+308));).
For chainlength of 4 Nodes I get reasonable results: No packet loss at all. But, when I use a length of 5 and more nodes, I dont get any successful transmission at all. I will attach a plot it, as well.
When I log the "YansWifiPhy" debug notes there is one point in time when all packets has a PER value of -nan.
I checked in my logs, whether all packets are lost, because of collision, but I didn't find two nodes in transmission state at the same point in time.