A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-ue-cmac-sap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Nicola Baldo <nbaldo@cttc.es>
18 */
19
20#ifndef LTE_UE_CMAC_SAP_H
21#define LTE_UE_CMAC_SAP_H
22
23#include <ns3/packet.h>
24
25namespace ns3
26{
27
28class LteMacSapUser;
29
30/**
31 * Service Access Point (SAP) offered by the UE MAC to the UE RRC
32 *
33 * This is the MAC SAP Provider, i.e., the part of the SAP that contains the MAC methods called by
34 * the RRC
35 */
37{
38 public:
39 virtual ~LteUeCmacSapProvider();
40
41 /// RachConfig structure
43 {
44 uint8_t numberOfRaPreambles; ///< number of RA preambles
45 uint8_t preambleTransMax; ///< preamble transmit maximum
46 uint8_t raResponseWindowSize; ///< RA response window size
47 uint8_t connEstFailCount; ///< the counter value for T300 timer expiration
48 };
49
50 /**
51 * Configure RACH function
52 *
53 * \param rc the RACH config
54 */
55 virtual void ConfigureRach(RachConfig rc) = 0;
56
57 /**
58 * tell the MAC to start a contention-based random access procedure,
59 * e.g., to perform RRC connection establishment
60 *
61 */
63
64 /**
65 * tell the MAC to start a non-contention-based random access
66 * procedure, e.g., as a consequence of handover
67 *
68 * \param rnti
69 * \param rapId Random Access Preamble Identifier
70 * \param prachMask
71 */
73 uint8_t rapId,
74 uint8_t prachMask) = 0;
75
76 /// LogicalChannelConfig structure
78 {
79 uint8_t priority; ///< priority
80 uint16_t prioritizedBitRateKbps; ///< prioritize bit rate Kbps
81 uint16_t bucketSizeDurationMs; ///< bucket size duration ms
82 uint8_t logicalChannelGroup; ///< logical channel group
83 };
84
85 /**
86 * add a new Logical Channel (LC)
87 *
88 * \param lcId the ID of the LC
89 * \param lcConfig the LC configuration provided by the RRC
90 * \param msu the corresponding LteMacSapUser
91 */
92 virtual void AddLc(uint8_t lcId, LogicalChannelConfig lcConfig, LteMacSapUser* msu) = 0;
93
94 /**
95 * remove an existing LC
96 *
97 * \param lcId
98 */
99 virtual void RemoveLc(uint8_t lcId) = 0;
100
101 /**
102 * reset the MAC
103 *
104 */
105 virtual void Reset() = 0;
106
107 /**
108 *
109 * \param rnti the cell-specific UE identifier
110 */
111 virtual void SetRnti(uint16_t rnti) = 0;
112
113 /**
114 * \brief Notify MAC about the successful RRC connection
115 * establishment.
116 */
117 virtual void NotifyConnectionSuccessful() = 0;
118
119 /**
120 * \brief A method call by UE RRC to communicate the IMSI to the UE MAC
121 * \param imsi the IMSI of the UE
122 */
123 virtual void SetImsi(uint64_t imsi) = 0;
124};
125
126/**
127 * Service Access Point (SAP) offered by the UE MAC to the UE RRC
128 *
129 * This is the MAC SAP User, i.e., the part of the SAP that contains the RRC methods called by the
130 * MAC
131 */
133{
134 public:
135 virtual ~LteUeCmacSapUser();
136
137 /**
138 *
139 *
140 * \param rnti the T-C-RNTI, which will eventually become the C-RNTI after contention resolution
141 */
142 virtual void SetTemporaryCellRnti(uint16_t rnti) = 0;
143
144 /**
145 * Notify the RRC that the MAC Random Access procedure completed successfully
146 *
147 */
149
150 /**
151 * Notify the RRC that the MAC Random Access procedure failed
152 *
153 */
154 virtual void NotifyRandomAccessFailed() = 0;
155};
156
157} // namespace ns3
158
159#endif // LTE_UE_CMAC_SAP_H
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Definition: lte-mac-sap.h:96
Service Access Point (SAP) offered by the UE MAC to the UE RRC.
virtual void NotifyConnectionSuccessful()=0
Notify MAC about the successful RRC connection establishment.
virtual void SetRnti(uint16_t rnti)=0
virtual void RemoveLc(uint8_t lcId)=0
remove an existing LC
virtual void AddLc(uint8_t lcId, LogicalChannelConfig lcConfig, LteMacSapUser *msu)=0
add a new Logical Channel (LC)
virtual void SetImsi(uint64_t imsi)=0
A method call by UE RRC to communicate the IMSI to the UE MAC.
virtual void ConfigureRach(RachConfig rc)=0
Configure RACH function.
virtual void StartContentionBasedRandomAccessProcedure()=0
tell the MAC to start a contention-based random access procedure, e.g., to perform RRC connection est...
virtual void StartNonContentionBasedRandomAccessProcedure(uint16_t rnti, uint8_t rapId, uint8_t prachMask)=0
tell the MAC to start a non-contention-based random access procedure, e.g., as a consequence of hando...
virtual void Reset()=0
reset the MAC
Service Access Point (SAP) offered by the UE MAC to the UE RRC.
virtual void NotifyRandomAccessFailed()=0
Notify the RRC that the MAC Random Access procedure failed.
virtual void NotifyRandomAccessSuccessful()=0
Notify the RRC that the MAC Random Access procedure completed successfully.
virtual void SetTemporaryCellRnti(uint16_t rnti)=0
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint16_t prioritizedBitRateKbps
prioritize bit rate Kbps
uint16_t bucketSizeDurationMs
bucket size duration ms
uint8_t logicalChannelGroup
logical channel group
uint8_t raResponseWindowSize
RA response window size.
uint8_t connEstFailCount
the counter value for T300 timer expiration
uint8_t preambleTransMax
preamble transmit maximum
uint8_t numberOfRaPreambles
number of RA preambles