The backoff class is used for calculating backoff times when many net devices can write to the same channel. More...
#include <backoff.h>
Public Member Functions | |
| Time | GetBackoffTime () |
| void | ResetBackoffTime (void) |
| bool | MaxRetriesReached (void) |
| void | IncrNumRetries (void) |
Public Attributes | |
| uint32_t | m_minSlots |
| uint32_t | m_maxSlots |
| uint32_t | m_ceiling |
| uint32_t | m_maxRetries |
| Time | m_slotTime |
Private Attributes | |
| uint32_t | m_numBackoffRetries |
The backoff class is used for calculating backoff times when many net devices can write to the same channel.
| Time ns3::Backoff::GetBackoffTime | ( | ) |
| void ns3::Backoff::IncrNumRetries | ( | void | ) |
Increments the number of retries by 1.
| bool ns3::Backoff::MaxRetriesReached | ( | void | ) |
| void ns3::Backoff::ResetBackoffTime | ( | void | ) |
Indicates to the backoff object that the last packet was successfully transmitted and that the number of retries should be reset to 0.
| uint32_t ns3::Backoff::m_ceiling |
Caps the exponential function when the number of retries reaches m_ceiling.
| uint32_t ns3::Backoff::m_maxRetries |
Maximum number of transmission retries before the packet is dropped.
| uint32_t ns3::Backoff::m_maxSlots |
Maximim number of backoff slots (when multiplied by m_slotTime, determines maximum backoff time)
| uint32_t ns3::Backoff::m_minSlots |
Minimum number of backoff slots (when multiplied by m_slotTime, determines minimum backoff time)
uint32_t ns3::Backoff::m_numBackoffRetries [private] |
Number of times that the transmitter has tried to unsuccessfully transmit the current packet.
Length of one slot. A slot time, it usually the packet transmission time, if the packet size is fixed.
1.7.1