A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
he-frame-exchange-manager.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Universita' degli Studi di Napoli Federico II
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Stefano Avallone <stavallo@unina.it>
7 */
8
9#ifndef HE_FRAME_EXCHANGE_MANAGER_H
10#define HE_FRAME_EXCHANGE_MANAGER_H
11
12#include "mu-snr-tag.h"
13
14#include "ns3/vht-frame-exchange-manager.h"
15
16#include <map>
17#include <unordered_map>
18
19namespace ns3
20{
21
22class MultiUserScheduler;
23class ApWifiMac;
24class StaWifiMac;
25class CtrlTriggerHeader;
26
27/**
28 * Map of PSDUs indexed by STA-ID
29 */
30typedef std::unordered_map<uint16_t /* staId */, Ptr<WifiPsdu> /* PSDU */> WifiPsduMap;
31/**
32 * Map of const PSDUs indexed by STA-ID
33 */
34typedef std::unordered_map<uint16_t /* staId */, Ptr<const WifiPsdu> /* PSDU */> WifiConstPsduMap;
35
36/**
37 * \param psduMap a PSDU map
38 * \return true if the given PSDU map contains a single PSDU including a single MPDU
39 * that carries a Trigger Frame
40 */
41bool IsTrigger(const WifiPsduMap& psduMap);
42
43/**
44 * \param psduMap a PSDU map
45 * \return true if the given PSDU map contains a single PSDU including a single MPDU
46 * that carries a Trigger Frame
47 */
48bool IsTrigger(const WifiConstPsduMap& psduMap);
49
50/**
51 * \ingroup wifi
52 *
53 * HeFrameExchangeManager handles the frame exchange sequences
54 * for HE stations.
55 */
57{
58 public:
59 /**
60 * \brief Get the type ID.
61 * \return the object TypeId
62 */
63 static TypeId GetTypeId();
65 ~HeFrameExchangeManager() override;
66
67 bool StartFrameExchange(Ptr<QosTxop> edca, Time availableTime, bool initialFrame) override;
68 void SetWifiMac(const Ptr<WifiMac> mac) override;
69 void CalculateAcknowledgmentTime(WifiAcknowledgment* acknowledgment) const override;
70 void CalculateProtectionTime(WifiProtection* protection) const override;
71 std::optional<Mac48Address> FindTxopHolder(const WifiMacHeader& hdr,
72 const WifiTxVector& txVector) override;
73 bool VirtualCsMediumIdle() const override;
74
75 /**
76 * Set the Multi-user Scheduler associated with this Frame Exchange Manager.
77 *
78 * \param muScheduler the Multi-user Scheduler associated with this Frame Exchange Manager
79 */
80 void SetMultiUserScheduler(const Ptr<MultiUserScheduler> muScheduler);
81
82 /**
83 * Get the PSDU in the given PSDU map that is addressed to the given MAC address,
84 * if any, or a null pointer, otherwise.
85 *
86 * \param to the MAC address
87 * \param psduMap the PSDU map
88 * \return the PSDU, if any, or a null pointer, otherwise
89 */
90 static Ptr<WifiPsdu> GetPsduTo(Mac48Address to, const WifiPsduMap& psduMap);
91
92 /**
93 * Set the UL Target RSSI subfield of every User Info fields of the given
94 * Trigger Frame to the most recent RSSI observed from the corresponding
95 * station.
96 *
97 * \param trigger the given Trigger Frame
98 */
99 virtual void SetTargetRssi(CtrlTriggerHeader& trigger) const;
100
101 /**
102 * Get the RSSI of the most recent packet received from the station having
103 * the given address.
104 *
105 * \param address of the remote station
106 * \return the RSSI of the most recent packet received from the remote station
107 */
108 virtual std::optional<dBm_u> GetMostRecentRssi(const Mac48Address& address) const;
109
110 /**
111 * Return whether the received frame is classified as intra-BSS. It is assumed that
112 * this station is already associated with an AP.
113 *
114 * \param psdu the received PSDU
115 * \param txVector TX vector of the received PSDU
116 * \return true if the received frame is classified as intra-BSS, false otherwise
117 * (the received frame is classified as inter-BSS or it cannot be classified
118 * as intra-BSS or inter-BSS)
119 */
120 bool IsIntraBssPpdu(Ptr<const WifiPsdu> psdu, const WifiTxVector& txVector) const;
121
122 /**
123 * This method is intended to be called a SIFS after the reception of a Trigger Frame
124 * to determine whether the station is allowed to respond.
125 *
126 * \param trigger the Trigger Frame soliciting a response
127 * \return true if CS is not required or the UL MU CS mechanism indicates that the medium
128 * is idle, false otherwise
129 */
130 bool UlMuCsMediumIdle(const CtrlTriggerHeader& trigger) const;
131
132 protected:
133 void DoDispose() override;
134 void Reset() override;
135 void RxStartIndication(WifiTxVector txVector, Time psduDuration) override;
137 RxSignalInfo rxSignalInfo,
138 const WifiTxVector& txVector,
139 bool inAmpdu) override;
141 const RxSignalInfo& rxSignalInfo,
142 const WifiTxVector& txVector,
143 const std::vector<bool>& perMpduStatus) override;
144 void PostProcessFrame(Ptr<const WifiPsdu> psdu, const WifiTxVector& txVector) override;
145 Time GetTxDuration(uint32_t ppduPayloadSize,
146 Mac48Address receiver,
147 const WifiTxParameters& txParams) const override;
148 void NormalAckTimeout(Ptr<WifiMpdu> mpdu, const WifiTxVector& txVector) override;
149 void BlockAckTimeout(Ptr<WifiPsdu> psdu, const WifiTxVector& txVector) override;
150 void CtsTimeout(Ptr<WifiMpdu> rts, const WifiTxVector& txVector) override;
151 void UpdateNav(Ptr<const WifiPsdu> psdu, const WifiTxVector& txVector) override;
152 void NavResetTimeout() override;
153 void StartProtection(const WifiTxParameters& txParams) override;
154 void ProtectionCompleted() override;
155 void TransmissionSucceeded() override;
156
157 /**
158 * Clear the TXOP holder if the intra-BSS NAV counted down to zero (includes the case
159 * of intra-BSS NAV reset).
160 */
161 void ClearTxopHolderIfNeeded() override;
162
163 /**
164 * Reset the intra-BSS NAV upon expiration of the intra-BSS NAV reset timer.
165 */
166 virtual void IntraBssNavResetTimeout();
167
168 /**
169 * Compute how to set the Duration/ID field of an MU-RTS Trigger Frame to send to protect
170 * a frame transmitted with the given TX vector.
171 *
172 * \param muRtsSize the size of the MU-RTS Trigger Frame in bytes
173 * \param muRtsTxVector the TX vector used to send the MU-RTS Trigger Frame
174 * \param txDuration the TX duration of the data frame
175 * \param response the time taken by the response (acknowledgment) to the data frame
176 * \return the computed Duration/ID value for the MU-RTS Trigger Frame
177 */
178 virtual Time GetMuRtsDurationId(uint32_t muRtsSize,
179 const WifiTxVector& muRtsTxVector,
180 Time txDuration,
181 Time response) const;
182
183 /**
184 * Record the stations being solicited by an MU-RTS TF.
185 *
186 * \param txParams the TX parameters for the data frame protected by the MU-RTS TF.
187 */
188 void RecordSentMuRtsTo(const WifiTxParameters& txParams);
189
190 /**
191 * Send an MU-RTS to begin an MU-RTS/CTS frame exchange protecting an MU PPDU.
192 *
193 * \param txParams the TX parameters for the data frame
194 */
195 virtual void SendMuRts(const WifiTxParameters& txParams);
196
197 /**
198 * Called when no CTS frame is received after an MU-RTS.
199 *
200 * \param muRts the MU-RTS that solicited CTS responses
201 * \param txVector the TXVECTOR used to transmit the MU-RTS frame
202 */
203 virtual void CtsAfterMuRtsTimeout(Ptr<WifiMpdu> muRts, const WifiTxVector& txVector);
204
205 /**
206 * Called when no CTS frame is received after an MU-RTS.
207 *
208 * \param muRts the MU-RTS that solicited CTS responses
209 * \param txVector the TXVECTOR used to transmit the MU-RTS frame
210 * \param updateFailedCw whether to update CW in case of retransmission after TX failure
211 */
213 const WifiTxVector& txVector,
214 bool updateFailedCw);
215
216 /**
217 * Send CTS after receiving an MU-RTS.
218 *
219 * \param muRtsHdr the MAC header of the received MU-RTS
220 * \param trigger the MU-RTS Trigger Frame header
221 * \param muRtsSnr the SNR of the MU-RTS in linear scale
222 */
223 virtual void SendCtsAfterMuRts(const WifiMacHeader& muRtsHdr,
224 const CtrlTriggerHeader& trigger,
225 double muRtsSnr);
226
227 /**
228 * \return the mode used to transmit a CTS after an MU-RTS.
229 */
231
232 /**
233 * Get the TXVECTOR that the station having the given station ID has to use to send a
234 * CTS frame after receiving an MU-RTS Trigger Frame from the AP it is associated with.
235 *
236 * \param trigger the MU-RTS Trigger Frame
237 * \param staId the station ID for MU
238 * \return the TXVECTOR to use to send a CTS frame
239 */
240 WifiTxVector GetCtsTxVectorAfterMuRts(const CtrlTriggerHeader& trigger, uint16_t staId) const;
241
242 /**
243 * Send a map of PSDUs as a DL MU PPDU.
244 * Note that both <i>psduMap</i> and <i>txParams</i> are moved to m_psduMap and
245 * m_txParams, respectively, and hence are left in an undefined state.
246 *
247 * \param psduMap the map of PSDUs to send
248 * \param txParams the TX parameters to use to transmit the PSDUs
249 */
251
252 /**
253 * Forward a map of PSDUs down to the PHY layer.
254 *
255 * \param psduMap the map of PSDUs to transmit
256 * \param txVector the TXVECTOR used to transmit the MU PPDU
257 */
258 virtual void ForwardPsduMapDown(WifiConstPsduMap psduMap, WifiTxVector& txVector);
259
260 /**
261 * Take the necessary actions after that some BlockAck frames are missing
262 * in response to a DL MU PPDU. This method must not be called if all the
263 * expected BlockAck frames were received.
264 *
265 * \param psduMap a pointer to PSDU map transmitted in a DL MU PPDU
266 * \param nSolicitedStations the number of stations solicited to send a TB PPDU
267 */
268 virtual void BlockAcksInTbPpduTimeout(WifiPsduMap* psduMap, std::size_t nSolicitedStations);
269
270 /**
271 * Take the necessary actions after that some TB PPDUs are missing in
272 * response to Trigger Frame. This method must not be called if all the
273 * expected TB PPDUs were received.
274 *
275 * \param psduMap a pointer to PSDU map transmitted in a DL MU PPDU
276 * \param nSolicitedStations the number of stations solicited to send a TB PPDU
277 */
278 virtual void TbPpduTimeout(WifiPsduMap* psduMap, std::size_t nSolicitedStations);
279
280 /**
281 * Take the necessary actions after that a Block Ack is missing after a
282 * TB PPDU solicited through a Trigger Frame.
283 *
284 * \param psdu the PSDU in the TB PPDU
285 * \param txVector the TXVECTOR used to transmit the TB PPDU
286 */
287 virtual void BlockAckAfterTbPpduTimeout(Ptr<WifiPsdu> psdu, const WifiTxVector& txVector);
288
289 /**
290 * Get the TRIGVECTOR that the MAC has to pass to the PHY when transmitting
291 * the given Trigger Frame.
292 *
293 * \param trigger the given Trigger Frame
294 * \return the TRIGVECTOR
295 */
296 WifiTxVector GetTrigVector(const CtrlTriggerHeader& trigger) const;
297
298 /**
299 * Return a TXVECTOR for the UL frame that the station will send in response to
300 * the given Trigger frame, configured with the BSS color and transmit power
301 * level to use for the consequent HE TB PPDU.
302 * Note that this method should only be called by non-AP stations only.
303 *
304 * \param trigger the received Trigger frame
305 * \param triggerSender the MAC address of the AP sending the Trigger frame
306 * \return TXVECTOR for the HE TB PPDU frame
307 */
308 WifiTxVector GetHeTbTxVector(CtrlTriggerHeader trigger, Mac48Address triggerSender) const;
309
310 /**
311 * Build a MU-BAR Trigger Frame starting from the TXVECTOR used to respond to
312 * the MU-BAR (in case of multiple responders, their TXVECTORs need to be
313 * "merged" into a single TXVECTOR) and from the BlockAckReq headers for
314 * every recipient.
315 * Note that the number of recipients must match the number of users addressed
316 * by the given TXVECTOR.
317 *
318 * \param responseTxVector the given TXVECTOR
319 * \param recipients the list of BlockAckReq headers indexed by the station's AID
320 * \return the MPDU containing the built MU-BAR
321 */
322 Ptr<WifiMpdu> PrepareMuBar(const WifiTxVector& responseTxVector,
323 std::map<uint16_t, CtrlBAckRequestHeader> recipients) const;
324
325 /**
326 * Send a Multi-STA Block Ack frame after the reception of some TB PPDUs.
327 *
328 * \param txParams the TX parameters for the Trigger Frame that solicited the TB PPDUs
329 * \param durationId the Duration/ID field of the HE TB PPDU that elicited the Multi-STA
330 * Block Ack response
331 */
332 void SendMultiStaBlockAck(const WifiTxParameters& txParams, Time durationId);
333
334 /**
335 * Send QoS Null frames in response to a Basic or BSRP Trigger Frame. The number
336 * of QoS Null frames that are actually aggregated depends on the available time
337 * as indicated by the Trigger Frame and is at most 8 (one QoS Null frame per TID).
338 *
339 * \param trigger the Basic or BSRP Trigger Frame content
340 * \param hdr the MAC header of the Basic or BSRP Trigger Frame
341 */
342 void SendQosNullFramesInTbPpdu(const CtrlTriggerHeader& trigger, const WifiMacHeader& hdr);
343
344 Ptr<ApWifiMac> m_apMac; //!< MAC pointer (null if not an AP)
345 Ptr<StaWifiMac> m_staMac; //!< MAC pointer (null if not a STA)
346 WifiTxVector m_trigVector; //!< the TRIGVECTOR
347 Time m_intraBssNavEnd; //!< intra-BSS NAV expiration time
348 EventId m_intraBssNavResetEvent; //!< the event to reset the intra-BSS NAV after an RTS
349
350 private:
351 /**
352 * Send the current PSDU map as a DL MU PPDU.
353 */
354 void SendPsduMap();
355
356 /**
357 * Take the necessary actions when receiving a Basic Trigger Frame.
358 *
359 * \param trigger the Basic Trigger Frame content
360 * \param hdr the MAC header of the Basic Trigger Frame
361 */
362 void ReceiveBasicTrigger(const CtrlTriggerHeader& trigger, const WifiMacHeader& hdr);
363
364 /**
365 * Respond to a MU-BAR Trigger Frame (if permitted by UL MU CS mechanism).
366 *
367 * \param trigger the Basic Trigger Frame content
368 * \param tid the TID requested for us in the MU-BAR Trigger Frame
369 * \param durationId the Duration/ID field of the MPDU carrying the Trigger Frame
370 * \param snr the receive SNR
371 */
372 void ReceiveMuBarTrigger(const CtrlTriggerHeader& trigger,
373 uint8_t tid,
374 Time durationId,
375 double snr);
376
377 WifiPsduMap m_psduMap; //!< the A-MPDU being transmitted
378 WifiTxParameters m_txParams; //!< the TX parameters for the current PPDU
379 Ptr<MultiUserScheduler> m_muScheduler; //!< Multi-user Scheduler (HE APs only)
380 Ptr<WifiMpdu> m_triggerFrame; //!< Trigger Frame being sent
381 EventId m_multiStaBaEvent; //!< Sending a Multi-STA BlockAck event
382 MuSnrTag m_muSnrTag; //!< Tag to attach to Multi-STA BlockAck frames
383 bool m_triggerFrameInAmpdu; //!< True if the received A-MPDU contains an MU-BAR
384};
385
386} // namespace ns3
387
388#endif /* HE_FRAME_EXCHANGE_MANAGER_H */
Headers for Trigger frames.
An identifier for simulation events.
Definition event-id.h:45
HeFrameExchangeManager handles the frame exchange sequences for HE stations.
WifiTxVector GetTrigVector(const CtrlTriggerHeader &trigger) const
Get the TRIGVECTOR that the MAC has to pass to the PHY when transmitting the given Trigger Frame.
virtual Time GetMuRtsDurationId(uint32_t muRtsSize, const WifiTxVector &muRtsTxVector, Time txDuration, Time response) const
Compute how to set the Duration/ID field of an MU-RTS Trigger Frame to send to protect a frame transm...
Ptr< ApWifiMac > m_apMac
MAC pointer (null if not an AP)
void ReceiveMuBarTrigger(const CtrlTriggerHeader &trigger, uint8_t tid, Time durationId, double snr)
Respond to a MU-BAR Trigger Frame (if permitted by UL MU CS mechanism).
void SendQosNullFramesInTbPpdu(const CtrlTriggerHeader &trigger, const WifiMacHeader &hdr)
Send QoS Null frames in response to a Basic or BSRP Trigger Frame.
void DoDispose() override
Destructor implementation.
void Reset() override
Reset this frame exchange manager.
Ptr< WifiMpdu > PrepareMuBar(const WifiTxVector &responseTxVector, std::map< uint16_t, CtrlBAckRequestHeader > recipients) const
Build a MU-BAR Trigger Frame starting from the TXVECTOR used to respond to the MU-BAR (in case of mul...
virtual void IntraBssNavResetTimeout()
Reset the intra-BSS NAV upon expiration of the intra-BSS NAV reset timer.
virtual void SendMuRts(const WifiTxParameters &txParams)
Send an MU-RTS to begin an MU-RTS/CTS frame exchange protecting an MU PPDU.
WifiTxParameters m_txParams
the TX parameters for the current PPDU
Time GetTxDuration(uint32_t ppduPayloadSize, Mac48Address receiver, const WifiTxParameters &txParams) const override
Get the updated TX duration of the frame associated with the given TX parameters if the size of the P...
void BlockAckTimeout(Ptr< WifiPsdu > psdu, const WifiTxVector &txVector) override
Called when the BlockAck timeout expires.
void RxStartIndication(WifiTxVector txVector, Time psduDuration) override
void CalculateAcknowledgmentTime(WifiAcknowledgment *acknowledgment) const override
Calculate the time required to acknowledge a frame according to the given acknowledgment method.
void DoCtsAfterMuRtsTimeout(Ptr< WifiMpdu > muRts, const WifiTxVector &txVector, bool updateFailedCw)
Called when no CTS frame is received after an MU-RTS.
Ptr< WifiMpdu > m_triggerFrame
Trigger Frame being sent.
std::optional< Mac48Address > FindTxopHolder(const WifiMacHeader &hdr, const WifiTxVector &txVector) override
Determine the holder of the TXOP, if possible, based on the received frame.
void SetMultiUserScheduler(const Ptr< MultiUserScheduler > muScheduler)
Set the Multi-user Scheduler associated with this Frame Exchange Manager.
WifiTxVector GetCtsTxVectorAfterMuRts(const CtrlTriggerHeader &trigger, uint16_t staId) const
Get the TXVECTOR that the station having the given station ID has to use to send a CTS frame after re...
void SetWifiMac(const Ptr< WifiMac > mac) override
Set the MAC layer to use.
bool m_triggerFrameInAmpdu
True if the received A-MPDU contains an MU-BAR.
Ptr< MultiUserScheduler > m_muScheduler
Multi-user Scheduler (HE APs only)
virtual void CtsAfterMuRtsTimeout(Ptr< WifiMpdu > muRts, const WifiTxVector &txVector)
Called when no CTS frame is received after an MU-RTS.
void NavResetTimeout() override
Reset the NAV upon expiration of the NAV reset timer.
WifiTxVector m_trigVector
the TRIGVECTOR
void ProtectionCompleted() override
Transmit prepared frame upon successful protection mechanism.
virtual void SetTargetRssi(CtrlTriggerHeader &trigger) const
Set the UL Target RSSI subfield of every User Info fields of the given Trigger Frame to the most rece...
virtual void SendCtsAfterMuRts(const WifiMacHeader &muRtsHdr, const CtrlTriggerHeader &trigger, double muRtsSnr)
Send CTS after receiving an MU-RTS.
static Ptr< WifiPsdu > GetPsduTo(Mac48Address to, const WifiPsduMap &psduMap)
Get the PSDU in the given PSDU map that is addressed to the given MAC address, if any,...
void EndReceiveAmpdu(Ptr< const WifiPsdu > psdu, const RxSignalInfo &rxSignalInfo, const WifiTxVector &txVector, const std::vector< bool > &perMpduStatus) override
This method is called when the reception of an A-MPDU including multiple MPDUs is completed.
void CalculateProtectionTime(WifiProtection *protection) const override
Calculate the time required to protect a frame according to the given protection method.
Ptr< StaWifiMac > m_staMac
MAC pointer (null if not a STA)
void CtsTimeout(Ptr< WifiMpdu > rts, const WifiTxVector &txVector) override
Called when the CTS timeout expires.
virtual void BlockAcksInTbPpduTimeout(WifiPsduMap *psduMap, std::size_t nSolicitedStations)
Take the necessary actions after that some BlockAck frames are missing in response to a DL MU PPDU.
MuSnrTag m_muSnrTag
Tag to attach to Multi-STA BlockAck frames.
void ReceiveMpdu(Ptr< const WifiMpdu > mpdu, RxSignalInfo rxSignalInfo, const WifiTxVector &txVector, bool inAmpdu) override
This method handles the reception of an MPDU (possibly included in an A-MPDU)
EventId m_intraBssNavResetEvent
the event to reset the intra-BSS NAV after an RTS
virtual void ForwardPsduMapDown(WifiConstPsduMap psduMap, WifiTxVector &txVector)
Forward a map of PSDUs down to the PHY layer.
bool StartFrameExchange(Ptr< QosTxop > edca, Time availableTime, bool initialFrame) override
Start a frame exchange (including protection frames and acknowledgment frames as needed) that fits wi...
void ClearTxopHolderIfNeeded() override
Clear the TXOP holder if the intra-BSS NAV counted down to zero (includes the case of intra-BSS NAV r...
void NormalAckTimeout(Ptr< WifiMpdu > mpdu, const WifiTxVector &txVector) override
Called when the Ack timeout expires.
virtual void BlockAckAfterTbPpduTimeout(Ptr< WifiPsdu > psdu, const WifiTxVector &txVector)
Take the necessary actions after that a Block Ack is missing after a TB PPDU solicited through a Trig...
virtual void TbPpduTimeout(WifiPsduMap *psduMap, std::size_t nSolicitedStations)
Take the necessary actions after that some TB PPDUs are missing in response to Trigger Frame.
void SendPsduMap()
Send the current PSDU map as a DL MU PPDU.
void PostProcessFrame(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
Perform actions that are possibly needed after receiving any frame, independently of whether the fram...
WifiPsduMap m_psduMap
the A-MPDU being transmitted
void SendMultiStaBlockAck(const WifiTxParameters &txParams, Time durationId)
Send a Multi-STA Block Ack frame after the reception of some TB PPDUs.
void RecordSentMuRtsTo(const WifiTxParameters &txParams)
Record the stations being solicited by an MU-RTS TF.
static TypeId GetTypeId()
Get the type ID.
Time m_intraBssNavEnd
intra-BSS NAV expiration time
bool UlMuCsMediumIdle(const CtrlTriggerHeader &trigger) const
This method is intended to be called a SIFS after the reception of a Trigger Frame to determine wheth...
void UpdateNav(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) override
Update the NAV, if needed, based on the Duration/ID of the given psdu.
virtual std::optional< dBm_u > GetMostRecentRssi(const Mac48Address &address) const
Get the RSSI of the most recent packet received from the station having the given address.
EventId m_multiStaBaEvent
Sending a Multi-STA BlockAck event.
bool IsIntraBssPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector) const
Return whether the received frame is classified as intra-BSS.
void SendPsduMapWithProtection(WifiPsduMap psduMap, WifiTxParameters &txParams)
Send a map of PSDUs as a DL MU PPDU.
void ReceiveBasicTrigger(const CtrlTriggerHeader &trigger, const WifiMacHeader &hdr)
Take the necessary actions when receiving a Basic Trigger Frame.
WifiTxVector GetHeTbTxVector(CtrlTriggerHeader trigger, Mac48Address triggerSender) const
Return a TXVECTOR for the UL frame that the station will send in response to the given Trigger frame,...
void StartProtection(const WifiTxParameters &txParams) override
Start the protection mechanism indicated by the given TX parameters.
void TransmissionSucceeded() override
Take necessary actions upon a transmission success.
an EUI-48 address
A tag to be attached to a response to a multi-user UL frame, that carries the SNR values with which t...
Definition mu-snr-tag.h:26
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
a unique identifier for an interface.
Definition type-id.h:48
VhtFrameExchangeManager handles the frame exchange sequences for VHT stations.
Implements the IEEE 802.11 MAC header.
represent a single transmission mode
Definition wifi-mode.h:40
This class stores the TX parameters (TX vector, protection mechanism, acknowledgment mechanism,...
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::unordered_map< uint16_t, Ptr< const WifiPsdu > > WifiConstPsduMap
Map of const PSDUs indexed by STA-ID.
bool IsTrigger(const WifiPsduMap &psduMap)
std::unordered_map< uint16_t, Ptr< WifiPsdu > > WifiPsduMap
Map of PSDUs indexed by STA-ID.
RxSignalInfo structure containing info on the received signal.
Definition wifi-types.h:72
WifiAcknowledgment is an abstract base struct.
WifiProtection is an abstract base struct.