22 #include "ns3/simulator.h"
24 #include "ns3/uinteger.h"
26 #define Min(a,b) ((a < b) ? a : b)
59 .AddConstructor<OnoeWifiManager> ()
60 .AddAttribute (
"UpdatePeriod",
61 "The interval between decisions about rate control changes",
65 .AddAttribute (
"RaiseThreshold",
"Attempt to raise the rate if we hit that threshold",
68 MakeUintegerChecker<uint32_t> ())
69 .AddAttribute (
"AddCreditThreshold",
"Add credit threshold",
72 MakeUintegerChecker<uint32_t> ())
113 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
118 double ackSnr,
WifiMode ackMode,
double dataSnr)
175 if (enough && station->
m_tx_err == 0
182 " upper " << station->
m_tx_upper <<
" dir " << dir);
uint32_t GetNSupported(const WifiRemoteStation *station) const
Return the number of modes supported by the given station.
keep track of time values and allow control of global simulation resolution
an implementation of the rate control algorithm developed by Atsushi Onoe
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
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.
void UpdateMode(OnoeWifiRemoteStation *station)
#define NS_ASSERT(condition)
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
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
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. ...
void UpdateRetry(OnoeWifiRemoteStation *station)
Update the number of retry (both short and long).
bool GetStbc(const WifiRemoteStation *station) const
Return whether the given station supports space-time block coding (STBC).
hold objects of type ns3::Time
Hold an unsigned integer type.
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
hold a list of per-remote-station state.
NS_LOG_COMPONENT_DEFINE("OnoeWifiRemoteStation")
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 void DoReportFinalDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
bool GetShortGuardInterval(const WifiRemoteStation *station) const
Return whether the given station supports short guard interval.
static Time Now(void)
Return the "current simulation time".
virtual WifiRemoteStation * DoCreateStation(void) const
uint8_t GetDefaultTxPowerLevel(void) const
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
Return the long retry limit of the given station.
virtual void DoReportRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
hold per-remote-station state for ONOE Wifi manager.
#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.
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
uint32_t GetShortRetryCount(const WifiRemoteStation *station) const
Return the short retry limit of the given station.
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)
This method is a pure virtual method that must be implemented by the sub-class.
TypeId SetParent(TypeId tid)
hold per-remote-station state.
uint32_t m_addCreditThreshold
virtual void DoReportDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.