A Discrete-Event Network Simulator
API
aarfcd-wifi-manager.cc
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2004,2005,2006 INRIA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Federico Maguolo <maguolof@dei.unipd.it>
19  */
20 
21 #include "ns3/log.h"
22 #include "ns3/packet.h"
23 #include "aarfcd-wifi-manager.h"
24 #include "ns3/wifi-tx-vector.h"
25 
26 #define Min(a,b) ((a < b) ? a : b)
27 #define Max(a,b) ((a > b) ? a : b)
28 
29 namespace ns3 {
30 
31 NS_LOG_COMPONENT_DEFINE ("AarfcdWifiManager");
32 
40 {
41  uint32_t m_timer;
42  uint32_t m_success;
43  uint32_t m_failed;
44  bool m_recovery;
46  uint32_t m_successThreshold;
47  uint32_t m_timerTimeout;
48  uint8_t m_rate;
49  bool m_rtsOn;
50  uint32_t m_rtsWnd;
51  uint32_t m_rtsCounter;
53 };
54 
56 
57 TypeId
59 {
60  static TypeId tid = TypeId ("ns3::AarfcdWifiManager")
62  .SetGroupName ("Wifi")
63  .AddConstructor<AarfcdWifiManager> ()
64  .AddAttribute ("SuccessK", "Multiplication factor for the success threshold in the AARF algorithm.",
65  DoubleValue (2.0),
67  MakeDoubleChecker<double> ())
68  .AddAttribute ("TimerK",
69  "Multiplication factor for the timer threshold in the AARF algorithm.",
70  DoubleValue (2.0),
72  MakeDoubleChecker<double> ())
73  .AddAttribute ("MaxSuccessThreshold",
74  "Maximum value of the success threshold in the AARF algorithm.",
75  UintegerValue (60),
77  MakeUintegerChecker<uint32_t> ())
78  .AddAttribute ("MinTimerThreshold",
79  "The minimum value for the 'timer' threshold in the AARF algorithm.",
80  UintegerValue (15),
82  MakeUintegerChecker<uint32_t> ())
83  .AddAttribute ("MinSuccessThreshold",
84  "The minimum value for the success threshold in the AARF algorithm.",
85  UintegerValue (10),
87  MakeUintegerChecker<uint32_t> ())
88  .AddAttribute ("MinRtsWnd",
89  "Minimum value for RTS window of AARF-CD",
90  UintegerValue (1),
92  MakeUintegerChecker<uint32_t> ())
93  .AddAttribute ("MaxRtsWnd",
94  "Maximum value for RTS window of AARF-CD",
95  UintegerValue (40),
97  MakeUintegerChecker<uint32_t> ())
98  .AddAttribute ("TurnOffRtsAfterRateDecrease",
99  "If true the RTS mechanism will be turned off when the rate will be decreased",
100  BooleanValue (true),
103  .AddAttribute ("TurnOnRtsAfterRateIncrease",
104  "If true the RTS mechanism will be turned on when the rate will be increased",
105  BooleanValue (true),
108  .AddTraceSource ("Rate",
109  "Traced value for rate changes (b/s)",
111  "ns3::TracedValueCallback::Uint64")
112  ;
113  return tid;
114 }
115 
118  m_currentRate (0)
119 {
120  NS_LOG_FUNCTION (this);
121 }
122 
124 {
125  NS_LOG_FUNCTION (this);
126 }
127 
128 void
130 {
131  NS_LOG_FUNCTION (this);
132  if (GetHtSupported ())
133  {
134  NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support HT rates");
135  }
136  if (GetVhtSupported ())
137  {
138  NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support VHT rates");
139  }
140  if (GetHeSupported ())
141  {
142  NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support HE rates");
143  }
144 }
145 
148 {
149  NS_LOG_FUNCTION (this);
151 
152  //AARF fields below
155  station->m_rate = 0;
156  station->m_success = 0;
157  station->m_failed = 0;
158  station->m_recovery = false;
159  station->m_timer = 0;
160 
161  //AARF-CD specific fields below
162  station->m_rtsOn = false;
163  station->m_rtsWnd = m_minRtsWnd;
164  station->m_rtsCounter = 0;
165  station->m_justModifyRate = true;
166  station->m_haveASuccess = false;
167 
168  return station;
169 }
170 
171 void
173 {
174  NS_LOG_FUNCTION (this << station);
175 }
176 
177 void
179 {
180  NS_LOG_FUNCTION (this << st);
181  AarfcdWifiRemoteStation *station = static_cast<AarfcdWifiRemoteStation*> (st);
182  station->m_timer++;
183  station->m_failed++;
184  station->m_success = 0;
185 
186  if (!station->m_rtsOn)
187  {
188  TurnOnRts (station);
189  if (!station->m_justModifyRate && !station->m_haveASuccess)
190  {
191  IncreaseRtsWnd (station);
192  }
193  else
194  {
195  ResetRtsWnd (station);
196  }
197  station->m_rtsCounter = station->m_rtsWnd;
198  if (station->m_failed >= 2)
199  {
200  station->m_timer = 0;
201  }
202  }
203  else if (station->m_recovery)
204  {
205  NS_ASSERT (station->m_failed >= 1);
206  station->m_justModifyRate = false;
207  station->m_rtsCounter = station->m_rtsWnd;
208  if (station->m_failed == 1)
209  {
210  //need recovery fallback
212  {
213  TurnOffRts (station);
214  }
215  station->m_justModifyRate = true;
216  station->m_successThreshold = (int)(Min (station->m_successThreshold * m_successK,
218  station->m_timerTimeout = (int)(Max (station->m_timerTimeout * m_timerK,
220  if (station->m_rate != 0)
221  {
222  station->m_rate--;
223  }
224  }
225  station->m_timer = 0;
226  }
227  else
228  {
229  NS_ASSERT (station->m_failed >= 1);
230  station->m_justModifyRate = false;
231  station->m_rtsCounter = station->m_rtsWnd;
232  if (((station->m_failed - 1) % 2) == 1)
233  {
234  //need normal fallback
236  {
237  TurnOffRts (station);
238  }
239  station->m_justModifyRate = true;
242  if (station->m_rate != 0)
243  {
244  station->m_rate--;
245  }
246  }
247  if (station->m_failed >= 2)
248  {
249  station->m_timer = 0;
250  }
251  }
252  CheckRts (station);
253 }
254 
255 void
257  double rxSnr, WifiMode txMode)
258 {
259  NS_LOG_FUNCTION (this << station << rxSnr << txMode);
260 }
261 
262 void
264  double ctsSnr, WifiMode ctsMode, double rtsSnr)
265 {
266  NS_LOG_FUNCTION (this << st << ctsSnr << ctsMode << rtsSnr);
267  AarfcdWifiRemoteStation *station = static_cast<AarfcdWifiRemoteStation*> (st);
268  NS_LOG_DEBUG ("station=" << station << " rts ok");
269  station->m_rtsCounter--;
270 }
271 
272 void
274  double dataSnr, uint16_t dataChannelWidth, uint8_t dataNss)
275 {
276  NS_LOG_FUNCTION (this << st << ackSnr << ackMode << dataSnr << dataChannelWidth << +dataNss);
277  AarfcdWifiRemoteStation *station = static_cast<AarfcdWifiRemoteStation*> (st);
278  station->m_timer++;
279  station->m_success++;
280  station->m_failed = 0;
281  station->m_recovery = false;
282  station->m_justModifyRate = false;
283  station->m_haveASuccess = true;
284  NS_LOG_DEBUG ("station=" << station << " data ok success=" << station->m_success << ", timer=" << station->m_timer);
285  if ((station->m_success == station->m_successThreshold
286  || station->m_timer == station->m_timerTimeout)
287  && (station->m_rate < (GetNSupported (station) - 1)))
288  {
289  NS_LOG_DEBUG ("station=" << station << " inc rate");
290  station->m_rate++;
291  station->m_timer = 0;
292  station->m_success = 0;
293  station->m_recovery = true;
294  station->m_justModifyRate = true;
296  {
297  TurnOnRts (station);
298  ResetRtsWnd (station);
299  station->m_rtsCounter = station->m_rtsWnd;
300  }
301  }
302  CheckRts (station);
303 }
304 
305 void
307 {
308  NS_LOG_FUNCTION (this << station);
309 }
310 
311 void
313 {
314  NS_LOG_FUNCTION (this << station);
315 }
316 
319 {
320  NS_LOG_FUNCTION (this << st);
321  AarfcdWifiRemoteStation *station = static_cast<AarfcdWifiRemoteStation*> (st);
322  uint16_t channelWidth = GetChannelWidth (station);
323  if (channelWidth > 20 && channelWidth != 22)
324  {
325  channelWidth = 20;
326  }
327  WifiMode mode = GetSupported (station, station->m_rate);
328  uint64_t rate = mode.GetDataRate (channelWidth);
329  if (m_currentRate != rate)
330  {
331  NS_LOG_DEBUG ("New datarate: " << rate);
332  m_currentRate = rate;
333  }
334  return WifiTxVector (mode, GetDefaultTxPowerLevel (), GetPreambleForTransmission (mode.GetModulationClass (), GetShortPreambleEnabled ()), 800, 1, 1, 0, channelWidth, GetAggregation (station));
335 }
336 
339 {
340  NS_LOG_FUNCTION (this << st);
343  AarfcdWifiRemoteStation *station = static_cast<AarfcdWifiRemoteStation*> (st);
344  uint16_t channelWidth = GetChannelWidth (station);
345  if (channelWidth > 20 && channelWidth != 22)
346  {
347  channelWidth = 20;
348  }
349  WifiMode mode;
350  if (GetUseNonErpProtection () == false)
351  {
352  mode = GetSupported (station, 0);
353  }
354  else
355  {
356  mode = GetNonErpSupported (station, 0);
357  }
358  return WifiTxVector (mode, GetDefaultTxPowerLevel (), GetPreambleForTransmission (mode.GetModulationClass (), GetShortPreambleEnabled ()), 800, 1, 1, 0, channelWidth, GetAggregation (station));
359 }
360 
361 bool
363  uint32_t size, bool normally)
364 {
365  NS_LOG_FUNCTION (this << st << size << normally);
366  AarfcdWifiRemoteStation *station = static_cast<AarfcdWifiRemoteStation*> (st);
367  NS_LOG_INFO ("" << station << " rate=" << station->m_rate << " rts=" << (station->m_rtsOn ? "RTS" : "BASIC") <<
368  " rtsCounter=" << station->m_rtsCounter);
369  return station->m_rtsOn;
370 }
371 
372 void
374 {
375  NS_LOG_FUNCTION (this << station);
376  if (station->m_rtsCounter == 0 && station->m_rtsOn)
377  {
378  TurnOffRts (station);
379  }
380 }
381 
382 void
384 {
385  NS_LOG_FUNCTION (this << station);
386  station->m_rtsOn = false;
387  station->m_haveASuccess = false;
388 }
389 
390 void
392 {
393  NS_LOG_FUNCTION (this << station);
394  station->m_rtsOn = true;
395 }
396 
397 void
399 {
400  NS_LOG_FUNCTION (this << station);
401  if (station->m_rtsWnd == m_maxRtsWnd)
402  {
403  return;
404  }
405 
406  station->m_rtsWnd *= 2;
407  if (station->m_rtsWnd > m_maxRtsWnd)
408  {
409  station->m_rtsWnd = m_maxRtsWnd;
410  }
411 }
412 
413 void
415 {
416  NS_LOG_FUNCTION (this << station);
417  station->m_rtsWnd = m_minRtsWnd;
418 }
419 
420 } //namespace ns3
ns3::TypeId
a unique identifier for an interface.
Definition: type-id.h:59
ns3::WifiRemoteStationManager::GetDefaultTxPowerLevel
uint8_t GetDefaultTxPowerLevel(void) const
Definition: wifi-remote-station-manager.cc:1184
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:205
ns3::AarfcdWifiManager::m_minSuccessThreshold
uint32_t m_minSuccessThreshold
minimum success threshold
Definition: aarfcd-wifi-manager.h:119
ns3::AarfcdWifiManager::AarfcdWifiManager
AarfcdWifiManager()
Definition: aarfcd-wifi-manager.cc:116
ns3::AarfcdWifiRemoteStation::m_rtsOn
bool m_rtsOn
RTS on.
Definition: aarfcd-wifi-manager.cc:49
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:45
NS_ASSERT
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Definition: assert.h:67
ns3::BooleanValue
AttributeValue implementation for Boolean.
Definition: boolean.h:37
ns3::WifiRemoteStationManager::GetUseNonErpProtection
bool GetUseNonErpProtection(void) const
Return whether the device supports protection of non-ERP stations.
Definition: wifi-remote-station-manager.cc:1029
ns3::AarfcdWifiRemoteStation::m_failed
uint32_t m_failed
failed
Definition: aarfcd-wifi-manager.cc:43
ns3::AarfcdWifiRemoteStation
hold per-remote-station state for AARF-CD Wifi manager.
Definition: aarfcd-wifi-manager.cc:40
ns3::AarfcdWifiManager::m_successK
double m_successK
Multiplication factor for the success threshold.
Definition: aarfcd-wifi-manager.h:120
ns3::AarfcdWifiManager::DoReportRtsFailed
void DoReportRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition: aarfcd-wifi-manager.cc:172
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::AarfcdWifiManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition: aarfcd-wifi-manager.cc:58
ns3::WifiRemoteStationManager::GetSupported
WifiMode GetSupported(const WifiRemoteStation *station, uint8_t i) const
Return whether mode associated with the specified station at the specified index.
Definition: wifi-remote-station-manager.cc:1610
ns3::AarfcdWifiRemoteStation::m_rate
uint8_t m_rate
rate
Definition: aarfcd-wifi-manager.cc:48
ns3::WifiMode::GetModulationClass
WifiModulationClass GetModulationClass() const
Definition: wifi-mode.cc:177
ns3::WifiRemoteStationManager
hold a list of per-remote-station state.
Definition: wifi-remote-station-manager.h:121
ns3::WifiRemoteStationManager::GetHtSupported
bool GetHtSupported(void) const
Return whether the device has HT capability support enabled.
Definition: wifi-remote-station-manager.cc:232
ns3::AarfcdWifiManager::m_minTimerThreshold
uint32_t m_minTimerThreshold
minimum timer threshold
Definition: aarfcd-wifi-manager.h:118
ns3::WifiRemoteStationManager::GetVhtSupported
bool GetVhtSupported(void) const
Return whether the device has VHT capability support enabled.
Definition: wifi-remote-station-manager.cc:238
ns3::WifiRemoteStationManager::GetNSupported
uint8_t GetNSupported(const WifiRemoteStation *station) const
Return the number of modes supported by the given station.
Definition: wifi-remote-station-manager.cc:1718
ns3::WifiTxVector
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Definition: wifi-tx-vector.h:71
ns3::AarfcdWifiManager::m_maxSuccessThreshold
uint32_t m_maxSuccessThreshold
maximum success threshold
Definition: aarfcd-wifi-manager.h:121
ns3::MakeBooleanAccessor
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition: boolean.h:85
ns3::Min
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
Minimum.
Definition: int64x64.h:218
ns3::AarfcdWifiRemoteStation::m_success
uint32_t m_success
success
Definition: aarfcd-wifi-manager.cc:42
ns3::AarfcdWifiManager::DoNeedRts
bool DoNeedRts(WifiRemoteStation *station, uint32_t size, bool normally) override
Definition: aarfcd-wifi-manager.cc:362
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:923
ns3::DoubleValue
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Definition: double.h:41
ns3::WifiRemoteStationManager::GetShortPreambleEnabled
bool GetShortPreambleEnabled(void) const
Return whether the device uses short PHY preambles.
Definition: wifi-remote-station-manager.cc:226
ns3::AarfcdWifiManager::DoReportRxOk
void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition: aarfcd-wifi-manager.cc:256
ns3::MakeTraceSourceAccessor
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
Definition: trace-source-accessor.h:202
ns3::AarfcdWifiManager::DoGetRtsTxVector
WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station) override
Definition: aarfcd-wifi-manager.cc:338
ns3::AarfcdWifiManager::m_turnOnRtsAfterRateIncrease
bool m_turnOnRtsAfterRateIncrease
turn on RTS after rate increase
Definition: aarfcd-wifi-manager.h:128
ns3::AarfcdWifiManager::DoGetDataTxVector
WifiTxVector DoGetDataTxVector(WifiRemoteStation *station) override
Definition: aarfcd-wifi-manager.cc:318
aarfcd-wifi-manager.h
ns3::AarfcdWifiManager::ResetRtsWnd
void ResetRtsWnd(AarfcdWifiRemoteStation *station)
Reset the RTS window of the given station.
Definition: aarfcd-wifi-manager.cc:414
ns3::Max
int64x64_t Max(const int64x64_t &a, const int64x64_t &b)
Maximum.
Definition: int64x64.h:230
NS_FATAL_ERROR
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Definition: fatal-error.h:165
ns3::AarfcdWifiManager::CheckRts
void CheckRts(AarfcdWifiRemoteStation *station)
Check if the use of RTS for the given station can be turned off.
Definition: aarfcd-wifi-manager.cc:373
ns3::AarfcdWifiRemoteStation::m_timer
uint32_t m_timer
timer
Definition: aarfcd-wifi-manager.cc:41
ns3::AarfcdWifiManager::DoCreateStation
WifiRemoteStation * DoCreateStation(void) const override
Definition: aarfcd-wifi-manager.cc:147
ns3::WifiMode
represent a single transmission mode
Definition: wifi-mode.h:48
ns3::AarfcdWifiRemoteStation::m_rtsCounter
uint32_t m_rtsCounter
RTS counter.
Definition: aarfcd-wifi-manager.cc:51
NS_LOG_INFO
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition: log.h:281
ns3::MakeBooleanChecker
Ptr< const AttributeChecker > MakeBooleanChecker(void)
Definition: boolean.cc:121
ns3::AarfcdWifiManager
an implementation of the AARF-CD algorithm
Definition: aarfcd-wifi-manager.h:45
ns3::AarfcdWifiRemoteStation::m_rtsWnd
uint32_t m_rtsWnd
RTS window.
Definition: aarfcd-wifi-manager.cc:50
ns3::AarfcdWifiManager::DoReportDataOk
void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr, uint16_t dataChannelWidth, uint8_t dataNss) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition: aarfcd-wifi-manager.cc:273
ns3::AarfcdWifiManager::DoReportDataFailed
void DoReportDataFailed(WifiRemoteStation *station) override
It is important to realize that "recovery" mode starts after failure of the first transmission after ...
Definition: aarfcd-wifi-manager.cc:178
ns3::AarfcdWifiManager::m_maxRtsWnd
uint32_t m_maxRtsWnd
maximum RTS window
Definition: aarfcd-wifi-manager.h:126
ns3::AarfcdWifiRemoteStation::m_successThreshold
uint32_t m_successThreshold
success threshold
Definition: aarfcd-wifi-manager.cc:46
ns3::AarfcdWifiManager::DoReportRtsOk
void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition: aarfcd-wifi-manager.cc:263
ns3::MakeDoubleAccessor
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition: double.h:42
ns3::GetPreambleForTransmission
WifiPreamble GetPreambleForTransmission(WifiModulationClass modulation, bool useShortPreamble)
Return the preamble to be used for the transmission.
Definition: wifi-phy-common.cc:87
ns3::AarfcdWifiManager::IncreaseRtsWnd
void IncreaseRtsWnd(AarfcdWifiRemoteStation *station)
Increase the RTS window size of the given station.
Definition: aarfcd-wifi-manager.cc:398
ns3::WifiRemoteStation
hold per-remote-station state.
Definition: wifi-remote-station-manager.h:62
ns3::WifiRemoteStationManager::GetAggregation
bool GetAggregation(const WifiRemoteStation *station) const
Return whether the given station supports A-MPDU.
Definition: wifi-remote-station-manager.cc:1682
ns3::AarfcdWifiManager::m_minRtsWnd
uint32_t m_minRtsWnd
minimum RTS window
Definition: aarfcd-wifi-manager.h:125
NS_LOG_DEBUG
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Definition: log.h:273
ns3::WifiRemoteStationManager::GetNonErpSupported
WifiMode GetNonErpSupported(const WifiRemoteStation *station, uint8_t i) const
Return whether non-ERP mode associated with the specified station at the specified index.
Definition: wifi-remote-station-manager.cc:1624
ns3::AarfcdWifiRemoteStation::m_haveASuccess
bool m_haveASuccess
have a success
Definition: aarfcd-wifi-manager.cc:52
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition: log-macros-enabled.h:244
ns3::AarfcdWifiManager::m_turnOffRtsAfterRateDecrease
bool m_turnOffRtsAfterRateDecrease
turn off RTS after rate decrease
Definition: aarfcd-wifi-manager.h:127
ns3::AarfcdWifiManager::~AarfcdWifiManager
virtual ~AarfcdWifiManager()
Definition: aarfcd-wifi-manager.cc:123
ns3::AarfcdWifiManager::DoReportFinalRtsFailed
void DoReportFinalRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition: aarfcd-wifi-manager.cc:306
ns3::UintegerValue
Hold an unsigned integer type.
Definition: uinteger.h:44
ns3::AarfcdWifiManager::TurnOnRts
void TurnOnRts(AarfcdWifiRemoteStation *station)
Turn on RTS for the given station.
Definition: aarfcd-wifi-manager.cc:391
ns3::AarfcdWifiManager::DoInitialize
void DoInitialize(void) override
Initialize() implementation.
Definition: aarfcd-wifi-manager.cc:129
ns3::WifiRemoteStationManager::GetChannelWidth
uint16_t GetChannelWidth(const WifiRemoteStation *station) const
Return the channel width supported by the station.
Definition: wifi-remote-station-manager.cc:1658
ns3::WifiMode::GetDataRate
uint64_t GetDataRate(uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const
Definition: wifi-mode.cc:114
ns3::MakeUintegerAccessor
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition: uinteger.h:45
ns3::AarfcdWifiManager::TurnOffRts
void TurnOffRts(AarfcdWifiRemoteStation *station)
Turn off RTS for the given station.
Definition: aarfcd-wifi-manager.cc:383
ns3::AarfcdWifiRemoteStation::m_recovery
bool m_recovery
recovery
Definition: aarfcd-wifi-manager.cc:44
ns3::AarfcdWifiManager::DoReportFinalDataFailed
void DoReportFinalDataFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition: aarfcd-wifi-manager.cc:312
ns3::AarfcdWifiRemoteStation::m_timerTimeout
uint32_t m_timerTimeout
timer timeout
Definition: aarfcd-wifi-manager.cc:47
ns3::AarfcdWifiManager::m_currentRate
TracedValue< uint64_t > m_currentRate
Trace rate changes.
Definition: aarfcd-wifi-manager.h:130
ns3::AarfcdWifiManager::m_timerK
double m_timerK
Multiplication factor for the timer threshold.
Definition: aarfcd-wifi-manager.h:122
ns3::AarfcdWifiRemoteStation::m_justModifyRate
bool m_justModifyRate
just modify rate
Definition: aarfcd-wifi-manager.cc:45
ns3::WifiRemoteStationManager::GetHeSupported
bool GetHeSupported(void) const
Return whether the device has HE capability support enabled.
Definition: wifi-remote-station-manager.cc:244