A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
qos-txop.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2006, 2009 INRIA
3 * Copyright (c) 2009 MIRKO BANCHI
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 *
7 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
8 * Mirko Banchi <mk.banchi@gmail.com>
9 */
10
11#ifndef QOS_TXOP_H
12#define QOS_TXOP_H
13
14#include "block-ack-manager.h"
15#include "qos-utils.h"
16#include "txop.h"
17
18#include "ns3/traced-value.h"
19
20#include <optional>
21
22namespace ns3
23{
24
25class MgtAddBaResponseHeader;
26class MgtDelBaHeader;
27class AggregationCapableTransmissionListener;
28class WifiTxVector;
29class QosFrameExchangeManager;
30class WifiTxParameters;
31
32/**
33 * \brief Handles the packet queue and stores DCF/EDCA access parameters
34 * (one Txop per AC).
35 * \ingroup wifi
36 *
37 * This class handles the packet queue and stores DCF/EDCA access
38 * parameters (one Txop per AC). It generates backoff values and stores the channel access status
39 * (not requested, requested, granted) for the corresponding DCF/EDCA and for each link.
40 *
41 * This queue contains packets for a particular access class.
42 * Possibles access classes are:
43 * - AC_VO : voice, TID = 6,7
44 * - AC_VI : video, TID = 4,5
45 * - AC_BE : best-effort, TID = 0,3
46 * - AC_BK : background, TID = 1,2
47 *
48 * This class also implements block ack sessions and MSDU aggregation (A-MSDU).
49 */
50
51class QosTxop : public Txop
52{
53 public:
54 /**
55 * \brief Get the type ID.
56 * \return the object TypeId
57 */
58 static TypeId GetTypeId();
59
60 QosTxop();
61 ~QosTxop() override;
62
63 bool IsQosTxop() const override;
64 bool HasFramesToTransmit(uint8_t linkId) override;
65 void NotifyChannelAccessed(uint8_t linkId, Time txopDuration) override;
66 void NotifyChannelReleased(uint8_t linkId) override;
67 void SetDroppedMpduCallback(DroppedMpdu callback) override;
68
69 /**
70 * Get the access category of this object.
71 *
72 * \return the access category.
73 */
75
76 /**
77 * Return true if an explicit BlockAckRequest is sent after a missed BlockAck
78 *
79 * \return true if an explicit BlockAckRequest is sent after a missed BlockAck
80 */
82
83 /**
84 * Get the Block Ack Manager associated with this QosTxop.
85 *
86 * \returns the Block Ack Manager
87 */
89 /**
90 * \param address recipient address of the peer station
91 * \param tid traffic ID.
92 *
93 * \return the negotiated buffer size during ADDBA handshake.
94 *
95 * Returns the negotiated buffer size during ADDBA handshake with station addressed by
96 * <i>recipient</i> for TID <i>tid</i>.
97 */
98 uint16_t GetBaBufferSize(Mac48Address address, uint8_t tid) const;
99 /**
100 * \param address recipient address of the peer station
101 * \param tid traffic ID.
102 *
103 * \return the starting sequence number of the originator transmit window.
104 *
105 * Returns the current starting sequence number of the transmit window on the
106 * originator (WinStartO) of the block ack agreement established with the given
107 * recipient for the given TID.
108 */
109 uint16_t GetBaStartingSequence(Mac48Address address, uint8_t tid) const;
110 /**
111 * \param recipient Address of recipient.
112 * \param tid traffic ID.
113 * \return the BlockAckRequest header and the MAC header for the BlockAckReq
114 *
115 * Prepare a BlockAckRequest to be sent to <i>recipient</i> for Traffic ID
116 * <i>tid</i>. The header for the BlockAckRequest is requested to the QosTxop
117 * corresponding to the given TID. A block ack agreement with the given recipient
118 * for the given TID must have been established by such QosTxop.
119 */
120 std::pair<CtrlBAckRequestHeader, WifiMacHeader> PrepareBlockAckRequest(Mac48Address recipient,
121 uint8_t tid) const;
122
123 /* Event handlers */
124 /**
125 * Event handler when an ADDBA response is received.
126 *
127 * \param respHdr ADDBA response header.
128 * \param recipient address of the recipient.
129 */
130 void GotAddBaResponse(const MgtAddBaResponseHeader& respHdr, Mac48Address recipient);
131 /**
132 * Event handler when a DELBA frame is received.
133 *
134 * \param delBaHdr DELBA header.
135 * \param recipient address of the recipient.
136 */
137 void GotDelBaFrame(const MgtDelBaHeader* delBaHdr, Mac48Address recipient);
138 /**
139 * Take action upon notification of ADDBA_REQUEST frame being discarded
140 * (likely due to exceeded max retry limit).
141 *
142 * \param recipient the intended recipient of the ADDBA_REQUEST frame
143 * \param tid the TID
144 */
145 void NotifyOriginatorAgreementNoReply(const Mac48Address& recipient, uint8_t tid);
146 /**
147 * Callback when ADDBA response is not received after timeout.
148 *
149 * \param recipient MAC address of recipient
150 * \param tid traffic ID
151 */
152 void AddBaResponseTimeout(Mac48Address recipient, uint8_t tid);
153 /**
154 * Reset BA agreement after BA negotiation failed.
155 *
156 * \param recipient MAC address of recipient
157 * \param tid traffic ID
158 */
159 void ResetBa(Mac48Address recipient, uint8_t tid);
160
161 /**
162 * Set threshold for block ack mechanism. If number of packets in the
163 * queue reaches the threshold, block ack mechanism is used.
164 *
165 * \param threshold block ack threshold value.
166 */
167 void SetBlockAckThreshold(uint8_t threshold);
168 /**
169 * Return the current threshold for block ack mechanism.
170 *
171 * \return the current threshold for block ack mechanism.
172 */
173 uint8_t GetBlockAckThreshold() const;
174
175 /**
176 * Set the BlockAck inactivity timeout.
177 *
178 * \param timeout the BlockAck inactivity timeout.
179 */
181 /**
182 * Get the BlockAck inactivity timeout.
183 *
184 * \return the BlockAck inactivity timeout.
185 */
186 uint16_t GetBlockAckInactivityTimeout() const;
187 /**
188 * Stores an MPDU (part of an A-MPDU) in block ack agreement (i.e. the sender is waiting
189 * for a BlockAck containing the sequence number of this MPDU).
190 *
191 * \param mpdu received MPDU.
192 */
193 void CompleteMpduTx(Ptr<WifiMpdu> mpdu);
194 /**
195 * Set the timeout to wait for ADDBA response.
196 *
197 * \param addBaResponseTimeout the timeout to wait for ADDBA response
198 */
199 void SetAddBaResponseTimeout(Time addBaResponseTimeout);
200 /**
201 * Get the timeout for ADDBA response.
202 *
203 * \returns the timeout to wait for ADDBA response
204 */
206 /**
207 * Set the timeout for failed BA agreement. During the timeout period,
208 * all packets will be transmitted using normal MPDU.
209 *
210 * \param failedAddBaTimeout the timeout for failed BA agreement
211 */
212 void SetFailedAddBaTimeout(Time failedAddBaTimeout);
213 /**
214 * Get the timeout for failed BA agreement.
215 *
216 * \returns the timeout for failed BA agreement
217 */
219
220 /**
221 * Return the next sequence number for the given header.
222 *
223 * \param hdr Wi-Fi header.
224 *
225 * \return the next sequence number.
226 */
227 uint16_t GetNextSequenceNumberFor(const WifiMacHeader* hdr);
228 /**
229 * Return the next sequence number for the Traffic ID and destination, but do not pick it (i.e.
230 * the current sequence number remains unchanged).
231 *
232 * \param hdr Wi-Fi header.
233 *
234 * \return the next sequence number.
235 */
236 uint16_t PeekNextSequenceNumberFor(const WifiMacHeader* hdr);
237 /**
238 * Peek the next frame to transmit on the given link to the given receiver and of the given TID
239 * from the EDCA queue. If <i>tid</i> is equal to 8 (invalid value) and <i>recipient</i>
240 * is the broadcast address, the first available frame is returned. If <i>mpdu</i>
241 * is not a null pointer, the search starts from the MPDU following <i>mpdu</i>
242 * in the queue; otherwise, the search starts from the head of the queue.
243 * Note that A-MSDU aggregation is never attempted. If the frame has never been
244 * transmitted, it is assigned a sequence number peeked from MacTxMiddle.
245 * Also note that multiple links are only available since 802.11be.
246 *
247 * \param linkId the ID of the given link
248 * \param tid traffic ID.
249 * \param recipient the receiver station address.
250 * \param mpdu the MPDU after which the search starts from
251 * \returns the peeked frame.
252 */
253 Ptr<WifiMpdu> PeekNextMpdu(uint8_t linkId,
254 uint8_t tid = 8,
256 Ptr<const WifiMpdu> mpdu = nullptr);
257 /**
258 * Prepare the frame to transmit on the given link starting from the MPDU that has been
259 * previously peeked by calling PeekNextMpdu. A frame is only returned if it meets the
260 * constraint on the maximum A-MPDU size (by assuming that the frame has to be
261 * aggregated to an existing A-MPDU as specified by the TX parameters) and its
262 * transmission time does not exceed the given PPDU duration limit (if distinct from
263 * Time::Min ()). If the peeked MPDU is a unicast QoS Data frame stored in the EDCA queue,
264 * attempt to perform A-MSDU aggregation (while meeting the constraints mentioned
265 * above) and assign a sequence number to the dequeued frame.
266 *
267 * \param linkId the ID of the given link
268 * \param peekedItem the peeked frame.
269 * \param txParams the TX parameters for the frame
270 * \param availableTime the time available for the transmission of the frame
271 (including protection and acknowledgment); a value of
272 * Time::Min() indicates no time constraint
273 * \param initialFrame true if the frame is the initial PPDU of a TXOP
274 * \return the frame to transmit or a null pointer if no frame meets the time constraints
275 */
276 Ptr<WifiMpdu> GetNextMpdu(uint8_t linkId,
277 Ptr<WifiMpdu> peekedItem,
278 WifiTxParameters& txParams,
279 Time availableTime,
280 bool initialFrame);
281
282 /**
283 * Assign a sequence number to the given MPDU, if it is not a fragment
284 * and it is not a retransmitted frame.
285 *
286 * \param mpdu the MPDU
287 */
288 void AssignSequenceNumber(Ptr<WifiMpdu> mpdu) const;
289
290 /**
291 * Get the value for the Queue Size subfield of the QoS Control field of a
292 * QoS data frame of the given TID and addressed to the given receiver.
293 *
294 * \param tid the Traffic ID
295 * \param receiver the address of the given receiver
296 * \return the value for the Queue Size subfield
297 */
298 uint8_t GetQosQueueSize(uint8_t tid, Mac48Address receiver) const;
299
300 /**
301 * \param linkId the ID of the given link
302 * \return the TXOP start time, if a TXOP is ongoing on the given link
303 */
304 virtual std::optional<Time> GetTxopStartTime(uint8_t linkId) const;
305 /**
306 * Return the remaining duration in the current TXOP on the given link.
307 *
308 * \param linkId the ID of the given link
309 * \return the remaining duration in the current TXOP.
310 */
311 virtual Time GetRemainingTxop(uint8_t linkId) const;
312
313 /**
314 * Set the minimum contention window size to use while the MU EDCA Timer
315 * is running for the given link.
316 *
317 * \param cwMin the minimum contention window size.
318 * \param linkId the ID of the given link
319 */
320 void SetMuCwMin(uint16_t cwMin, uint8_t linkId);
321 /**
322 * Set the maximum contention window size to use while the MU EDCA Timer
323 * is running for the given link.
324 *
325 * \param cwMax the maximum contention window size.
326 * \param linkId the ID of the given link
327 */
328 void SetMuCwMax(uint16_t cwMax, uint8_t linkId);
329 /**
330 * Set the number of slots that make up an AIFS while the MU EDCA Timer
331 * is running for the given link.
332 *
333 * \param aifsn the number of slots that make up an AIFS.
334 * \param linkId the ID of the given link
335 */
336 void SetMuAifsn(uint8_t aifsn, uint8_t linkId);
337 /**
338 * Set the MU EDCA Timer for the given link.
339 *
340 * \param timer the timer duration.
341 * \param linkId the ID of the given link
342 */
343 void SetMuEdcaTimer(Time timer, uint8_t linkId);
344 /**
345 * Start the MU EDCA Timer for the given link.
346 *
347 * \param linkId the ID of the given link
348 */
349 void StartMuEdcaTimerNow(uint8_t linkId);
350 /**
351 * Return true if the MU EDCA Timer is running for the given link, false otherwise.
352 *
353 * \param linkId the ID of the given link
354 * \return whether the MU EDCA Timer is running
355 */
356 bool MuEdcaTimerRunning(uint8_t linkId) const;
357 /**
358 * Return true if the EDCA is disabled (the MU EDCA Timer is running and the
359 * MU AIFSN is zero) for the given link, false otherwise.
360 *
361 * \param linkId the ID of the given link
362 * \return whether the EDCA is disabled
363 */
364 bool EdcaDisabled(uint8_t linkId) const;
365 /**
366 * For the given link, return the minimum contention window size from the
367 * EDCA Parameter Set or the MU EDCA Parameter Set, depending on whether the
368 * MU EDCA Timer is running or not.
369 *
370 * \param linkId the ID of the given link
371 * \return the currently used minimum contention window size.
372 */
373 uint32_t GetMinCw(uint8_t linkId) const override;
374 /**
375 * For the given link, return the maximum contention window size from the
376 * EDCA Parameter Set or the MU EDCA Parameter Set, depending on whether the
377 * MU EDCA Timer is running or not.
378 *
379 * \param linkId the ID of the given link
380 * \return the currently used maximum contention window size.
381 */
382 uint32_t GetMaxCw(uint8_t linkId) const override;
383 /**
384 * For the given link, return the number of slots that make up an AIFS according
385 * to the EDCA Parameter Set or the MU EDCA Parameter Set, depending on whether
386 * the MU EDCA Timer is running or not.
387 *
388 * \param linkId the ID of the given link
389 * \return the number of slots that currently make up an AIFS.
390 */
391 uint8_t GetAifsn(uint8_t linkId) const override;
392
393 protected:
394 /**
395 * Structure holding information specific to a single link. Here, the meaning of
396 * "link" is that of the 11be amendment which introduced multi-link devices. For
397 * previous amendments, only one link can be created.
398 */
400 {
401 /// Destructor (a virtual method is needed to make this struct polymorphic)
402 ~QosLinkEntity() override = default;
403
404 std::optional<Time> startTxop; //!< the start TXOP time
405 Time txopDuration{0}; //!< the duration of a TXOP
406 uint32_t muCwMin{0}; //!< the MU CW minimum
407 uint32_t muCwMax{0}; //!< the MU CW maximum
408 uint8_t muAifsn{0}; //!< the MU AIFSN
409 Time muEdcaTimer{0}; //!< the MU EDCA Timer
410 Time muEdcaTimerStartTime{0}; //!< last start time of the MU EDCA Timer
411 };
412
413 void DoDispose() override;
414 void CreateQueue(AcIndex aci) override;
415
416 /**
417 * Get a reference to the link associated with the given ID.
418 *
419 * \param linkId the given link ID
420 * \return a reference to the link associated with the given ID
421 */
422 QosLinkEntity& GetLink(uint8_t linkId) const;
423
424 private:
425 /// allow AggregationCapableTransmissionListener class access
427
428 std::unique_ptr<LinkEntity> CreateLinkEntity() const override;
429
430 /**
431 * Check if the given MPDU is to be considered old according to the current
432 * starting sequence number of the transmit window, provided that a block ack
433 * agreement has been established with the recipient for the given TID.
434 *
435 * \param mpdu the given MPDU
436 * \return true if the MPDU is to be considered old, false otherwise
437 */
439
440 AcIndex m_ac; //!< the access category
441 Ptr<BlockAckManager> m_baManager; //!< the block ack manager
442 uint8_t m_blockAckThreshold; /**< the block ack threshold (use BA mechanism if number of packets
443 in queue reaches this value. If this value is 0, block ack is
444 never used. When A-MPDU is enabled, block ack mechanism is used
445 regardless of this value) */
446 uint16_t m_blockAckInactivityTimeout; //!< the BlockAck inactivity timeout value (in TUs, i.e.
447 //!< blocks of 1024 microseconds)
448 Time m_addBaResponseTimeout; //!< timeout for ADDBA response
449 Time m_failedAddBaTimeout; //!< timeout after failed BA agreement
450 bool m_useExplicitBarAfterMissedBlockAck; //!< flag whether explicit BlockAckRequest should be
451 //!< sent upon missed BlockAck Response
452 uint8_t m_nMaxInflights; //!< the maximum number of links on which
453 //!< an MPDU can be in-flight at the same
454 //!< time
455
456 /// TracedCallback for TXOP trace typedef
457 typedef TracedCallback<Time /* start time */, Time /* duration */, uint8_t /* link ID*/>
459
460 TxopTracedCallback m_txopTrace; //!< TXOP trace callback
461};
462
463} // namespace ns3
464
465#endif /* QOS_TXOP_H */
an EUI-48 address
static Mac48Address GetBroadcast()
Implement the header for management frames of type Add Block Ack response.
Implement the header for management frames of type Delete Block Ack.
Smart pointer class similar to boost::intrusive_ptr.
Handles the packet queue and stores DCF/EDCA access parameters (one Txop per AC).
Definition qos-txop.h:52
TracedCallback< Time, Time, uint8_t > TxopTracedCallback
TracedCallback for TXOP trace typedef.
Definition qos-txop.h:458
std::unique_ptr< LinkEntity > CreateLinkEntity() const override
Create a LinkEntity object.
Definition qos-txop.cc:159
~QosTxop() override
Definition qos-txop.cc:141
uint8_t m_blockAckThreshold
the block ack threshold (use BA mechanism if number of packets in queue reaches this value.
Definition qos-txop.h:442
Ptr< BlockAckManager > GetBaManager()
Get the Block Ack Manager associated with this QosTxop.
Definition qos-txop.cc:278
Time m_failedAddBaTimeout
timeout after failed BA agreement
Definition qos-txop.h:449
Ptr< WifiMpdu > PeekNextMpdu(uint8_t linkId, uint8_t tid=8, Mac48Address recipient=Mac48Address::GetBroadcast(), Ptr< const WifiMpdu > mpdu=nullptr)
Peek the next frame to transmit on the given link to the given receiver and of the given TID from the...
Definition qos-txop.cc:374
uint16_t PeekNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the Traffic ID and destination, but do not pick it (i....
Definition qos-txop.cc:346
void SetMuCwMin(uint16_t cwMin, uint8_t linkId)
Set the minimum contention window size to use while the MU EDCA Timer is running for the given link.
Definition qos-txop.cc:190
bool UseExplicitBarAfterMissedBlockAck() const
Return true if an explicit BlockAckRequest is sent after a missed BlockAck.
Definition qos-txop.cc:319
bool EdcaDisabled(uint8_t linkId) const
Return true if the EDCA is disabled (the MU EDCA Timer is running and the MU AIFSN is zero) for the g...
Definition qos-txop.cc:240
Time GetAddBaResponseTimeout() const
Get the timeout for ADDBA response.
Definition qos-txop.cc:771
AcIndex GetAccessCategory() const
Get the access category of this object.
Definition qos-txop.cc:796
void AddBaResponseTimeout(Mac48Address recipient, uint8_t tid)
Callback when ADDBA response is not received after timeout.
Definition qos-txop.cc:736
uint16_t GetBaBufferSize(Mac48Address address, uint8_t tid) const
Definition qos-txop.cc:284
void DoDispose() override
Destructor implementation.
Definition qos-txop.cc:147
void SetMuCwMax(uint16_t cwMax, uint8_t linkId)
Set the maximum contention window size to use while the MU EDCA Timer is running for the given link.
Definition qos-txop.cc:197
bool MuEdcaTimerRunning(uint8_t linkId) const
Return true if the MU EDCA Timer is running for the given link, false otherwise.
Definition qos-txop.cc:231
void StartMuEdcaTimerNow(uint8_t linkId)
Start the MU EDCA Timer for the given link.
Definition qos-txop.cc:218
uint8_t GetBlockAckThreshold() const
Return the current threshold for block ack mechanism.
Definition qos-txop.cc:723
void NotifyChannelReleased(uint8_t linkId) override
Called by the FrameExchangeManager to notify the completion of the transmissions.
Definition qos-txop.cc:595
uint16_t GetNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the given header.
Definition qos-txop.cc:340
uint16_t GetBlockAckInactivityTimeout() const
Get the BlockAck inactivity timeout.
Definition qos-txop.cc:730
TxopTracedCallback m_txopTrace
TXOP trace callback.
Definition qos-txop.h:460
virtual Time GetRemainingTxop(uint8_t linkId) const
Return the remaining duration in the current TXOP on the given link.
Definition qos-txop.cc:632
AcIndex m_ac
the access category
Definition qos-txop.h:440
void SetDroppedMpduCallback(DroppedMpdu callback) override
Definition qos-txop.cc:182
bool m_useExplicitBarAfterMissedBlockAck
flag whether explicit BlockAckRequest should be sent upon missed BlockAck Response
Definition qos-txop.h:450
void SetMuAifsn(uint8_t aifsn, uint8_t linkId)
Set the number of slots that make up an AIFS while the MU EDCA Timer is running for the given link.
Definition qos-txop.cc:204
friend class AggregationCapableTransmissionListener
allow AggregationCapableTransmissionListener class access
Definition qos-txop.h:426
void NotifyOriginatorAgreementNoReply(const Mac48Address &recipient, uint8_t tid)
Take action upon notification of ADDBA_REQUEST frame being discarded (likely due to exceeded max retr...
Definition qos-txop.cc:687
virtual std::optional< Time > GetTxopStartTime(uint8_t linkId) const
Definition qos-txop.cc:587
uint8_t GetQosQueueSize(uint8_t tid, Mac48Address receiver) const
Get the value for the Queue Size subfield of the QoS Control field of a QoS data frame of the given T...
Definition qos-txop.cc:171
void ResetBa(Mac48Address recipient, uint8_t tid)
Reset BA agreement after BA negotiation failed.
Definition qos-txop.cc:749
Time GetFailedAddBaTimeout() const
Get the timeout for failed BA agreement.
Definition qos-txop.cc:784
void GotAddBaResponse(const MgtAddBaResponseHeader &respHdr, Mac48Address recipient)
Event handler when an ADDBA response is received.
Definition qos-txop.cc:648
static TypeId GetTypeId()
Get the type ID.
Definition qos-txop.cc:45
void AssignSequenceNumber(Ptr< WifiMpdu > mpdu) const
Assign a sequence number to the given MPDU, if it is not a fragment and it is not a retransmitted fra...
Definition qos-txop.cc:562
void SetFailedAddBaTimeout(Time failedAddBaTimeout)
Set the timeout for failed BA agreement.
Definition qos-txop.cc:777
uint16_t m_blockAckInactivityTimeout
the BlockAck inactivity timeout value (in TUs, i.e.
Definition qos-txop.h:446
QosLinkEntity & GetLink(uint8_t linkId) const
Get a reference to the link associated with the given ID.
Definition qos-txop.cc:165
void CreateQueue(AcIndex aci) override
Create a wifi MAC queue containing packets of the given AC.
Definition qos-txop.cc:99
Ptr< WifiMpdu > GetNextMpdu(uint8_t linkId, Ptr< WifiMpdu > peekedItem, WifiTxParameters &txParams, Time availableTime, bool initialFrame)
Prepare the frame to transmit on the given link starting from the MPDU that has been previously peeke...
Definition qos-txop.cc:491
void SetBlockAckThreshold(uint8_t threshold)
Set threshold for block ack mechanism.
Definition qos-txop.cc:708
bool IsQosOldPacket(Ptr< const WifiMpdu > mpdu)
Check if the given MPDU is to be considered old according to the current starting sequence number of ...
Definition qos-txop.cc:352
void GotDelBaFrame(const MgtDelBaHeader *delBaHdr, Mac48Address recipient)
Event handler when a DELBA frame is received.
Definition qos-txop.cc:679
void SetBlockAckInactivityTimeout(uint16_t timeout)
Set the BlockAck inactivity timeout.
Definition qos-txop.cc:716
uint8_t m_nMaxInflights
the maximum number of links on which an MPDU can be in-flight at the same time
Definition qos-txop.h:452
void CompleteMpduTx(Ptr< WifiMpdu > mpdu)
Stores an MPDU (part of an A-MPDU) in block ack agreement (i.e.
Definition qos-txop.cc:694
void SetAddBaResponseTimeout(Time addBaResponseTimeout)
Set the timeout to wait for ADDBA response.
Definition qos-txop.cc:764
std::pair< CtrlBAckRequestHeader, WifiMacHeader > PrepareBlockAckRequest(Mac48Address recipient, uint8_t tid) const
Definition qos-txop.cc:296
bool HasFramesToTransmit(uint8_t linkId) override
Check if the Txop has frames to transmit over the given link.
Definition qos-txop.cc:325
uint16_t GetBaStartingSequence(Mac48Address address, uint8_t tid) const
Definition qos-txop.cc:290
bool IsQosTxop() const override
Check for QoS TXOP.
Definition qos-txop.cc:790
Time m_addBaResponseTimeout
timeout for ADDBA response
Definition qos-txop.h:448
void NotifyChannelAccessed(uint8_t linkId, Time txopDuration) override
Called by the FrameExchangeManager to notify that channel access has been granted on the given link f...
Definition qos-txop.cc:576
void SetMuEdcaTimer(Time timer, uint8_t linkId)
Set the MU EDCA Timer for the given link.
Definition qos-txop.cc:211
Ptr< BlockAckManager > m_baManager
the block ack manager
Definition qos-txop.h:441
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
Forward calls to a chain of Callback.
Handles the packet queue and stores DCF/EDCA access parameters (one Txop per AC).
Definition txop.h:56
uint32_t GetMinCw() const
Return the minimum contention window size.
Definition txop.cc:507
uint8_t GetAifsn() const
Return the number of slots that make up an AIFS.
Definition txop.cc:555
uint32_t GetMaxCw() const
Return the maximum contention window size.
Definition txop.cc:531
a unique identifier for an interface.
Definition type-id.h:48
Implements the IEEE 802.11 MAC header.
This class stores the TX parameters (TX vector, protection mechanism, acknowledgment mechanism,...
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Definition qos-utils.h:62
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Time timeout