A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-mixed-network.cc File Reference

This example shows how to configure mixed networks (i.e. More...

#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/ht-configuration.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/on-off-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/packet-sink.h"
#include "ns3/pointer.h"
#include "ns3/qos-txop.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/udp-client-server-helper.h"
#include "ns3/udp-server.h"
#include "ns3/wifi-mac.h"
#include "ns3/wifi-net-device.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
Include dependency graph for wifi-mixed-network.cc:

Go to the source code of this file.

Classes

class  anonymous_namespace{wifi-mixed-network.cc}::Experiment
 Experiment runner, based on Parameters. More...
struct  Parameters
 Parameters. More...

Namespaces

namespace  anonymous_namespace{wifi-mixed-network.cc}
 Unnamed namespace, to disambiguate class Experiment.

Detailed Description

This example shows how to configure mixed networks (i.e.

mixed b/g and HT/non-HT) and how are performance in several scenarios.

The example compares first g only and mixed b/g cases with various configurations depending on the following parameters:

  • protection mode that is configured on the AP;
  • whether short PPDU format is supported by the 802.11b station;
  • whether short slot time is supported by both the 802.11g station and the AP.

The example then compares HT only and mixed HT/non-HT cases.

The output results show that the presence of an 802.11b station strongly affects 802.11g performance. Protection mechanisms ensure that the NAV value of 802.11b stations is set correctly in case of 802.11g transmissions. In practice, those protection mechanism add a lot of overhead, resulting in reduced performance. CTS-To-Self introduces less overhead than Rts-Cts, but is not heard by hidden stations (and is thus generally only recommended as a protection mechanism for access points). Since short slot time is disabled once an 802.11b station enters the network, benefits from short slot time are only observed in a g only configuration.

The user can also select the payload size and can choose either an UDP or a TCP connection.

Example: ./ns3 run "wifi-mixed-network --isUdp=1"

Usage

$ ./ns3 run "wifi-mixed-network [Program Options]"

Program Options

--payloadSize
Payload size in bytes [1472]
--simulationTime
Simulation time [+10s]
--isUdp
UDP if set to 1, TCP otherwise [true]
--verifyResults
Enable/disable results verification at the end of the simulation [false]

Definition in file wifi-mixed-network.cc.