Tid independent remote station statistics. More...
#include <wifi-remote-station-manager.h>
Public Member Functions | |
WifiRemoteStationInfo () | |
double | GetFrameErrorRate () const |
Returns frame error rate (probability that frame is corrupted due to transmission error). | |
void | NotifyTxFailed () |
Updates average frame error rate when final data or RTS has failed. | |
void | NotifyTxSuccess (uint32_t retryCounter) |
Updates average frame error rate when data or RTS was transmitted successfully. |
Private Member Functions | |
double | CalculateAveragingCoefficient () |
Calculate averaging coefficient for frame error rate. Depends on time of the last update. |
Private Attributes | |
double | m_failAvg |
moving percentage of failed frames | |
Time | m_lastUpdate |
when last update has occured | |
Time | m_memoryTime |
averaging coefficient depends on the memory time |
Tid independent remote station statistics.
Structure is similar to struct sta_info in Linux kernel (see net/mac80211/sta_info.h)
Definition at line 47 of file wifi-remote-station-manager.h.
ns3::WifiRemoteStationInfo::WifiRemoteStationInfo | ( | ) |
Definition at line 1382 of file wifi-remote-station-manager.cc.
|
private |
Calculate averaging coefficient for frame error rate. Depends on time of the last update.
Definition at line 1390 of file wifi-remote-station-manager.cc.
References ns3::Time::GetMicroSeconds(), m_lastUpdate, m_memoryTime, and ns3::Now().
Referenced by NotifyTxFailed(), and NotifyTxSuccess().
double ns3::WifiRemoteStationInfo::GetFrameErrorRate | ( | ) | const |
Returns frame error rate (probability that frame is corrupted due to transmission error).
Definition at line 1413 of file wifi-remote-station-manager.cc.
References m_failAvg.
Referenced by ns3::dot11s::AirtimeLinkMetricCalculator::CalculateMetric().
void ns3::WifiRemoteStationInfo::NotifyTxFailed | ( | ) |
Updates average frame error rate when final data or RTS has failed.
Definition at line 1406 of file wifi-remote-station-manager.cc.
References CalculateAveragingCoefficient(), and m_failAvg.
void ns3::WifiRemoteStationInfo::NotifyTxSuccess | ( | uint32_t | retryCounter | ) |
Updates average frame error rate when data or RTS was transmitted successfully.
retryCounter | is slrc or ssrc value at the moment of success transmission. |
Definition at line 1399 of file wifi-remote-station-manager.cc.
References CalculateAveragingCoefficient(), and m_failAvg.
|
private |
moving percentage of failed frames
Definition at line 74 of file wifi-remote-station-manager.h.
Referenced by GetFrameErrorRate(), NotifyTxFailed(), and NotifyTxSuccess().
|
private |
when last update has occured
Definition at line 72 of file wifi-remote-station-manager.h.
Referenced by CalculateAveragingCoefficient().
|
private |
averaging coefficient depends on the memory time
Definition at line 70 of file wifi-remote-station-manager.h.
Referenced by CalculateAveragingCoefficient().