author | Lalith Suresh <suresh.lalith@gmail.com> |
Fri, 04 Mar 2011 01:26:54 +0000 | |
changeset 6852 | 8f1a53d3f6ca |
parent 6848 | src/devices/wifi/model/mac-low.h@1f453ad50ef3 |
child 7139 | 79dd02ed46ec |
permissions | -rw-r--r-- |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
2 |
/* |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
3 |
* Copyright (c) 2005, 2006 INRIA |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
4 |
* Copyright (c) 2009 MIRKO BANCHI |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
5 |
* |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
6 |
* This program is free software; you can redistribute it and/or modify |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
7 |
* it under the terms of the GNU General Public License version 2 as |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
9 |
* |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
10 |
* This program is distributed in the hope that it will be useful, |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
13 |
* GNU General Public License for more details. |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
14 |
* |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
16 |
* along with this program; if not, write to the Free Software |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
18 |
* |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
19 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
20 |
* Author: Mirko Banchi <mk.banchi@gmail.com> |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
21 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
22 |
#ifndef MAC_LOW_H |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
23 |
#define MAC_LOW_H |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
24 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
25 |
#include <vector> |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
26 |
#include <stdint.h> |
2985
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2530
diff
changeset
|
27 |
#include <ostream> |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
28 |
#include <map> |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
29 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
30 |
#include "wifi-mac-header.h" |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
31 |
#include "wifi-mode.h" |
1964
041240a915f8
build and link
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1922
diff
changeset
|
32 |
#include "wifi-preamble.h" |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2508
diff
changeset
|
33 |
#include "wifi-remote-station-manager.h" |
5955
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
34 |
#include "ctrl-headers.h" |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
35 |
#include "mgt-headers.h" |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
36 |
#include "block-ack-agreement.h" |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
37 |
#include "ns3/mac48-address.h" |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
38 |
#include "ns3/callback.h" |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
39 |
#include "ns3/event-id.h" |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
40 |
#include "ns3/packet.h" |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
41 |
#include "ns3/nstime.h" |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
42 |
#include "qos-utils.h" |
6606
2f2b67218332
Bug 981: use a cache to keep track of received MPDUs under block ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6599
diff
changeset
|
43 |
#include "block-ack-cache.h" |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
44 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
45 |
namespace ns3 { |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
46 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
47 |
class WifiPhy; |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2508
diff
changeset
|
48 |
class WifiMac; |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
49 |
class EdcaTxopN; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
50 |
|
2059 | 51 |
/** |
52 |
* \brief listen to events coming from ns3::MacLow. |
|
53 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
54 |
class MacLowTransmissionListener { |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
55 |
public: |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
56 |
MacLowTransmissionListener (); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
57 |
virtual ~MacLowTransmissionListener (); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
58 |
|
2059 | 59 |
/** |
60 |
* \param snr the snr of the cts |
|
61 |
* \param txMode the txMode of the cts |
|
62 |
* |
|
63 |
* ns3::MacLow received an expected CTS within |
|
64 |
* CtsTimeout. |
|
65 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
66 |
virtual void GotCts (double snr, WifiMode txMode) = 0; |
2059 | 67 |
/** |
68 |
* ns3::MacLow did not receive an expected CTS |
|
69 |
* within CtsTimeout. |
|
70 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
71 |
virtual void MissedCts (void) = 0; |
2059 | 72 |
/** |
73 |
* \param snr the snr of the ack |
|
74 |
* \param txMode the transmission mode of the ack |
|
75 |
* |
|
76 |
* ns3::MacLow received an expected ACL within |
|
77 |
* AckTimeout. The <i>snr</i> and <i>txMode</i> |
|
78 |
* arguments are not valid when SUPER_FAST_ACK is |
|
79 |
* used. |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
80 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
81 |
virtual void GotAck (double snr, WifiMode txMode) = 0; |
2059 | 82 |
/** |
83 |
* ns3::MacLow did not receive an expected ACK within |
|
84 |
* AckTimeout. |
|
85 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
86 |
virtual void MissedAck (void) = 0; |
2059 | 87 |
/** |
5955
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
88 |
* \param blockAck Block ack response header |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
89 |
* \param source Address of block ack sender |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
90 |
* |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
91 |
* Invoked when ns3::MacLow receives a block ack frame. |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
92 |
* Block ack frame is received after a block ack request |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
93 |
* and contains information about the correct reception |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
94 |
* of a set of packet for which a normal ack wasn't send. |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
95 |
* Default implementation for this method is empty. Every |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
96 |
* queue that intends to be notified by MacLow of reception |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
97 |
* of a block ack must redefine this function. |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
98 |
*/ |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
99 |
virtual void GotBlockAck (const CtrlBAckResponseHeader *blockAck, Mac48Address source); |
10fbe045901e
add support for block ack in MacLowTransmissionListener
Mirko Banchi <mk.banchi@gmail.com>
parents:
5954
diff
changeset
|
100 |
/** |
5958 | 101 |
* ns3::MacLow did not receive an expected BLOCK_ACK within |
102 |
* BlockAckTimeout. This method is used only for immediate |
|
103 |
* block ack variant. With delayed block ack, the MissedAck method will be |
|
104 |
* called instead: upon receipt of a block ack request, the rx station will |
|
105 |
* reply with a normal ack frame. Later, when the rx station gets a txop, it |
|
106 |
* will send the block ack back to the tx station which will reply with a |
|
107 |
* normal ack to the rx station. |
|
108 |
*/ |
|
109 |
virtual void MissedBlockAck (void); |
|
110 |
/** |
|
2059 | 111 |
* Invoked when ns3::MacLow wants to start a new transmission |
112 |
* as configured by MacLowTransmissionParameters::EnableNextData. |
|
113 |
* The listener is expected to call again MacLow::StartTransmission |
|
114 |
* with the "next" data to send. |
|
115 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
116 |
virtual void StartNext (void) = 0; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
117 |
|
2059 | 118 |
/** |
119 |
* Invoked if this transmission was canceled |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
120 |
* one way or another. When this method is invoked, |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
121 |
* you can assume that the packet has not been passed |
2059 | 122 |
* down the stack to the PHY. |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
123 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
124 |
virtual void Cancel (void) = 0; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
125 |
}; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
126 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
127 |
|
2059 | 128 |
/** |
129 |
* \brief listen to NAV events |
|
130 |
* |
|
131 |
* This class is typically connected to an instance of ns3::Dcf |
|
132 |
* and calls to its methods are forwards to the corresponding |
|
133 |
* ns3::Dcf methods. |
|
134 |
*/ |
|
4509
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
135 |
class MacLowDcfListener { |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
136 |
public: |
4509
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
137 |
MacLowDcfListener (); |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
138 |
virtual ~MacLowDcfListener (); |
2059 | 139 |
/** |
140 |
* \param duration duration of NAV timer |
|
141 |
*/ |
|
2146
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
142 |
virtual void NavStart (Time duration) = 0; |
2059 | 143 |
/** |
144 |
* \param duration duration of NAV timer |
|
145 |
*/ |
|
2146
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
146 |
virtual void NavReset (Time duration) = 0; |
4509
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
147 |
virtual void AckTimeoutStart (Time duration) = 0; |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
148 |
virtual void AckTimeoutReset () = 0; |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
149 |
virtual void CtsTimeoutStart (Time duration) = 0; |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
150 |
virtual void CtsTimeoutReset () = 0; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
151 |
}; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
152 |
|
2059 | 153 |
/** |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
154 |
* \brief listen for block ack events. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
155 |
*/ |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
156 |
class MacLowBlockAckEventListener { |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
157 |
public: |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
158 |
MacLowBlockAckEventListener (); |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
159 |
virtual ~MacLowBlockAckEventListener (); |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
160 |
/** |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
161 |
* Typically is called in order to notify EdcaTxopN that a block ack inactivity |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
162 |
* timeout occurs for the block ack agreement identified by the pair <i>originator</i>, <i>tid</i>. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
163 |
* |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
164 |
* Rx station maintains an inactivity timer for each block ack |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
165 |
* agreement. Timer is reset when a frame with ack policy block ack |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
166 |
* or a block ack request are received. When this timer reaches zero |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
167 |
* this method is called and a delba frame is scheduled for transmission. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
168 |
*/ |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
169 |
virtual void BlockAckInactivityTimeout (Mac48Address originator, uint8_t tid) = 0; |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
170 |
}; |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
171 |
|
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
172 |
/** |
2059 | 173 |
* \brief control how a packet is transmitted. |
174 |
* |
|
175 |
* The ns3::MacLow::StartTransmission method expects |
|
176 |
* an instance of this class to describe how the packet |
|
177 |
* should be transmitted. |
|
178 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
179 |
class MacLowTransmissionParameters { |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
180 |
public: |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
181 |
MacLowTransmissionParameters (); |
6595
3289a9d91620
run check-style on mac-low.h/cc
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
182 |
|
2059 | 183 |
/** |
184 |
* Wait ACKTimeout for an ACK. If we get an ACK |
|
185 |
* on time, call MacLowTransmissionListener::GotAck. |
|
186 |
* Call MacLowTransmissionListener::MissedAck otherwise. |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
187 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
188 |
void EnableAck (void); |
2059 | 189 |
/** |
190 |
* - wait PIFS after end-of-tx. If idle, call |
|
191 |
* MacLowTransmissionListener::MissedAck. |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
192 |
* - if busy at end-of-tx+PIFS, wait end-of-rx |
2059 | 193 |
* - if Ack ok at end-of-rx, call |
194 |
* MacLowTransmissionListener::GotAck. |
|
195 |
* - if Ack not ok at end-of-rx, report call |
|
196 |
* MacLowTransmissionListener::MissedAck |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
197 |
* at end-of-rx+SIFS. |
2059 | 198 |
* |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
199 |
* This is really complicated but it is needed for |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
200 |
* proper HCCA support. |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
201 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
202 |
void EnableFastAck (void); |
2059 | 203 |
/** |
204 |
* - if busy at end-of-tx+PIFS, call |
|
205 |
* MacLowTransmissionListener::GotAck |
|
206 |
* - if idle at end-of-tx+PIFS, call |
|
207 |
* MacLowTransmissionListener::MissedAck |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
208 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
209 |
void EnableSuperFastAck (void); |
2059 | 210 |
/** |
5954
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
211 |
* Wait BASICBLOCKACKTimeout for a Basic Block Ack Response frame. |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
212 |
*/ |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
213 |
void EnableBasicBlockAck (void); |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
214 |
/** |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
215 |
* Wait COMPRESSEDBLOCKACKTimeout for a Compressed Block Ack Response frame. |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
216 |
*/ |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
217 |
void EnableCompressedBlockAck (void); |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
218 |
/** |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
219 |
* NOT IMPLEMENTED FOR NOW |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
220 |
*/ |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
221 |
void EnableMultiTidBlockAck (void); |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
222 |
/** |
2059 | 223 |
* Send a RTS, and wait CTSTimeout for a CTS. If we get a |
224 |
* CTS on time, call MacLowTransmissionListener::GotCts |
|
225 |
* and send data. Otherwise, call MacLowTransmissionListener::MissedCts |
|
226 |
* and do not send data. |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
227 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
228 |
void EnableRts (void); |
2059 | 229 |
/** |
230 |
* \param size size of next data to send after current packet is |
|
231 |
* sent. |
|
232 |
* |
|
233 |
* Add the transmission duration of the next data to the |
|
234 |
* durationId of the outgoing packet and call |
|
235 |
* MacLowTransmissionListener::StartNext at the end of |
|
236 |
* the current transmission + SIFS. |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
237 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
238 |
void EnableNextData (uint32_t size); |
6595
3289a9d91620
run check-style on mac-low.h/cc
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
239 |
|
2059 | 240 |
/** |
241 |
* \param durationId the value to set in the duration/Id field of |
|
242 |
* the outgoing packet. |
|
243 |
* |
|
244 |
* Ignore all other durationId calculation and simply force the |
|
245 |
* packet's durationId field to this value. |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
246 |
*/ |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
247 |
void EnableOverrideDurationId (Time durationId); |
6595
3289a9d91620
run check-style on mac-low.h/cc
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
248 |
|
2059 | 249 |
/** |
250 |
* Do not wait for Ack after data transmission. Typically |
|
251 |
* used for Broadcast and multicast frames. |
|
252 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
253 |
void DisableAck (void); |
2059 | 254 |
/** |
255 |
* Do not send rts and wait for cts before sending data. |
|
256 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
257 |
void DisableRts (void); |
2059 | 258 |
/** |
259 |
* Do not attempt to send data burst after current transmission |
|
260 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
261 |
void DisableNextData (void); |
2059 | 262 |
/** |
263 |
* Do not force the duration/id field of the packet: its |
|
264 |
* value is automatically calculated by the MacLow before |
|
265 |
* calling WifiPhy::Send. |
|
266 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
267 |
void DisableOverrideDurationId (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
268 |
|
2059 | 269 |
/** |
270 |
* \returns true if must wait for ACK after data transmission, |
|
271 |
* false otherwise. |
|
272 |
* |
|
273 |
* This methods returns true when any of MustWaitNormalAck, |
|
274 |
* MustWaitFastAck, or MustWaitSuperFastAck return true. |
|
275 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
276 |
bool MustWaitAck (void) const; |
2059 | 277 |
/** |
278 |
* \returns true if normal ACK protocol should be used, false |
|
279 |
* otherwise. |
|
280 |
* |
|
281 |
* \sa EnableAck |
|
282 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
283 |
bool MustWaitNormalAck (void) const; |
2059 | 284 |
/** |
285 |
* \returns true if fast ack protocol should be used, false |
|
286 |
* otherwise. |
|
287 |
* |
|
288 |
* \sa EnableFastAck |
|
289 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
290 |
bool MustWaitFastAck (void) const; |
2059 | 291 |
/** |
292 |
* \returns true if super fast ack protocol should be used, false |
|
293 |
* otherwise. |
|
294 |
* |
|
295 |
* \sa EnableSuperFastAck |
|
296 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
297 |
bool MustWaitSuperFastAck (void) const; |
2059 | 298 |
/** |
5954
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
299 |
* \returns true if block ack mechanism is used, false otherwise. |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
300 |
* |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
301 |
* \sa EnableBlockAck |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
302 |
*/ |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
303 |
bool MustWaitBasicBlockAck (void) const; |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
304 |
/** |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
305 |
* \returns true if compressed block ack mechanism is used, false otherwise. |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
306 |
* |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
307 |
* \sa EnableCompressedBlockAck |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
308 |
*/ |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
309 |
bool MustWaitCompressedBlockAck (void) const; |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
310 |
/** |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
311 |
* \returns true if multi-tid block ack mechanism is used, false otherwise. |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
312 |
* |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
313 |
* \sa EnableMultiTidBlockAck |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
314 |
*/ |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
315 |
bool MustWaitMultiTidBlockAck (void) const; |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
316 |
/** |
2059 | 317 |
* \returns true if RTS should be sent and CTS waited for before |
318 |
* sending data, false otherwise. |
|
319 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
320 |
bool MustSendRts (void) const; |
2059 | 321 |
/** |
322 |
* \returns true if a duration/id was forced with |
|
323 |
* EnableOverrideDurationId, false otherwise. |
|
324 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
325 |
bool HasDurationId (void) const; |
2059 | 326 |
/** |
327 |
* \returns the duration/id forced by EnableOverrideDurationId |
|
328 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
329 |
Time GetDurationId (void) const; |
2059 | 330 |
/** |
331 |
* \returns true if EnableNextData was called, false otherwise. |
|
332 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
333 |
bool HasNextPacket (void) const; |
2059 | 334 |
/** |
335 |
* \returns the size specified by EnableNextData. |
|
336 |
*/ |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
337 |
uint32_t GetNextPacketSize (void) const; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
338 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
339 |
private: |
2985
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2530
diff
changeset
|
340 |
friend std::ostream &operator << (std::ostream &os, const MacLowTransmissionParameters ¶ms); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
341 |
uint32_t m_nextSize; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
342 |
enum { |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
343 |
ACK_NONE, |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
344 |
ACK_NORMAL, |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
345 |
ACK_FAST, |
5954
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
346 |
ACK_SUPER_FAST, |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
347 |
BLOCK_ACK_BASIC, |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
348 |
BLOCK_ACK_COMPRESSED, |
2b9e06875b69
add support for block ack in MacLowTransmissionParameters
Mirko Banchi <mk.banchi@gmail.com>
parents:
5819
diff
changeset
|
349 |
BLOCK_ACK_MULTI_TID |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
350 |
} m_waitAck; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
351 |
bool m_sendRts; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
352 |
Time m_overrideDurationId; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
353 |
}; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
354 |
|
2985
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2530
diff
changeset
|
355 |
std::ostream &operator << (std::ostream &os, const MacLowTransmissionParameters ¶ms); |
fa0747c4ad5e
use function logging macros
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2530
diff
changeset
|
356 |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
357 |
|
2059 | 358 |
/** |
359 |
* \brief handle RTS/CTS/DATA/ACK transactions. |
|
360 |
*/ |
|
2350
0b54480c4fd1
Hook trace sources into the trace system. Add WifiTrace to give a 'simple' API to tracing wifi-specific sources.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2290
diff
changeset
|
361 |
class MacLow : public Object { |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
362 |
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
|
363 |
typedef Callback<void, Ptr<Packet>, const WifiMacHeader*> MacLowRxCallback; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
364 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
365 |
MacLow (); |
2350
0b54480c4fd1
Hook trace sources into the trace system. Add WifiTrace to give a 'simple' API to tracing wifi-specific sources.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2290
diff
changeset
|
366 |
virtual ~MacLow (); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
367 |
|
2054
ba8e810bae4c
derive WifiPhy from Object and manage it with a Ptr<>
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2022
diff
changeset
|
368 |
void SetPhy (Ptr<WifiPhy> phy); |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2508
diff
changeset
|
369 |
void SetWifiRemoteStationManager (Ptr<WifiRemoteStationManager> manager); |
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2508
diff
changeset
|
370 |
|
3596
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
371 |
void SetAddress (Mac48Address ad); |
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
372 |
void SetAckTimeout (Time ackTimeout); |
5958 | 373 |
void SetBasicBlockAckTimeout (Time blockAckTimeout); |
374 |
void SetCompressedBlockAckTimeout (Time blockAckTimeout); |
|
3597
fe35e5be4b78
move cts timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3596
diff
changeset
|
375 |
void SetCtsTimeout (Time ctsTimeout); |
3598
7b209b3b6af2
move sifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3597
diff
changeset
|
376 |
void SetSifs (Time sifs); |
3599
721bd46c15f8
move slot and pifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3598
diff
changeset
|
377 |
void SetSlotTime (Time slotTime); |
721bd46c15f8
move slot and pifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3598
diff
changeset
|
378 |
void SetPifs (Time pifs); |
3600
5888dfe3f245
move GetBssid down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3599
diff
changeset
|
379 |
void SetBssid (Mac48Address ad); |
3596
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
380 |
Mac48Address GetAddress (void) const; |
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
381 |
Time GetAckTimeout (void) const; |
5958 | 382 |
Time GetBasicBlockAckTimeout () const; |
383 |
Time GetCompressedBlockAckTimeout () const; |
|
3597
fe35e5be4b78
move cts timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3596
diff
changeset
|
384 |
Time GetCtsTimeout (void) const; |
3598
7b209b3b6af2
move sifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3597
diff
changeset
|
385 |
Time GetSifs (void) const; |
3599
721bd46c15f8
move slot and pifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3598
diff
changeset
|
386 |
Time GetSlotTime (void) const; |
721bd46c15f8
move slot and pifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3598
diff
changeset
|
387 |
Time GetPifs (void) const; |
3600
5888dfe3f245
move GetBssid down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3599
diff
changeset
|
388 |
Mac48Address GetBssid (void) const; |
3596
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
389 |
|
2059 | 390 |
/** |
391 |
* \param callback the callback which receives every incoming packet. |
|
392 |
* |
|
393 |
* This callback typically forwards incoming packets to |
|
394 |
* an instance of ns3::MacRxMiddle. |
|
395 |
*/ |
|
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2508
diff
changeset
|
396 |
void SetRxCallback (Callback<void,Ptr<Packet>,const WifiMacHeader *> callback); |
2059 | 397 |
/** |
398 |
* \param listener listen to NAV events for every incoming |
|
399 |
* and outgoing packet. |
|
400 |
*/ |
|
4509
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
401 |
void RegisterDcfListener (MacLowDcfListener *listener); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
402 |
|
2059 | 403 |
/** |
2290
081b4efd800c
fix doxygen warnings
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2289
diff
changeset
|
404 |
* \param packet to send (does not include the 802.11 MAC header and checksum) |
081b4efd800c
fix doxygen warnings
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2289
diff
changeset
|
405 |
* \param hdr header associated to the packet to send. |
2059 | 406 |
* \param parameters transmission parameters of packet. |
407 |
* |
|
408 |
* This transmission time includes the time required for |
|
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
409 |
* the next packet transmission if one was selected. |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
410 |
*/ |
2268
0e57ac711220
introduce a low latency parameter for rate control algorithms
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2159
diff
changeset
|
411 |
Time CalculateTransmissionTime (Ptr<const Packet> packet, |
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
|
412 |
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
|
413 |
const MacLowTransmissionParameters& parameters) const; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
414 |
|
2059 | 415 |
/** |
416 |
* \param packet packet to send |
|
417 |
* \param hdr 802.11 header for packet to send |
|
418 |
* \param parameters the transmission parameters to use for this packet. |
|
419 |
* \param listener listen to transmission events. |
|
420 |
* |
|
421 |
* Start the transmission of the input packet and notify the listener |
|
422 |
* of transmission events. |
|
423 |
*/ |
|
2159
20f882e85b4a
port to Ptr<Packet> branch
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2146
diff
changeset
|
424 |
void StartTransmission (Ptr<const Packet> packet, |
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
|
425 |
const WifiMacHeader* hdr, |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
426 |
MacLowTransmissionParameters parameters, |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
427 |
MacLowTransmissionListener *listener); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
428 |
|
2059 | 429 |
/** |
430 |
* \param packet packet received |
|
431 |
* \param rxSnr snr of packet received |
|
432 |
* \param txMode transmission mode of packet received |
|
433 |
* \param preamble type of preamble used for the packet received |
|
434 |
* |
|
435 |
* This method is typically invoked by the lower PHY layer to notify |
|
436 |
* the MAC layer that a packet was successfully received. |
|
437 |
*/ |
|
2159
20f882e85b4a
port to Ptr<Packet> branch
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2146
diff
changeset
|
438 |
void ReceiveOk (Ptr<Packet> packet, double rxSnr, WifiMode txMode, WifiPreamble preamble); |
2059 | 439 |
/** |
440 |
* \param packet packet received. |
|
441 |
* \param rxSnr snr of packet received. |
|
442 |
* |
|
443 |
* This method is typically invoked by the lower PHY layer to notify |
|
444 |
* the MAC layer that a packet was unsuccessfully received. |
|
445 |
*/ |
|
3899 | 446 |
void ReceiveError (Ptr<const Packet> packet, double rxSnr); |
5189 | 447 |
/** |
448 |
* \param duration switching delay duration. |
|
449 |
* |
|
450 |
* This method is typically invoked by the PhyMacLowListener to notify |
|
5192 | 451 |
* the MAC layer that a channel switching occured. When a channel switching |
452 |
* occurs, pending MAC transmissions (RTS, CTS, DATA and ACK) are cancelled. |
|
5189 | 453 |
*/ |
454 |
void NotifySwitchingStartNow (Time duration); |
|
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
455 |
/** |
6673
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
456 |
* \param respHdr Add block ack response from originator (action |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
457 |
* frame). |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
458 |
* \param originator Address of peer station involved in block ack |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
459 |
* mechanism. |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
460 |
* \param startingSeq Sequence number of the first MPDU of all |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
461 |
* packets for which block ack was negotiated. |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
462 |
* |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
463 |
* This function is typically invoked only by ns3::RegularWifiMac |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
464 |
* when the STA (which may be non-AP in ESS, or in an IBSS) has |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
465 |
* received an ADDBA Request frame and is transmitting an ADDBA |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
466 |
* Response frame. At this point MacLow must allocate buffers to |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
467 |
* collect all correctly received packets belonging to the category |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
468 |
* for which Block Ack was negotiated. |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
469 |
*/ |
6673
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
470 |
void CreateBlockAckAgreement (const MgtAddBaResponseHeader *respHdr, |
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6606
diff
changeset
|
471 |
Mac48Address originator, |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
472 |
uint16_t startingSeq); |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
473 |
/** |
6273
8d70de29d514
spell check, mostly in comments.
Andrey Mazo <mazo@iitp.ru>
parents:
6068
diff
changeset
|
474 |
* \param originator Address of peer participating in Block Ack mechanism. |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
475 |
* \param tid TID for which Block Ack was created. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
476 |
* |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
477 |
* Checks if exists an established block ack agreement with <i>originator</i> |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
478 |
* for tid <i>tid</i>. If the agreement exists, tears down it. This function is typically |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
479 |
* invoked when a DELBA frame is received from <i>originator</i>. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
480 |
*/ |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
481 |
void DestroyBlockAckAgreement (Mac48Address originator, uint8_t tid); |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
482 |
/** |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
483 |
* \param ac Access class managed by the queue. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
484 |
* \param listener The listener for the queue. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
485 |
* |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
486 |
* The lifetime of the registered listener is typically equal to the lifetime of the queue |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
487 |
* associated to this AC. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
488 |
*/ |
6331
eee2eab36748
Bug 910: Replace AccessClass with 802.11-style AcIndex
Dean Armstrong <deanarm@gmail.com>
parents:
6273
diff
changeset
|
489 |
void RegisterBlockAckListenerForAc (enum AcIndex ac, MacLowBlockAckEventListener *listener); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
490 |
private: |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
491 |
void CancelAllEvents (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
492 |
uint32_t GetAckSize (void) const; |
5957
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
493 |
uint32_t GetBlockAckSize (enum BlockAckType type) const; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
494 |
uint32_t GetRtsSize (void) const; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
495 |
uint32_t GetCtsSize (void) const; |
2268
0e57ac711220
introduce a low latency parameter for rate control algorithms
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2159
diff
changeset
|
496 |
uint32_t GetSize (Ptr<const Packet> packet, const WifiMacHeader *hdr) const; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
497 |
Time NowUs (void) const; |
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
|
498 |
void ForwardDown (Ptr<const Packet> packet, const WifiMacHeader *hdr, |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
499 |
WifiMode txMode); |
2268
0e57ac711220
introduce a low latency parameter for rate control algorithms
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2159
diff
changeset
|
500 |
Time CalculateOverallTxTime (Ptr<const Packet> packet, |
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
|
501 |
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
|
502 |
const MacLowTransmissionParameters ¶ms) const; |
2268
0e57ac711220
introduce a low latency parameter for rate control algorithms
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2159
diff
changeset
|
503 |
WifiMode GetRtsTxMode (Ptr<const Packet> packet, const WifiMacHeader *hdr) const; |
0e57ac711220
introduce a low latency parameter for rate control algorithms
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2159
diff
changeset
|
504 |
WifiMode GetDataTxMode (Ptr<const Packet> packet, const WifiMacHeader *hdr) const; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
505 |
WifiMode GetCtsTxModeForRts (Mac48Address to, WifiMode rtsTxMode) const; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
506 |
WifiMode GetAckTxModeForData (Mac48Address to, WifiMode dataTxMode) const; |
5957
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
507 |
|
2022
33579d27ce2a
try to simplify duration calculations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1978
diff
changeset
|
508 |
Time GetCtsDuration (Mac48Address to, WifiMode rtsTxMode) const; |
33579d27ce2a
try to simplify duration calculations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1978
diff
changeset
|
509 |
Time GetAckDuration (Mac48Address to, WifiMode dataTxMode) const; |
5957
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
510 |
Time GetBlockAckDuration (Mac48Address to, WifiMode blockAckReqTxMode, enum BlockAckType type) const; |
2146
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
511 |
void NotifyNav (const WifiMacHeader &hdr, WifiMode txMode, WifiPreamble preamble); |
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
512 |
void DoNavResetNow (Time duration); |
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
513 |
bool DoNavStartNow (Time duration); |
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
514 |
bool IsNavZero (void) const; |
4509
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
515 |
void NotifyAckTimeoutStartNow (Time duration); |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
516 |
void NotifyAckTimeoutResetNow (); |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
517 |
void NotifyCtsTimeoutStartNow (Time duration); |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
518 |
void NotifyCtsTimeoutResetNow (); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
519 |
void MaybeCancelPrevious (void); |
6595
3289a9d91620
run check-style on mac-low.h/cc
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
520 |
|
2146
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
521 |
void NavCounterResetCtsMissed (Time rtsEndRxTime); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
522 |
void NormalAckTimeout (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
523 |
void FastAckTimeout (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
524 |
void SuperFastAckTimeout (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
525 |
void FastAckFailedTimeout (void); |
5958 | 526 |
void BlockAckTimeout (void); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
527 |
void CtsTimeout (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
528 |
void SendCtsAfterRts (Mac48Address source, Time duration, WifiMode txMode, double rtsSnr); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
529 |
void SendAckAfterData (Mac48Address source, Time duration, WifiMode txMode, double rtsSnr); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
530 |
void SendDataAfterCts (Mac48Address source, Time duration, WifiMode txMode); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
531 |
void WaitSifsAfterEndTx (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
532 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
533 |
void SendRtsForPacket (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
534 |
void SendDataPacket (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
535 |
void SendCurrentTxPacket (void); |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
536 |
void StartDataTxTimers (void); |
2530
05f9cec44621
avoid memory leaks
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2524
diff
changeset
|
537 |
virtual void DoDispose (void); |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
538 |
/** |
6273
8d70de29d514
spell check, mostly in comments.
Andrey Mazo <mazo@iitp.ru>
parents:
6068
diff
changeset
|
539 |
* \param originator Address of peer participating in Block Ack mechanism. |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
540 |
* \param tid TID for which Block Ack was created. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
541 |
* \param seq Starting sequence |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
542 |
* |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
543 |
* This function forward up all completed "old" packets with sequence number |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
544 |
* smaller than <i>seq</i>. All comparison are performed circularly mod 4096. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
545 |
*/ |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
546 |
void RxCompleteBufferedPacketsWithSmallerSequence (uint16_t seq, Mac48Address originator, uint8_t tid); |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
547 |
/** |
6273
8d70de29d514
spell check, mostly in comments.
Andrey Mazo <mazo@iitp.ru>
parents:
6068
diff
changeset
|
548 |
* \param originator Address of peer participating in Block Ack mechanism. |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
549 |
* \param tid TID for which Block Ack was created. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
550 |
* |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
551 |
* This method is typically invoked when a MPDU with ack policy |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
552 |
* subfield set to Normal Ack is received and a block ack agreement |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
553 |
* for that packet exists. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
554 |
* This happens when the originator of block ack has only few MPDUs to send. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
555 |
* All completed MSDUs starting with starting sequence number of block ack |
6606
2f2b67218332
Bug 981: use a cache to keep track of received MPDUs under block ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6599
diff
changeset
|
556 |
* agreement are forward up to WifiMac until there is an incomplete or missing MSDU. |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
557 |
* See section 9.10.4 in IEEE802.11 standard for more details. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
558 |
*/ |
6599
8c1a255c05a3
Rename MacLow::RxCompleteBufferedPacket to a more appropriate name
Mirko Banchi <mk.banchi@gmail.com>
parents:
6595
diff
changeset
|
559 |
void RxCompleteBufferedPacketsUntilFirstLost (Mac48Address originator, uint8_t tid); |
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
560 |
/* |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
561 |
* This method checks if exists a valid established block ack agreement. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
562 |
* If there is, store the packet without pass it up to WifiMac. The packet is buffered |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
563 |
* in order of increasing sequence control field. All comparison are performed |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
564 |
* circularly modulo 2^12. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
565 |
*/ |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
566 |
bool StoreMpduIfNeeded (Ptr<Packet> packet, WifiMacHeader hdr); |
5957
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
567 |
/* |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
568 |
* Invoked after that a block ack request has been received. Looks for corresponding |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
569 |
* block ack agreement and creates block ack bitmap on a received packets basis. |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
570 |
*/ |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
571 |
void SendBlockAckAfterBlockAckRequest (const CtrlBAckRequestHeader reqHdr, Mac48Address originator, |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
572 |
Time duration, WifiMode blockAckReqTxMode); |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
573 |
/* |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
574 |
* This method creates block ack frame with header equals to <i>blockAck</i> and start its transmission. |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
575 |
*/ |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
576 |
void SendBlockAckResponse (const CtrlBAckResponseHeader* blockAck, Mac48Address originator, bool immediate, |
dd5ece55acb9
handle block ack and block ack request frames in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5956
diff
changeset
|
577 |
Time duration, WifiMode blockAckReqTxMode); |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
578 |
/* |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
579 |
* Every time that a block ack request or a packet with ack policy equals to <i>block ack</i> |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
580 |
* are received, if a relative block ack agreement exists and the value of inactivity timeout |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
581 |
* is not 0, the timer is reset. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
582 |
* see section 11.5.3 in IEEE802.11e for more details. |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
583 |
*/ |
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
584 |
void ResetBlockAckInactivityTimerIfNeeded (BlockAckAgreement &agreement); |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
585 |
|
5189 | 586 |
void SetupPhyMacLowListener (Ptr<WifiPhy> phy); |
587 |
||
2054
ba8e810bae4c
derive WifiPhy from Object and manage it with a Ptr<>
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2022
diff
changeset
|
588 |
Ptr<WifiPhy> m_phy; |
2524
db72c0e7743e
port wifi model to Attributes
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2508
diff
changeset
|
589 |
Ptr<WifiRemoteStationManager> m_stationManager; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
590 |
MacLowRxCallback m_rxCallback; |
4509
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
591 |
typedef std::vector<MacLowDcfListener *>::const_iterator DcfListenersCI; |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
592 |
typedef std::vector<MacLowDcfListener *> DcfListeners; |
b2654e0f071d
bug 556: DcfManager does not handle AckTimeout properly when there are multiple queues
Kirill V. Andreev <kirillano@yandex.ru>
parents:
3906
diff
changeset
|
593 |
DcfListeners m_dcfListeners; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
594 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
595 |
EventId m_normalAckTimeoutEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
596 |
EventId m_fastAckTimeoutEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
597 |
EventId m_superFastAckTimeoutEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
598 |
EventId m_fastAckFailedTimeoutEvent; |
5958 | 599 |
EventId m_blockAckTimeoutEvent; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
600 |
EventId m_ctsTimeoutEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
601 |
EventId m_sendCtsEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
602 |
EventId m_sendAckEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
603 |
EventId m_sendDataEvent; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
604 |
EventId m_waitSifsEvent; |
2146
40ad60ac9912
replace Dcf with DcfManager
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2059
diff
changeset
|
605 |
EventId m_navCounterResetCtsMissed; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
606 |
|
2159
20f882e85b4a
port to Ptr<Packet> branch
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2146
diff
changeset
|
607 |
Ptr<Packet> m_currentPacket; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
608 |
WifiMacHeader m_currentHdr; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
609 |
MacLowTransmissionParameters m_txParams; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
610 |
MacLowTransmissionListener *m_listener; |
3596
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
611 |
Mac48Address m_self; |
3600
5888dfe3f245
move GetBssid down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3599
diff
changeset
|
612 |
Mac48Address m_bssid; |
3596
6c39b712a535
move Address and ack timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
2985
diff
changeset
|
613 |
Time m_ackTimeout; |
5958 | 614 |
Time m_basicBlockAckTimeout; |
615 |
Time m_compressedBlockAckTimeout; |
|
3597
fe35e5be4b78
move cts timeout down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3596
diff
changeset
|
616 |
Time m_ctsTimeout; |
3598
7b209b3b6af2
move sifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3597
diff
changeset
|
617 |
Time m_sifs; |
3599
721bd46c15f8
move slot and pifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3598
diff
changeset
|
618 |
Time m_slotTime; |
721bd46c15f8
move slot and pifs down to MacLow
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3598
diff
changeset
|
619 |
Time m_pifs; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
620 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
621 |
Time m_lastNavStart; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
622 |
Time m_lastNavDuration; |
5189 | 623 |
|
624 |
// Listerner needed to monitor when a channel switching occurs. |
|
625 |
class PhyMacLowListener *m_phyMacLowListener; |
|
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
626 |
|
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
627 |
/* |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
628 |
* BlockAck data structures. |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
629 |
*/ |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
630 |
typedef std::pair<Ptr<Packet>, WifiMacHeader> BufferedPacket; |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
631 |
typedef std::list<BufferedPacket>::iterator BufferedPacketI; |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
632 |
|
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
633 |
typedef std::pair<Mac48Address, uint8_t> AgreementKey; |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
634 |
typedef std::pair<BlockAckAgreement, std::list<BufferedPacket> > AgreementValue; |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
635 |
|
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
636 |
typedef std::map<AgreementKey, AgreementValue> Agreements; |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
637 |
typedef std::map<AgreementKey, AgreementValue>::iterator AgreementsI; |
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
638 |
|
6606
2f2b67218332
Bug 981: use a cache to keep track of received MPDUs under block ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6599
diff
changeset
|
639 |
typedef std::map<AgreementKey, BlockAckCache> BlockAckCaches; |
2f2b67218332
Bug 981: use a cache to keep track of received MPDUs under block ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6599
diff
changeset
|
640 |
typedef std::map<AgreementKey, BlockAckCache>::iterator BlockAckCachesI; |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
641 |
|
5956
e9918be47f78
MacLow now buffers QoS MPDUs under Block Ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
5955
diff
changeset
|
642 |
Agreements m_bAckAgreements; |
6606
2f2b67218332
Bug 981: use a cache to keep track of received MPDUs under block ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6599
diff
changeset
|
643 |
BlockAckCaches m_bAckCaches; |
6595
3289a9d91620
run check-style on mac-low.h/cc
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
644 |
|
6331
eee2eab36748
Bug 910: Replace AccessClass with 802.11-style AcIndex
Dean Armstrong <deanarm@gmail.com>
parents:
6273
diff
changeset
|
645 |
typedef std::map<AcIndex, MacLowBlockAckEventListener*> QueueListeners; |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
646 |
QueueListeners m_edcaListeners; |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
647 |
}; |
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
648 |
|
1977
4303409f3d8e
remove uneeded trailing ';'
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1964
diff
changeset
|
649 |
} // namespace ns3 |
1922
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
650 |
|
dd18bc29fc3c
add MacLow to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
651 |
#endif /* MAC_LOW_H */ |