author | Ghada Badawy <gbadawy@gmail.com> |
Tue, 13 Aug 2013 22:05:25 -0700 | |
changeset 10139 | 17a71cd49da3 |
parent 9703 | 681f35b212ff |
child 10459 | f2e90c12a44f |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7141
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
4408 | 2 |
/* |
3 |
* Copyright (c) 2006, 2009 INRIA |
|
4 |
* Copyright (c) 2009 MIRKO BANCHI |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or modify |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
7 |
* it under the terms of the GNU General Public License version 2 as |
4408 | 8 |
* published by the Free Software Foundation; |
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 |
* |
|
19 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
|
20 |
* Author: Mirko Banchi <mk.banchi@gmail.com> |
|
21 |
*/ |
|
22 |
#ifndef EDCA_TXOP_N_H |
|
23 |
#define EDCA_TXOP_N_H |
|
24 |
||
25 |
#include "ns3/object.h" |
|
26 |
#include "ns3/mac48-address.h" |
|
27 |
#include "ns3/packet.h" |
|
28 |
||
29 |
#include "wifi-mode.h" |
|
30 |
#include "wifi-mac-header.h" |
|
6673
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6485
diff
changeset
|
31 |
#include "wifi-remote-station-manager.h" |
4408 | 32 |
#include "qos-utils.h" |
4720
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
33 |
#include "dcf.h" |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
34 |
#include "ctrl-headers.h" |
6485
429560e899ab
Bug 842 - During retransmission of a BAR i must wait for a Block ack response and not for a normal ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
35 |
#include "block-ack-manager.h" |
4408 | 36 |
|
37 |
#include <map> |
|
38 |
#include <list> |
|
39 |
||
40 |
namespace ns3 { |
|
41 |
||
42 |
class DcfState; |
|
43 |
class DcfManager; |
|
44 |
class MacLow; |
|
45 |
class MacTxMiddle; |
|
6673
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6485
diff
changeset
|
46 |
class WifiMac; |
4408 | 47 |
class WifiMacParameters; |
48 |
class WifiMacQueue; |
|
49 |
class RandomStream; |
|
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
50 |
class QosBlockedDestinations; |
4408 | 51 |
class MsduAggregator; |
5953
9e400f6b8a2c
handle wifi action frames in high MACs
Mirko Banchi <mk.banchi@gmail.com>
parents:
5952
diff
changeset
|
52 |
class MgtAddBaResponseHeader; |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
53 |
class BlockAckManager; |
5965
4e64e751be07
add support to block ack tear down in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5964
diff
changeset
|
54 |
class MgtDelBaHeader; |
5953
9e400f6b8a2c
handle wifi action frames in high MACs
Mirko Banchi <mk.banchi@gmail.com>
parents:
5952
diff
changeset
|
55 |
|
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
56 |
enum TypeOfStation |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
57 |
{ |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
58 |
STA, |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
59 |
AP, |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
60 |
ADHOC_STA, |
10139 | 61 |
MESH, |
62 |
HT_STA, |
|
63 |
HT_AP, |
|
64 |
HT_ADHOC_STA |
|
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
65 |
}; |
4408 | 66 |
|
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
67 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
68 |
/** |
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
69 |
* \ingroup wifi |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
70 |
* This queue contains packets for a particular access class. |
4408 | 71 |
* possibles access classes are: |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
72 |
* |
4408 | 73 |
* -AC_VO : voice, tid = 6,7 ^ |
74 |
* -AC_VI : video, tid = 4,5 | |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
75 |
* -AC_BE : best-effort, tid = 0,3 | priority |
4408 | 76 |
* -AC_BK : background, tid = 1,2 | |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
77 |
* |
4408 | 78 |
* For more details see section 9.1.3.1 in 802.11 standard. |
79 |
*/ |
|
4720
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
80 |
class EdcaTxopN : public Dcf |
4408 | 81 |
{ |
82 |
public: |
|
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
83 |
typedef Callback <void, const WifiMacHeader&> TxOk; |
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
84 |
typedef Callback <void, const WifiMacHeader&> TxFailed; |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
85 |
|
4408 | 86 |
static TypeId GetTypeId (void); |
87 |
EdcaTxopN (); |
|
88 |
virtual ~EdcaTxopN (); |
|
89 |
void DoDispose (); |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
90 |
|
4408 | 91 |
void SetLow (Ptr<MacLow> low); |
92 |
void SetTxMiddle (MacTxMiddle *txMiddle); |
|
93 |
void SetManager (DcfManager *manager); |
|
94 |
void SetTxOkCallback (TxOk callback); |
|
95 |
void SetTxFailedCallback (TxFailed callback); |
|
96 |
void SetWifiRemoteStationManager (Ptr<WifiRemoteStationManager> remoteManager); |
|
97 |
void SetTypeOfStation (enum TypeOfStation type); |
|
98 |
enum TypeOfStation GetTypeOfStation (void) const; |
|
99 |
||
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
100 |
Ptr<WifiMacQueue > GetQueue () const; |
4720
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
101 |
virtual void SetMinCw (uint32_t minCw); |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
102 |
virtual void SetMaxCw (uint32_t maxCw); |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
103 |
virtual void SetAifsn (uint32_t aifsn); |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
104 |
virtual uint32_t GetMinCw (void) const; |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
105 |
virtual uint32_t GetMaxCw (void) const; |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
106 |
virtual uint32_t GetAifsn (void) const; |
4408 | 107 |
|
108 |
Ptr<MacLow> Low (void); |
|
109 |
Ptr<MsduAggregator> GetMsduAggregator (void) const; |
|
110 |
||
111 |
/* dcf notifications forwarded here */ |
|
112 |
bool NeedsAccess (void) const; |
|
113 |
void NotifyAccessGranted (void); |
|
114 |
void NotifyInternalCollision (void); |
|
115 |
void NotifyCollision (void); |
|
5192 | 116 |
/** |
117 |
* When a channel switching occurs, enqueued packets are removed. |
|
118 |
*/ |
|
5189 | 119 |
void NotifyChannelSwitching (void); |
4408 | 120 |
|
121 |
/*event handlers*/ |
|
122 |
void GotCts (double snr, WifiMode txMode); |
|
123 |
void MissedCts (void); |
|
124 |
void GotAck (double snr, WifiMode txMode); |
|
5955
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5953
diff
changeset
|
125 |
void GotBlockAck (const CtrlBAckResponseHeader *blockAck, Mac48Address recipient); |
5958 | 126 |
void MissedBlockAck (void); |
5953
9e400f6b8a2c
handle wifi action frames in high MACs
Mirko Banchi <mk.banchi@gmail.com>
parents:
5952
diff
changeset
|
127 |
void GotAddBaResponse (const MgtAddBaResponseHeader *respHdr, Mac48Address recipient); |
5965
4e64e751be07
add support to block ack tear down in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5964
diff
changeset
|
128 |
void GotDelBaFrame (const MgtDelBaHeader *delBaHdr, Mac48Address recipient); |
4408 | 129 |
void MissedAck (void); |
130 |
void StartNext (void); |
|
131 |
void Cancel (void); |
|
9176
41ab1e874804
Bug 555 - DCF immediate access fix
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
8981
diff
changeset
|
132 |
void EndTxNoAck (void); |
4408 | 133 |
|
134 |
void RestartAccessIfNeeded (void); |
|
135 |
void StartAccessIfNeeded (void); |
|
136 |
bool NeedRts (void); |
|
137 |
bool NeedRtsRetransmission (void); |
|
138 |
bool NeedDataRetransmission (void); |
|
139 |
bool NeedFragmentation (void) const; |
|
140 |
uint32_t GetNextFragmentSize (void); |
|
141 |
uint32_t GetFragmentSize (void); |
|
142 |
uint32_t GetFragmentOffset (void); |
|
143 |
bool IsLastFragment (void) const; |
|
144 |
void NextFragment (void); |
|
145 |
Ptr<Packet> GetFragmentPacket (WifiMacHeader *hdr); |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
146 |
|
6331
eee2eab36748
Bug 910: Replace AccessClass with 802.11-style AcIndex
Dean Armstrong <deanarm@gmail.com>
parents:
6294
diff
changeset
|
147 |
void SetAccessCategory (enum AcIndex ac); |
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
148 |
void Queue (Ptr<const Packet> packet, const WifiMacHeader &hdr); |
4408 | 149 |
void SetMsduAggregator (Ptr<MsduAggregator> aggr); |
5952
0588b01cd77e
WifiMacQueue now supports head pushing
Mirko Banchi <mk.banchi@gmail.com>
parents:
5906
diff
changeset
|
150 |
void PushFront (Ptr<const Packet> packet, const WifiMacHeader &hdr); |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
151 |
void CompleteConfig (void); |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
152 |
void SetBlockAckThreshold (uint8_t threshold); |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
153 |
uint8_t GetBlockAckThreshold (void) const; |
6294
6cefb3c0696a
add methods in QosWifiMacHelper for block ack parameters setup
Mirko Banchi <mk.banchi@gmail.com>
parents:
6273
diff
changeset
|
154 |
void SetBlockAckInactivityTimeout (uint16_t timeout); |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5963
diff
changeset
|
155 |
void SendDelbaFrame (Mac48Address addr, uint8_t tid, bool byOriginator); |
4408 | 156 |
|
8981
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
157 |
/** |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
158 |
* Assign a fixed random variable stream number to the random variables |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
159 |
* used by this model. Return the number of streams (possibly zero) that |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
160 |
* have been assigned. |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
161 |
* |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
162 |
* \param stream first stream index to use |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
163 |
* \return the number of stream indices assigned by this model |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
164 |
*/ |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
165 |
int64_t AssignStreams (int64_t stream); |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
166 |
|
4408 | 167 |
private: |
9703
681f35b212ff
Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Miletić <rivanvx@gmail.com>
parents:
9176
diff
changeset
|
168 |
void DoInitialize (); |
4408 | 169 |
/** |
170 |
* This functions are used only to correctly set addresses in a-msdu subframe. |
|
171 |
* If aggregating sta is a STA (in an infrastructured network): |
|
172 |
* SA = Address2 |
|
173 |
* DA = Address3 |
|
174 |
* If aggregating sta is an AP |
|
175 |
* SA = Address3 |
|
176 |
* DA = Address1 |
|
177 |
*/ |
|
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
178 |
Mac48Address MapSrcAddressForAggregation (const WifiMacHeader &hdr); |
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
179 |
Mac48Address MapDestAddressForAggregation (const WifiMacHeader &hdr); |
4421
0608881b163f
help python bindings
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4408
diff
changeset
|
180 |
EdcaTxopN &operator = (const EdcaTxopN &); |
0608881b163f
help python bindings
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4408
diff
changeset
|
181 |
EdcaTxopN (const EdcaTxopN &); |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
182 |
|
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
183 |
/* If number of packets in the queue reaches m_blockAckThreshold value, an ADDBARequest frame |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
184 |
* is sent to destination in order to setup a block ack. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
185 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
186 |
bool SetupBlockAckIfNeeded (); |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
187 |
/* Sends an ADDBARequest to establish a block ack agreement with sta |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
188 |
* addressed by <i>recipient</i> for tid <i>tid</i>. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
189 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
190 |
void SendAddBaRequest (Mac48Address recipient, uint8_t tid, uint16_t startSeq, |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
191 |
uint16_t timeout, bool immediateBAck); |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
192 |
/* After that all packets, for which a block ack agreement was established, have been |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
193 |
* transmitted, we have to send a block ack request. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
194 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
195 |
void SendBlockAckRequest (const struct Bar &bar); |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
196 |
/* For now is typically invoked to complete transmission of a packets sent with ack policy |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
197 |
* Block Ack: the packet is buffered and dcf is reset. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
198 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
199 |
void CompleteTx (void); |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
200 |
/* Verifies if dequeued packet has to be transmitted with ack policy Block Ack. This happens |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
201 |
* if an established block ack agreement exists with the receiver. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
202 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
203 |
void VerifyBlockAck (void); |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
204 |
|
6331
eee2eab36748
Bug 910: Replace AccessClass with 802.11-style AcIndex
Dean Armstrong <deanarm@gmail.com>
parents:
6294
diff
changeset
|
205 |
AcIndex m_ac; |
4408 | 206 |
class Dcf; |
207 |
class TransmissionListener; |
|
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5963
diff
changeset
|
208 |
class BlockAckEventListener; |
4408 | 209 |
friend class Dcf; |
210 |
friend class TransmissionListener; |
|
211 |
Dcf *m_dcf; |
|
212 |
DcfManager *m_manager; |
|
213 |
Ptr<WifiMacQueue> m_queue; |
|
214 |
TxOk m_txOkCallback; |
|
215 |
TxFailed m_txFailedCallback; |
|
216 |
Ptr<MacLow> m_low; |
|
217 |
MacTxMiddle *m_txMiddle; |
|
218 |
TransmissionListener *m_transmissionListener; |
|
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5963
diff
changeset
|
219 |
BlockAckEventListener *m_blockAckListener; |
4408 | 220 |
RandomStream *m_rng; |
221 |
Ptr<WifiRemoteStationManager> m_stationManager; |
|
222 |
uint8_t m_fragmentNumber; |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
223 |
|
4408 | 224 |
/* current packet could be a simple MSDU or, if an aggregator for this queue is |
225 |
present, could be an A-MSDU. |
|
226 |
*/ |
|
227 |
Ptr<const Packet> m_currentPacket; |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
228 |
|
4408 | 229 |
WifiMacHeader m_currentHdr; |
230 |
Ptr<MsduAggregator> m_aggregator; |
|
231 |
TypeOfStation m_typeOfStation; |
|
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
232 |
QosBlockedDestinations *m_qosBlockedDestinations; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
233 |
BlockAckManager *m_baManager; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
234 |
/* |
6273
8d70de29d514
spell check, mostly in comments.
Andrey Mazo <mazo@iitp.ru>
parents:
6080
diff
changeset
|
235 |
* Represents the minimum number of packets for use of block ack. |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
236 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
237 |
uint8_t m_blockAckThreshold; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
238 |
enum BlockAckType m_blockAckType; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
239 |
Time m_currentPacketTimestamp; |
5965
4e64e751be07
add support to block ack tear down in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5964
diff
changeset
|
240 |
uint16_t m_blockAckInactivityTimeout; |
6485
429560e899ab
Bug 842 - During retransmission of a BAR i must wait for a Block ack response and not for a normal ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
241 |
struct Bar m_currentBar; |
4408 | 242 |
}; |
243 |
||
7386
2310ed220a61
standardize ns-3 namespace declaration format
Vedran Miletić <rivanvx@gmail.com>
parents:
7385
diff
changeset
|
244 |
} // namespace ns3 |
4408 | 245 |
|
246 |
#endif /* EDCA_TXOP_N_H */ |