22 #include "ns3/assert.h" 
   24 #include "ns3/double.h" 
   25 #include "ns3/uinteger.h" 
   26 #include "ns3/simulator.h" 
   28 #define Min(a,b) ((a < b) ? a : b) 
   50     .AddConstructor<CaraWifiManager> ()
 
   51     .AddAttribute (
"ProbeThreshold",
 
   52                    "The number of consecutive transmissions failure to activate the RTS probe.",
 
   55                    MakeUintegerChecker<uint32_t> ())
 
   56     .AddAttribute (
"FailureThreshold",
 
   57                    "The number of consecutive transmissions failure to decrease the rate.",
 
   60                    MakeUintegerChecker<uint32_t> ())
 
   61     .AddAttribute (
"SuccessThreshold",
 
   62                    "The minimum number of sucessfull transmissions to try a new rate.",
 
   65                    MakeUintegerChecker<uint32_t> ())
 
   66     .AddAttribute (
"Timeout",
 
   67                    "The 'timer' in the CARA algorithm",
 
   70                    MakeUintegerChecker<uint32_t> ())
 
  130                                 double ctsSnr, 
WifiMode ctsMode, 
double rtsSnr)
 
  137                                  double ackSnr, 
WifiMode ackMode, 
double dataSnr)
 
uint32_t GetNSupported(const WifiRemoteStation *station) const 
 
#define NS_LOG_FUNCTION(parameters)
 
virtual WifiRemoteStation * DoCreateStation(void) const 
 
virtual bool IsLowLatency(void) const 
 
#define NS_LOG_COMPONENT_DEFINE(name)
 
virtual ~CaraWifiManager()
 
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
 
virtual void DoReportDataFailed(WifiRemoteStation *station)
 
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
 
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
 
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const 
 
uint32_t m_probeThreshold
 
WifiMode GetSupported(const WifiRemoteStation *station, uint32_t i) const 
 
bool GetStbc(const WifiRemoteStation *station) const 
 
uint32_t m_failureThreshold
 
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
 
static TypeId GetTypeId(void)
 
Hold an unsigned integer type. 
 
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
 
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
 
hold a list of per-remote-station state. 
 
virtual void DoReportRtsFailed(WifiRemoteStation *station)
 
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
 
bool GetShortGuardInterval(const WifiRemoteStation *station) const 
 
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
 
uint8_t GetDefaultTxPowerLevel(void) const 
 
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const 
 
#define NS_LOG_DEBUG(msg)
 
uint32_t m_successThreshold
 
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
 
uint32_t GetNumberOfTransmitAntennas(void)
 
implement the CARA rate control algorithmImplement the CARA algorithm from: J. Kim, S. Kim, S. Choi, and D. Qiao. "CARA: Collision-Aware Rate Adaptation for IEEE 802.11 WLANs." 
 
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
 
virtual bool DoNeedRts(WifiRemoteStation *station, Ptr< const Packet > packet, bool normally)
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
 
hold per-remote-station state.