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)
63 .AddConstructor<AarfWifiManager> ()
64 .AddAttribute (
"SuccessK",
"Multiplication factor for the success threshold in the AARF algorithm.",
67 MakeDoubleChecker<double> ())
68 .AddAttribute (
"TimerK",
69 "Multiplication factor for the timer threshold in the AARF algorithm.",
72 MakeDoubleChecker<double> ())
73 .AddAttribute (
"MaxSuccessThreshold",
74 "Maximum value of the success threshold in the AARF algorithm.",
77 MakeUintegerChecker<uint32_t> ())
78 .AddAttribute (
"MinTimerThreshold",
79 "The minimum value for the 'timer' threshold in the AARF algorithm.",
82 MakeUintegerChecker<uint32_t> ())
83 .AddAttribute (
"MinSuccessThreshold",
84 "The minimum value for the success threshold in the AARF algorithm.",
87 MakeUintegerChecker<uint32_t> ())
165 if (((station->
m_retry - 1) % 2) == 1)
189 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
196 double ackSnr,
WifiMode ackMode,
double dataSnr)
uint32_t GetNSupported(const WifiRemoteStation *station) const
Return the number of modes supported by the given station.
uint32_t m_minSuccessThreshold
#define NS_LOG_FUNCTION(parameters)
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
#define NS_ASSERT(condition)
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
virtual void DoReportDataFailed(WifiRemoteStation *station)
It is important to realize that "recovery" mode starts after failure of the first transmission after ...
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
This method is a pure virtual method that must be implemented by the sub-class.
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const
Return the number of receive antenna the station has.
WifiMode GetSupported(const WifiRemoteStation *station, uint32_t i) const
Return whether mode associated with the specified station at the specified index. ...
bool GetStbc(const WifiRemoteStation *station) const
Return whether the given station supports space-time block coding (STBC).
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
This method is a pure virtual method that must be implemented by the sub-class.
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
virtual void DoReportRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
Hold an unsigned integer type.
virtual bool IsLowLatency(void) const
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
Return whether the given station supports short guard interval.
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
uint32_t m_successThreshold
uint8_t GetDefaultTxPowerLevel(void) const
hold per-remote-station state for AARF Wifi manager.
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
This method is a pure virtual method that must be implemented by the sub-class.
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
Return the long retry limit of the given station.
#define NS_LOG_DEBUG(msg)
virtual ~AarfWifiManager()
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
uint32_t GetNumberOfTransmitAntennas(void)
Hold a floating point type.
virtual WifiRemoteStation * DoCreateStation(void) const
a unique identifier for an interface.
uint32_t m_maxSuccessThreshold
NS_LOG_COMPONENT_DEFINE("AarfWifiManager")
TypeId SetParent(TypeId tid)
hold per-remote-station state.
static TypeId GetTypeId(void)