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