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