A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-power-adaptation-distance.cc File Reference
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/gnuplot.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/mobility-model.h"
#include "ns3/on-off-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/ssid.h"
#include "ns3/uinteger.h"
#include "ns3/wifi-mac-header.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-power-adaptation-distance.cc:

Go to the source code of this file.

Classes

class  NodeStatistics
 Class to collect node statistics. More...
 

Functions

void PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest)
 Callback called by WifiNetDevice/RemoteStationManager/x/PowerChange.
 
void RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest)
 Callback called by WifiNetDevice/RemoteStationManager/x/RateChange.
 

Variables

static const uint32_t packetSize = 1420
 Packet size generated at the AP.
 

Detailed Description

Usage

$ ./ns3 run "wifi-power-adaptation-distance [Program Options]"

Program Options

--manager
PRC Manager [ns3::ParfWifiManager]
--rtsThreshold
RTS threshold [2346]
--outputFileName
Output filename [parf]
--steps
How many different distances to try [200]
--stepsTime
Time on each step [1]
--stepsSize
Distance between steps [1]
--maxPower
Maximum available transmission level (dbm). [17]
--minPower
Minimum available transmission level (dbm). [0]
--powerLevels
Number of transmission power levels available between TxPowerStart and TxPowerEnd included. [18]
--AP1_x
Position of AP1 in x coordinate [0]
--AP1_y
Position of AP1 in y coordinate [0]
--STA1_x
Position of STA1 in x coordinate [5]
--STA1_y
Position of STA1 in y coordinate [0]

Definition in file wifi-power-adaptation-distance.cc.

Function Documentation

◆ PowerCallback()

void PowerCallback ( std::string  path,
double  oldPower,
double  newPower,
Mac48Address  dest 
)

Callback called by WifiNetDevice/RemoteStationManager/x/PowerChange.

Parameters
pathThe trace path.
oldPowerOld Tx power.
newPowerActual Tx power.
destDestination of the transmission.

Definition at line 371 of file wifi-power-adaptation-distance.cc.

References ns3::Simulator::Now(), and NS_LOG_INFO.

+ Here is the call graph for this function:

◆ RateCallback()

void RateCallback ( std::string  path,
DataRate  oldRate,
DataRate  newRate,
Mac48Address  dest 
)

Callback called by WifiNetDevice/RemoteStationManager/x/RateChange.

Parameters
pathThe trace path.
oldRateOld rate.
newRateActual rate.
destDestination of the transmission.

Definition at line 386 of file wifi-power-adaptation-distance.cc.

References ns3::Simulator::Now(), and NS_LOG_INFO.

+ Here is the call graph for this function:

Variable Documentation

◆ packetSize

const uint32_t packetSize = 1420
static

Packet size generated at the AP.

Definition at line 111 of file wifi-power-adaptation-distance.cc.

Referenced by TcpPacingTestSuite::TcpPacingTestSuite(), ns3::FlowProbe::AddPacketDropStats(), ns3::FlowProbe::AddPacketStats(), ns3::SimpleOfdmWimaxPhy::ConvertBitsToBurst(), ns3::RadioBearerStatsCalculator::DlRxPdu(), ns3::DlRxPduCallback(), ns3::RadioBearerStatsCalculator::DlTxPdu(), ns3::DlTxPduCallback(), ns3::SixLowPanNetDevice::DoFragmentation(), Ipv4FragmentationTest::DoRun(), Ipv6FragmentationTest::DoRun(), LteRadioLinkFailureTestCase::DoRun(), SixlowpanFragmentationTest::DoRun(), ns3::PieQueueDisc::DropEarly(), ns3::LteSimpleHelperDlRxPduCallback(), ns3::LteSimpleHelperDlTxPduCallback(), ns3::LteSimpleHelperUlRxPduCallback(), ns3::LteSimpleHelperUlTxPduCallback(), ns3::SixLowPanNetDevice::ProcessFragment(), ns3::dsdv::RoutingProtocol::RecvDsdv(), ns3::FlowMonitor::ReportDrop(), ns3::FlowMonitor::ReportFirstTx(), ns3::FlowMonitor::ReportForwarding(), ns3::FlowMonitor::ReportLastRx(), ns3::ThreeGppHttpClient::RequestEmbeddedObject(), ns3::ThreeGppHttpClient::RequestMainObject(), WifiPhyReceptionTest::SendPacket(), ns3::UdpTraceClient::SendPacket(), ns3::ThreeGppHttpServer::ServeFromTxBuffer(), ns3::OnOffHelper::SetConstantRate(), ns3::SixLowPanNetDevice::Fragments::SetPacketSize(), ns3::TutorialApp::Setup(), NodeStatistics::SetupPhy(), ns3::TcpSeqErrorModel::ShouldDrop(), ns3::RadioBearerStatsCalculator::UlRxPdu(), ns3::UlRxPduCallback(), ns3::RadioBearerStatsCalculator::UlTxPdu(), and ns3::UlTxPduCallback().