50 NS_LOG_INFO(
"creating LenaTestFdMtFfMacSchedulerSuite");
52 bool errorModel =
false;
69 TestCase::Duration::EXTENSIVE);
71 TestCase::Duration::QUICK);
73 TestCase::Duration::EXTENSIVE);
75 TestCase::Duration::EXTENSIVE);
89 TestCase::Duration::EXTENSIVE);
91 TestCase::Duration::EXTENSIVE);
93 TestCase::Duration::EXTENSIVE);
95 TestCase::Duration::EXTENSIVE);
109 TestCase::Duration::EXTENSIVE);
111 TestCase::Duration::EXTENSIVE);
113 TestCase::Duration::EXTENSIVE);
115 TestCase::Duration::EXTENSIVE);
129 TestCase::Duration::EXTENSIVE);
131 TestCase::Duration::EXTENSIVE);
133 TestCase::Duration::EXTENSIVE);
135 TestCase::Duration::EXTENSIVE);
149 TestCase::Duration::EXTENSIVE);
151 TestCase::Duration::EXTENSIVE);
153 TestCase::Duration::EXTENSIVE);
155 TestCase::Duration::EXTENSIVE);
160 TestCase::Duration::QUICK);
223 lteHelper->SetAttribute(
"PathlossModel",
StringValue(
"ns3::FriisSpectrumPropagationLossModel"));
233 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
234 mobility.Install(enbNodes);
235 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
236 mobility.Install(ueNodes);
241 lteHelper->SetSchedulerType(
"ns3::FdMtFfMacScheduler");
243 enbDevs = lteHelper->InstallEnbDevice(enbNodes);
244 ueDevs = lteHelper->InstallUeDevice(ueNodes);
247 lteHelper->Attach(ueDevs, enbDevs.
Get(0));
252 lteHelper->ActivateDataRadioBearer(ueDevs, bearer);
256 enbPhy->SetAttribute(
"TxPower",
DoubleValue(30.0));
257 enbPhy->SetAttribute(
"NoiseFigure",
DoubleValue(5.0));
260 for (
int i = 0; i <
m_nUser; i++)
264 mm->SetPosition(Vector(
m_dist, 0.0, 0.0));
268 uePhy->SetAttribute(
"NoiseFigure",
DoubleValue(9.0));
271 double statsStartTime = 0.300;
272 double statsDuration = 0.6;
273 double tolerance = 0.1;
276 lteHelper->EnableMacTraces();
277 lteHelper->EnableRlcTraces();
288 std::vector<uint64_t> dlDataRxed;
289 for (
int i = 0; i <
m_nUser; i++)
294 dlDataRxed.push_back(rlcStats->GetDlRxData(imsi, lcId));
295 NS_LOG_INFO(
"\tUser " << i <<
" imsi " << imsi <<
" bytes rxed " << (
double)dlDataRxed.at(i)
296 <<
" thr " << (
double)dlDataRxed.at(i) / statsDuration <<
" ref "
306 for (
int i = 0; i <
m_nUser; i++)
314 " Unfair Throughput!");
331 std::vector<uint64_t> ulDataRxed;
332 for (
int i = 0; i <
m_nUser; i++)
338 ulDataRxed.push_back(rlcStats->GetUlRxData(imsi, lcId));
339 NS_LOG_INFO(
"\tUser " << i <<
" imsi " << imsi <<
" bytes rxed " << (
double)ulDataRxed.at(i)
340 <<
" thr " << (
double)ulDataRxed.at(i) / statsDuration <<
" ref "
349 for (
int i = 0; i <
m_nUser; i++)
354 " Unfair Throughput!");