22 #include "ns3/assert.h"
24 #include "ns3/uinteger.h"
26 #define Min(a,b) ((a < b) ? a : b)
54 .AddConstructor<ArfWifiManager> ()
55 .AddAttribute (
"TimerThreshold",
"The 'timer' threshold in the ARF algorithm.",
58 MakeUintegerChecker<uint32_t> ())
59 .AddAttribute (
"SuccessThreshold",
60 "The minimum number of sucessfull transmissions to try a new rate.",
63 MakeUintegerChecker<uint32_t> ())
134 if (((station->
m_retry - 1) % 2) == 1)
155 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
161 double ackSnr,
WifiMode ackMode,
double dataSnr)
#define NS_LOG_FUNCTION(parameters)
virtual WifiRemoteStation * DoCreateStation(void) const
uint32_t m_timerThreshold
virtual ~ArfWifiManager()
virtual void DoReportRtsFailed(WifiRemoteStation *station)
#define NS_ASSERT(condition)
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const
WifiMode GetSupported(const WifiRemoteStation *station, uint32_t i) const
static TypeId GetTypeId(void)
WifiRemoteStationState * m_state
virtual bool IsLowLatency(void) const
bool GetStbc(const WifiRemoteStation *station) const
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
Hold an unsigned integer type.
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
uint32_t m_successThreshold
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
hold a list of per-remote-station state.
virtual void DoReportDataFailed(WifiRemoteStation *station)
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
WifiModeList m_operationalRateSet
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
ARF Rate control algorithm.
bool GetShortGuardInterval(const WifiRemoteStation *station) const
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
NS_LOG_COMPONENT_DEFINE("ns3::ArfWifiManager")
uint8_t GetDefaultTxPowerLevel(void) const
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
#define NS_LOG_DEBUG(msg)
uint32_t GetNumberOfTransmitAntennas(void)
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
hold per-remote-station state.
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
uint32_t m_successThreshold