ns-3
|
keep track of the state needed for a single DCF function.Multiple instances of a DcfState can be registered in a single DcfManager to implement 802.11e-style relative QoS. DcfState::SetAifsn and DcfState::SetCwBounds allow the user to control the relative QoS differentiation. More...
#include <dcf-manager.h>
Public Member Functions | |
void | SetAifsn (uint32_t aifsn) |
void | SetCwMin (uint32_t minCw) |
void | SetCwMax (uint32_t maxCw) |
uint32_t | GetAifsn (void) const |
uint32_t | GetCwMin (void) const |
uint32_t | GetCwMax (void) const |
void | ResetCw (void) |
void | UpdateFailedCw (void) |
void | StartBackoffNow (uint32_t nSlots) |
uint32_t | GetCw (void) const |
bool | IsAccessRequested (void) const |
Friends | |
class | DcfManager |
keep track of the state needed for a single DCF function.
Multiple instances of a DcfState can be registered in a single DcfManager to implement 802.11e-style relative QoS. DcfState::SetAifsn and DcfState::SetCwBounds allow the user to control the relative QoS differentiation.
uint32_t ns3::DcfState::GetCw | ( | void | ) | const |
bool ns3::DcfState::IsAccessRequested | ( | void | ) | const |
Referenced by ns3::DcfManager::RequestAccess().
void ns3::DcfState::ResetCw | ( | void | ) |
Update the value of the CW variable to take into account a transmission success or a transmission abort (stop transmission of a packet after the maximum number of retransmissions has been reached). By default, this resets the CW variable to minCW.
Referenced by ns3::DcfManager::NotifySwitchingStartNow().
void ns3::DcfState::SetAifsn | ( | uint32_t | aifsn | ) |
aifsn | the number of slots which make up an AIFS for a specific DCF. a DIFS corresponds to an AIFSN = 2. |
Calling this method after DcfManager::Add has been called is not recommended.
void ns3::DcfState::StartBackoffNow | ( | uint32_t | nSlots | ) |
nSlots | the number of slots of the backoff. |
Start a backoff by initializing the backoff counter to the number of slots specified.
References ns3::Now(), and NS_ASSERT.
void ns3::DcfState::UpdateFailedCw | ( | void | ) |
Update the value of the CW variable to take into account a transmission failure. By default, this triggers a doubling of CW (capped by maxCW).