A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-hidden-terminal.cc File Reference
#include "ns3/boolean.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/constant-position-mobility-model.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/ipv4-flow-classifier.h"
#include "ns3/on-off-helper.h"
#include "ns3/propagation-delay-model.h"
#include "ns3/propagation-loss-model.h"
#include "ns3/string.h"
#include "ns3/udp-echo-helper.h"
#include "ns3/uinteger.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/yans-wifi-helper.h"
+ Include dependency graph for wifi-hidden-terminal.cc:

Go to the source code of this file.

Functions

void experiment (bool enableCtsRts, std::string wifiManager)
 Run single 10 seconds experiment.
 

Function Documentation

◆ experiment()

void experiment ( bool enableCtsRts,
std::string wifiManager )

Run single 10 seconds experiment.

Parameters
enableCtsRtsif true, enable RTS/CTS for packets larger than 100 bytes.
wifiManagerWiFi manager to use.
Internal:
The slightly different start times and data rates are a workaround for Bug 388 and Bug 912
Internal:
We also use separate UDP applications that will send a single packet before the CBR flows start. This is a workaround for the lack of perfect ARP, see Bug 187

Definition at line 45 of file wifi-hidden-terminal.cc.

References ns3::ApplicationContainer::Add(), ns3::Object::AggregateObject(), ns3::NodeContainer::Create(), ns3::CreateObject(), ns3::Ipv4FlowClassifier::FiveTuple::destinationAddress, ns3::Simulator::Destroy(), ns3::DynamicCast(), ns3::NodeContainer::Get(), ns3::FlowMonitorHelper::GetClassifier(), ns3::Object::GetObject(), ns3::ApplicationHelper::Install(), ns3::FlowMonitorHelper::InstallAll(), nodes, ns3::Simulator::Run(), ns3::Seconds(), ns3::ApplicationHelper::SetAttribute(), ns3::YansWifiPhyHelper::SetChannel(), ns3::Config::SetDefault(), ns3::WifiMacHelper::SetType(), ns3::Ipv4FlowClassifier::FiveTuple::sourceAddress, ns3::Simulator::Stop(), and ns3::WIFI_STANDARD_80211b.

+ Here is the call graph for this function: