A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{wifi-roaming.cc} Namespace Reference

Classes

struct  DropStats
 Packet drop statistics. More...
struct  WifiSetupParams
 Wi-Fi setup parameters. More...

Functions

std::pair< NetDeviceContainer, NetDeviceContainer > CreateWifiDevices (const WifiSetupParams &wifiParams)
 Create Wi-Fi devices.
SpectrumWifiPhyHelper GetPhyHelper (const std::string &channelsStr, Ptr< SpectrumChannel > channel)
 Get a SpectrumWifiPhyHelper object configured with the channel settings listed in the given input string and with the given Spectrum channel.
void PrintThroughput (const Time &start, const Time &end, Ptr< Node > serverNode, Ptr< Node > staNode, uint64_t ulTxBytes, uint64_t dlTxBytes, uint64_t &ulRxBytes, uint64_t &dlRxBytes)
 Print the average UL and DL throughput over the given time interval.

Function Documentation

◆ CreateWifiDevices()

std::pair< NetDeviceContainer, NetDeviceContainer > anonymous_namespace{wifi-roaming.cc}::CreateWifiDevices ( const WifiSetupParams & wifiParams)

Create Wi-Fi devices.

Parameters
wifiParamsthe parameters to setup Wi-Fi devices
Returns
a pair of containers for the AP and non-AP STA devices

Definition at line 170 of file wifi-roaming.cc.

References anonymous_namespace{wifi-roaming.cc}::WifiSetupParams::ap1Channels, anonymous_namespace{wifi-roaming.cc}::WifiSetupParams::ap2Channels, anonymous_namespace{wifi-roaming.cc}::WifiSetupParams::apNodes, ns3::WifiHelper::AssignStreams(), ns3::CreateObject(), ns3::NodeContainer::Get(), ns3::NodeContainer::GetN(), GetPhyHelper(), NS_ABORT_MSG_IF, NS_LOG_INFO, anonymous_namespace{wifi-roaming.cc}::WifiSetupParams::staChannels, anonymous_namespace{wifi-roaming.cc}::WifiSetupParams::staNodes, and ns3::WIFI_STANDARD_80211be.

Here is the call graph for this function:

◆ GetPhyHelper()

SpectrumWifiPhyHelper anonymous_namespace{wifi-roaming.cc}::GetPhyHelper ( const std::string & channelsStr,
Ptr< SpectrumChannel > channel )

Get a SpectrumWifiPhyHelper object configured with the channel settings listed in the given input string and with the given Spectrum channel.

Parameters
channelsStrthe input string containing semicolon separated channel settings
Channelthe given Spectrum channel
Returns
a SpectrumWifiPhyHelper object configured with the given channel settings

Definition at line 148 of file wifi-roaming.cc.

References ns3::WifiPhyHelper::DLT_IEEE802_11_RADIO, NS_LOG_INFO, and ns3::SplitString().

Referenced by CreateWifiDevices().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintThroughput()

void anonymous_namespace{wifi-roaming.cc}::PrintThroughput ( const Time & start,
const Time & end,
Ptr< Node > serverNode,
Ptr< Node > staNode,
uint64_t ulTxBytes,
uint64_t dlTxBytes,
uint64_t & ulRxBytes,
uint64_t & dlRxBytes )

Print the average UL and DL throughput over the given time interval.

Parameters
startstart of the time interval
endend of the time interval
serverNodethe server node
staNodethe STA node
ulTxBytescumulative number of bytes transmitted in the UL
dlTxBytescumulative number of bytes transmitted in the DL
ulRxBytescumulative number of bytes received in the UL before the interval; updated with the current cumulative value
dlRxBytescumulative number of bytes received in the DL before the interval; updated with the current cumulative value

Definition at line 249 of file wifi-roaming.cc.

References ns3::Time::As(), ns3::DynamicCast(), NS_LOG_ERROR, ns3::Time::S, and sink.

Here is the call graph for this function: