wifi: Enable beacon jitter by default

This commit is contained in:
Sébastien Deronne
2017-09-13 23:11:38 +02:00
parent 3e550b5150
commit 923ef42e42
11 changed files with 18 additions and 14 deletions

View File

@@ -173,6 +173,9 @@ is now exported by WifiNetDevice.</li>
<li>Queue discs that can operate both in packet mode and byte mode (Red, CoDel, Pie) define their own
enum QueueDiscMode instead of using QueueBase::QueueMode.
</li>
</li>
<li> The default value of the <b>EnableBeaconJitter</b> attribute in ApWifiMac was changed from false to true.
</li>
</ul>
<hr>

View File

@@ -100,7 +100,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"QosSupported", BooleanValue (true),
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceA = wifi.Install (phy, mac, wifiApNodes.Get (0));
//Network B
@@ -115,7 +115,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"QosSupported", BooleanValue (true),
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceB = wifi.Install (phy, mac, wifiApNodes.Get (1));
//Modify EDCA configuration (TXOP limit) for AC_BE
@@ -140,7 +140,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"QosSupported", BooleanValue (true),
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceC = wifi.Install (phy, mac, wifiApNodes.Get (2));
//Network D
@@ -155,7 +155,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"QosSupported", BooleanValue (true),
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceD = wifi.Install (phy, mac, wifiApNodes.Get (3));
//Modify EDCA configuration (TXOP limit) for AC_VO

View File

@@ -125,6 +125,7 @@ int main (int argc, char *argv[])
staDevice = wifi.Install (phy, mac, wifiStaNode);
mac.SetType ("ns3::ApWifiMac",
"EnableBeaconJitter", BooleanValue (false),
"Ssid", SsidValue (ssid));
NetDeviceContainer apDevice;

View File

@@ -141,6 +141,7 @@ int main (int argc, char *argv[])
staDevice = wifi.Install (phy, mac, wifiStaNode);
mac.SetType ("ns3::ApWifiMac",
"EnableBeaconJitter", BooleanValue (false),
"Ssid", SsidValue (ssid));
NetDeviceContainer apDevice;

View File

@@ -193,7 +193,7 @@ Experiment::Run (Parameters params)
wifi.SetStandard (params.apType);
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true),
"EnableBeaconJitter", BooleanValue (false),
"BE_MaxAmpduSize", UintegerValue (0),
"BE_BlockAckThreshold", UintegerValue (2),
"RifsSupported", BooleanValue (params.rifsSupported),

View File

@@ -296,7 +296,6 @@ main (int argc, char *argv[])
// setup ap.
macInfra.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true),
"BeaconInterval", TimeValue (Seconds (2.5)));
NetDeviceContainer apDevices = wifiInfra.Install (wifiPhy, macInfra, backbone.Get (i));
// Collect all of these new devices

View File

@@ -106,7 +106,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true),
"EnableBeaconJitter", BooleanValue (false),
"BE_MaxAmpduSize", UintegerValue (maxAmpduSize));
NetDeviceContainer apDevice;

View File

@@ -130,6 +130,7 @@ int main (int argc, char *argv[])
staDevice = wifi.Install (phy, mac, wifiStaNode);
mac.SetType ("ns3::ApWifiMac",
"EnableBeaconJitter", BooleanValue (false),
"Ssid", SsidValue (ssid));
NetDeviceContainer apDevice;

View File

@@ -109,7 +109,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceA = wifi.Install (phy, mac, wifiApNodes.Get (0));
//Network B
@@ -123,7 +123,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceB = wifi.Install (phy, mac, wifiApNodes.Get (1));
//Network C
@@ -138,7 +138,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceC = wifi.Install (phy, mac, wifiApNodes.Get (2));
//Network D
@@ -153,7 +153,7 @@ int main (int argc, char *argv[])
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"EnableBeaconJitter", BooleanValue (false));
apDeviceD = wifi.Install (phy, mac, wifiApNodes.Get (3));
/* Setting mobility model */

View File

@@ -133,8 +133,7 @@ int main (int argc, char *argv[])
wifi.SetRemoteStationManager ("ns3::" + apRaa + "WifiManager");
mac.SetType ("ns3::ApWifiMac",
"Ssid", SsidValue (ssid),
"BeaconGeneration", BooleanValue (true));
"Ssid", SsidValue (ssid));
NetDeviceContainer apDevice;
apDevice = wifi.Install (phy, mac, wifiApNode);

View File

@@ -55,7 +55,7 @@ ApWifiMac::GetTypeId (void)
MakePointerChecker<UniformRandomVariable> ())
.AddAttribute ("EnableBeaconJitter",
"If beacons are enabled, whether to jitter the initial send event.",
BooleanValue (false),
BooleanValue (true),
MakeBooleanAccessor (&ApWifiMac::m_enableBeaconJitter),
MakeBooleanChecker ())
.AddAttribute ("BeaconGeneration",