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/rng-seed-manager.h"
36#include "ns3/spectrum-wifi-helper.h"
37#include "ns3/ssid.h"
38#include "ns3/string.h"
39#include "ns3/udp-client-server-helper.h"
40#include "ns3/udp-server.h"
41#include "ns3/uinteger.h"
42#include "ns3/wifi-acknowledgment.h"
43#include "ns3/yans-wifi-channel.h"
44#include "ns3/yans-wifi-helper.h"
45
46#include <functional>
47
48// This is a simple example in order to show how to configure an IEEE 802.11ax Wi-Fi network.
49//
50// It outputs the UDP or TCP goodput for every HE MCS value, which depends on the MCS value (0 to
51// 11), the channel width (20, 40, 80 or 160 MHz) and the guard interval (800ns, 1600ns or 3200ns).
52// The PHY bitrate is constant over all the simulation run. The user can also specify the distance
53// between the access point and the station: the larger the distance the smaller the goodput.
54//
55// The simulation assumes a configurable number of stations in an infrastructure network:
56//
57// STA AP
58// * *
59// | |
60// n1 n2
61//
62// Packets in this simulation belong to BestEffort Access Class (AC_BE).
63// By selecting an acknowledgment sequence for DL MU PPDUs, it is possible to aggregate a
64// Round Robin scheduler to the AP, so that DL MU PPDUs are sent by the AP via DL OFDMA.
65
66using namespace ns3;
67
68NS_LOG_COMPONENT_DEFINE("he-wifi-network");
69
70int
71main(int argc, char* argv[])
72{
73 bool udp{true};
74 bool downlink{true};
75 bool useRts{false};
76 bool useExtendedBlockAck{false};
77 double simulationTime{10}; // seconds
78 double distance{1.0}; // meters
79 double frequency{5}; // whether 2.4, 5 or 6 GHz
80 std::size_t nStations{1};
81 std::string dlAckSeqType{"NO-OFDMA"};
82 bool enableUlOfdma{false};
83 bool enableBsrp{false};
84 int mcs{-1}; // -1 indicates an unset value
85 uint32_t payloadSize =
86 700; // must fit in the max TX duration when transmitting at MCS 0 over an RU of 26 tones
87 std::string phyModel{"Yans"};
88 double minExpectedThroughput{0};
89 double maxExpectedThroughput{0};
90 Time accessReqInterval{0};
91
92 CommandLine cmd(__FILE__);
93 cmd.AddValue("frequency",
94 "Whether working in the 2.4, 5 or 6 GHz band (other values gets rejected)",
95 frequency);
96 cmd.AddValue("distance",
97 "Distance in meters between the station and the access point",
98 distance);
99 cmd.AddValue("simulationTime", "Simulation time in seconds", simulationTime);
100 cmd.AddValue("udp", "UDP if set to 1, TCP otherwise", udp);
101 cmd.AddValue("downlink",
102 "Generate downlink flows if set to 1, uplink flows otherwise",
103 downlink);
104 cmd.AddValue("useRts", "Enable/disable RTS/CTS", useRts);
105 cmd.AddValue("useExtendedBlockAck", "Enable/disable use of extended BACK", useExtendedBlockAck);
106 cmd.AddValue("nStations", "Number of non-AP HE stations", nStations);
107 cmd.AddValue("dlAckType",
108 "Ack sequence type for DL OFDMA (NO-OFDMA, ACK-SU-FORMAT, MU-BAR, AGGR-MU-BAR)",
109 dlAckSeqType);
110 cmd.AddValue("enableUlOfdma",
111 "Enable UL OFDMA (useful if DL OFDMA is enabled and TCP is used)",
112 enableUlOfdma);
113 cmd.AddValue("enableBsrp",
114 "Enable BSRP (useful if DL and UL OFDMA are enabled and TCP is used)",
115 enableBsrp);
116 cmd.AddValue(
117 "muSchedAccessReqInterval",
118 "Duration of the interval between two requests for channel access made by the MU scheduler",
119 accessReqInterval);
120 cmd.AddValue("mcs", "if set, limit testing to a specific MCS (0-11)", mcs);
121 cmd.AddValue("payloadSize", "The application payload size in bytes", payloadSize);
122 cmd.AddValue("phyModel",
123 "PHY model to use when OFDMA is disabled (Yans or Spectrum). If OFDMA is enabled "
124 "then Spectrum is automatically selected",
125 phyModel);
126 cmd.AddValue("minExpectedThroughput",
127 "if set, simulation fails if the lowest throughput is below this value",
128 minExpectedThroughput);
129 cmd.AddValue("maxExpectedThroughput",
130 "if set, simulation fails if the highest throughput is above this value",
131 maxExpectedThroughput);
132 cmd.Parse(argc, argv);
133
134 if (useRts)
135 {
136 Config::SetDefault("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue("0"));
137 Config::SetDefault("ns3::WifiDefaultProtectionManager::EnableMuRts", BooleanValue(true));
138 }
139
140 if (dlAckSeqType == "ACK-SU-FORMAT")
141 {
142 Config::SetDefault("ns3::WifiDefaultAckManager::DlMuAckSequenceType",
144 }
145 else if (dlAckSeqType == "MU-BAR")
146 {
147 Config::SetDefault("ns3::WifiDefaultAckManager::DlMuAckSequenceType",
149 }
150 else if (dlAckSeqType == "AGGR-MU-BAR")
151 {
152 Config::SetDefault("ns3::WifiDefaultAckManager::DlMuAckSequenceType",
154 }
155 else if (dlAckSeqType != "NO-OFDMA")
156 {
157 NS_ABORT_MSG("Invalid DL ack sequence type (must be NO-OFDMA, ACK-SU-FORMAT, MU-BAR or "
158 "AGGR-MU-BAR)");
159 }
160
161 if (phyModel != "Yans" && phyModel != "Spectrum")
162 {
163 NS_ABORT_MSG("Invalid PHY model (must be Yans or Spectrum)");
164 }
165 if (dlAckSeqType != "NO-OFDMA")
166 {
167 // SpectrumWifiPhy is required for OFDMA
168 phyModel = "Spectrum";
169 }
170
171 double prevThroughput[12] = {0};
172
173 std::cout << "MCS value"
174 << "\t\t"
175 << "Channel width"
176 << "\t\t"
177 << "GI"
178 << "\t\t\t"
179 << "Throughput" << '\n';
180 int minMcs = 0;
181 int maxMcs = 11;
182 if (mcs >= 0 && mcs <= 11)
183 {
184 minMcs = mcs;
185 maxMcs = mcs;
186 }
187 for (int mcs = minMcs; mcs <= maxMcs; mcs++)
188 {
189 uint8_t index = 0;
190 double previous = 0;
191 uint8_t maxChannelWidth = frequency == 2.4 ? 40 : 160;
192 for (int channelWidth = 20; channelWidth <= maxChannelWidth;) // MHz
193 {
194 for (int gi = 3200; gi >= 800;) // 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 std::cout << "Wrong frequency value!" << std::endl;
246 return 0;
247 }
248
249 wifi.SetRemoteStationManager("ns3::ConstantRateWifiManager",
250 "DataMode",
251 StringValue(ossDataMode.str()),
252 "ControlMode",
253 ctrlRate);
254 // Set guard interval
255 wifi.ConfigHeOptions("GuardInterval", TimeValue(NanoSeconds(gi)));
256
257 Ssid ssid = Ssid("ns3-80211ax");
258
259 if (phyModel == "Spectrum")
260 {
261 /*
262 * SingleModelSpectrumChannel cannot be used with 802.11ax because two
263 * spectrum models are required: one with 78.125 kHz bands for HE PPDUs
264 * and one with 312.5 kHz bands for, e.g., non-HT PPDUs (for more details,
265 * see issue #408 (CLOSED))
266 */
267 Ptr<MultiModelSpectrumChannel> spectrumChannel =
268 CreateObject<MultiModelSpectrumChannel>();
269
271 CreateObject<LogDistancePropagationLossModel>();
272 spectrumChannel->AddPropagationLossModel(lossModel);
273
275 phy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
276 phy.SetChannel(spectrumChannel);
277
278 mac.SetType("ns3::StaWifiMac",
279 "Ssid",
280 SsidValue(ssid),
281 "MpduBufferSize",
282 UintegerValue(useExtendedBlockAck ? 256 : 64));
283 phy.Set("ChannelSettings", StringValue(channelStr));
284 staDevices = wifi.Install(phy, mac, wifiStaNodes);
285
286 if (dlAckSeqType != "NO-OFDMA")
287 {
288 mac.SetMultiUserScheduler("ns3::RrMultiUserScheduler",
289 "EnableUlOfdma",
290 BooleanValue(enableUlOfdma),
291 "EnableBsrp",
292 BooleanValue(enableBsrp),
293 "AccessReqInterval",
294 TimeValue(accessReqInterval));
295 }
296 mac.SetType("ns3::ApWifiMac",
297 "EnableBeaconJitter",
298 BooleanValue(false),
299 "Ssid",
300 SsidValue(ssid));
301 apDevice = wifi.Install(phy, mac, wifiApNode);
302 }
303 else
304 {
307 phy.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
308 phy.SetChannel(channel.Create());
309
310 mac.SetType("ns3::StaWifiMac",
311 "Ssid",
312 SsidValue(ssid),
313 "MpduBufferSize",
314 UintegerValue(useExtendedBlockAck ? 256 : 64));
315 phy.Set("ChannelSettings", StringValue(channelStr));
316 staDevices = wifi.Install(phy, mac, wifiStaNodes);
317
318 mac.SetType("ns3::ApWifiMac",
319 "EnableBeaconJitter",
320 BooleanValue(false),
321 "Ssid",
322 SsidValue(ssid));
323 apDevice = wifi.Install(phy, mac, wifiApNode);
324 }
325
328 int64_t streamNumber = 150;
329 streamNumber += wifi.AssignStreams(apDevice, streamNumber);
330 streamNumber += wifi.AssignStreams(staDevices, streamNumber);
331
332 // mobility.
334 Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator>();
335
336 positionAlloc->Add(Vector(0.0, 0.0, 0.0));
337 positionAlloc->Add(Vector(distance, 0.0, 0.0));
338 mobility.SetPositionAllocator(positionAlloc);
339
340 mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel");
341
342 mobility.Install(wifiApNode);
343 mobility.Install(wifiStaNodes);
344
345 /* Internet stack*/
347 stack.Install(wifiApNode);
348 stack.Install(wifiStaNodes);
349
351 address.SetBase("192.168.1.0", "255.255.255.0");
352 Ipv4InterfaceContainer staNodeInterfaces;
353 Ipv4InterfaceContainer apNodeInterface;
354
355 staNodeInterfaces = address.Assign(staDevices);
356 apNodeInterface = address.Assign(apDevice);
357
358 /* Setting applications */
359 ApplicationContainer serverApp;
360 auto serverNodes = downlink ? std::ref(wifiStaNodes) : std::ref(wifiApNode);
362 NodeContainer clientNodes;
363 for (std::size_t i = 0; i < nStations; i++)
364 {
365 serverInterfaces.Add(downlink ? staNodeInterfaces.Get(i)
366 : apNodeInterface.Get(0));
367 clientNodes.Add(downlink ? wifiApNode.Get(0) : wifiStaNodes.Get(i));
368 }
369
370 const auto maxLoad = HePhy::GetDataRate(mcs, channelWidth, gi, 1) / nStations;
371 if (udp)
372 {
373 // UDP flow
374 uint16_t port = 9;
376 serverApp = server.Install(serverNodes.get());
377 serverApp.Start(Seconds(0.0));
378 serverApp.Stop(Seconds(simulationTime + 1));
379 const auto packetInterval = payloadSize * 8.0 / maxLoad;
380
381 for (std::size_t i = 0; i < nStations; i++)
382 {
384 client.SetAttribute("MaxPackets", UintegerValue(4294967295U));
385 client.SetAttribute("Interval", TimeValue(Seconds(packetInterval)));
386 client.SetAttribute("PacketSize", UintegerValue(payloadSize));
387 ApplicationContainer clientApp = client.Install(clientNodes.Get(i));
388 clientApp.Start(Seconds(1.0));
389 clientApp.Stop(Seconds(simulationTime + 1));
390 }
391 }
392 else
393 {
394 // TCP flow
395 uint16_t port = 50000;
397 PacketSinkHelper packetSinkHelper("ns3::TcpSocketFactory", localAddress);
398 serverApp = packetSinkHelper.Install(serverNodes.get());
399 serverApp.Start(Seconds(0.0));
400 serverApp.Stop(Seconds(simulationTime + 1));
401
402 for (std::size_t i = 0; i < nStations; i++)
403 {
404 OnOffHelper onoff("ns3::TcpSocketFactory", Ipv4Address::GetAny());
405 onoff.SetAttribute("OnTime",
406 StringValue("ns3::ConstantRandomVariable[Constant=1]"));
407 onoff.SetAttribute("OffTime",
408 StringValue("ns3::ConstantRandomVariable[Constant=0]"));
409 onoff.SetAttribute("PacketSize", UintegerValue(payloadSize));
410 onoff.SetAttribute("DataRate", DataRateValue(maxLoad));
412 InetSocketAddress(serverInterfaces.GetAddress(i), port));
413 onoff.SetAttribute("Remote", remoteAddress);
414 ApplicationContainer clientApp = onoff.Install(clientNodes.Get(i));
415 clientApp.Start(Seconds(1.0));
416 clientApp.Stop(Seconds(simulationTime + 1));
417 }
418 }
419
421
422 Simulator::Stop(Seconds(simulationTime + 1));
424
425 // When multiple stations are used, there are chances that association requests
426 // collide and hence the throughput may be lower than expected. Therefore, we relax
427 // the check that the throughput cannot decrease by introducing a scaling factor (or
428 // tolerance)
429 double tolerance = 0.10;
430 uint64_t rxBytes = 0;
431 if (udp)
432 {
433 for (uint32_t i = 0; i < serverApp.GetN(); i++)
434 {
435 rxBytes +=
436 payloadSize * DynamicCast<UdpServer>(serverApp.Get(i))->GetReceived();
437 }
438 }
439 else
440 {
441 for (uint32_t i = 0; i < serverApp.GetN(); i++)
442 {
443 rxBytes += DynamicCast<PacketSink>(serverApp.Get(i))->GetTotalRx();
444 }
445 }
446 double throughput = (rxBytes * 8) / (simulationTime * 1000000.0); // Mbit/s
447
449
450 std::cout << mcs << "\t\t\t" << channelWidth << " MHz\t\t\t" << gi << " ns\t\t\t"
451 << throughput << " Mbit/s" << std::endl;
452
453 // test first element
454 if (mcs == 0 && channelWidth == 20 && gi == 3200)
455 {
456 if (throughput * (1 + tolerance) < minExpectedThroughput)
457 {
458 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
459 exit(1);
460 }
461 }
462 // test last element
463 if (mcs == 11 && channelWidth == 160 && gi == 800)
464 {
465 if (maxExpectedThroughput > 0 &&
466 throughput > maxExpectedThroughput * (1 + tolerance))
467 {
468 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
469 exit(1);
470 }
471 }
472 // Skip comparisons with previous cases if more than one stations are present
473 // because, e.g., random collisions in the establishment of Block Ack agreements
474 // have an impact on throughput
475 if (nStations == 1)
476 {
477 // test previous throughput is smaller (for the same mcs)
478 if (throughput * (1 + tolerance) > previous)
479 {
480 previous = throughput;
481 }
482 else if (throughput > 0)
483 {
484 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
485 exit(1);
486 }
487 // test previous throughput is smaller (for the same channel width and GI)
488 if (throughput * (1 + tolerance) > prevThroughput[index])
489 {
490 prevThroughput[index] = throughput;
491 }
492 else if (throughput > 0)
493 {
494 NS_LOG_ERROR("Obtained throughput " << throughput << " is not expected!");
495 exit(1);
496 }
497 }
498 index++;
499 gi /= 2;
500 }
501 channelWidth *= 2;
502 }
503 }
504 return 0;
505}
a polymophic address class
Definition: address.h:101
AttributeValue implementation for Address.
Definition: address.h:286
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.
AttributeValue implementation for Boolean.
Definition: boolean.h:37
Parse command-line arguments.
Definition: command-line.h:232
AttributeValue implementation for DataRate.
Definition: data-rate.h:296
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 void SetRun(uint64_t run)
Set the run number of simulation.
static void SetSeed(uint32_t seed)
Set the seed.
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
AttributeValue implementation for Ssid.
Definition: ssid.h:96
Hold variables of type string.
Definition: string.h:56
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
AttributeValue implementation for Time.
Definition: nstime.h:1406
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_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:100
ns mac
Definition: third.py:92
ns wifiApNode
Definition: third.py:86
ns channel
Definition: third.py:88
ns mobility
Definition: third.py:105
ns wifiStaNodes
Definition: third.py:84
ns phy
Definition: third.py:89
std::ofstream throughput