A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
no-op-component-carrier-manager.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Danilo Abrignani
3 * Copyright (c) 2016 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 * Authors: Danilo Abrignani <danilo.abrignani@unibo.it>
19 * Biljana Bojovic <biljana.bojovic@cttc.es>
20 */
21
22#ifndef NO_OP_COMPONENT_CARRIER_MANAGER_H
23#define NO_OP_COMPONENT_CARRIER_MANAGER_H
24
25#include "lte-ccm-rrc-sap.h"
27#include "lte-rrc-sap.h"
28
29#include <map>
30
31namespace ns3
32{
33
34class UeManager;
36
37/**
38 * \brief The default component carrier manager that forwards all traffic, the uplink and the
39 * downlink, over the primary carrier, and will not use secondary carriers. To enable carrier
40 * aggregation feature, select another component carrier manager class, i.e., some of child classes
41 * of LteEnbComponentCarrierManager of NoOpComponentCarrierManager.
42 */
43
45{
46 /// allow EnbMacMemberLteMacSapProvider<NoOpComponentCarrierManager> class friend access
48 /// allow MemberLteCcmRrcSapProvider<NoOpComponentCarrierManager> class friend access
50 /// allow MemberLteCcmRrcSapUser<NoOpComponentCarrierManager> class friend access
52 /// allow MemberLteCcmMacSapUser<NoOpComponentCarrierManager> class friend access
54
55 public:
58 /**
59 * \brief Get the type ID.
60 * \return the object TypeId
61 */
62 static TypeId GetTypeId();
63
64 protected:
65 // Inherited methods
66 void DoInitialize() override;
67 void DoDispose() override;
68 void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override;
69 /**
70 * \brief Add UE.
71 * \param rnti the RNTI
72 * \param state the state
73 */
74 virtual void DoAddUe(uint16_t rnti, uint8_t state);
75 /**
76 * \brief Add LC.
77 * \param lcInfo the LC info
78 * \param msu the MSU
79 */
80 virtual void DoAddLc(LteEnbCmacSapProvider::LcInfo lcInfo, LteMacSapUser* msu);
81 /**
82 * \brief Setup data radio bearer.
83 * \param bearer the radio bearer
84 * \param bearerId the bearerID
85 * \param rnti the RNTI
86 * \param lcid the LCID
87 * \param lcGroup the LC group
88 * \param msu the MSU
89 * \returns std::vector<LteCcmRrcSapProvider::LcsConfig>
90 */
91 virtual std::vector<LteCcmRrcSapProvider::LcsConfig> DoSetupDataRadioBearer(EpsBearer bearer,
92 uint8_t bearerId,
93 uint16_t rnti,
94 uint8_t lcid,
95 uint8_t lcGroup,
96 LteMacSapUser* msu);
97 /**
98 * \brief Transmit PDU.
99 * \param params the transmit PDU parameters
100 */
102 /**
103 * \brief Report buffer status.
104 * \param params the report buffer status parameters
105 */
107 /**
108 * \brief Notify transmit opportunity.
109 *
110 * \param txOpParams the LteMacSapUser::TxOpportunityParameters
111 */
113 /**
114 * \brief Receive PDU.
115 *
116 * \param rxPduParams the LteMacSapUser::ReceivePduParameters
117 */
118 virtual void DoReceivePdu(LteMacSapUser::ReceivePduParameters rxPduParams);
119 /// Notify HARQ delivery failure
120 virtual void DoNotifyHarqDeliveryFailure();
121 /**
122 * \brief Remove UE.
123 * \param rnti the RNTI
124 */
125 virtual void DoRemoveUe(uint16_t rnti);
126 /**
127 * \brief Release data radio bearer.
128 * \param rnti the RNTI
129 * \param lcid the LCID
130 * \returns updated data radio bearer list
131 */
132 virtual std::vector<uint8_t> DoReleaseDataRadioBearer(uint16_t rnti, uint8_t lcid);
133 /**
134 * \brief Configure the signal bearer.
135 * \param lcinfo the LteEnbCmacSapProvider::LcInfo
136 * \param msu the MSU
137 * \returns updated data radio bearer list
138 */
140 LteMacSapUser* msu);
141 /**
142 * \brief Forwards uplink BSR to CCM, called by MAC through CCM SAP interface.
143 * \param bsr the BSR
144 * \param componentCarrierId the component carrier ID
145 */
146 virtual void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId);
147 /**
148 * \brief Forward uplink SR to CCM, called by MAC through CCM SAP interface.
149 * \param rnti RNTI of the UE that requested SR
150 * \param componentCarrierId the component carrier ID that forwarded the SR
151 */
152 virtual void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId);
153 /**
154 * \brief Function implements the function of the SAP interface of CCM instance which is used by
155 * MAC to notify the PRB occupancy reported by scheduler.
156 * \param prbOccupancy the PRB occupancy
157 * \param componentCarrierId the component carrier ID
158 */
159 virtual void DoNotifyPrbOccupancy(double prbOccupancy, uint8_t componentCarrierId);
160
161 protected:
162 std::map<uint8_t, double>
163 m_ccPrbOccupancy; //!< The physical resource block occupancy per carrier.
164
165}; // end of class NoOpComponentCarrierManager
166
167/**
168 * \brief Component carrier manager implementation that splits traffic equally among carriers.
169 */
171{
172 public:
175 /**
176 * \brief Get the type ID.
177 * \return the object TypeId
178 */
179 static TypeId GetTypeId();
180
181 protected:
182 // Inherited methods
184 void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId) override;
185 void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId) override;
186
187 private:
188 uint8_t m_lastCcIdForSr{0}; //!< Last CCID to which a SR was routed
189}; // end of class RrComponentCarrierManager
190
191} // end of namespace ns3
192
193#endif /* NO_OP_COMPONENT_CARRIER_MANAGER_H */
EnbMacMemberLteMacSapProvider class.
Definition: lte-mac-sap.h:203
This class contains the specification of EPS Bearers.
Definition: eps-bearer.h:91
Service Access Point (SAP) offered by the Component Carrier Manager (CCM) instance to the eNodeB RRC ...
The class implements Component Carrier Manager (CCM) that operates using the Component Carrier Manage...
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Definition: lte-mac-sap.h:96
MemberLteCcmMacSapUser class.
MemberLteCcmRrcSapProvider class.
MemberLteCcmRrcSapUser class.
The default component carrier manager that forwards all traffic, the uplink and the downlink,...
void DoDispose() override
Destructor implementation.
virtual LteMacSapUser * DoConfigureSignalBearer(LteEnbCmacSapProvider::LcInfo lcinfo, LteMacSapUser *msu)
Configure the signal bearer.
std::map< uint8_t, double > m_ccPrbOccupancy
The physical resource block occupancy per carrier.
virtual void DoNotifyPrbOccupancy(double prbOccupancy, uint8_t componentCarrierId)
Function implements the function of the SAP interface of CCM instance which is used by MAC to notify ...
virtual void DoTransmitPdu(LteMacSapProvider::TransmitPduParameters params)
Transmit PDU.
void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults) override
Implementation of ReportUeMeas.
virtual void DoReportBufferStatus(LteMacSapProvider::ReportBufferStatusParameters params)
Report buffer status.
virtual void DoAddLc(LteEnbCmacSapProvider::LcInfo lcInfo, LteMacSapUser *msu)
Add LC.
virtual void DoRemoveUe(uint16_t rnti)
Remove UE.
virtual void DoAddUe(uint16_t rnti, uint8_t state)
Add UE.
virtual void DoNotifyTxOpportunity(LteMacSapUser::TxOpportunityParameters txOpParams)
Notify transmit opportunity.
virtual void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId)
Forward uplink SR to CCM, called by MAC through CCM SAP interface.
virtual void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId)
Forwards uplink BSR to CCM, called by MAC through CCM SAP interface.
virtual std::vector< uint8_t > DoReleaseDataRadioBearer(uint16_t rnti, uint8_t lcid)
Release data radio bearer.
virtual void DoReceivePdu(LteMacSapUser::ReceivePduParameters rxPduParams)
Receive PDU.
virtual std::vector< LteCcmRrcSapProvider::LcsConfig > DoSetupDataRadioBearer(EpsBearer bearer, uint8_t bearerId, uint16_t rnti, uint8_t lcid, uint8_t lcGroup, LteMacSapUser *msu)
Setup data radio bearer.
void DoInitialize() override
Initialize() implementation.
virtual void DoNotifyHarqDeliveryFailure()
Notify HARQ delivery failure.
Component carrier manager implementation that splits traffic equally among carriers.
void DoUlReceiveMacCe(MacCeListElement_s bsr, uint8_t componentCarrierId) override
Forwards uplink BSR to CCM, called by MAC through CCM SAP interface.
static TypeId GetTypeId()
Get the type ID.
void DoUlReceiveSr(uint16_t rnti, uint8_t componentCarrierId) override
Forward uplink SR to CCM, called by MAC through CCM SAP interface.
uint8_t m_lastCcIdForSr
Last CCID to which a SR was routed.
void DoReportBufferStatus(LteMacSapProvider::ReportBufferStatusParameters params) override
Report buffer status.
a unique identifier for an interface.
Definition: type-id.h:59
Manages all the radio bearer information possessed by the ENB RRC for a single UE.
Definition: lte-enb-rrc.h:68
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Logical Channel information to be passed to CmacSapProvider::ConfigureLc.
Parameters for LteMacSapProvider::ReportBufferStatus.
Definition: lte-mac-sap.h:69
Parameters for LteMacSapProvider::TransmitPdu.
Definition: lte-mac-sap.h:45
Parameters for LteMacSapUser::ReceivePdu.
Definition: lte-mac-sap.h:166
Parameters for LteMacSapUser::NotifyTxOpportunity.
Definition: lte-mac-sap.h:105
MeasResults structure.
Definition: lte-rrc-sap.h:717
See section 4.3.14 macCEListElement.