Hi Everyone,
I am trying to change the contention window (CW) size of 802.11 MAC protocol and observe the changes in the throughput.
My topology is a simple infrastructure Wifi. One AP and several STAs.
I tried the following options
1) Config::Set ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Mac/$ns3::RegularWifiMac/DcaTxop/MinCw", UintegerValue (7));
2) Ptr<NetDevice> dev1 = wifiApNode.Get (0)->GetDevice (0);
Ptr<WifiNetDevice> wifi_dev1 = DynamicCast<WifiNetDevice> (dev1);
Ptr<WifiMac> wifi_mac1 = wifi_dev1->GetMac ();
PointerValue ptr1;
wifi_mac1->GetAttribute("DcaTxop", ptr1);
Ptr<DcaTxop> dca1 = ptr1.Get<DcaTxop>();
dca1->SetMinCw(7);
dca1->SetMaxCw(1023);
However none of these worked. Could you please give me some ideas on how to do this?
Thanks in advance.
Sampath