21 #include <ns3/boolean.h>
22 #include <ns3/fdbet-ff-mac-scheduler.h>
24 #include <ns3/lte-amc.h>
25 #include <ns3/lte-vendor-specific-parameters.h>
27 #include <ns3/pointer.h>
28 #include <ns3/simulator.h>
49 : m_cschedSapUser(nullptr),
50 m_schedSapUser(nullptr),
54 m_amc = CreateObject<LteAmc>();
83 TypeId(
"ns3::FdBetFfMacScheduler")
87 .AddAttribute(
"CqiTimerThreshold",
88 "The number of TTIs a CQI is valid (default 1000 - 1 sec.)",
91 MakeUintegerChecker<uint32_t>())
92 .AddAttribute(
"HarqEnabled",
93 "Activate/Deactivate the HARQ [by default is active].",
97 .AddAttribute(
"UlGrantMcs",
98 "The MCS of the UL grant, must be [0..15] (default 0)",
101 MakeUintegerChecker<uint8_t>());
159 << (uint16_t)
params.m_transmissionMode);
167 dlHarqPrcStatus.resize(8, 0);
169 std::pair<uint16_t, DlHarqProcessesStatus_t>(
params.m_rnti, dlHarqPrcStatus));
171 dlHarqProcessesTimer.resize(8, 0);
173 std::pair<uint16_t, DlHarqProcessesTimer_t>(
params.m_rnti, dlHarqProcessesTimer));
177 std::pair<uint16_t, DlHarqProcessesDciBuffer_t>(
params.m_rnti, dlHarqdci));
179 dlHarqRlcPdu.resize(2);
180 dlHarqRlcPdu.at(0).resize(8);
181 dlHarqRlcPdu.at(1).resize(8);
183 std::pair<uint16_t, DlHarqRlcPduListBuffer_t>(
params.m_rnti, dlHarqRlcPdu));
186 ulHarqPrcStatus.resize(8, 0);
188 std::pair<uint16_t, UlHarqProcessesStatus_t>(
params.m_rnti, ulHarqPrcStatus));
192 std::pair<uint16_t, UlHarqProcessesDciBuffer_t>(
params.m_rnti, ulHarqdci));
196 (*it).second =
params.m_transmissionMode;
206 std::map<uint16_t, fdbetsFlowPerf_t>::iterator it;
207 for (std::size_t i = 0; i <
params.m_logicalChannelConfigList.size(); i++)
234 for (std::size_t i = 0; i <
params.m_logicalChannelIdentity.size(); i++)
236 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator it =
238 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator temp;
241 if (((*it).first.m_rnti ==
params.m_rnti) &&
242 ((*it).first.m_lcId ==
params.m_logicalChannelIdentity.at(i)))
274 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator it =
276 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator temp;
279 if ((*it).first.m_rnti ==
params.m_rnti)
303 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator it;
312 std::pair<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>(flow,
340 for (
int i = 0; i < 4; i++)
354 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator it;
355 unsigned int lcActive = 0;
358 if (((*it).first.m_rnti == rnti) && (((*it).second.m_rlcTransmissionQueueSize > 0) ||
359 ((*it).second.m_rlcRetransmissionQueueSize > 0) ||
360 ((*it).second.m_rlcStatusPduSize > 0)))
364 if ((*it).first.m_rnti > rnti)
382 std::map<uint16_t, DlHarqProcessesStatus_t>::iterator itStat =
386 NS_FATAL_ERROR(
"No Process Id Statusfound for this RNTI " << rnti);
388 uint8_t i = (*it).second;
392 }
while (((*itStat).second.at(i) != 0) && (i != (*it).second));
393 if ((*itStat).second.at(i) == 0)
418 std::map<uint16_t, DlHarqProcessesStatus_t>::iterator itStat =
422 NS_FATAL_ERROR(
"No Process Id Statusfound for this RNTI " << rnti);
424 uint8_t i = (*it).second;
428 }
while (((*itStat).second.at(i) != 0) && (i != (*it).second));
429 if ((*itStat).second.at(i) == 0)
432 (*itStat).second.at(i) = 1;
437 << rnti <<
" check before update with HarqProcessAvailability");
440 return ((*it).second);
448 std::map<uint16_t, DlHarqProcessesTimer_t>::iterator itTimers;
458 NS_LOG_DEBUG(
this <<
" Reset HARQ proc " << i <<
" for RNTI " << (*itTimers).first);
459 std::map<uint16_t, DlHarqProcessesStatus_t>::iterator itStat =
464 << (*itTimers).first);
466 (*itStat).second.at(i) = 0;
467 (*itTimers).second.at(i) = 0;
471 (*itTimers).second.at(i)++;
482 << (0xF &
params.m_sfnSf));
493 std::map<uint16_t, std::vector<uint16_t>> allocationMap;
494 std::vector<bool> rbgMap;
495 uint16_t rbgAllocatedNum = 0;
496 std::set<uint16_t> rntiAllocated;
501 std::map<uint16_t, uint8_t>::iterator itProcId;
505 (*itProcId).second = ((*itProcId).second + 1) %
HARQ_PROC_NUM;
510 uint16_t rbStart = 0;
511 std::vector<struct RachListElement_s>::iterator itRach;
515 (*itRach).m_estimatedSize,
516 " Default UL Grant MCS does not allow to send RACH messages");
518 newRar.
m_rnti = (*itRach).m_rnti;
525 uint16_t tbSizeBits = 0;
527 while ((tbSizeBits < (*itRach).m_estimatedSize) &&
533 if (tbSizeBits < (*itRach).m_estimatedSize)
545 NS_LOG_INFO(
this <<
" UL grant allocated to RNTI " << (*itRach).m_rnti <<
" rbStart "
546 << rbStart <<
" rbLen " << rbLen <<
" MCS " <<
m_ulGrantMcs <<
" tbSize "
548 for (uint16_t i = rbStart; i < rbStart + rbLen; i++)
576 std::map<uint16_t, uint8_t>::iterator itProcId;
582 harqId = (*itProcId).second;
583 std::map<uint16_t, UlHarqProcessesDciBuffer_t>::iterator itDci =
587 NS_FATAL_ERROR(
"Unable to find RNTI entry in UL DCI HARQ buffer for RNTI "
590 (*itDci).second.at(harqId) = uldci;
593 rbStart = rbStart + rbLen;
603 if (!
params.m_dlInfoList.empty())
607 params.m_dlInfoList.begin(),
608 params.m_dlInfoList.end());
613 if (!
params.m_dlInfoList.empty())
623 std::vector<struct DlInfoListElement_s> dlInfoListUntxed;
627 if (itRnti != rntiAllocated.end())
633 std::vector<bool> retx;
634 NS_LOG_INFO(
this <<
" Processing DLHARQ feedback");
639 retx.push_back(
false);
648 if (retx.at(0) || retx.at(1))
653 NS_LOG_INFO(
this <<
" HARQ retx RNTI " << rnti <<
" harqId " << (uint16_t)harqId);
654 std::map<uint16_t, DlHarqProcessesDciBuffer_t>::iterator itHarq =
663 if (dci.
m_rv.size() == 1)
675 NS_LOG_INFO(
"Maximum number of retransmissions reached -> drop process");
676 std::map<uint16_t, DlHarqProcessesStatus_t>::iterator it =
680 NS_LOG_ERROR(
"No info find in HARQ buffer for UE (might change eNB) "
683 (*it).second.at(harqId) = 0;
684 std::map<uint16_t, DlHarqRlcPduListBuffer_t>::iterator itRlcPdu =
688 NS_FATAL_ERROR(
"Unable to find RlcPdcList in HARQ buffer for RNTI "
691 for (std::size_t
k = 0;
k < (*itRlcPdu).second.size();
k++)
693 (*itRlcPdu).second.at(
k).at(harqId).clear();
699 std::vector<int> dciRbg;
702 for (
int j = 0; j < 32; j++)
712 for (std::size_t j = 0; j < dciRbg.size(); j++)
714 if (rbgMap.at(dciRbg.at(j)) ==
true)
724 for (std::size_t j = 0; j < dciRbg.size(); j++)
726 rbgMap.at(dciRbg.at(j)) =
true;
727 NS_LOG_INFO(
"RBG " << dciRbg.at(j) <<
" assigned");
731 NS_LOG_INFO(
this <<
" Send retx in the same RBGs");
737 uint8_t rbgId = (dciRbg.at(dciRbg.size() - 1) + 1) % rbgNum;
738 uint8_t startRbg = dciRbg.at(dciRbg.size() - 1);
739 std::vector<bool> rbgMapCopy = rbgMap;
740 while ((j < dciRbg.size()) && (startRbg != rbgId))
742 if (rbgMapCopy.at(rbgId) ==
false)
744 rbgMapCopy.at(rbgId) =
true;
745 dciRbg.at(j) = rbgId;
748 rbgId = (rbgId + 1) % rbgNum;
750 if (j == dciRbg.size())
753 uint32_t rbgMask = 0;
754 for (std::size_t
k = 0;
k < dciRbg.size();
k++)
756 rbgMask = rbgMask + (0x1 << dciRbg.at(
k));
761 NS_LOG_INFO(
this <<
" Move retx in RBGs " << dciRbg.size());
767 NS_LOG_INFO(
this <<
" No resource for this retx -> buffer it");
772 std::map<uint16_t, DlHarqRlcPduListBuffer_t>::iterator itRlcPdu =
776 NS_FATAL_ERROR(
"Unable to find RlcPdcList in HARQ buffer for RNTI " << rnti);
778 for (std::size_t j = 0; j < nLayers; j++)
782 if (j >= dci.
m_ndi.size())
785 dci.
m_ndi.push_back(0);
786 dci.
m_rv.push_back(0);
787 dci.
m_mcs.push_back(0);
790 <<
" no txed (MIMO transition)");
796 (*itHarq).second.at(harqId).m_rv.at(j)++;
797 NS_LOG_INFO(
this <<
" layer " << (uint16_t)j <<
" RV "
798 << (uint16_t)dci.
m_rv.at(j));
808 NS_LOG_INFO(
this <<
" layer " << (uint16_t)j <<
" no retx");
811 for (std::size_t
k = 0;
k < (*itRlcPdu).second.at(0).at(dci.
m_harqProcess).size();
k++)
813 std::vector<struct RlcPduListElement_s> rlcPduListPerLc;
814 for (std::size_t j = 0; j < nLayers; j++)
818 if (j < dci.
m_ndi.size())
820 NS_LOG_INFO(
" layer " << (uint16_t)j <<
" tb size "
822 rlcPduListPerLc.push_back(
835 .m_logicalChannelIdentity;
837 rlcPduListPerLc.push_back(emptyElement);
841 if (!rlcPduListPerLc.empty())
848 (*itHarq).second.at(harqId).
m_rv = dci.
m_rv;
850 std::map<uint16_t, DlHarqProcessesTimer_t>::iterator itHarqTimer =
854 NS_FATAL_ERROR(
"Unable to find HARQ timer for RNTI " << (uint16_t)rnti);
856 (*itHarqTimer).second.at(harqId) = 0;
858 rntiAllocated.insert(rnti);
864 std::map<uint16_t, DlHarqProcessesStatus_t>::iterator it =
872 std::map<uint16_t, DlHarqRlcPduListBuffer_t>::iterator itRlcPdu =
876 NS_FATAL_ERROR(
"Unable to find RlcPdcList in HARQ buffer for RNTI "
879 for (std::size_t
k = 0;
k < (*itRlcPdu).second.size();
k++)
888 if (rbgAllocatedNum == rbgNum)
898 std::map<uint16_t, fdbetsFlowPerf_t>::iterator itFlow;
899 std::map<uint16_t, double> estAveThr;
900 std::map<uint16_t, double>::iterator itMax = estAveThr.end();
901 std::map<uint16_t, double>::iterator it;
902 std::map<uint16_t, int> rbgPerRntiLog;
903 double metricMax = 0.0;
906 std::set<uint16_t>::iterator itRnti = rntiAllocated.find((*itFlow).first);
910 if (itRnti != rntiAllocated.end())
912 NS_LOG_DEBUG(
this <<
" RNTI discarded for HARQ tx" << (uint16_t)(*itFlow).first);
916 NS_LOG_DEBUG(
this <<
" RNTI discarded for HARQ id" << (uint16_t)(*itFlow).first);
922 std::map<uint16_t, uint8_t>::iterator itCqi;
924 std::map<uint16_t, uint8_t>::iterator itTxMode;
928 NS_FATAL_ERROR(
"No Transmission Mode info on user " << (*itFlow).first);
933 for (uint8_t j = 0; j < nLayer; j++)
941 cqiSum = (*itCqi).second;
946 estAveThr.insert(std::pair<uint16_t, double>((*itFlow).first,
947 (*itFlow).second.lastAveragedThroughput));
951 NS_LOG_INFO(
"Skip this flow, CQI==0, rnti:" << (*itFlow).first);
955 if (!estAveThr.empty())
958 for (it = estAveThr.begin(); it != estAveThr.end(); it++)
960 double metric = 1 / (*it).second;
961 if (metric > metricMax)
966 rbgPerRntiLog.insert(std::pair<uint16_t, int>((*it).first, 1));
973 NS_LOG_INFO(
this <<
" ALLOCATION for RBG " << i <<
" of " << rbgNum);
974 if (rbgMap.at(i) ==
false)
977 std::map<uint16_t, std::vector<uint16_t>>::iterator itMap;
978 std::vector<uint16_t> tempMap;
979 itMap = allocationMap.find((*itMax).first);
980 if (itMap == allocationMap.end())
982 tempMap.push_back(i);
983 allocationMap.insert(
984 std::pair<uint16_t, std::vector<uint16_t>>((*itMax).first, tempMap));
988 (*itMap).second.push_back(i);
992 std::map<uint16_t, uint8_t>::iterator itCqi;
994 std::map<uint16_t, uint8_t>::iterator itTxMode;
998 NS_FATAL_ERROR(
"No Transmission Mode info on user " << (*itMax).first);
1001 std::vector<uint8_t> mcs;
1002 for (uint8_t j = 0; j < nLayer; j++)
1010 mcs.push_back(
m_amc->GetMcsFromCqi((*itCqi).second));
1014 std::map<uint16_t, int>::iterator itRbgPerRntiLog;
1015 itRbgPerRntiLog = rbgPerRntiLog.find((*itMax).first);
1016 std::map<uint16_t, fdbetsFlowPerf_t>::iterator itPastAveThr;
1018 uint32_t bytesTxed = 0;
1019 for (uint8_t j = 0; j < nLayer; j++)
1022 (
m_amc->GetDlTbSizeFromMcs(mcs.at(0), (*itRbgPerRntiLog).second * rbgSize) /
1024 bytesTxed += tbSize;
1026 double expectedAveThr =
1027 ((1.0 - (1.0 /
m_timeWindow)) * (*itPastAveThr).second.lastAveragedThroughput) +
1030 int rbgPerRnti = (*itRbgPerRntiLog).second;
1032 rbgPerRntiLog[(*itMax).first] = rbgPerRnti;
1033 estAveThr[(*itMax).first] = expectedAveThr;
1037 for (it = estAveThr.begin(); it != estAveThr.end(); it++)
1039 double metric = 1 / (*it).second;
1040 if (metric > metricMax)
1047 rbgMap.at(i) =
true;
1053 }
while (i < rbgNum);
1058 std::map<uint16_t, fdbetsFlowPerf_t>::iterator itStats;
1061 (*itStats).second.lastTtiBytesTrasmitted = 0;
1066 std::map<uint16_t, std::vector<uint16_t>>::iterator itMap = allocationMap.begin();
1067 while (itMap != allocationMap.end())
1071 newEl.
m_rnti = (*itMap).first;
1074 newDci.
m_rnti = (*itMap).first;
1082 lcActives = (uint16_t)65535;
1084 uint16_t RgbPerRnti = (*itMap).second.size();
1085 std::map<uint16_t, uint8_t>::iterator itCqi;
1087 std::map<uint16_t, uint8_t>::iterator itTxMode;
1091 NS_FATAL_ERROR(
"No Transmission Mode info on user " << (*itMap).first);
1095 uint32_t bytesTxed = 0;
1096 for (uint8_t j = 0; j < nLayer; j++)
1100 newDci.
m_mcs.push_back(0);
1104 newDci.
m_mcs.push_back(
m_amc->GetMcsFromCqi((*itCqi).second));
1107 int tbSize = (
m_amc->GetDlTbSizeFromMcs(newDci.
m_mcs.at(j), RgbPerRnti * rbgSize) /
1110 bytesTxed += tbSize;
1115 uint32_t rbgMask = 0;
1116 for (std::size_t
k = 0;
k < (*itMap).second.size();
k++)
1118 rbgMask = rbgMask + (0x1 << (*itMap).second.at(
k));
1119 NS_LOG_INFO(
this <<
" Allocated RBG " << (*itMap).second.at(
k));
1124 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator
1128 if (((*itBufReq).first.m_rnti == (*itMap).first) &&
1129 (((*itBufReq).second.m_rlcTransmissionQueueSize > 0) ||
1130 ((*itBufReq).second.m_rlcRetransmissionQueueSize > 0) ||
1131 ((*itBufReq).second.m_rlcStatusPduSize > 0)))
1133 std::vector<struct RlcPduListElement_s> newRlcPduLe;
1134 for (uint8_t j = 0; j < nLayer; j++)
1140 <<
" size " << newRlcEl.
m_size <<
" layer " << (uint16_t)j);
1141 newRlcPduLe.push_back(newRlcEl);
1148 std::map<uint16_t, DlHarqRlcPduListBuffer_t>::iterator itRlcPdu =
1152 NS_FATAL_ERROR(
"Unable to find RlcPdcList in HARQ buffer for RNTI "
1155 (*itRlcPdu).second.at(j).at(newDci.
m_harqProcess).push_back(newRlcEl);
1160 if ((*itBufReq).first.m_rnti > (*itMap).first)
1165 for (uint8_t j = 0; j < nLayer; j++)
1167 newDci.
m_ndi.push_back(1);
1168 newDci.
m_rv.push_back(0);
1173 newEl.
m_dci = newDci;
1178 std::map<uint16_t, DlHarqProcessesDciBuffer_t>::iterator itDci =
1182 NS_FATAL_ERROR(
"Unable to find RNTI entry in DCI HARQ buffer for RNTI "
1187 std::map<uint16_t, DlHarqProcessesTimer_t>::iterator itHarqTimer =
1200 std::map<uint16_t, fdbetsFlowPerf_t>::iterator it;
1204 (*it).second.lastTtiBytesTrasmitted = bytesTxed;
1205 NS_LOG_INFO(
this <<
" UE total bytes txed " << (*it).second.lastTtiBytesTrasmitted);
1220 (*itStats).second.totalBytesTransmitted += (*itStats).second.lastTtiBytesTrasmitted;
1223 (*itStats).second.lastAveragedThroughput =
1224 ((1.0 - (1.0 /
m_timeWindow)) * (*itStats).second.lastAveragedThroughput) +
1225 ((1.0 /
m_timeWindow) * (double)((*itStats).second.lastTtiBytesTrasmitted / 0.001));
1226 NS_LOG_INFO(
this <<
" UE total bytes " << (*itStats).second.totalBytesTransmitted);
1227 NS_LOG_INFO(
this <<
" UE average throughput " << (*itStats).second.lastAveragedThroughput);
1228 (*itStats).second.lastTtiBytesTrasmitted = 0;
1249 for (
unsigned int i = 0; i <
params.m_cqiList.size(); i++)
1255 std::map<uint16_t, uint8_t>::iterator it;
1256 uint16_t rnti =
params.m_cqiList.at(i).m_rnti;
1263 params.m_cqiList.at(i).m_wbCqi.at(0)));
1270 (*it).second =
params.m_cqiList.at(i).m_wbCqi.at(0);
1272 std::map<uint16_t, uint32_t>::iterator itTimers;
1280 std::map<uint16_t, SbMeasResult_s>::iterator it;
1281 uint16_t rnti =
params.m_cqiList.at(i).m_rnti;
1287 std::pair<uint16_t, SbMeasResult_s>(rnti,
1288 params.m_cqiList.at(i).m_sbMeasResult));
1294 (*it).second =
params.m_cqiList.at(i).m_sbMeasResult;
1295 std::map<uint16_t, uint32_t>::iterator itTimers;
1310 std::map<uint16_t, std::vector<double>>::iterator itCqi =
m_ueCqi.find(rnti);
1320 unsigned int sinrNum = 0;
1323 double sinr = (*itCqi).second.at(i);
1330 double estimatedSinr = (sinrNum > 0) ? (sinrSum / sinrNum) : DBL_MAX;
1332 (*itCqi).second.at(rb) = estimatedSinr;
1333 return (estimatedSinr);
1342 << (0xF &
params.m_sfnSf) <<
" size " <<
params.m_ulInfoList.size());
1348 std::vector<bool> rbMap;
1349 std::set<uint16_t> rntiAllocated;
1350 std::vector<uint16_t> rbgAllocationMap;
1361 if (rbgAllocationMap.at(i) != 0)
1371 for (std::size_t i = 0; i <
params.m_ulInfoList.size(); i++)
1376 uint16_t rnti =
params.m_ulInfoList.at(i).m_rnti;
1377 std::map<uint16_t, uint8_t>::iterator itProcId =
1381 NS_LOG_ERROR(
"No info find in HARQ buffer for UE (might change eNB) " << rnti);
1384 NS_LOG_INFO(
this <<
" UL-HARQ retx RNTI " << rnti <<
" harqId " << (uint16_t)harqId
1385 <<
" i " << i <<
" size " <<
params.m_ulInfoList.size());
1386 std::map<uint16_t, UlHarqProcessesDciBuffer_t>::iterator itHarq =
1390 NS_LOG_ERROR(
"No info find in HARQ buffer for UE (might change eNB) " << rnti);
1394 std::map<uint16_t, UlHarqProcessesStatus_t>::iterator itStat =
1398 NS_LOG_ERROR(
"No info find in HARQ buffer for UE (might change eNB) " << rnti);
1400 if ((*itStat).second.at(harqId) >= 3)
1402 NS_LOG_INFO(
"Max number of retransmissions reached (UL)-> drop process");
1408 if (rbMap.at(j) ==
true)
1420 rbgAllocationMap.at(j) = dci.
m_rnti;
1425 << (*itStat).second.at(harqId) + 1);
1429 NS_LOG_INFO(
"Cannot allocate retx due to RACH allocations for UE " << rnti);
1434 (*itStat).second.at((*itProcId).second) = (*itStat).second.at(harqId) + 1;
1435 (*itStat).second.at(harqId) = 0;
1436 (*itHarq).second.at((*itProcId).second) = dci;
1438 rntiAllocated.insert(dci.
m_rnti);
1442 NS_LOG_INFO(
this <<
" HARQ-ACK feedback from RNTI "
1443 <<
params.m_ulInfoList.at(i).m_rnti);
1448 std::map<uint16_t, uint32_t>::iterator it;
1453 std::set<uint16_t>::iterator itRnti = rntiAllocated.find((*it).first);
1455 if (((*it).second > 0) && (itRnti == rntiAllocated.end()))
1466 std::pair<uint16_t, std::vector<uint16_t>>(
params.m_sfnSf, rbgAllocationMap));
1481 int rbAllocated = 0;
1483 std::map<uint16_t, fdbetsFlowPerf_t>::iterator itStats;
1505 std::set<uint16_t>::iterator itRnti = rntiAllocated.find((*it).first);
1506 if ((itRnti != rntiAllocated.end()) || ((*it).second == 0))
1509 NS_LOG_DEBUG(
this <<
" UE already allocated in HARQ -> discarded, RNTI "
1532 uldci.
m_rnti = (*it).first;
1534 bool allocated =
false;
1535 NS_LOG_INFO(
this <<
" RB Allocated " << rbAllocated <<
" rbPerFlow " << rbPerFlow
1536 <<
" flows " << nflows);
1542 for (
int j = rbAllocated; j < rbAllocated + rbPerFlow; j++)
1544 if (rbMap.at(j) ==
true)
1554 for (
int j = rbAllocated; j < rbAllocated + rbPerFlow; j++)
1558 rbgAllocationMap.at(j) = (*it).first;
1560 rbAllocated += rbPerFlow;
1586 std::pair<uint16_t, std::vector<uint16_t>>(
params.m_sfnSf, rbgAllocationMap));
1590 std::map<uint16_t, std::vector<double>>::iterator itCqi =
m_ueCqi.find((*it).first);
1601 "CQI of RNTI = " << (*it).first <<
" has expired");
1602 double minSinr = (*itCqi).second.at(uldci.
m_rbStart);
1609 double sinr = (*itCqi).second.at(i);
1621 double s = log2(1 + (std::pow(10, minSinr / 10) / ((-std::log(5.0 * 0.00005)) / 1.5)));
1622 cqi =
m_amc->GetCqiFromSpectralEfficiency(s);
1635 rbgAllocationMap.at(i) = 0;
1661 std::map<uint16_t, uint8_t>::iterator itProcId;
1667 harqId = (*itProcId).second;
1668 std::map<uint16_t, UlHarqProcessesDciBuffer_t>::iterator itDci =
1672 NS_FATAL_ERROR(
"Unable to find RNTI entry in UL DCI HARQ buffer for RNTI "
1675 (*itDci).second.at(harqId) = uldci;
1677 std::map<uint16_t, UlHarqProcessesStatus_t>::iterator itStat =
1681 NS_LOG_ERROR(
"No info find in HARQ buffer for UE (might change eNB) "
1684 (*itStat).second.at(harqId) = 0;
1687 NS_LOG_INFO(
this <<
" UE Allocation RNTI " << (*it).first <<
" startPRB "
1689 <<
" CQI " << cqi <<
" MCS " << (uint32_t)uldci.
m_mcs <<
" TBsize "
1690 << uldci.
m_tbSize <<
" RbAlloc " << rbAllocated <<
" harqId "
1691 << (uint16_t)harqId);
1697 (*itStats).second.lastTtiBytesTrasmitted = uldci.
m_tbSize;
1701 NS_LOG_DEBUG(
this <<
" No Stats for this allocated UE");
1716 }
while (((*it).first !=
m_nextRntiUl) && (rbPerFlow != 0));
1722 (*itStats).second.totalBytesTransmitted += (*itStats).second.lastTtiBytesTrasmitted;
1725 (*itStats).second.lastAveragedThroughput =
1726 ((1.0 - (1.0 /
m_timeWindow)) * (*itStats).second.lastAveragedThroughput) +
1727 ((1.0 /
m_timeWindow) * (double)((*itStats).second.lastTtiBytesTrasmitted / 0.001));
1728 NS_LOG_INFO(
this <<
" UE total bytes " << (*itStats).second.totalBytesTransmitted);
1729 NS_LOG_INFO(
this <<
" UE average throughput " << (*itStats).second.lastAveragedThroughput);
1730 (*itStats).second.lastTtiBytesTrasmitted = 0;
1733 std::pair<uint16_t, std::vector<uint16_t>>(
params.m_sfnSf, rbgAllocationMap));
1757 std::map<uint16_t, uint32_t>::iterator it;
1759 for (
unsigned int i = 0; i <
params.m_macCeList.size(); i++)
1770 uint32_t buffer = 0;
1771 for (uint8_t lcg = 0; lcg < 4; ++lcg)
1773 uint8_t bsrId =
params.m_macCeList.at(i).m_macCeValue.m_bufferStatus.at(lcg);
1777 uint16_t rnti =
params.m_macCeList.at(i).m_rnti;
1778 NS_LOG_LOGIC(
this <<
"RNTI=" << rnti <<
" buffer=" << buffer);
1783 m_ceBsrRxed.insert(std::pair<uint16_t, uint32_t>(rnti, buffer));
1788 (*it).second = buffer;
1822 switch (
params.m_ulCqi.m_type)
1825 std::map<uint16_t, std::vector<uint16_t>>::iterator itMap;
1826 std::map<uint16_t, std::vector<double>>::iterator itCqi;
1828 <<
" subframe no. " << (0xF &
params.m_sfnSf));
1834 for (uint32_t i = 0; i < (*itMap).second.size(); i++)
1838 itCqi =
m_ueCqi.find((*itMap).second.at(i));
1842 std::vector<double> newCqi;
1847 newCqi.push_back(sinr);
1856 std::pair<uint16_t, std::vector<double>>((*itMap).second.at(i), newCqi));
1864 (*itCqi).second.at(i) = sinr;
1865 NS_LOG_DEBUG(
this <<
" RNTI " << (*itMap).second.at(i) <<
" RB " << i <<
" SINR "
1868 std::map<uint16_t, uint32_t>::iterator itTimers;
1881 for (std::size_t i = 0; i <
params.m_vendorSpecificList.size(); i++)
1886 DynamicCast<SrsCqiRntiVsp>(
params.m_vendorSpecificList.at(i).m_value);
1887 rnti = vsp->GetRnti();
1890 std::map<uint16_t, std::vector<double>>::iterator itCqi;
1895 std::vector<double> newCqi;
1899 newCqi.push_back(sinr);
1900 NS_LOG_INFO(
this <<
" RNTI " << rnti <<
" new SRS-CQI for RB " << j <<
" value "
1903 m_ueCqi.insert(std::pair<uint16_t, std::vector<double>>(rnti, newCqi));
1913 (*itCqi).second.at(j) = sinr;
1914 NS_LOG_INFO(
this <<
" RNTI " << rnti <<
" update SRS-CQI for RB " << j <<
" value "
1918 std::map<uint16_t, uint32_t>::iterator itTimers;
1927 NS_FATAL_ERROR(
"FdBetFfMacScheduler supports only PUSCH and SRS UL-CQIs");
1939 std::map<uint16_t, uint32_t>::iterator itP10 =
m_p10CqiTimers.begin();
1942 NS_LOG_INFO(
this <<
" P10-CQI for user " << (*itP10).first <<
" is "
1944 if ((*itP10).second == 0)
1947 std::map<uint16_t, uint8_t>::iterator itMap =
m_p10CqiRxed.find((*itP10).first);
1949 " Does not find CQI report for user " << (*itP10).first);
1950 NS_LOG_INFO(
this <<
" P10-CQI expired for user " << (*itP10).first);
1952 std::map<uint16_t, uint32_t>::iterator temp = itP10;
1964 std::map<uint16_t, uint32_t>::iterator itA30 =
m_a30CqiTimers.begin();
1967 NS_LOG_INFO(
this <<
" A30-CQI for user " << (*itA30).first <<
" is "
1969 if ((*itA30).second == 0)
1972 std::map<uint16_t, SbMeasResult_s>::iterator itMap =
m_a30CqiRxed.find((*itA30).first);
1974 " Does not find CQI report for user " << (*itA30).first);
1975 NS_LOG_INFO(
this <<
" A30-CQI expired for user " << (*itA30).first);
1977 std::map<uint16_t, uint32_t>::iterator temp = itA30;
1993 std::map<uint16_t, uint32_t>::iterator itUl =
m_ueCqiTimers.begin();
1996 NS_LOG_INFO(
this <<
" UL-CQI for user " << (*itUl).first <<
" is "
1998 if ((*itUl).second == 0)
2001 std::map<uint16_t, std::vector<double>>::iterator itMap =
m_ueCqi.find((*itUl).first);
2003 " Does not find CQI report for user " << (*itUl).first);
2004 NS_LOG_INFO(
this <<
" UL-CQI exired for user " << (*itUl).first);
2005 (*itMap).second.clear();
2007 std::map<uint16_t, uint32_t>::iterator temp = itUl;
2022 std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters>::iterator it;
2027 NS_LOG_INFO(
this <<
" UE " << rnti <<
" LC " << (uint16_t)lcid <<
" txqueue "
2028 << (*it).second.m_rlcTransmissionQueueSize <<
" retxqueue "
2029 << (*it).second.m_rlcRetransmissionQueueSize <<
" status "
2030 << (*it).second.m_rlcStatusPduSize <<
" decrease " << size);
2033 if (((*it).second.m_rlcStatusPduSize > 0) && (size >= (*it).second.m_rlcStatusPduSize))
2035 (*it).second.m_rlcStatusPduSize = 0;
2037 else if (((*it).second.m_rlcRetransmissionQueueSize > 0) &&
2038 (size >= (*it).second.m_rlcRetransmissionQueueSize))
2040 (*it).second.m_rlcRetransmissionQueueSize = 0;
2042 else if ((*it).second.m_rlcTransmissionQueueSize > 0)
2044 uint32_t rlcOverhead;
2059 if ((*it).second.m_rlcTransmissionQueueSize <= size - rlcOverhead)
2061 (*it).second.m_rlcTransmissionQueueSize = 0;
2065 (*it).second.m_rlcTransmissionQueueSize -= size - rlcOverhead;
2071 NS_LOG_ERROR(
this <<
" Does not find DL RLC Buffer Report of UE " << rnti);
2079 std::map<uint16_t, uint32_t>::iterator it =
m_ceBsrRxed.find(rnti);
2082 NS_LOG_INFO(
this <<
" UE " << rnti <<
" size " << size <<
" BSR " << (*it).second);
2083 if ((*it).second >= size)
2085 (*it).second -= size;
2094 NS_LOG_ERROR(
this <<
" Does not find BSR report info of UE " << rnti);
2101 NS_LOG_FUNCTION(
this <<
" RNTI " << rnti <<
" txMode " << (uint16_t)txMode);
2104 params.m_transmissionMode = txMode;
AttributeValue implementation for Boolean.
static uint32_t BsrId2BufferSize(uint8_t val)
Convert BSR ID to buffer size.
Implements the SCHED SAP and CSCHED SAP for a Frequency Domain Blind Equal Throughput scheduler.
std::map< uint16_t, uint8_t > m_uesTxMode
txMode of the UEs
void DoSchedDlCqiInfoReq(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters ¶ms)
Sched DL CGI info request function.
void UpdateUlRlcBufferInfo(uint16_t rnti, uint16_t size)
Update UL RLC buffer info.
void DoSchedUlMacCtrlInfoReq(const struct FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters ¶ms)
Sched UL MAC control info request function.
std::map< uint16_t, uint8_t > m_ulHarqCurrentProcessId
UL HARQ current process ID.
unsigned int LcActivePerFlow(uint16_t rnti)
LC active per flow function.
void DoDispose() override
Destructor implementation.
void DoCschedLcReleaseReq(const struct FfMacCschedSapProvider::CschedLcReleaseReqParameters ¶ms)
CSched LC release request function.
~FdBetFfMacScheduler() override
Destructor.
FdBetFfMacScheduler()
Constructor.
void DoSchedUlCqiInfoReq(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters ¶ms)
Sched UL CGI info request function.
FfMacSchedSapProvider * m_schedSapProvider
sched sap provider
std::map< uint16_t, uint8_t > m_p10CqiRxed
Map of UE's DL CQI P01 received.
LteFfrSapUser * m_ffrSapUser
ffr sap user
std::map< uint16_t, fdbetsFlowPerf_t > m_flowStatsDl
Map of UE statistics (per RNTI basis) in downlink.
bool m_harqOn
m_harqOn when false inhibit the HARQ mechanisms (by default active)
std::map< uint16_t, uint32_t > m_a30CqiTimers
Map of UE's timers on DL CQI A30 received.
std::map< uint16_t, std::vector< double > > m_ueCqi
Map of UEs' UL-CQI per RBG.
void DoSchedDlTriggerReq(const struct FfMacSchedSapProvider::SchedDlTriggerReqParameters ¶ms)
Sched DL trigger request function.
FfMacCschedSapProvider::CschedCellConfigReqParameters m_cschedCellConfig
csched cell config
std::vector< struct RachListElement_s > m_rachList
rach list
void SetLteFfrSapProvider(LteFfrSapProvider *s) override
Set the Provider part of the LteFfrSap that this Scheduler will interact with.
LteFfrSapUser * GetLteFfrSapUser() override
void RefreshUlCqiMaps()
Refresh UL CQI maps.
void DoSchedDlRachInfoReq(const struct FfMacSchedSapProvider::SchedDlRachInfoReqParameters ¶ms)
Sched DL RACH info request function.
void DoSchedUlTriggerReq(const struct FfMacSchedSapProvider::SchedUlTriggerReqParameters ¶ms)
Sched UL trigger request function.
std::map< LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters > m_rlcBufferReq
Vectors of UE's LC info.
std::map< uint16_t, DlHarqProcessesTimer_t > m_dlHarqProcessesTimer
DL HARQ process timer.
friend class MemberSchedSapProvider< FdBetFfMacScheduler >
allow MemberSchedSapProvider<FdBetFfMacScheduler> class friend access
std::map< uint16_t, UlHarqProcessesStatus_t > m_ulHarqProcessesStatus
UL HARQ process status.
void DoCschedUeConfigReq(const struct FfMacCschedSapProvider::CschedUeConfigReqParameters ¶ms)
Csched UE config request function.
std::map< uint16_t, uint8_t > m_dlHarqCurrentProcessId
DL HARQ current process ID.
void DoCschedCellConfigReq(const struct FfMacCschedSapProvider::CschedCellConfigReqParameters ¶ms)
CSched cell config request function.
FfMacCschedSapProvider * GetFfMacCschedSapProvider() override
void DoSchedDlMacBufferReq(const struct FfMacSchedSapProvider::SchedDlMacBufferReqParameters ¶ms)
Sched DL MAC buffer request function.
void TransmissionModeConfigurationUpdate(uint16_t rnti, uint8_t txMode)
Transmission mode configuration update function.
void DoSchedUlSrInfoReq(const struct FfMacSchedSapProvider::SchedUlSrInfoReqParameters ¶ms)
Sched UL SR info request function.
std::map< uint16_t, DlHarqProcessesStatus_t > m_dlHarqProcessesStatus
DL HARQ process status.
std::map< uint16_t, uint32_t > m_p10CqiTimers
Map of UE's timers on DL CQI P01 received.
std::map< uint16_t, UlHarqProcessesDciBuffer_t > m_ulHarqProcessesDciBuffer
UL HARQ process DCI Buffer.
std::map< uint16_t, uint32_t > m_ceBsrRxed
Map of UE's buffer status reports received.
bool HarqProcessAvailability(uint16_t rnti)
Return the availability of free process for the RNTI specified.
uint8_t UpdateHarqProcessId(uint16_t rnti)
Update and return a new process Id for the RNTI specified.
void SetFfMacSchedSapUser(FfMacSchedSapUser *s) override
set the user part of the FfMacSchedSap that this Scheduler will interact with.
FfMacCschedSapUser * m_cschedSapUser
csched sap user
void DoSchedDlPagingBufferReq(const struct FfMacSchedSapProvider::SchedDlPagingBufferReqParameters ¶ms)
Sched DL paging buffer request function.
std::map< uint16_t, fdbetsFlowPerf_t > m_flowStatsUl
Map of UE statistics (per RNTI basis)
LteFfrSapProvider * m_ffrSapProvider
ffr sap provider
double EstimateUlSinr(uint16_t rnti, uint16_t rb)
Estimate UL SNR.
FfMacSchedSapProvider * GetFfMacSchedSapProvider() override
std::vector< uint16_t > m_rachAllocationMap
rach allocation map
void RefreshHarqProcesses()
Refresh HARQ processes according to the timers.
std::map< uint16_t, std::vector< uint16_t > > m_allocationMaps
Map of previous allocated UE per RBG (used to retrieve info from UL-CQI)
double m_timeWindow
time window
std::map< uint16_t, DlHarqRlcPduListBuffer_t > m_dlHarqProcessesRlcPduListBuffer
DL HARQ process RLC PDU List.
void RefreshDlCqiMaps()
Refresh DL CQI maps.
FfMacCschedSapProvider * m_cschedSapProvider
csched sap provider
uint32_t m_cqiTimersThreshold
void SetFfMacCschedSapUser(FfMacCschedSapUser *s) override
set the user part of the FfMacCschedSap that this Scheduler will interact with.
static TypeId GetTypeId()
Get the type ID.
std::map< uint16_t, SbMeasResult_s > m_a30CqiRxed
Map of UE's DL CQI A30 received.
void DoCschedUeReleaseReq(const struct FfMacCschedSapProvider::CschedUeReleaseReqParameters ¶ms)
CSched UE release request function.
void DoCschedLcConfigReq(const struct FfMacCschedSapProvider::CschedLcConfigReqParameters ¶ms)
Csched LC config request function.
void UpdateDlRlcBufferInfo(uint16_t rnti, uint8_t lcid, uint16_t size)
Update DL RLC buffer info.
uint16_t m_nextRntiUl
RNTI of the next user to be served next scheduling in UL.
uint8_t m_ulGrantMcs
MCS for UL grant (default 0)
std::map< uint16_t, uint32_t > m_ueCqiTimers
Map of UEs' timers on UL-CQI per RBG.
std::vector< DlInfoListElement_s > m_dlInfoListBuffered
DL HARQ retx buffered.
void DoSchedUlNoiseInterferenceReq(const struct FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters ¶ms)
Sched UL noise interference request function.
int GetRbgSize(int dlbandwidth)
Get RBG size function.
void DoSchedDlRlcBufferReq(const struct FfMacSchedSapProvider::SchedDlRlcBufferReqParameters ¶ms)
Sched DL RLC buffer request function.
FfMacSchedSapUser * m_schedSapUser
sched sap user
std::map< uint16_t, DlHarqProcessesDciBuffer_t > m_dlHarqProcessesDciBuffer
DL HARQ process DCI buffer.
friend class MemberCschedSapProvider< FdBetFfMacScheduler >
allow MemberCschedSapProvider<FdBetFfMacScheduler> class friend access
FfMacCschedSapUser class.
virtual void CschedUeConfigUpdateInd(const struct CschedUeConfigUpdateIndParameters ¶ms)=0
CSCHED_UE_UPDATE_IND.
virtual void CschedUeConfigCnf(const struct CschedUeConfigCnfParameters ¶ms)=0
CSCHED_UE_CONFIG_CNF.
virtual void SchedUlConfigInd(const struct SchedUlConfigIndParameters ¶ms)=0
SCHED_UL_CONFIG_IND.
virtual void SchedDlConfigInd(const struct SchedDlConfigIndParameters ¶ms)=0
SCHED_DL_CONFIG_IND.
This abstract base class identifies the interface by means of which the helper object can plug on the...
UlCqiFilter_t m_ulCqiFilter
UL CQI filter.
static double fpS11dot3toDouble(uint16_t val)
Convert from fixed point S11.3 notation to double.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Smart pointer class similar to boost::intrusive_ptr.
static Time Now()
Return the current simulation virtual time.
static uint8_t TxMode2LayerNum(uint8_t txMode)
Transmit mode 2 layer number.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Hold an unsigned integer type.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
#define NS_LOG_ERROR(msg)
Use NS_LOG to output a message of level LOG_ERROR.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< UlDciListElement_s > UlHarqProcessesDciBuffer_t
UL HARQ process DCI buffer vector.
std::vector< uint8_t > DlHarqProcessesTimer_t
DL HARQ process timer vector typedef.
std::vector< uint8_t > DlHarqProcessesStatus_t
DL HARQ process status vector typedef.
std::vector< RlcPduList_t > DlHarqRlcPduListBuffer_t
vector of the 8 HARQ processes per UE
static const int FdBetType0AllocationRbg[4]
FdBetType0AllocationRbg array.
std::vector< DlDciListElement_s > DlHarqProcessesDciBuffer_t
DL HARQ process DCI buffer vector typedef.
std::vector< uint8_t > UlHarqProcessesStatus_t
UL HARQ process status vector.
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.
See section 4.3.8 builDataListElement.
std::vector< std::vector< struct RlcPduListElement_s > > m_rlcPduList
RLC PDU list.
struct DlDciListElement_s m_dci
DCI.
See section 4.3.10 buildRARListElement.
See section 4.3.1 dlDciListElement.
std::vector< uint8_t > m_ndi
New data indicator.
uint8_t m_harqProcess
HARQ process.
uint32_t m_rbBitmap
RB bitmap.
std::vector< uint8_t > m_mcs
MCS.
uint8_t m_resAlloc
The type of resource allocation.
std::vector< uint16_t > m_tbsSize
The TBs size.
std::vector< uint8_t > m_rv
Redundancy version.
uint8_t m_tpc
Tx power control command.
Parameters of the API primitives.
uint16_t m_dlBandwidth
DL bandwidth.
uint16_t m_ulBandwidth
UL bandwidth.
Parameters of the CSCHED_LC_CONFIG_REQ primitive.
Parameters of the CSCHED_LC_RELEASE_REQ primitive.
Parameters of the CSCHED_UE_CONFIG_REQ primitive.
Parameters of the CSCHED_UE_RELEASE_REQ primitive.
Parameters of the CSCHED_UE_CONFIG_CNF primitive.
enum Result_e m_result
result
Parameters of the CSCHED_UE_CONFIG_UPDATE_IND primitive.
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
Parameters of the SCHED_DL_MAC_BUFFER_REQ primitive.
Parameters of the SCHED_DL_PAGING_BUFFER_REQ primitive.
Parameters of the SCHED_DL_RACH_INFO_REQ primitive.
Parameters of the API primitives.
Parameters of the SCHED_DL_TRIGGER_REQ primitive.
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
Parameters of the SCHED_UL_MAC_CTRL_INFO_REQ primitive.
Parameters of the SCHED_UL_NOISE_INTERFERENCE_REQ primitive.
Parameters of the SCHED_UL_SR_INFO_REQ primitive.
Parameters of the SCHED_UL_TRIGGER_REQ primitive.
Parameters of the API primitives.
uint8_t m_nrOfPdcchOfdmSymbols
number of PDCCH OFDM symbols
std::vector< struct BuildDataListElement_s > m_buildDataList
build data list
std::vector< struct BuildRarListElement_s > m_buildRarList
build rar list
Parameters of the SCHED_UL_CONFIG_IND primitive.
std::vector< struct UlDciListElement_s > m_dciList
DCI list.
See section 4.3.9 rlcPDU_ListElement.
uint8_t m_logicalChannelIdentity
logical channel identity
See section 4.3.2 ulDciListElement.
int8_t m_pdcchPowerOffset
CCH power offset.
int8_t m_tpc
Tx power control command.
uint8_t m_dai
DL assignment index.
uint8_t m_cceIndex
Control Channel Element index.
uint8_t m_ulIndex
UL index.
uint8_t m_ueTxAntennaSelection
UE antenna selection.
bool m_cqiRequest
CQI request.
uint8_t m_freqHopping
freq hopping
uint8_t m_aggrLevel
The aggregation level.
int8_t m_tpc
Tx power control command.
bool m_cqiRequest
CQI request?
fdbetsFlowPerf_t structure
unsigned int lastTtiBytesTrasmitted
last total bytes transmitted
double lastAveragedThroughput
last averaged throughput
unsigned long totalBytesTransmitted
total bytes transmitted
Time flowStart
flow start time