22 #include "ns3/nstime.h"
23 #include "ns3/uinteger.h"
44 .AddAttribute(
"GuardInterval",
45 "Specify the shortest guard interval duration that can be used for HE "
47 "Possible values are 800ns, 1600ns or 3200ns.",
57 MakeUintegerChecker<uint8_t>())
58 .AddAttribute(
"MaxTbPpduDelay",
59 "If positive, the value of this attribute specifies the maximum "
60 "delay with which a TB PPDU can be received after the reception of "
61 "the first TB PPDU. If the delay is higher than this value, the "
62 "TB PPDU is dropped and considered interference. The maximum delay "
63 "is anyway capped at the duration of the training fields in the PPDU. "
64 "This attribute is only valid for APs.",
69 .AddAttribute(
"MpduBufferSize",
70 "The MPDU buffer size for receiving A-MPDUs",
74 MakeUintegerChecker<uint16_t>(64, 256))
75 .AddAttribute(
"MuBeAifsn",
76 "AIFSN used by BE EDCA when the MU EDCA Timer is running. "
77 "It must be either zero (EDCA disabled) or a value from 2 to 15.",
80 MakeUintegerChecker<uint8_t>(0, 15))
81 .AddAttribute(
"MuBkAifsn",
82 "AIFSN used by BK EDCA when the MU EDCA Timer is running. "
83 "It must be either zero (EDCA disabled) or a value from 2 to 15.",
86 MakeUintegerChecker<uint8_t>(0, 15))
87 .AddAttribute(
"MuViAifsn",
88 "AIFSN used by VI EDCA when the MU EDCA Timer is running. "
89 "It must be either zero (EDCA disabled) or a value from 2 to 15.",
92 MakeUintegerChecker<uint8_t>(0, 15))
93 .AddAttribute(
"MuVoAifsn",
94 "AIFSN used by VO EDCA when the MU EDCA Timer is running. "
95 "It must be either zero (EDCA disabled) or a value from 2 to 15.",
98 MakeUintegerChecker<uint8_t>(0, 15))
99 .AddAttribute(
"MuBeCwMin",
100 "CWmin used by BE EDCA when the MU EDCA Timer is running. "
101 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
104 MakeUintegerChecker<uint16_t>(0, 32767))
105 .AddAttribute(
"MuBkCwMin",
106 "CWmin used by BK EDCA when the MU EDCA Timer is running. "
107 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
110 MakeUintegerChecker<uint16_t>(0, 32767))
111 .AddAttribute(
"MuViCwMin",
112 "CWmin used by VI EDCA when the MU EDCA Timer is running. "
113 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
116 MakeUintegerChecker<uint16_t>(0, 32767))
117 .AddAttribute(
"MuVoCwMin",
118 "CWmin used by VO EDCA when the MU EDCA Timer is running. "
119 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
122 MakeUintegerChecker<uint16_t>(0, 32767))
123 .AddAttribute(
"MuBeCwMax",
124 "CWmax used by BE EDCA when the MU EDCA Timer is running. "
125 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
128 MakeUintegerChecker<uint16_t>(0, 32767))
129 .AddAttribute(
"MuBkCwMax",
130 "CWmax used by BK EDCA when the MU EDCA Timer is running. "
131 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
134 MakeUintegerChecker<uint16_t>(0, 32767))
135 .AddAttribute(
"MuViCwMax",
136 "CWmax used by VI EDCA when the MU EDCA Timer is running. "
137 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
140 MakeUintegerChecker<uint16_t>(0, 32767))
141 .AddAttribute(
"MuVoCwMax",
142 "CWmax used by VO EDCA when the MU EDCA Timer is running. "
143 "It must be a power of 2 minus 1 in the range from 0 to 32767.",
146 MakeUintegerChecker<uint16_t>(0, 32767))
147 .AddAttribute(
"BeMuEdcaTimer",
148 "The MU EDCA Timer used by BE EDCA. It must be a multiple of "
149 "8192 us and must be in the range from 8.192 ms to 2088.96 ms. "
150 "0 is a reserved value, but we allow to use this value to indicate "
151 "that an MU EDCA Parameter Set element must not be sent. Therefore, "
152 "0 can only be used if the MU EDCA Timer for all ACs is set to 0.",
156 .AddAttribute(
"BkMuEdcaTimer",
157 "The MU EDCA Timer used by BK EDCA. It must be a multiple of "
158 "8192 us and must be in the range from 8.192 ms to 2088.96 ms."
159 "0 is a reserved value, but we allow to use this value to indicate "
160 "that an MU EDCA Parameter Set element must not be sent. Therefore, "
161 "0 can only be used if the MU EDCA Timer for all ACs is set to 0.",
165 .AddAttribute(
"ViMuEdcaTimer",
166 "The MU EDCA Timer used by VI EDCA. It must be a multiple of "
167 "8192 us and must be in the range from 8.192 ms to 2088.96 ms."
168 "0 is a reserved value, but we allow to use this value to indicate "
169 "that an MU EDCA Parameter Set element must not be sent. Therefore, "
170 "0 can only be used if the MU EDCA Timer for all ACs is set to 0.",
174 .AddAttribute(
"VoMuEdcaTimer",
175 "The MU EDCA Timer used by VO EDCA. It must be a multiple of "
176 "8192 us and must be in the range from 8.192 ms to 2088.96 ms."
177 "0 is a reserved value, but we allow to use this value to indicate "
178 "that an MU EDCA Parameter Set element must not be sent. Therefore, "
179 "0 can only be used if the MU EDCA Timer for all ACs is set to 0.",
uint16_t m_muBkCwMin
CWmin for BK in MU EDCA Parameter Set.
uint16_t m_muBkCwMax
CWmax for BK in MU EDCA Parameter Set.
uint16_t m_muVoCwMin
CWmin for VO in MU EDCA Parameter Set.
static TypeId GetTypeId()
Get the type ID.
uint16_t m_muViCwMin
CWmin for VI in MU EDCA Parameter Set.
uint8_t m_muBeAifsn
AIFSN for BE in MU EDCA Parameter Set.
uint16_t m_muViCwMax
CWmax for VI in MU EDCA Parameter Set.
uint16_t GetMpduBufferSize() const
Time GetGuardInterval() const
Time GetMaxTbPpduDelay() const
uint16_t m_mpduBufferSize
MPDU buffer size.
uint8_t m_muViAifsn
AIFSN for VI in MU EDCA Parameter Set.
uint16_t m_muBeCwMin
CWmin for BE in MU EDCA Parameter Set.
uint8_t m_muVoAifsn
AIFSN for VO in MU EDCA Parameter Set.
Time m_bkMuEdcaTimer
Timer for BK in MU EDCA Parameter Set.
Time m_viMuEdcaTimer
Timer for VI in MU EDCA Parameter Set.
void SetBssColor(uint8_t bssColor)
uint16_t m_muBeCwMax
CWmax for BE in MU EDCA Parameter Set.
void SetMaxTbPpduDelay(Time maxTbPpduDelay)
uint16_t m_muVoCwMax
CWmax for VO in MU EDCA Parameter Set.
Time m_beMuEdcaTimer
Timer for BE in MU EDCA Parameter Set.
Time m_guardInterval
Supported HE guard interval.
void SetGuardInterval(Time guardInterval)
uint8_t m_bssColor
BSS color.
Time m_voMuEdcaTimer
Timer for VO in MU EDCA Parameter Set.
void SetMpduBufferSize(uint16_t size)
uint8_t m_muBkAifsn
AIFSN for BK in MU EDCA Parameter Set.
Time m_maxTbPpduDelay
Max TB PPDU delay.
uint8_t GetBssColor() const
A base class which provides memory management and object aggregation.
Simulation virtual time values and global simulation resolution.
AttributeValue implementation for Time.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Hold an unsigned integer type.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.