A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lte-test-fdbet-ff-mac-scheduler.cc
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2011 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  * Author: Marco Miozzo <marco.miozzo@cttc.es>,
19  * Nicola Baldo <nbaldo@cttc.es>
20  * Dizhi Zhou <dizhi.zhou@gmail.com>
21  */
22 
23 #include <iostream>
24 #include <sstream>
25 #include <string>
26 
27 #include <ns3/object.h>
28 #include <ns3/spectrum-interference.h>
29 #include <ns3/spectrum-error-model.h>
30 #include <ns3/log.h>
31 #include <ns3/test.h>
32 #include <ns3/simulator.h>
33 #include <ns3/packet.h>
34 #include <ns3/ptr.h>
35 #include "ns3/radio-bearer-stats-calculator.h"
36 #include <ns3/constant-position-mobility-model.h>
37 #include <ns3/eps-bearer.h>
38 #include <ns3/node-container.h>
39 #include <ns3/mobility-helper.h>
40 #include <ns3/net-device-container.h>
41 #include <ns3/lte-ue-net-device.h>
42 #include <ns3/lte-enb-net-device.h>
43 #include <ns3/lte-ue-rrc.h>
44 #include <ns3/lte-helper.h>
45 #include "ns3/string.h"
46 #include "ns3/double.h"
47 #include <ns3/lte-enb-phy.h>
48 #include <ns3/lte-ue-phy.h>
49 #include <ns3/boolean.h>
50 #include <ns3/enum.h>
51 
53 
54 NS_LOG_COMPONENT_DEFINE ("LenaTestFdBetFfMacCheduler");
55 
56 namespace ns3 {
57 
59  : TestSuite ("lte-fdbet-ff-mac-scheduler", SYSTEM)
60 {
61  NS_LOG_INFO ("creating LenaTestFdBetFfMacSchedulerSuite");
62 
63  //Test Case 1: AMC works in FDBET
64 
65  // DOWNLINK- DISTANCE 0 -> MCS 28 -> Itbs 26 (from table 7.1.7.2.1-1 of 36.213)
66  // 1 user -> 24 PRB at Itbs 26 -> 2196 -> 2196000 bytes/sec
67  // 3 users -> 8 PRB at Itbs 26 -> 749 -> 749000 bytes/sec
68  // 6 users -> 4 PRB at Itbs 26 -> 373 -> 373000 bytes/sec
69  // 12 users -> 2 PRB at Itbs 26 -> 185 -> 185000 bytes/sec
70  // UPLINK- DISTANCE 0 -> MCS 28 -> Itbs 26 (from table 7.1.7.2.1-1 of 36.213)
71  // 1 user -> 25 PRB at Itbs 26 -> 2292 -> 2292000 bytes/sec
72  // 3 users -> 8 PRB at Itbs 26 -> 749 -> 749000 bytes/sec
73  // 6 users -> 4 PRB at Itbs 26 -> 373 -> 373000 bytes/sec
74  // 12 users -> 2 PRB at Itbs 26 -> 185 -> 185000 bytes/sec
75  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (1,0,0,2196000,2292000));
76  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (3,0,0,749000,749000));
77  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (6,0,0,373000,373000));
78  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (12,0,0,185000,185000));
79 
80  // DOWNLINK - DISTANCE 3000 -> MCS 22 -> Itbs 20 (from table 7.1.7.2.1-1 of 36.213)
81  // 1 user -> 24 PRB at Itbs 20 -> 1383 -> 1383000 bytes/sec
82  // 3 users -> 8 PRB at Itbs 20 -> 469 -> 469000 bytes/sec
83  // 6 users -> 4 PRB at Itbs 20 -> 233 -> 233000 bytes/sec
84  // 12 users -> 2 PRB at Itbs 20 -> 113 -> 113000 bytes/sec
85  // UPLINK - DISTANCE 3000 -> MCS 20 -> Itbs 18 (from table 7.1.7.2.1-1 of 36.213)
86  // 1 user -> 25 PRB at Itbs 18 -> 1239 -> 1239000 bytes/sec
87  // 3 users -> 8 PRB at Itbs 18 -> 389 -> 389000 bytes/sec
88  // 6 users -> 4 PRB at Itbs 18 -> 193 -> 193000 bytes/sec
89  // 12 users -> 2 PRB at Itbs 18 -> 97 -> 97000 bytes/sec
90  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (1,0,3000,1383000,1239000));
91  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (3,0,3000,469000,389000));
92  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (6,0,3000,233500,193000));
93  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (12,0,3000,113000,97000));
94 
95  // DOWNLINK - DISTANCE 6000 -> MCS 16 -> Itbs 15 (from table 7.1.7.2.1-1 of 36.213)
96  // 1 user -> 24 PRB at Itbs 15 -> 903 -> 903000 bytes/sec
97  // 3 users -> 8 PRB at Itbs 15 -> 309 -> 309000 bytes/sec
98  // 6 users -> 4 PRB at Itbs 15 -> 153 -> 153000 bytes/sec
99  // 12 users -> 2 PRB at Itbs 15 -> 75 -> 75000 bytes/sec
100  // UPLINK - DISTANCE 6000 -> MCS 12 -> Itbs 11 (from table 7.1.7.2.1-1 of 36.213)
101  // 1 user -> 25 PRB at Itbs 11 -> 621 -> 621000 bytes/sec
102  // 3 users -> 8 PRB at Itbs 11 -> 201 -> 201000 bytes/sec
103  // 6 users -> 4 PRB at Itbs 11 -> 97 -> 97000 bytes/sec
104  // 12 users -> 2 PRB at Itbs 11 -> 47 -> 47000 bytes/sec
105  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (1,0,6000,903000,621000));
106  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (3,0,6000,309000,201000));
107  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (6,0,6000,153000,97000));
108  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (12,0,6000,75000,47000));
109 
110  // DOWNLINK - DISTANCE 9000 -> MCS 12 -> Itbs 11 (from table 7.1.7.2.1-1 of 36.213)
111  // 1 user -> 24 PRB at Itbs 11 -> 597 -> 597000 bytes/sec
112  // 3 users -> 8 PRB at Itbs 11 -> 201 -> 201000 bytes/sec
113  // 6 users -> 4 PRB at Itbs 11 -> 97 -> 97000 bytes/sec
114  // 12 users -> 2 PRB at Itbs 11 -> 47 -> 47000 bytes/sec
115  // UPLINK - DISTANCE 9000 -> MCS 8 -> Itbs 8 (from table 7.1.7.2.1-1 of 36.213)
116  // 1 user -> 24 PRB at Itbs 8 -> 437 -> 437000 bytes/sec
117  // 3 users -> 8 PRB at Itbs 8 -> 137 -> 137000 bytes/sec
118  // 6 users -> 4 PRB at Itbs 8 -> 67 -> 67000 bytes/sec
119  // 12 users -> 2 PRB at Itbs 8 -> 32 -> 32000 bytes/sec
120  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (1,0,9000,597000,437000));
121  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (3,0,9000,201000,137000));
122  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (6,0,9000,97000,67000));
123  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (12,0,9000,47000,32000));
124 
125  // DOWNLINK - DISTANCE 15000 -> MCS 6 -> Itbs 6 (from table 7.1.7.2.1-1 of 36.213)
126  // 1 user -> 24 PRB at Itbs 6 -> 309 -> 309000 bytes/sec
127  // 3 users -> 8 PRB at Itbs 6 -> 101 -> 101000 bytes/sec
128  // 6 users -> 4 PRB at Itbs 6 -> 49 -> 49000 bytes/sec
129  // 12 users -> 2 PRB at Itbs 6 -> 22 -> 22000 bytes/sec
130  // UPLINK - DISTANCE 15000 -> MCS 6 -> Itbs 6 (from table 7.1.7.2.1-1 of 36.213)
131  // 1 user -> 25 PRB at Itbs 6 -> 233 -> 233000 bytes/sec
132  // 3 users -> 8 PRB at Itbs 6 -> 69 -> 69000 bytes/sec
133  // 6 users -> 4 PRB at Itbs 6 -> 32 -> 32000 bytes/sec
134  // 12 users -> 2 PRB at Itbs 6 -> 15 -> 15000 bytes/sec
135  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (1,0,15000,309000,233000));
136  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (3,0,15000,101000,69000));
137  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (6,0,15000,49000,32000));
138  AddTestCase (new LenaFdBetFfMacSchedulerTestCase1 (12,0,15000,22000,15000));
139 
140  // Test Case 2: fairness check
141 
142  std::vector<uint16_t> dist;
143  dist.push_back (0); // User 0 distance --> MCS 28
144  dist.push_back (3000); // User 1 distance --> MCS 24
145  dist.push_back (6000); // User 2 distance --> MCS 16
146  dist.push_back (9000); // User 3 distance --> MCS 12
147  std::vector<uint32_t> estAchievableRateDl;
148  estAchievableRateDl.push_back (2196000);
149  estAchievableRateDl.push_back (1383000);
150  estAchievableRateDl.push_back (903000);
151  estAchievableRateDl.push_back (597000);
152  std::vector<uint32_t> estThrFdBetUl;
153  estThrFdBetUl.push_back (549000); // User 0 estimated TTI throughput from FDBET
154  estThrFdBetUl.push_back (293000); // User 1 estimated TTI throughput from FDBET
155  estThrFdBetUl.push_back (149000); // User 2 estimated TTI throughput from FDBET
156  estThrFdBetUl.push_back (101000); // User 3 estimated TTI throughput from FDBET
157  AddTestCase (new LenaFdBetFfMacSchedulerTestCase2 (dist, estAchievableRateDl, estThrFdBetUl));
158 
159 
160 }
161 
163 
164 
165 // --------------- T E S T - C A S E # 1 ------------------------------
166 
167 
168 std::string
170 {
171  std::ostringstream oss;
172  oss << nUser << " UEs, distance " << dist << " m";
173  return oss.str ();
174 }
175 
176 LenaFdBetFfMacSchedulerTestCase1::LenaFdBetFfMacSchedulerTestCase1 (uint16_t nUser, uint16_t nLc, uint16_t dist, double thrRefDl, double thrRefUl)
177  : TestCase (BuildNameString (nUser, dist)),
178  m_nUser (nUser),
179  m_nLc (nLc),
180  m_dist (dist),
181  m_thrRefDl (thrRefDl),
182  m_thrRefUl (thrRefUl)
183 {
184 }
185 
187 {
188 }
189 
190 void
192 {
193  Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010));
194  Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (0.00005));
195  Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue (false));
196  Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue (false));
197 
199  //LogComponentEnable ("LenaTestFdBetFfMacCheduler", LOG_LEVEL_ALL);
200 
205  Ptr<LteHelper> lteHelper = CreateObject<LteHelper> ();
206 
207  lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisSpectrumPropagationLossModel"));
208 
209  // Create Nodes: eNodeB and UE
210  NodeContainer enbNodes;
211  NodeContainer ueNodes;
212  enbNodes.Create (1);
213  ueNodes.Create (m_nUser);
214 
215  // Install Mobility Model
216  MobilityHelper mobility;
217  mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
218  mobility.Install (enbNodes);
219  mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
220  mobility.Install (ueNodes);
221 
222  // Create Devices and install them in the Nodes (eNB and UE)
223  NetDeviceContainer enbDevs;
224  NetDeviceContainer ueDevs;
225  lteHelper->SetSchedulerType ("ns3::FdBetFfMacScheduler");
226  enbDevs = lteHelper->InstallEnbDevice (enbNodes);
227  ueDevs = lteHelper->InstallUeDevice (ueNodes);
228 
229  // Attach a UE to a eNB
230  lteHelper->Attach (ueDevs, enbDevs.Get (0));
231 
232  // Activate an EPS bearer
234  EpsBearer bearer (q);
235  lteHelper->ActivateEpsBearer (ueDevs, bearer, EpcTft::Default ());
236 
237  Ptr<LteEnbNetDevice> lteEnbDev = enbDevs.Get (0)->GetObject<LteEnbNetDevice> ();
238  Ptr<LteEnbPhy> enbPhy = lteEnbDev->GetPhy ();
239  enbPhy->SetAttribute ("TxPower", DoubleValue (30.0));
240  enbPhy->SetAttribute ("NoiseFigure", DoubleValue (5.0));
241 
242  // Set UEs' position and power
243  for (int i = 0; i < m_nUser; i++)
244  {
246  mm->SetPosition (Vector (m_dist, 0.0, 0.0));
247  Ptr<LteUeNetDevice> lteUeDev = ueDevs.Get (i)->GetObject<LteUeNetDevice> ();
248  Ptr<LteUePhy> uePhy = lteUeDev->GetPhy ();
249  uePhy->SetAttribute ("TxPower", DoubleValue (23.0));
250  uePhy->SetAttribute ("NoiseFigure", DoubleValue (9.0));
251  }
252 
253  lteHelper->EnableRlcTraces ();
254 
255  double simulationTime = 1.0;
256  double tolerance = 0.1;
257  Simulator::Stop (Seconds (simulationTime));
258 
259  Ptr<RadioBearerStatsCalculator> rlcStats = lteHelper->GetRlcStats ();
260  rlcStats->SetAttribute ("EpochDuration", TimeValue (Seconds (simulationTime)));
261 
262  Simulator::Run ();
263 
267  NS_LOG_INFO ("DL - Test with " << m_nUser << " user(s) at distance " << m_dist);
268  std::vector <uint64_t> dlDataRxed;
269  for (int i = 0; i < m_nUser; i++)
270  {
271  // get the imsi
272  uint64_t imsi = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetImsi ();
273  // get the lcId
274  uint8_t lcId = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetRrc ()->GetLcIdVector ().at (0);
275  dlDataRxed.push_back (rlcStats->GetDlRxData (imsi, lcId));
276  NS_LOG_INFO ("\tUser " << i << " imsi " << imsi << " bytes rxed " << (double)dlDataRxed.at (i) << " thr " << (double)dlDataRxed.at (i) / simulationTime << " ref " << m_thrRefDl);
277  }
284  for (int i = 0; i < m_nUser; i++)
285  {
286  NS_TEST_ASSERT_MSG_EQ_TOL ((double)dlDataRxed.at (i) / simulationTime, m_thrRefDl, m_thrRefDl * tolerance, " Unfair Throughput!");
287  }
288 
292  NS_LOG_INFO ("UL - Test with " << m_nUser << " user(s) at distance " << m_dist);
293  std::vector <uint64_t> ulDataRxed;
294  for (int i = 0; i < m_nUser; i++)
295  {
296  // get the imsi
297  uint64_t imsi = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetImsi ();
298  // get the lcId
299  uint8_t lcId = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetRrc ()->GetLcIdVector ().at (0);
300  ulDataRxed.push_back (rlcStats->GetUlRxData (imsi, lcId));
301  NS_LOG_INFO ("\tUser " << i << " imsi " << imsi << " bytes rxed " << (double)ulDataRxed.at (i) << " thr " << (double)ulDataRxed.at (i) / simulationTime << " ref " << m_thrRefUl);
302  }
309  for (int i = 0; i < m_nUser; i++)
310  {
311  NS_TEST_ASSERT_MSG_EQ_TOL ((double)ulDataRxed.at (i) / simulationTime, m_thrRefUl, m_thrRefUl * tolerance, " Unfair Throughput!");
312  }
314 
315 }
316 
317 
318 
319 // --------------- T E S T - C A S E # 2 ------------------------------
320 
321 
322 std::string
323 LenaFdBetFfMacSchedulerTestCase2::BuildNameString (uint16_t nUser, std::vector<uint16_t> dist)
324 {
325  std::ostringstream oss;
326  oss << "distances (m) = [ " ;
327  for (std::vector<uint16_t>::iterator it = dist.begin (); it != dist.end (); ++it)
328  {
329  oss << *it << " ";
330  }
331  oss << "]";
332  return oss.str ();
333 }
334 
335 
336 LenaFdBetFfMacSchedulerTestCase2::LenaFdBetFfMacSchedulerTestCase2 (std::vector<uint16_t> dist, std::vector<uint32_t> estAchievableRateDl, std::vector<uint32_t> estThrFdBetUl)
337  : TestCase (BuildNameString (dist.size (), dist)),
338  m_nUser (dist.size ()),
339  m_dist (dist),
340  m_achievableRateDl (estAchievableRateDl),
341  m_estThrFdBetUl (estThrFdBetUl)
342 {
343 }
344 
346 {
347 }
348 
349 void
351 {
353  //LogComponentEnable ("LenaTestFdBetFfMacCheduler", LOG_LEVEL_ALL);
354 
359  Ptr<LteHelper> lteHelper = CreateObject<LteHelper> ();
360 
361  lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisSpectrumPropagationLossModel"));
362 
363  // Create Nodes: eNodeB and UE
364  NodeContainer enbNodes;
365  NodeContainer ueNodes;
366  enbNodes.Create (1);
367  ueNodes.Create (m_nUser);
368 
369  // Install Mobility Model
370  MobilityHelper mobility;
371  mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
372  mobility.Install (enbNodes);
373  mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
374  mobility.Install (ueNodes);
375 
376  // Create Devices and install them in the Nodes (eNB and UE)
377  NetDeviceContainer enbDevs;
378  NetDeviceContainer ueDevs;
379  lteHelper->SetSchedulerType ("ns3::FdBetFfMacScheduler");
380  enbDevs = lteHelper->InstallEnbDevice (enbNodes);
381  ueDevs = lteHelper->InstallUeDevice (ueNodes);
382 
383  // Attach a UE to a eNB
384  lteHelper->Attach (ueDevs, enbDevs.Get (0));
385 
386  // Activate an EPS bearer
388  EpsBearer bearer (q);
389  lteHelper->ActivateEpsBearer (ueDevs, bearer, EpcTft::Default ());
390 
391  Ptr<LteEnbNetDevice> lteEnbDev = enbDevs.Get (0)->GetObject<LteEnbNetDevice> ();
392  Ptr<LteEnbPhy> enbPhy = lteEnbDev->GetPhy ();
393  enbPhy->SetAttribute ("TxPower", DoubleValue (30.0));
394  enbPhy->SetAttribute ("NoiseFigure", DoubleValue (5.0));
395 
396  // Set UEs' position and power
397  for (int i = 0; i < m_nUser; i++)
398  {
400  mm->SetPosition (Vector (m_dist.at (i), 0.0, 0.0));
401  Ptr<LteUeNetDevice> lteUeDev = ueDevs.Get (i)->GetObject<LteUeNetDevice> ();
402  Ptr<LteUePhy> uePhy = lteUeDev->GetPhy ();
403  uePhy->SetAttribute ("TxPower", DoubleValue (23.0));
404  uePhy->SetAttribute ("NoiseFigure", DoubleValue (9.0));
405  }
406 
407  lteHelper->EnableRlcTraces ();
408 
409  double simulationTime = 1;
410  double tolerance = 0.1;
411  Simulator::Stop (Seconds (simulationTime));
412 
413  Ptr<RadioBearerStatsCalculator> rlcStats = lteHelper->GetRlcStats ();
414  rlcStats->SetAttribute ("EpochDuration", TimeValue (Seconds (simulationTime)));
415 
416  Simulator::Run ();
417 
418  NS_LOG_INFO ("DL - Test with " << m_nUser << " user(s)");
419  std::vector <uint64_t> dlDataRxed;
420  double totalData = 0;
421  double estTotalThr = 0;
422  double estUeThr = 0;
423  for (int i = 0; i < m_nUser; i++)
424  {
425  // get the imsi
426  uint64_t imsi = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetImsi ();
427  // get the lcId
428  uint8_t lcId = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetRrc ()->GetLcIdVector ().at (0);
429  dlDataRxed.push_back (rlcStats->GetDlRxData (imsi, lcId));
430  totalData += (double)dlDataRxed.at (i);
431  estTotalThr += 1 / m_achievableRateDl.at (i);
432  //NS_LOG_INFO ("\tUser " << i << " dist " << m_dist.at (i) << " imsi " << imsi << " bytes rxed " << (double)dlDataRxed.at (i) << " thr " << (double)dlDataRxed.at (i) / simulationTime << " ref " << m_nUser);
433  }
434 
435  estTotalThr = m_nUser * (1 / estTotalThr);
436  estUeThr = estTotalThr / m_nUser;
441  for (int i = 0; i < m_nUser; i++)
442  {
443  double thrRatio = (double) 1 / m_nUser;
444  double estThrRatio = (double)dlDataRxed.at (i) / totalData;
445  NS_LOG_INFO ("\tUser " << i << " thrRatio " << thrRatio << " estThrRatio " << estThrRatio);
446  NS_TEST_ASSERT_MSG_EQ_TOL (estThrRatio, thrRatio, tolerance, " Unfair Throughput!");
447  NS_TEST_ASSERT_MSG_EQ_TOL ((double)dlDataRxed.at (i) / simulationTime, estUeThr, estUeThr * tolerance, " Unfair Throughput!");
448 
449  }
450 
455  NS_LOG_INFO ("UL - Test with " << m_nUser);
456  std::vector <uint64_t> ulDataRxed;
457  for (int i = 0; i < m_nUser; i++)
458  {
459  // get the imsi
460  uint64_t imsi = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetImsi ();
461  // get the lcId
462  uint8_t lcId = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetRrc ()->GetLcIdVector ().at (0);
463  ulDataRxed.push_back (rlcStats->GetUlRxData (imsi, lcId));
464  NS_LOG_INFO ("\tUser " << i << " dist " << m_dist.at (i) << " bytes rxed " << (double)ulDataRxed.at (i) << " thr " << (double)ulDataRxed.at (i) / simulationTime << " ref " << (double)m_estThrFdBetUl.at (i));
465  NS_TEST_ASSERT_MSG_EQ_TOL ((double)ulDataRxed.at (i) / simulationTime, (double)m_estThrFdBetUl.at (i), (double)m_estThrFdBetUl.at (i) * tolerance, " Unfair Throughput!");
466  }
468 
469 }
470 
471 
472 } // namespace ns3
473 
474 
475 
476