TID independent remote station statistics. More...
#include "wifi-remote-station-info.h"
Collaboration diagram for ns3::WifiRemoteStationInfo:Public Member Functions | |
| WifiRemoteStationInfo () | |
| virtual | ~WifiRemoteStationInfo () |
| double | GetFrameErrorRate () const |
| Return 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. | |
Private Attributes | |
| double | m_failAvg |
| moving percentage of failed frames | |
| Time | m_lastUpdate |
| when last update has occurred | |
| 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 24 of file wifi-remote-station-info.h.
| ns3::WifiRemoteStationInfo::WifiRemoteStationInfo | ( | ) |
Definition at line 16 of file wifi-remote-station-info.cc.
References m_failAvg, m_lastUpdate, m_memoryTime, and ns3::Seconds().
Here is the call graph for this function:
|
virtual |
Definition at line 23 of file wifi-remote-station-info.cc.
|
private |
Calculate averaging coefficient for frame error rate.
Depends on time of the last update.
Definition at line 28 of file wifi-remote-station-info.cc.
References m_lastUpdate, m_memoryTime, ns3::Now(), and ns3::Simulator::Now().
Referenced by NotifyTxFailed(), and NotifyTxSuccess().
Here is the call graph for this function:
Here is the caller graph for this function:| double ns3::WifiRemoteStationInfo::GetFrameErrorRate | ( | ) | const |
Return frame error rate (probability that frame is corrupted due to transmission error).
Definition at line 51 of file wifi-remote-station-info.cc.
References m_failAvg.
| void ns3::WifiRemoteStationInfo::NotifyTxFailed | ( | ) |
Updates average frame error rate when final data or RTS has failed.
Definition at line 44 of file wifi-remote-station-info.cc.
References CalculateAveragingCoefficient(), and m_failAvg.
Referenced by ns3::WifiRemoteStationManager::ReportFinalDataFailed(), and ns3::WifiRemoteStationManager::ReportFinalRtsFailed().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 36 of file wifi-remote-station-info.cc.
References CalculateAveragingCoefficient(), and m_failAvg.
Referenced by ns3::WifiRemoteStationManager::ReportDataOk(), and ns3::WifiRemoteStationManager::ReportRtsOk().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
moving percentage of failed frames
Definition at line 60 of file wifi-remote-station-info.h.
Referenced by WifiRemoteStationInfo(), GetFrameErrorRate(), NotifyTxFailed(), and NotifyTxSuccess().
|
private |
when last update has occurred
Definition at line 59 of file wifi-remote-station-info.h.
Referenced by WifiRemoteStationInfo(), and CalculateAveragingCoefficient().
|
private |
averaging coefficient depends on the memory time
Definition at line 58 of file wifi-remote-station-info.h.
Referenced by WifiRemoteStationInfo(), and CalculateAveragingCoefficient().