A Discrete-Event Network Simulator
API
lte-test-phy-error-model.cc
Go to the documentation of this file.
1/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2011-2013 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 */
21
22#include <ns3/object.h>
23#include <ns3/spectrum-interference.h>
24#include <ns3/spectrum-error-model.h>
25#include <ns3/log.h>
26#include <ns3/test.h>
27#include <ns3/simulator.h>
28#include <ns3/packet.h>
29#include <ns3/ptr.h>
30#include <iostream>
31#include <ns3/radio-bearer-stats-calculator.h>
32#include <ns3/mobility-building-info.h>
33#include <ns3/hybrid-buildings-propagation-loss-model.h>
34#include <ns3/eps-bearer.h>
35#include <ns3/node-container.h>
36#include <ns3/mobility-helper.h>
37#include <ns3/net-device-container.h>
38#include <ns3/lte-ue-net-device.h>
39#include <ns3/lte-enb-net-device.h>
40#include <ns3/lte-ue-rrc.h>
41#include <ns3/lte-helper.h>
42#include <ns3/string.h>
43#include <ns3/double.h>
44#include <ns3/lte-enb-phy.h>
45#include <ns3/lte-ue-phy.h>
46#include <ns3/config.h>
47#include <ns3/boolean.h>
48#include <ns3/enum.h>
49#include <ns3/integer.h>
50#include <ns3/ff-mac-scheduler.h>
51#include <ns3/buildings-helper.h>
52
54
55using namespace ns3;
56
57NS_LOG_COMPONENT_DEFINE ("LteTestPhyErrorModel");
58
60 : TestSuite ("lte-phy-error-model", SYSTEM)
61{
62 NS_LOG_INFO ("creating LenaTestPhyErrorModelTestCase");
63
64
65 for (uint32_t rngRun = 1; rngRun <= 3; ++rngRun)
66 {
67
68 // Tests on DL Control Channels (PCFICH+PDCCH)
69 // the tolerance is calculated with the following octave code:
70 //
71 // n = 1000; # TX packets
72 // for p=1-[0.007 0.045 0.206 0.343]
73 // tol = n*p - binoinv(0.001, n, p)
74 // endfor
75
76 // 1 interfering eNB SINR -2.0 BLER 0.007 TB size 217
77 AddTestCase (new LenaDlCtrlPhyErrorModelTestCase (2, 1078, 0.007, 9,
78 Seconds (0.04), rngRun),
79 (rngRun == 1) ? TestCase::QUICK : TestCase::TAKES_FOREVER);
80 // 2 interfering eNBs SINR -4.0 BLER 0.037 TB size 217
81 AddTestCase (new LenaDlCtrlPhyErrorModelTestCase (3, 1040, 0.045, 21,
82 Seconds (0.04), rngRun),
83 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
84 // 3 interfering eNBs SINR -6.0 BLER 0.21 TB size 133
85 AddTestCase (new LenaDlCtrlPhyErrorModelTestCase (4, 1250, 0.206, 40,
86 Seconds (0.12), rngRun),
87 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
88 // 4 interfering eNBs SINR -7.0 BLER 0.34 TB size 133
89 AddTestCase (new LenaDlCtrlPhyErrorModelTestCase (5, 1260, 0.343, 47,
90 Seconds (0.12), rngRun),
91 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
92
93 // Tests on DL Data channels (PDSCH)
94 // the tolerance is calculated with the following octave code:
95 //
96 // n = 1000; # TX packets
97 // for p=1-[0.33 0.11 0.2 0.3 0.55 0.14]
98 // tol = n*p - binoinv(0.005, n, p)
99 // endfor
100
101 // MCS 2 TB size of 256 bits BLER 0.33 SINR -5.51
102 AddTestCase (new LenaDataPhyErrorModelTestCase (4, 1800, 0.33, 39,
103 Seconds (0.04), rngRun),
104 (rngRun == 1) ? TestCase::QUICK : TestCase::TAKES_FOREVER);
105 // MCS 2 TB size of 528 bits BLER 0.11 SINR -5.51
106 AddTestCase (new LenaDataPhyErrorModelTestCase (2, 1800, 0.11, 26,
107 Seconds (0.04), rngRun),
108 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
109 // MCS 2 TB size of 1088 bits BLER 0.02 SINR -5.51
110 AddTestCase (new LenaDataPhyErrorModelTestCase (1, 1800, 0.02, 33,
111 Seconds (0.04), rngRun),
112 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
113 // MCS 12 TB size of 4800 bits BLER 0.3 SINR 4.43
114 AddTestCase (new LenaDataPhyErrorModelTestCase (1, 600, 0.3, 38,
115 Seconds (0.04), rngRun),
116 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
117 // MCS 12 TB size of 1632 bits BLER 0.55 SINR 4.43
118 AddTestCase (new LenaDataPhyErrorModelTestCase (3, 600, 0.55, 40,
119 Seconds (0.04), rngRun),
120 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
121 // MCS 16 TB size of 7272 bits (3648 x 3584) BLER 0.14 SINR 8.48
122 // BLER 0.14 = 1 - ((1-0.075)*(1-0.075))
123 AddTestCase (new LenaDataPhyErrorModelTestCase (1, 470, 0.14, 29,
124 Seconds (0.04), rngRun),
125 (rngRun == 1) ? TestCase::EXTENSIVE : TestCase::TAKES_FOREVER);
126
127 }
128
129}
130
132
133std::string
134LenaDataPhyErrorModelTestCase::BuildNameString (uint16_t nUser, uint16_t dist, uint32_t rngRun)
135{
136 std::ostringstream oss;
137 oss << "DataPhyErrorModel " << nUser << " UEs, distance " << dist << " m, RngRun " << rngRun;
138 return oss.str ();
139}
140
142 uint16_t nUser, uint16_t dist, double blerRef,
143 uint16_t toleranceRxPackets, Time statsStartTime, uint32_t rngRun)
144 : TestCase (BuildNameString (nUser, dist, rngRun)),
145 m_nUser (nUser),
146 m_dist (dist),
147 m_blerRef (blerRef),
148 m_toleranceRxPackets (toleranceRxPackets),
149 m_statsStartTime (statsStartTime),
150 m_rngRun (rngRun)
151{
152}
153
155{
156}
157
158void
160{
161
162 double ber = 0.03;
163 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (ber));
164 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010));
165 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue (false));
166 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue (true));
167 Config::SetDefault ("ns3::RrFfMacScheduler::HarqEnabled", BooleanValue (false));
169
170 //Disable Uplink Power Control
171 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (false));
172
173 /*
174 * Initialize Simulation Scenario: 1 eNB and m_nUser UEs
175 */
176
177 int64_t stream = 1;
178 Ptr<LteHelper> lena = CreateObject<LteHelper> ();
179
180 // Create Nodes: eNodeB and UE
181 NodeContainer enbNodes;
182 NodeContainer ueNodes;
183 enbNodes.Create (1);
184 ueNodes.Create (m_nUser);
185
186 // Install Mobility Model
188 mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
189 mobility.Install (enbNodes);
190 BuildingsHelper::Install (enbNodes);
191 mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
192 mobility.Install (ueNodes);
193 BuildingsHelper::Install (ueNodes);
194
195 // remove random shadowing component
196 lena->SetAttribute ("PathlossModel", StringValue ("ns3::HybridBuildingsPropagationLossModel"));
197 lena->SetPathlossModelAttribute ("ShadowSigmaOutdoor", DoubleValue (0.0));
198 lena->SetPathlossModelAttribute ("ShadowSigmaIndoor", DoubleValue (0.0));
199 lena->SetPathlossModelAttribute ("ShadowSigmaExtWalls", DoubleValue (0.0));
200
201 // Create Devices and install them in the Nodes (eNB and UE)
202 NetDeviceContainer enbDevs;
203 NetDeviceContainer ueDevs;
204 lena->SetSchedulerType ("ns3::RrFfMacScheduler");
205 lena->SetSchedulerAttribute ("UlCqiFilter", EnumValue (FfMacScheduler::PUSCH_UL_CQI));
206
207 enbDevs = lena->InstallEnbDevice (enbNodes);
208 stream += lena->AssignStreams (enbDevs, stream);
209 ueDevs = lena->InstallUeDevice (ueNodes);
210 stream += lena->AssignStreams (ueDevs, stream);
211
212 // Attach a UE to a eNB
213 lena->Attach (ueDevs, enbDevs.Get (0));
214
215 // Activate an EPS bearer
216 enum EpsBearer::Qci q = EpsBearer::GBR_CONV_VOICE;
217 EpsBearer bearer (q);
218 lena->ActivateDataRadioBearer (ueDevs, bearer);
219
220
221 Ptr<LteEnbNetDevice> lteEnbDev = enbDevs.Get (0)->GetObject<LteEnbNetDevice> ();
222 Ptr<LteEnbPhy> enbPhy = lteEnbDev->GetPhy ();
223 enbPhy->SetAttribute ("TxPower", DoubleValue (43.0));
224 enbPhy->SetAttribute ("NoiseFigure", DoubleValue (5.0));
225 // place the HeNB over the default rooftop level (20 mt.)
226 Ptr<MobilityModel> mm = enbNodes.Get (0)->GetObject<MobilityModel> ();
227 mm->SetPosition (Vector (0.0, 0.0, 30.0));
228
229 // Set UEs' position and power
230 for (int i = 0; i < m_nUser; i++)
231 {
232 Ptr<MobilityModel> mm1 = ueNodes.Get (i)->GetObject<MobilityModel> ();
233 mm1->SetPosition (Vector (m_dist, 0.0, 1.0));
234 Ptr<LteUeNetDevice> lteUeDev = ueDevs.Get (i)->GetObject<LteUeNetDevice> ();
235 Ptr<LteUePhy> uePhy = lteUeDev->GetPhy ();
236 uePhy->SetAttribute ("TxPower", DoubleValue (23.0));
237 uePhy->SetAttribute ("NoiseFigure", DoubleValue (9.0));
238 }
239
240 Time statsDuration = Seconds (1.0);
241 Simulator::Stop (m_statsStartTime + statsDuration - Seconds (0.0001));
242
243 lena->EnableRlcTraces ();
245 rlcStats->SetAttribute ("StartTime", TimeValue (m_statsStartTime));
246 rlcStats->SetAttribute ("EpochDuration", TimeValue (statsDuration));
247
248 Simulator::Run ();
249
250 NS_LOG_INFO ("\tTest downlink data shared channels (PDSCH)");
251 NS_LOG_INFO ("Test with " << m_nUser << " user(s) at distance " << m_dist << " expected BLER " << m_blerRef);
252 for (int i = 0; i < m_nUser; i++)
253 {
254 // get the imsi
255 uint64_t imsi = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetImsi ();
256 uint8_t lcId = 3;
257
258 double dlRxPackets = rlcStats->GetDlRxPackets (imsi, lcId);
259 double dlTxPackets = rlcStats->GetDlTxPackets (imsi, lcId);
260 [[maybe_unused]] double dlBler = 1.0 - (dlRxPackets/dlTxPackets);
261 double expectedDlRxPackets = dlTxPackets -dlTxPackets*m_blerRef;
262 NS_LOG_INFO ("\tUser " << i << " imsi " << imsi << " DOWNLINK"
263 << " pkts rx " << dlRxPackets << " tx " << dlTxPackets
264 << " BLER " << dlBler << " Err " << std::fabs (m_blerRef - dlBler)
265 << " expected rx " << expectedDlRxPackets
266 << " difference " << std::abs (expectedDlRxPackets - dlRxPackets)
267 << " tolerance " << m_toleranceRxPackets);
268
269 // sanity check for whether the tx packets reported by the stats are correct
270 // we expect one packet per TTI
271 double expectedDlTxPackets = static_cast<double> (statsDuration.GetMilliSeconds ());
272 NS_TEST_ASSERT_MSG_EQ_TOL (dlTxPackets, expectedDlTxPackets, expectedDlTxPackets * 0.005,
273 " too different DL TX packets reported");
274
275 // this is the main test condition: check that the RX packets are within the expected range
276 NS_TEST_ASSERT_MSG_EQ_TOL (dlRxPackets, expectedDlRxPackets, m_toleranceRxPackets,
277 " too different DL RX packets reported");
278 }
279
280
281 Simulator::Destroy ();
282}
283
284
285
286
287std::string
288LenaDlCtrlPhyErrorModelTestCase::BuildNameString (uint16_t nEnb, uint16_t dist, uint32_t rngRun)
289{
290 std::ostringstream oss;
291 oss << "DlCtrlPhyErrorModel " << nEnb << " eNBs, distance " << dist << " m, RngRun " << rngRun;
292 return oss.str ();
293}
294
295
297 uint16_t nEnb, uint16_t dist, double blerRef,
298 uint16_t toleranceRxPackets, Time statsStartTime, uint32_t rngRun)
299 : TestCase (BuildNameString (nEnb, dist, rngRun)),
300 m_nEnb (nEnb),
301 m_dist (dist),
302 m_blerRef (blerRef),
303 m_toleranceRxPackets (toleranceRxPackets),
304 m_statsStartTime (statsStartTime),
305 m_rngRun (rngRun)
306{
307}
308
310{
311}
312
313void
315{
316
317 double ber = 0.03;
318 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (ber));
319 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010));
320 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue (true));
321 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue (false));
322 Config::SetDefault ("ns3::RrFfMacScheduler::HarqEnabled", BooleanValue (false));
324
325 Config::SetDefault ("ns3::RadioBearerStatsCalculator::DlRlcOutputFilename", StringValue (CreateTempDirFilename ("DlRlcStats.txt")));
326 Config::SetDefault ("ns3::RadioBearerStatsCalculator::UlRlcOutputFilename", StringValue (CreateTempDirFilename ("UlRlcStats.txt")));
327
328 //Disable Uplink Power Control
329 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (false));
330
331 /*
332 * Initialize Simulation Scenario: 1 eNB and m_nUser UEs
333 */
334
335 int64_t stream = 1;
336 Ptr<LteHelper> lena = CreateObject<LteHelper> ();
337
338 // Create Nodes: eNodeB and UE
339 NodeContainer enbNodes;
340 NodeContainer ueNodes;
341 enbNodes.Create (m_nEnb);
342 ueNodes.Create (1);
343
344 // Install Mobility Model
346 mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
347 mobility.Install (enbNodes);
348 BuildingsHelper::Install (enbNodes);
349 mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel");
350 mobility.Install (ueNodes);
351 BuildingsHelper::Install (ueNodes);
352
353 // remove random shadowing component
354 lena->SetAttribute ("PathlossModel", StringValue ("ns3::HybridBuildingsPropagationLossModel"));
355 lena->SetPathlossModelAttribute ("ShadowSigmaOutdoor", DoubleValue (0.0));
356 lena->SetPathlossModelAttribute ("ShadowSigmaIndoor", DoubleValue (0.0));
357 lena->SetPathlossModelAttribute ("ShadowSigmaExtWalls", DoubleValue (0.0));
358
359 // Create Devices and install them in the Nodes (eNB and UE)
360 NetDeviceContainer enbDevs;
361 NetDeviceContainer ueDevs;
362 lena->SetSchedulerType ("ns3::RrFfMacScheduler");
363 lena->SetSchedulerAttribute ("UlCqiFilter", EnumValue (FfMacScheduler::PUSCH_UL_CQI));
364
365 enbDevs = lena->InstallEnbDevice (enbNodes);
366 stream += lena->AssignStreams (enbDevs, stream);
367 ueDevs = lena->InstallUeDevice (ueNodes);
368 stream += lena->AssignStreams (ueDevs, stream);
369
370 // Attach a UE to one eNB (the others are interfering ones)
371 lena->Attach (ueDevs, enbDevs.Get (0));
372
373 // Activate an EPS bearer
374 enum EpsBearer::Qci q = EpsBearer::GBR_CONV_VOICE;
375 EpsBearer bearer (q);
376 lena->ActivateDataRadioBearer (ueDevs, bearer);
377
378 // Set UEs' position and power
379 for (int i = 0; i < m_nEnb; i++)
380 {
381 // place the HeNB over the default rooftop level (20 mt.)
382 Ptr<MobilityModel> mm = enbNodes.Get (i)->GetObject<MobilityModel> ();
383 mm->SetPosition (Vector (0.0, 0.0, 30.0));
384 Ptr<LteEnbNetDevice> lteEnbDev = enbDevs.Get (i)->GetObject<LteEnbNetDevice> ();
385 Ptr<LteEnbPhy> enbPhy = lteEnbDev->GetPhy ();
386 enbPhy->SetAttribute ("TxPower", DoubleValue (43.0));
387 enbPhy->SetAttribute ("NoiseFigure", DoubleValue (5.0));
388 }
389
390 // Set UEs' position and power
391 Ptr<MobilityModel> mm = ueNodes.Get (0)->GetObject<MobilityModel> ();
392 mm->SetPosition (Vector (m_dist, 0.0, 1.0));
393 Ptr<LteUeNetDevice> lteUeDev = ueDevs.Get (0)->GetObject<LteUeNetDevice> ();
394 Ptr<LteUePhy> uePhy = lteUeDev->GetPhy ();
395 uePhy->SetAttribute ("TxPower", DoubleValue (23.0));
396 uePhy->SetAttribute ("NoiseFigure", DoubleValue (9.0));
397
398 Time statsDuration = Seconds (1.0);
399 Simulator::Stop (m_statsStartTime + statsDuration - Seconds (0.0001));
400
401 lena->EnableRlcTraces ();
403 rlcStats->SetAttribute ("StartTime", TimeValue (m_statsStartTime));
404 rlcStats->SetAttribute ("EpochDuration", TimeValue (statsDuration));
405
406 Simulator::Run ();
407
408 NS_LOG_INFO ("\tTest downlink control channels (PCFICH+PDCCH)");
409 NS_LOG_INFO ("Test with " << m_nEnb << " eNB(s) at distance " << m_dist << " expected BLER " << m_blerRef);
410 int nUser = 1;
411 for (int i = 0; i < nUser; i++)
412 {
413 // get the imsi
414 uint64_t imsi = ueDevs.Get (i)->GetObject<LteUeNetDevice> ()->GetImsi ();
415 uint8_t lcId = 3;
416 double dlRxPackets = rlcStats->GetDlRxPackets (imsi, lcId);
417 double dlTxPackets = rlcStats->GetDlTxPackets (imsi, lcId);
418 [[maybe_unused]] double dlBler = 1.0 - (dlRxPackets/dlTxPackets);
419 double expectedDlRxPackets = dlTxPackets -dlTxPackets*m_blerRef;
420 NS_LOG_INFO ("\tUser " << i << " imsi " << imsi << " DOWNLINK"
421 << " pkts rx " << dlRxPackets << " tx " << dlTxPackets
422 << " BLER " << dlBler << " Err " << std::fabs (m_blerRef - dlBler)
423 << " expected rx " << expectedDlRxPackets
424 << " difference " << std::abs (expectedDlRxPackets - dlRxPackets)
425 << " tolerance " << m_toleranceRxPackets);
426
427 // sanity check for whether the tx packets reported by the stats are correct
428 // we expect one packet per TTI
429 double expectedDlTxPackets = static_cast<double> (statsDuration.GetMilliSeconds ());
430 NS_TEST_ASSERT_MSG_EQ_TOL (dlTxPackets, expectedDlTxPackets, expectedDlTxPackets * 0.005,
431 " too different DL TX packets reported");
432
433 // this is the main test condition: check that the RX packets are within the expected range
434 NS_TEST_ASSERT_MSG_EQ_TOL (dlRxPackets, expectedDlRxPackets, m_toleranceRxPackets,
435 "too different DL RX packets reported");
436
437 }
438
439 Simulator::Destroy ();
440}
This system test program creates different test cases with a single eNB and several UEs,...
LenaDataPhyErrorModelTestCase(uint16_t nUser, uint16_t dist, double blerRef, uint16_t toleranceRxPackets, Time statsStartTime, uint32_t rngRun)
Constructor.
static std::string BuildNameString(uint16_t nUser, uint16_t dist, uint32_t rngRun)
Builds the test name string based on provided parameter values.
virtual void DoRun(void)
Implementation to actually run this TestCase.
uint16_t m_nUser
number of UE nodes
double m_dist
the distance between nodes
uint16_t m_toleranceRxPackets
receive packet tolerance loss
Time m_statsStartTime
Extra time in the beginning of simulation to allow RRC connection establishment + SRS.
Lena Dl Ctrl Phy Error Model Test Case.
virtual void DoRun(void)
Implementation to actually run this TestCase.
LenaDlCtrlPhyErrorModelTestCase(uint16_t nEnb, uint16_t dist, double blerRef, uint16_t toleranceRxPackets, Time statsStartTime, uint32_t rngRun)
Constructor.
uint16_t m_nEnb
the number of ENB nodes
static std::string BuildNameString(uint16_t nUser, uint16_t dist, uint32_t rngRun)
Build name string.
Time m_statsStartTime
Extra time in the beginning of simulation to allow RRC connection establishment + SRS.
double m_dist
the distance between nodes
uint16_t m_toleranceRxPackets
receive packet tolerance loss
Lena Test Phy Error Model Suite.
AttributeValue implementation for Boolean.
Definition: boolean.h:37
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Definition: double.h:41
Hold variables of type enum.
Definition: enum.h:55
This class contains the specification of EPS Bearers.
Definition: eps-bearer.h:92
Qci
QoS Class Indicator.
Definition: eps-bearer.h:107
The eNodeB device implementation.
Ptr< LteEnbPhy > GetPhy(void) const
void SetSchedulerAttribute(std::string n, const AttributeValue &v)
Set an attribute for the scheduler to be created.
Definition: lte-helper.cc:293
NetDeviceContainer InstallEnbDevice(NodeContainer c)
Create a set of eNodeB devices.
Definition: lte-helper.cc:474
Ptr< RadioBearerStatsCalculator > GetRlcStats(void)
Definition: lte-helper.cc:1572
void SetSchedulerType(std::string type)
Set the type of scheduler to be used by eNodeB devices.
Definition: lte-helper.cc:279
void Attach(NetDeviceContainer ueDevices)
Enables automatic attachment of a set of UE devices to a suitable cell using Idle mode initial cell s...
Definition: lte-helper.cc:959
void SetPathlossModelAttribute(std::string n, const AttributeValue &v)
Set an attribute for the path loss models to be created.
Definition: lte-helper.cc:393
void EnableRlcTraces(void)
Enable trace sinks for RLC layer.
Definition: lte-helper.cc:1435
void ActivateDataRadioBearer(NetDeviceContainer ueDevices, EpsBearer bearer)
Activate a Data Radio Bearer on a given UE devices (for LTE-only simulation).
Definition: lte-helper.cc:1313
NetDeviceContainer InstallUeDevice(NodeContainer c)
Create a set of UE devices.
Definition: lte-helper.cc:489
int64_t AssignStreams(NetDeviceContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used.
Definition: lte-helper.cc:1443
The LteUeNetDevice class implements the UE net device.
Helper class used to assign positions and mobility models to nodes.
Keep track of the current position and velocity of an object.
void SetPosition(const Vector &position)
holds a vector of ns3::NetDevice pointers
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
void SetAttribute(std::string name, const AttributeValue &value)
Set a single attribute, raising fatal errors if unsuccessful.
Definition: object-base.cc:256
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Definition: object.h:470
Hold variables of type string.
Definition: string.h:41
encapsulates test code
Definition: test.h:994
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
Definition: test.cc:299
std::string CreateTempDirFilename(std::string filename)
Construct the full path to a file in a temporary directory.
Definition: test.cc:430
A suite of tests to run.
Definition: test.h:1188
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:103
int64_t GetMilliSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
Definition: nstime.h:383
AttributeValue implementation for Time.
Definition: nstime.h:1308
Hold an unsigned integer type.
Definition: uinteger.h:44
void SetGlobal(std::string name, const AttributeValue &value)
Definition: config.cc:891
void SetDefault(std::string name, const AttributeValue &value)
Definition: config.cc:849
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:205
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition: log.h:281
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
Definition: test.h:323
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition: nstime.h:1244
static LenaTestPhyErrorModelSuite lenaTestPhyErrorModelSuite
Every class exported by the ns3 library is enclosed in the ns3 namespace.
mobility
Definition: third.py:107