22 #include "ns3/simulator.h"
24 #include "ns3/uinteger.h"
26 #define Min(a,b) ((a < b) ? a : b)
52 .AddConstructor<OnoeWifiManager> ()
53 .AddAttribute (
"UpdatePeriod",
54 "The interval between decisions about rate control changes",
58 .AddAttribute (
"RaiseThreshold",
"Attempt to raise the rate if we hit that threshold",
61 MakeUintegerChecker<uint32_t> ())
62 .AddAttribute (
"AddCreditThreshold",
"Add credit threshold",
65 MakeUintegerChecker<uint32_t> ())
106 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
111 double ackSnr,
WifiMode ackMode,
double dataSnr)
168 if (enough && station->
m_tx_err == 0
175 " upper " << station->
m_tx_upper <<
" dir " << dir);
uint32_t GetNSupported(const WifiRemoteStation *station) const
keep track of time values and allow control of global simulation resolution
an implementation of the rate control algorithm developed by Atsushi Onoe
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
void UpdateMode(OnoeWifiRemoteStation *station)
#define NS_ASSERT(condition)
#define NS_LOG_COMPONENT_DEFINE(name)
virtual bool IsLowLatency(void) const
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
static TypeId GetTypeId(void)
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const
WifiMode GetSupported(const WifiRemoteStation *station, uint32_t i) const
void UpdateRetry(OnoeWifiRemoteStation *station)
bool GetStbc(const WifiRemoteStation *station) const
hold objects of type ns3::Time
Hold an unsigned integer type.
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
hold a list of per-remote-station state.
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
bool GetShortGuardInterval(const WifiRemoteStation *station) const
virtual WifiRemoteStation * DoCreateStation(void) const
uint8_t GetDefaultTxPowerLevel(void) const
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
virtual void DoReportRtsFailed(WifiRemoteStation *station)
#define NS_LOG_DEBUG(msg)
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range. Both limits are inclusive.
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
uint32_t GetShortRetryCount(const WifiRemoteStation *station) const
uint32_t GetNumberOfTransmitAntennas(void)
uint32_t m_raiseThreshold
a unique identifier for an interface.
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
TypeId SetParent(TypeId tid)
hold per-remote-station state.
uint32_t m_addCreditThreshold
virtual void DoReportDataFailed(WifiRemoteStation *station)