23 #include "ns3/double.h"
24 #include "ns3/uinteger.h"
27 #define Min(a,b) ((a < b) ? a : b)
28 #define Max(a,b) ((a > b) ? a : b)
56 .AddConstructor<AarfWifiManager> ()
57 .AddAttribute (
"SuccessK",
"Multiplication factor for the success threshold in the AARF algorithm.",
60 MakeDoubleChecker<double> ())
61 .AddAttribute (
"TimerK",
62 "Multiplication factor for the timer threshold in the AARF algorithm.",
65 MakeDoubleChecker<double> ())
66 .AddAttribute (
"MaxSuccessThreshold",
67 "Maximum value of the success threshold in the AARF algorithm.",
70 MakeUintegerChecker<uint32_t> ())
71 .AddAttribute (
"MinTimerThreshold",
72 "The minimum value for the 'timer' threshold in the AARF algorithm.",
75 MakeUintegerChecker<uint32_t> ())
76 .AddAttribute (
"MinSuccessThreshold",
77 "The minimum value for the success threshold in the AARF algorithm.",
80 MakeUintegerChecker<uint32_t> ())
156 if (((station->
m_retry - 1) % 2) == 1)
180 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
187 double ackSnr,
WifiMode ackMode,
double dataSnr)
uint32_t GetNSupported(const WifiRemoteStation *station) const
uint32_t m_minSuccessThreshold
#define NS_LOG_FUNCTION(parameters)
#define NS_ASSERT(condition)
#define NS_LOG_COMPONENT_DEFINE(name)
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
virtual void DoReportDataFailed(WifiRemoteStation *station)
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const
WifiMode GetSupported(const WifiRemoteStation *station, uint32_t i) const
bool GetStbc(const WifiRemoteStation *station) const
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
virtual void DoReportRtsFailed(WifiRemoteStation *station)
Hold an unsigned integer type.
virtual bool IsLowLatency(void) const
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
uint32_t m_minTimerThreshold
int64x64_t Max(const int64x64_t &a, const int64x64_t &b)
hold a list of per-remote-station state.
AARF Rate control algorithmThis class implements the AARF rate control algorithm which was initially ...
bool GetShortGuardInterval(const WifiRemoteStation *station) const
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
uint32_t m_successThreshold
uint8_t GetDefaultTxPowerLevel(void) const
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
#define NS_LOG_DEBUG(msg)
virtual ~AarfWifiManager()
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
uint32_t GetNumberOfTransmitAntennas(void)
Hold an floating point type.
virtual WifiRemoteStation * DoCreateStation(void) const
a unique identifier for an interface.
uint32_t m_maxSuccessThreshold
TypeId SetParent(TypeId tid)
hold per-remote-station state.
static TypeId GetTypeId(void)