23 #include "ns3/callback.h"
24 #include "ns3/config.h"
25 #include "ns3/simple-channel.h"
26 #include "ns3/error-model.h"
66 TypeId (
"ns3::LteSimpleHelper")
68 .AddConstructor<LteSimpleHelper> ()
69 .AddAttribute (
"RlcEntity",
70 "Specify which type of RLC will be used. ",
104 devices.
Add (device);
118 devices.
Add (device);
129 m_enbRrc = CreateObject<LteTestRrc> ();
134 m_enbRlc = CreateObject<LteRlcUm> ();
138 m_enbRlc = CreateObject<LteRlcAm> ();
150 m_enbMac = CreateObject<LteTestMac> ();
174 m_ueRrc = CreateObject<LteTestRrc> ();
175 m_uePdcp = CreateObject<LtePdcp> ();
179 m_ueRlc = CreateObject<LteRlcUm> ();
183 m_ueRlc = CreateObject<LteRlcAm> ();
195 m_ueMac = CreateObject<LteTestMac> ();
250 uint16_t rnti, uint8_t lcid, uint32_t packetSize)
252 NS_LOG_FUNCTION (rlcStats << path << rnti << (uint16_t)lcid << packetSize);
254 uint16_t cellId = 222;
255 rlcStats->
DlTxPdu (cellId, imsi, rnti, lcid, packetSize);
260 uint16_t rnti, uint8_t lcid, uint32_t packetSize, uint64_t delay)
262 NS_LOG_FUNCTION (rlcStats << path << rnti << (uint16_t)lcid << packetSize << delay);
264 uint16_t cellId = 555;
265 rlcStats->
DlRxPdu (cellId, imsi, rnti, lcid, packetSize, delay);
281 uint16_t rnti, uint8_t lcid, uint32_t packetSize)
283 NS_LOG_FUNCTION (rlcStats << path << rnti << (uint16_t)lcid << packetSize);
284 uint64_t imsi = 1111;
285 uint16_t cellId = 555;
286 rlcStats->
UlTxPdu (cellId, imsi, rnti, lcid, packetSize);
291 uint16_t rnti, uint8_t lcid, uint32_t packetSize, uint64_t delay)
293 NS_LOG_FUNCTION (rlcStats << path << rnti << (uint16_t)lcid << packetSize << delay);
295 uint16_t cellId = 555;
296 rlcStats->
UlRxPdu (cellId, imsi, rnti, lcid, packetSize, delay);