A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
wifi-remote-station-info.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005,2006,2007 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7
*/
8
9
#ifndef WIFI_REMOTE_STATION_INFO_H
10
#define WIFI_REMOTE_STATION_INFO_H
11
12
#include "ns3/nstime.h"
13
#include "ns3/uinteger.h"
14
15
namespace
ns3
16
{
17
18
/**
19
* \brief TID independent remote station statistics
20
*
21
* Structure is similar to struct sta_info in Linux kernel (see
22
* net/mac80211/sta_info.h)
23
*/
24
class
WifiRemoteStationInfo
25
{
26
public
:
27
WifiRemoteStationInfo
();
28
virtual
~WifiRemoteStationInfo
();
29
30
/**
31
* \brief Updates average frame error rate when data or RTS was transmitted successfully.
32
*
33
* \param retryCounter is SLRC or SSRC value at the moment of success transmission.
34
*/
35
void
NotifyTxSuccess
(
uint32_t
retryCounter);
36
/**
37
* Updates average frame error rate when final data or RTS has failed.
38
*/
39
void
NotifyTxFailed
();
40
/**
41
* Return frame error rate (probability that frame is corrupted due to transmission error).
42
* \returns the frame error rate
43
*/
44
double
GetFrameErrorRate
()
const
;
45
46
private
:
47
/**
48
* \brief Calculate averaging coefficient for frame error rate. Depends on time of the last
49
* update.
50
*
51
* \attention Calling this method twice gives different results,
52
* because it resets time of last update.
53
*
54
* \return average coefficient for frame error rate
55
*/
56
double
CalculateAveragingCoefficient
();
57
58
Time
m_memoryTime
;
///< averaging coefficient depends on the memory time
59
Time
m_lastUpdate
;
///< when last update has occurred
60
double
m_failAvg
;
///< moving percentage of failed frames
61
};
62
63
}
// namespace ns3
64
65
#endif
/* WIFI_REMOTE_STATION_INFO_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3::WifiRemoteStationInfo
TID independent remote station statistics.
Definition
wifi-remote-station-info.h:25
ns3::WifiRemoteStationInfo::m_failAvg
double m_failAvg
moving percentage of failed frames
Definition
wifi-remote-station-info.h:60
ns3::WifiRemoteStationInfo::m_lastUpdate
Time m_lastUpdate
when last update has occurred
Definition
wifi-remote-station-info.h:59
ns3::WifiRemoteStationInfo::WifiRemoteStationInfo
WifiRemoteStationInfo()
Definition
wifi-remote-station-info.cc:16
ns3::WifiRemoteStationInfo::CalculateAveragingCoefficient
double CalculateAveragingCoefficient()
Calculate averaging coefficient for frame error rate.
Definition
wifi-remote-station-info.cc:28
ns3::WifiRemoteStationInfo::NotifyTxSuccess
void NotifyTxSuccess(uint32_t retryCounter)
Updates average frame error rate when data or RTS was transmitted successfully.
Definition
wifi-remote-station-info.cc:36
ns3::WifiRemoteStationInfo::~WifiRemoteStationInfo
virtual ~WifiRemoteStationInfo()
Definition
wifi-remote-station-info.cc:23
ns3::WifiRemoteStationInfo::m_memoryTime
Time m_memoryTime
averaging coefficient depends on the memory time
Definition
wifi-remote-station-info.h:58
ns3::WifiRemoteStationInfo::GetFrameErrorRate
double GetFrameErrorRate() const
Return frame error rate (probability that frame is corrupted due to transmission error).
Definition
wifi-remote-station-info.cc:51
ns3::WifiRemoteStationInfo::NotifyTxFailed
void NotifyTxFailed()
Updates average frame error rate when final data or RTS has failed.
Definition
wifi-remote-station-info.cc:44
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
wifi-remote-station-info.h
Generated on Fri Nov 8 2024 13:59:08 for ns-3 by
1.11.0