author | Nicola Baldo <nbaldo@cttc.es> |
Mon, 17 Dec 2012 16:01:08 +0100 | |
changeset 9562 | 691b97de80ed |
parent 9539 | 8ae380bcb768 |
parent 9386 | 24df31b77b25 |
child 9572 | e07415ca12c9 |
permissions | -rw-r--r-- |
7886 | 1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
3 |
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License version 2 as |
|
7 |
* published by the Free Software Foundation; |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 |
* |
|
18 |
* Author: Nicola Baldo <nbaldo@cttc.es> |
|
19 |
*/ |
|
20 |
||
21 |
#ifndef LTE_UE_RRC_H |
|
22 |
#define LTE_UE_RRC_H |
|
23 |
||
24 |
#include <ns3/object.h> |
|
25 |
#include <ns3/packet.h> |
|
26 |
#include <ns3/lte-ue-cmac-sap.h> |
|
8389
cb215987eb77
LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents:
8160
diff
changeset
|
27 |
#include <ns3/lte-pdcp-sap.h> |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
28 |
#include <ns3/lte-as-sap.h> |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
29 |
#include <ns3/lte-ue-cphy-sap.h> |
9406 | 30 |
#include <ns3/lte-rrc-sap.h> |
31 |
#include <ns3/traced-callback.h> |
|
7886 | 32 |
|
33 |
#include <map> |
|
34 |
||
35 |
namespace ns3 { |
|
36 |
||
37 |
class LteRlc; |
|
38 |
class LteMacSapProvider; |
|
39 |
class LteUeCmacSapUser; |
|
40 |
class LteUeCmacSapProvider; |
|
9406 | 41 |
class LteDataRadioBearerInfo; |
42 |
class LteSignalingRadioBearerInfo; |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
43 |
class LteEnbRrc; |
7886 | 44 |
|
45 |
/** |
|
46 |
* |
|
47 |
* |
|
48 |
*/ |
|
49 |
class LteUeRrc : public Object |
|
50 |
{ |
|
51 |
||
52 |
friend class UeMemberLteUeCmacSapUser; |
|
8389
cb215987eb77
LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents:
8160
diff
changeset
|
53 |
friend class UeRrcMemberLteEnbCmacSapUser; |
cb215987eb77
LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents:
8160
diff
changeset
|
54 |
friend class LtePdcpSpecificLtePdcpSapUser<LteUeRrc>; |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
55 |
friend class MemberLteAsSapProvider<LteUeRrc>; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
56 |
friend class MemberLteUeCphySapUser<LteUeRrc>; |
9406 | 57 |
friend class MemberLteUeRrcSapProvider<LteUeRrc>; |
7886 | 58 |
|
59 |
public: |
|
9406 | 60 |
|
61 |
/** |
|
62 |
* The states of the UE RRC entity |
|
63 |
* |
|
64 |
*/ |
|
65 |
enum State |
|
66 |
{ |
|
67 |
IDLE_CELL_SELECTION = 0, |
|
68 |
IDLE_WAIT_SYSTEM_INFO, |
|
69 |
IDLE_CAMPED_NORMALLY, |
|
70 |
IDLE_RANDOM_ACCESS, |
|
71 |
IDLE_CONNECTING, |
|
72 |
CONNECTED_NORMALLY, |
|
73 |
CONNECTED_REESTABLISHING, |
|
74 |
CONNECTED_HANDOVER, |
|
75 |
NUM_STATES |
|
76 |
}; |
|
77 |
||
78 |
||
7886 | 79 |
/** |
80 |
* create an RRC instance for use within an ue |
|
81 |
* |
|
82 |
*/ |
|
83 |
LteUeRrc (); |
|
84 |
||
85 |
||
86 |
/** |
|
87 |
* Destructor |
|
88 |
*/ |
|
89 |
virtual ~LteUeRrc (); |
|
90 |
||
91 |
||
92 |
// inherited from Object |
|
9406 | 93 |
private: |
94 |
virtual void DoStart (void); |
|
7886 | 95 |
virtual void DoDispose (void); |
9406 | 96 |
public: |
7886 | 97 |
static TypeId GetTypeId (void); |
98 |
||
99 |
||
100 |
/** |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
101 |
* set the CPHY SAP this RRC should use to interact with the PHY |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
102 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
103 |
* \param s the CPHY SAP Provider |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
104 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
105 |
void SetLteUeCphySapProvider (LteUeCphySapProvider * s); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
106 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
107 |
/** |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
108 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
109 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
110 |
* \return s the CPHY SAP User interface offered to the PHY by this RRC |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
111 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
112 |
LteUeCphySapUser* GetLteUeCphySapUser (); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
113 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
114 |
/** |
7886 | 115 |
* set the CMAC SAP this RRC should interact with |
116 |
* |
|
117 |
* \param s the CMAC SAP Provider to be used by this RRC |
|
118 |
*/ |
|
119 |
void SetLteUeCmacSapProvider (LteUeCmacSapProvider * s); |
|
120 |
||
121 |
/** |
|
122 |
* |
|
123 |
* |
|
124 |
* \return s the CMAC SAP User interface offered to the MAC by this RRC |
|
125 |
*/ |
|
126 |
LteUeCmacSapUser* GetLteUeCmacSapUser (); |
|
127 |
||
9406 | 128 |
|
129 |
/** |
|
130 |
* set the RRC SAP this RRC should interact with |
|
131 |
* |
|
132 |
* \param s the RRC SAP User to be used by this RRC |
|
133 |
*/ |
|
134 |
void SetLteUeRrcSapUser (LteUeRrcSapUser * s); |
|
135 |
||
136 |
/** |
|
137 |
* |
|
138 |
* |
|
139 |
* \return s the RRC SAP Provider interface offered to the MAC by this RRC |
|
140 |
*/ |
|
141 |
LteUeRrcSapProvider* GetLteUeRrcSapProvider (); |
|
142 |
||
7886 | 143 |
/** |
144 |
* set the MAC SAP provider. The ue RRC does not use this |
|
145 |
* directly, but it needs to provide it to newly created RLC instances. |
|
146 |
* |
|
147 |
* \param s the MAC SAP provider that will be used by all |
|
148 |
* newly created RLC instances |
|
149 |
*/ |
|
150 |
void SetLteMacSapProvider (LteMacSapProvider* s); |
|
151 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
152 |
/** |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
153 |
* Set the AS SAP user to interact with the NAS entity |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
154 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
155 |
* \param s the AS SAP user |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
156 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
157 |
void SetAsSapUser (LteAsSapUser* s); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
158 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
159 |
/** |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
160 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
161 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
162 |
* \return the AS SAP provider exported by this RRC |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
163 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
164 |
LteAsSapProvider* GetAsSapProvider (); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
165 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
166 |
/** |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
167 |
* |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
168 |
* \param imsi the unique UE identifier |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
169 |
*/ |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
170 |
void SetImsi (uint64_t imsi); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
171 |
|
7886 | 172 |
/** |
9386
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
173 |
* |
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
174 |
* \return imsi the unique UE identifier |
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
175 |
*/ |
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
176 |
uint64_t GetImsi (void); |
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
177 |
|
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
178 |
|
24df31b77b25
PhyStats calculator implementation. All code needed added to LteHelper. Prototype order changed in order to respect cellId,IMSI, rnti
Jaume Nin
parents:
9346
diff
changeset
|
179 |
/** |
7886 | 180 |
* |
181 |
* \return the C-RNTI of the user |
|
182 |
*/ |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
183 |
uint16_t GetRnti () const; |
7886 | 184 |
|
8160 | 185 |
|
186 |
/** |
|
187 |
* |
|
188 |
* \return the CellId of the attached Enb |
|
189 |
*/ |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
190 |
uint16_t GetCellId () const; |
8160 | 191 |
|
9406 | 192 |
|
193 |
/** |
|
194 |
* \return the uplink bandwidth in RBs |
|
8055 | 195 |
*/ |
9406 | 196 |
uint8_t GetUlBandwidth () const; |
8055 | 197 |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8464
diff
changeset
|
198 |
/** |
9406 | 199 |
* \return the downlink bandwidth in RBs |
200 |
*/ |
|
201 |
uint8_t GetDlBandwidth () const; |
|
202 |
||
203 |
/** |
|
204 |
* \return the downlink carrier frequency (EARFCN) |
|
9346 | 205 |
*/ |
9406 | 206 |
uint16_t GetDlEarfcn () const; |
9346 | 207 |
|
8714
398bbcbb3f42
Add MIMO model, test and documentation
Marco Miozzo <marco.miozzo@cttc.es>
parents:
8464
diff
changeset
|
208 |
/** |
9406 | 209 |
* \return the uplink carrier frequency (EARFCN) |
9346 | 210 |
*/ |
9406 | 211 |
uint16_t GetUlEarfcn () const; |
9346 | 212 |
|
213 |
/** |
|
9406 | 214 |
* |
215 |
* \return the current state |
|
9346 | 216 |
*/ |
9406 | 217 |
State GetState (); |
9345
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
218 |
|
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
219 |
/** |
9406 | 220 |
* |
9345
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
221 |
* |
9406 | 222 |
* \param val true if RLC SM is to be used, false if RLC UM/AM are to be used |
9345
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
223 |
*/ |
9406 | 224 |
void SetUseRlcSm (bool val); |
225 |
||
226 |
||
7886 | 227 |
private: |
9345
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
228 |
|
8290ae6cab62
add/remove UEs and bearers upon handover
Nicola Baldo <nicola@baldo.biz>
parents:
9337
diff
changeset
|
229 |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
230 |
// PDCP SAP methods |
9406 | 231 |
void DoReceivePdcpSdu (LtePdcpSapUser::ReceivePdcpSduParameters params); |
8389
cb215987eb77
LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents:
8160
diff
changeset
|
232 |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
233 |
// CMAC SAP methods |
9406 | 234 |
void DoSetTemporaryCellRnti (uint16_t rnti); |
235 |
void DoNotifyRandomAccessSuccessful (); |
|
236 |
void DoNotifyRandomAccessFailed (); |
|
237 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
238 |
// LTE AS SAP methods |
9430
e8b87593ee5b
added MME with simulated S1AP and S11 interfaces
Nicola Baldo <nbaldo@cttc.es>
parents:
9406
diff
changeset
|
239 |
void DoForceCampedOnEnb (uint16_t cellId, uint16_t earfcn); |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
240 |
void DoConnect (); |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
241 |
void DoSendData (Ptr<Packet> packet, uint8_t bid); |
9406 | 242 |
void DoDisconnect (); |
243 |
||
244 |
// CPHY SAP methods |
|
245 |
void DoRecvMasterInformationBlock (LteRrcSap::MasterInformationBlock msg); |
|
246 |
||
247 |
// RRC SAP methods |
|
9447
f836d3a3b71a
added LteUeRrcSapProvider::CompleteSetup ()
Nicola Baldo <nbaldo@cttc.es>
parents:
9430
diff
changeset
|
248 |
void DoCompleteSetup (LteUeRrcSapProvider::CompleteSetupParameters params); |
9406 | 249 |
void DoRecvSystemInformationBlockType1 (LteRrcSap::SystemInformationBlockType1 msg); |
250 |
void DoRecvSystemInformation (LteRrcSap::SystemInformation msg); |
|
251 |
void DoRecvRrcConnectionSetup (LteRrcSap::RrcConnectionSetup msg); |
|
252 |
void DoRecvRrcConnectionReconfiguration (LteRrcSap::RrcConnectionReconfiguration msg); |
|
253 |
void DoRecvRrcConnectionReestablishment (LteRrcSap::RrcConnectionReestablishment msg); |
|
254 |
void DoRecvRrcConnectionReestablishmentReject (LteRrcSap::RrcConnectionReestablishmentReject msg); |
|
255 |
void DoRecvRrcConnectionRelease (LteRrcSap::RrcConnectionRelease msg); |
|
9510
1f57ceb87c95
Add functions in SAP's to send/receive ConnRej msg.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9452
diff
changeset
|
256 |
void DoRecvRrcConnectionReject (LteRrcSap::RrcConnectionReject msg); |
9406 | 257 |
|
258 |
||
259 |
// internal methods |
|
260 |
void ApplyRadioResourceConfigDedicated (LteRrcSap::RadioResourceConfigDedicated rrcd); |
|
261 |
void StartConnection (); |
|
262 |
void LeaveConnectedMode (); |
|
263 |
uint8_t Bid2Drbid (uint8_t bid); |
|
264 |
void SwitchToState (State s); |
|
265 |
||
266 |
std::map<uint8_t, uint8_t> m_bid2DrbidMap; |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
267 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
268 |
LteUeCphySapUser* m_cphySapUser; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
269 |
LteUeCphySapProvider* m_cphySapProvider; |
8389
cb215987eb77
LTE-EPC end-to-end data plane imlemented and partially working
Nicola Baldo <nbaldo@cttc.es>
parents:
8160
diff
changeset
|
270 |
|
7886 | 271 |
LteUeCmacSapUser* m_cmacSapUser; |
272 |
LteUeCmacSapProvider* m_cmacSapProvider; |
|
273 |
||
9406 | 274 |
LteUeRrcSapUser* m_rrcSapUser; |
275 |
LteUeRrcSapProvider* m_rrcSapProvider; |
|
276 |
||
7886 | 277 |
LteMacSapProvider* m_macSapProvider; |
9447
f836d3a3b71a
added LteUeRrcSapProvider::CompleteSetup ()
Nicola Baldo <nbaldo@cttc.es>
parents:
9430
diff
changeset
|
278 |
LtePdcpSapUser* m_drbPdcpSapUser; |
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
279 |
|
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
280 |
LteAsSapProvider* m_asSapProvider; |
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
281 |
LteAsSapUser* m_asSapUser; |
7886 | 282 |
|
9406 | 283 |
State m_state; |
284 |
||
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
285 |
uint64_t m_imsi; |
7886 | 286 |
uint16_t m_rnti; |
8007 | 287 |
uint16_t m_cellId; |
7886 | 288 |
|
9406 | 289 |
Ptr<LteSignalingRadioBearerInfo> m_srb0; |
290 |
Ptr<LteSignalingRadioBearerInfo> m_srb1; |
|
291 |
std::map <uint8_t, Ptr<LteDataRadioBearerInfo> > m_drbMap; |
|
292 |
||
293 |
bool m_useRlcSm; |
|
294 |
||
295 |
uint8_t m_lastRrcTransactionIdentifier; |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
296 |
|
9406 | 297 |
uint8_t m_dlBandwidth; /**< downlink bandwidth in RBs */ |
298 |
uint8_t m_ulBandwidth; /**< uplink bandwidth in RBs */ |
|
299 |
||
300 |
uint16_t m_dlEarfcn; /**< downlink carrier frequency */ |
|
301 |
uint16_t m_ulEarfcn; /**< uplink carrier frequency */ |
|
9337
ae7126b266ce
revised LTE protocol stack for new RRC model
Nicola Baldo <nbaldo@cttc.es>
parents:
8714
diff
changeset
|
302 |
|
9452
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
303 |
// imsi cellid rnti |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
304 |
TracedCallback<uint64_t, uint16_t, uint16_t, State, State> m_stateTransitionTrace; |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
305 |
// imsi cellid rnti |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
306 |
TracedCallback<uint64_t, uint16_t, uint16_t> m_connectionEstablishedTrace; |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
307 |
// imsi cellid rnti |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
308 |
TracedCallback<uint64_t, uint16_t, uint16_t> m_connectionReconfigurationTrace; |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
309 |
// imsi cellid rnti targetCellId |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
310 |
TracedCallback<uint64_t, uint16_t, uint16_t, uint16_t> m_handoverStartTrace; |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
311 |
// imsi cellid rnti |
9fa1012bd84b
dynamic connection of RadioBearerStatsCalculator so it works properly with handover
Nicola Baldo <nbaldo@cttc.es>
parents:
9447
diff
changeset
|
312 |
TracedCallback<uint64_t, uint16_t, uint16_t> m_handoverEndOkTrace; |
9406 | 313 |
|
314 |
bool m_connectionPending; /**< true if a connection request by upper layers is pending */ |
|
315 |
bool m_receivedMib; /**< true if MIB was received for the current cell */ |
|
316 |
bool m_receivedSib2; /**< true if SIB2 was received for the current cell */ |
|
317 |
||
7886 | 318 |
}; |
319 |
||
320 |
||
321 |
} // namespace ns3 |
|
322 |
||
323 |
#endif // LTE_UE_RRC_H |