A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-he-network.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 SEBASTIEN DERONNE
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Sebastien Deronne <sebastien.deronne@gmail.com>
18 */
19
20#include "ns3/boolean.h"
21#include "ns3/command-line.h"
22#include "ns3/config.h"
23#include "ns3/double.h"
24#include "ns3/enum.h"
25#include "ns3/he-phy.h"
26#include "ns3/internet-stack-helper.h"
27#include "ns3/ipv4-address-helper.h"
28#include "ns3/ipv4-global-routing-helper.h"
29#include "ns3/log.h"
30#include "ns3/mobility-helper.h"
31#include "ns3/multi-model-spectrum-channel.h"
32#include "ns3/on-off-helper.h"
33#include "ns3/packet-sink-helper.h"
34#include "ns3/packet-sink.h"
35#include "ns3/spectrum-wifi-helper.h"
36#include "ns3/ssid.h"
37#include "ns3/string.h"
38#include "ns3/udp-client-server-helper.h"
39#include "ns3/udp-server.h"
40#include "ns3/uinteger.h"
41#include "ns3/wifi-acknowledgment.h"
42#include "ns3/yans-wifi-channel.h"
43#include "ns3/yans-wifi-helper.h"
44
45#include <functional>
46
47// This is a simple example in order to show how to configure an IEEE 802.11ax Wi-Fi network.
48//
49// It outputs the UDP or TCP goodput for every HE MCS value, which depends on the MCS value (0 to
50// 11), the channel width (20, 40, 80 or 160 MHz) and the guard interval (800ns, 1600ns or 3200ns).
51// The PHY bitrate is constant over all the simulation run. The user can also specify the distance
52// between the access point and the station: the larger the distance the smaller the goodput.
53//
54// The simulation assumes a configurable number of stations in an infrastructure network:
55//
56// STA AP
57// * *
58// | |
59// n1 n2
60//
61// Packets in this simulation belong to BestEffort Access Class (AC_BE).
62// By selecting an acknowledgment sequence for DL MU PPDUs, it is possible to aggregate a
63// Round Robin scheduler to the AP, so that DL MU PPDUs are sent by the AP via DL OFDMA.
64
65using namespace ns3;
66
67NS_LOG_COMPONENT_DEFINE("he-wifi-network");
68
69int
70main(int argc, char* argv[])
71{
72 bool udp{true};
73 bool downlink{true};
74 bool useRts{false};
75 bool useExtendedBlockAck{false};
76 Time simulationTime{"10s"};
77 double distance{1.0}; // meters
78 double frequency{5}; // whether 2.4, 5 or 6 GHz
79 std::size_t nStations{1};
80 std::string dlAckSeqType{"NO-OFDMA"};
81 bool enableUlOfdma{false};
82 bool enableBsrp{false};
83 int mcs{-1}; // -1 indicates an unset value
84 uint32_t payloadSize =
85 700; // must fit in the max TX duration when transmitting at MCS 0 over an RU of 26 tones
86 std::string phyModel{"Yans"};
87 double minExpectedThroughput{0};
88 double maxExpectedThroughput{0};
89 Time accessReqInterval{0};
90
91 CommandLine cmd(__FILE__);
92 cmd.AddValue("frequency",
93 "Whether working in the 2.4, 5 or 6 GHz band (other values gets rejected)",
94 frequency);
95 cmd.AddValue("distance",
96 "Distance in meters between the station and the access point",
97 distance);
98 cmd.AddValue("simulationTime", "Simulation time", simulationTime);
99 cmd.AddValue("udp", "UDP if set to 1, TCP otherwise", udp);
100 cmd.AddValue("downlink",
101 "Generate downlink flows if set to 1, uplink flows otherwise",
102 downlink);
103 cmd.AddValue("useRts", "Enable/disable RTS/CTS", useRts);
104 cmd.AddValue("useExtendedBlockAck", "Enable/disable use of extended BACK", useExtendedBlockAck);
105 cmd.AddValue("nStations", "Number of non-AP HE stations", nStations);
106 cmd.AddValue("dlAckType",
107 "Ack sequence type for DL OFDMA (NO-OFDMA, ACK-SU-FORMAT, MU-BAR, AGGR-MU-BAR)",
108 dlAckSeqType);
109 cmd.AddValue("enableUlOfdma",
110 "Enable UL OFDMA (useful if DL OFDMA is enabled and TCP is used)",
111 enableUlOfdma);
112 cmd.AddValue("enableBsrp",
113 "Enable BSRP (useful if DL and UL OFDMA are enabled and TCP is used)",
114 enableBsrp);
115 cmd.AddValue(
116 "muSchedAccessReqInterval",
117 "Duration of the interval between two requests for channel access made by the MU scheduler",
118 accessReqInterval);
119 cmd.AddValue("mcs", "if set, limit testing to a specific MCS (0-11)", mcs);
120 cmd.AddValue("payloadSize", "The application payload size in bytes", payloadSize);
121 cmd.AddValue("phyModel",
122 "PHY model to use when OFDMA is disabled (Yans or Spectrum). If OFDMA is enabled "
123 "then Spectrum is automatically selected",
124 phyModel);
125 cmd.AddValue("minExpectedThroughput",
126 "if set, simulation fails if the lowest throughput is below this value",
127 minExpectedThroughput);
128 cmd.AddValue("maxExpectedThroughput",
129 "if set, simulation fails if the highest throughput is above this value",
130 maxExpectedThroughput);
131 cmd.Parse(argc, argv);
132
133 if (useRts)
134 {
135 Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("0"));
136 Config::SetDefault("ns3::WifiDefaultProtectionManager::EnableMuRts", BooleanValue(true));
137 }
138
139 if (dlAckSeqType == "ACK-SU-FORMAT")
140 {
141 Config::SetDefault("ns3::WifiDefaultAckManager::DlMuAckSequenceType",
143 }
144 else if (dlAckSeqType == "MU-BAR")
145 {
146 Config::SetDefault("ns3::WifiDefaultAckManager::DlMuAckSequenceType",
148 }
149 else if (dlAckSeqType == "AGGR-MU-BAR")
150 {
151 Config::SetDefault("ns3::WifiDefaultAckManager::DlMuAckSequenceType",
153 }
154 else if (dlAckSeqType != "NO-OFDMA")
155 {
156 NS_ABORT_MSG("Invalid DL ack sequence type (must be NO-OFDMA, ACK-SU-FORMAT, MU-BAR or "
157 "AGGR-MU-BAR)");
158 }
159
160 if (phyModel != "Yans" && phyModel != "Spectrum")
161 {
162 NS_ABORT_MSG("Invalid PHY model (must be Yans or Spectrum)");
163 }
164 if (dlAckSeqType != "NO-OFDMA")
165 {
166 // SpectrumWifiPhy is required for OFDMA
167 phyModel = "Spectrum";
168 }
169
170 double prevThroughput[12] = {0};
171
172 std::cout << "MCS value"
173 << "\t\t"
174 << "Channel width"
175 << "\t\t"
176 << "GI"
177 << "\t\t\t"
178 << "Throughput" << '\n';
179 int minMcs = 0;
180 int maxMcs = 11;
181 if (mcs >= 0 && mcs <= 11)
182 {
183 minMcs = mcs;
184 maxMcs = mcs;
185 }
186 for (int mcs = minMcs; mcs <= maxMcs; mcs++)
187 {
188 uint8_t index = 0;
189 double previous = 0;
190 uint8_t maxChannelWidth = frequency == 2.4 ? 40 : 160;
191 int minGi = enableUlOfdma ? 1600 : 800;
192 for (int channelWidth = 20; channelWidth <= maxChannelWidth;) // MHz
193 {
194 for (int gi = 3200; gi >= minGi;) // Nanoseconds
195 {
196 if (!udp)
197 {
198 Config::SetDefault("ns3::TcpSocket::SegmentSize", UintegerValue(payloadSize));
199 }
200
202 wifiStaNodes.Create(nStations);
204 wifiApNode.Create(1);
205
206 NetDeviceContainer apDevice;
210 std::string channelStr("{0, " + std::to_string(channelWidth) + ", ");
211 StringValue ctrlRate;
212 auto nonHtRefRateMbps = HePhy::GetNonHtReferenceRate(mcs) / 1e6;
213
214 std::ostringstream ossDataMode;
215 ossDataMode << "HeMcs" << mcs;
216
217 if (frequency == 6)
218 {
219 wifi.SetStandard(WIFI_STANDARD_80211ax);
220 ctrlRate = StringValue(ossDataMode.str());
221 channelStr += "BAND_6GHZ, 0}";
222 Config::SetDefault("ns3::LogDistancePropagationLossModel::ReferenceLoss",
223 DoubleValue(48));
224 }
225 else if (frequency == 5)
226 {
227 wifi.SetStandard(WIFI_STANDARD_80211ax);
228 std::ostringstream ossControlMode;
229 ossControlMode << "OfdmRate" << nonHtRefRateMbps << "Mbps";
230 ctrlRate = StringValue(ossControlMode.str());
231 channelStr += "BAND_5GHZ, 0}";
232 }
233 else if (frequency == 2.4)
234 {
235 wifi.SetStandard(WIFI_STANDARD_80211ax);
236 std::ostringstream ossControlMode;
237 ossControlMode << "ErpOfdmRate" << nonHtRefRateMbps << "Mbps";
238 ctrlRate = StringValue(ossControlMode.str());
239 channelStr += "BAND_2_4GHZ, 0}";
240 Config::SetDefault("ns3::LogDistancePropagationLossModel::ReferenceLoss",
241 DoubleValue(40));
242 }
243 else
244 {
245 NS_FATAL_ERROR("Wrong frequency value!");
246 }
247
248 wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager",
249 "DataMode",
250 StringValue(ossDataMode.str()),
251 "ControlMode",
252 ctrlRate);
253 // Set guard interval
254 wifi.ConfigHeOptions("GuardInterval", TimeValue(NanoSeconds(gi)));
255
256 Ssid ssid = Ssid("ns3-80211ax");
257
258 if (phyModel == "Spectrum")
259 {
260 /*
261 * SingleModelSpectrumChannel cannot be used with 802.11ax because two
262 * spectrum models are required: one with 78.125 kHz bands for HE PPDUs
263 * and one with 312.5 kHz bands for, e.g., non-HT PPDUs (for more details,
264 * see issue #408 (CLOSED))
265 */
266 Ptr<MultiModelSpectrumChannel> spectrumChannel =
267 CreateObject<MultiModelSpectrumChannel>();
268
270 CreateObject<LogDistancePropagationLossModel>();
271 spectrumChannel->AddPropagationLossModel(lossModel);
272
274 phy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
275 phy.SetChannel(spectrumChannel);
276
277 mac.SetType("ns3::StaWifiMac",
278 "Ssid",
279 SsidValue(ssid),
280 "MpduBufferSize",
281 UintegerValue(useExtendedBlockAck ? 256 : 64));
282 phy.Set("ChannelSettings", StringValue(channelStr));
283 staDevices = wifi.Install(phy, mac, wifiStaNodes);
284
285 if (dlAckSeqType != "NO-OFDMA")
286 {
287 mac.SetMultiUserScheduler("ns3::RrMultiUserScheduler",
288 "EnableUlOfdma",
289 BooleanValue(enableUlOfdma),
290 "EnableBsrp",
291 BooleanValue(enableBsrp),
292 "AccessReqInterval",
293 TimeValue(accessReqInterval));
294 }
295 mac.SetType("ns3::ApWifiMac",
296 "EnableBeaconJitter",
297 BooleanValue(false),
298 "Ssid",
299 SsidValue(ssid));
300 apDevice = wifi.Install(phy, mac, wifiApNode);
301 }
302 else
303 {
306 phy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
307 phy.SetChannel(channel.Create());
308
309 mac.SetType("ns3::StaWifiMac",
310 "Ssid",
311 SsidValue(ssid),
312 "MpduBufferSize",
313 UintegerValue(useExtendedBlockAck ? 256 : 64));
314 phy.Set("ChannelSettings", StringValue(channelStr));
315 staDevices = wifi.Install(phy, mac, wifiStaNodes);
316
317 mac.SetType("ns3::ApWifiMac",
318 "EnableBeaconJitter",
319 BooleanValue(false),
320 "Ssid",
321 SsidValue(ssid));
322 apDevice = wifi.Install(phy, mac, wifiApNode);
323 }
324
325 int64_t streamNumber = 150;
326 streamNumber += wifi.AssignStreams(apDevice, streamNumber);
327 streamNumber += wifi.AssignStreams(staDevices, streamNumber);
328
329 // mobility.
331 Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator>();
332
333 positionAlloc->Add(Vector(0.0, 0.0, 0.0));
334 positionAlloc->Add(Vector(distance, 0.0, 0.0));
335 mobility.SetPositionAllocator(positionAlloc);
336
337 mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel");
338
339 mobility.Install(wifiApNode);
340 mobility.Install(wifiStaNodes);
341
342 /* Internet stack*/
344 stack.Install(wifiApNode);
345 stack.Install(wifiStaNodes);
346 streamNumber += stack.AssignStreams(wifiApNode, streamNumber);
347 streamNumber += stack.AssignStreams(wifiStaNodes, streamNumber);
348
350 address.SetBase("192.168.1.0", "255.255.255.0");
351 Ipv4InterfaceContainer staNodeInterfaces;
352 Ipv4InterfaceContainer apNodeInterface;
353
354 staNodeInterfaces = address.Assign(staDevices);
355 apNodeInterface = address.Assign(apDevice);
356
357 /* Setting applications */
358 ApplicationContainer serverApp;
359 auto serverNodes = downlink ? std::ref(wifiStaNodes) : std::ref(wifiApNode);
361 NodeContainer clientNodes;
362 for (std::size_t i = 0; i < nStations; i++)
363 {
364 serverInterfaces.Add(downlink ? staNodeInterfaces.Get(i)
365 : apNodeInterface.Get(0));
366 clientNodes.Add(downlink ? wifiApNode.Get(0) : wifiStaNodes.Get(i));
367 }
368
369 const auto maxLoad = HePhy::GetDataRate(mcs, channelWidth, gi, 1) / nStations;
370 if (udp)
371 {
372 // UDP flow
373 uint16_t port = 9;
375 serverApp = server.Install(serverNodes.get());
376 streamNumber += server.AssignStreams(serverNodes.get(), streamNumber);
377
378 serverApp.Start(Seconds(0.0));
379 serverApp.Stop(simulationTime + Seconds(1.0));
380 const auto packetInterval = payloadSize * 8.0 / maxLoad;
381
382 for (std::size_t i = 0; i < nStations; i++)
383 {
385 client.SetAttribute("MaxPackets", UintegerValue(4294967295U));
386 client.SetAttribute("Interval", TimeValue(Seconds(packetInterval)));
387 client.SetAttribute("PacketSize", UintegerValue(payloadSize));
388 ApplicationContainer clientApp = client.Install(clientNodes.Get(i));
389 streamNumber += client.AssignStreams(clientNodes.Get(i), streamNumber);
390
391 clientApp.Start(Seconds(1.0));
392 clientApp.Stop(simulationTime + Seconds(1.0));
393 }
394 }
395 else
396 {
397 // TCP flow
398 uint16_t port = 50000;
400 PacketSinkHelper packetSinkHelper("ns3::TcpSocketFactory", localAddress);
401 serverApp = packetSinkHelper.Install(serverNodes.get());
402 streamNumber += packetSinkHelper.AssignStreams(serverNodes.get(), streamNumber);
403
404 serverApp.Start(Seconds(0.0));
405 serverApp.Stop(simulationTime + Seconds(1.0));
406
407 for (std::size_t i = 0; i < nStations; i++)
408 {
409 OnOffHelper onoff("ns3::TcpSocketFactory", Ipv4Address::GetAny());
410 onoff.SetAttribute("OnTime",
411 StringValue("ns3::ConstantRandomVariable[Constant=1]"));
412 onoff.SetAttribute("OffTime",
413 StringValue("ns3::ConstantRandomVariable[Constant=0]"));
414 onoff.SetAttribute("PacketSize", UintegerValue(payloadSize));
415 onoff.SetAttribute("DataRate", DataRateValue(maxLoad));
417 InetSocketAddress(serverInterfaces.GetAddress(i), port));
418 onoff.SetAttribute("Remote", remoteAddress);
419 ApplicationContainer clientApp = onoff.Install(clientNodes.Get(i));
420 streamNumber += onoff.AssignStreams(clientNodes.Get(i), streamNumber);
421
422 clientApp.Start(Seconds(1.0));
423 clientApp.Stop(simulationTime + Seconds(1.0));
424 }
425 }
426
428
429 Simulator::Stop(simulationTime + Seconds(1.0));
431
432 // When multiple stations are used, there are chances that association requests
433 // collide and hence the throughput may be lower than expected. Therefore, we relax
434 // the check that the throughput cannot decrease by introducing a scaling factor (or
435 // tolerance)
436 auto tolerance = 0.10;
437 auto rxBytes = 0.0;
438 if (udp)
439 {
440 for (uint32_t i = 0; i < serverApp.GetN(); i++)
441 {
442 rxBytes +=
443 payloadSize * DynamicCast<UdpServer>(serverApp.Get(i))->GetReceived();
444 }
445 }
446 else
447 {
448 for (uint32_t i = 0; i < serverApp.GetN(); i++)
449 {
450 rxBytes += DynamicCast<PacketSink>(serverApp.Get(i))->GetTotalRx();
451 }
452 }
453 auto throughput = (rxBytes * 8) / simulationTime.GetMicroSeconds(); // Mbit/s
454
456
457 std::cout << mcs << "\t\t\t" << channelWidth << " MHz\t\t\t" << gi << " ns\t\t\t"
458 << throughput << " Mbit/s" << std::endl;
459
460 // test first element
461 if (mcs == minMcs && channelWidth == 20 && gi == 3200)
462 {
463 if (throughput * (1 + tolerance) < minExpectedThroughput)
464 {
465 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
466 exit(1);
467 }
468 }
469 // test last element
470 if (mcs == maxMcs && channelWidth == maxChannelWidth && gi == 800)
471 {
472 if (maxExpectedThroughput > 0 &&
473 throughput > maxExpectedThroughput * (1 + tolerance))
474 {
475 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
476 exit(1);
477 }
478 }
479 // Skip comparisons with previous cases if more than one stations are present
480 // because, e.g., random collisions in the establishment of Block Ack agreements
481 // have an impact on throughput
482 if (nStations == 1)
483 {
484 // test previous throughput is smaller (for the same mcs)
485 if (throughput * (1 + tolerance) > previous)
486 {
487 previous = throughput;
488 }
489 else if (throughput > 0)
490 {
491 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
492 exit(1);
493 }
494 // test previous throughput is smaller (for the same channel width and GI)
495 if (throughput * (1 + tolerance) > prevThroughput[index])
496 {
497 prevThroughput[index] = throughput;
498 }
499 else if (throughput > 0)
500 {
501 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
502 exit(1);
503 }
504 }
505 index++;
506 gi /= 2;
507 }
508 channelWidth *= 2;
509 }
510 }
511 return 0;
512}
a polymophic address class
Definition: address.h:101
holds a vector of ns3::Application pointers.
void Start(Time start) const
Start all of the Applications in this container at the start time given as a parameter.
Ptr< Application > Get(uint32_t i) const
Get the Ptr<Application> stored in this container at a given index.
void Stop(Time stop) const
Arrange for all of the Applications in this container to Stop() at the Time given as a parameter.
uint32_t GetN() const
Get the number of Ptr<Application> stored in this container.
Parse command-line arguments.
Definition: command-line.h:232
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Definition: double.h:42
Hold variables of type enum.
Definition: enum.h:62
static uint64_t GetDataRate(uint8_t mcsValue, uint16_t channelWidth, uint16_t guardInterval, uint8_t nss)
Return the data rate corresponding to the supplied HE MCS index, channel width, guard interval,...
Definition: he-phy.cc:1677
static uint64_t GetNonHtReferenceRate(uint8_t mcsValue)
Calculate the rate in bps of the non-HT Reference Rate corresponding to the supplied HE MCS index.
Definition: he-phy.cc:1718
an Inet address class
aggregate IP/TCP/UDP functionality to existing Nodes.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
static Ipv4Address GetAny()
static void PopulateRoutingTables()
Build a routing database and initialize the routing tables of the nodes in the simulation.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
std::pair< Ptr< Ipv4 >, uint32_t > Get(uint32_t i) const
Get the std::pair of an Ptr<Ipv4> and interface stored at the location specified by the index.
Helper class used to assign positions and mobility models to nodes.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
void Add(const NodeContainer &nc)
Append the contents of another NodeContainer to the end of this container.
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
A helper to make it easier to instantiate an ns3::OnOffApplication on a set of nodes.
Definition: on-off-helper.h:37
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Definition: simulator.h:571
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
Definition: simulator.cc:142
static void Run()
Run the simulation.
Definition: simulator.cc:178
static void Stop()
Tell the Simulator the calling event should be the last one executed.
Definition: simulator.cc:186
Make it easy to create and manage PHY objects for the spectrum model.
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:36
Hold variables of type string.
Definition: string.h:56
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit tim...
Create a server application which waits for input UDP packets and uses the information carried into t...
Hold an unsigned integer type.
Definition: uinteger.h:45
helps to create WifiNetDevice objects
Definition: wifi-helper.h:324
create MAC layers for a ns3::WifiNetDevice.
@ DLT_IEEE802_11_RADIO
Include Radiotap link layer information.
Definition: wifi-helper.h:178
manage and create wifi channel objects for the YANS model.
static YansWifiChannelHelper Default()
Create a channel helper in a default working state.
Make it easy to create and manage PHY objects for the YANS model.
uint16_t port
Definition: dsdv-manet.cc:44
void SetDefault(std::string name, const AttributeValue &value)
Definition: config.cc:894
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Definition: fatal-error.h:179
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
Definition: abort.h:49
#define NS_LOG_ERROR(msg)
Use NS_LOG to output a message of level LOG_ERROR.
Definition: log.h:254
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1355
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition: nstime.h:1319
@ WIFI_STANDARD_80211ax
ns address
Definition: first.py:47
ns stack
Definition: first.py:44
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns cmd
Definition: second.py:40
STL namespace.
ns wifi
Definition: third.py:95
ns ssid
Definition: third.py:93
ns staDevices
Definition: third.py:98
ns mac
Definition: third.py:92
ns wifiApNode
Definition: third.py:86
ns channel
Definition: third.py:88
ns mobility
Definition: third.py:103
ns wifiStaNodes
Definition: third.py:84
ns phy
Definition: third.py:89
std::ofstream throughput