A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lena-distributed-ffr.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014 Piotr Gawlowicz
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
18 *
19 */
20
21#include "ns3/applications-module.h"
22#include "ns3/config-store.h"
23#include "ns3/core-module.h"
24#include "ns3/internet-module.h"
25#include "ns3/log.h"
26#include "ns3/lte-module.h"
27#include "ns3/mobility-module.h"
28#include "ns3/network-module.h"
29#include "ns3/point-to-point-epc-helper.h"
30#include "ns3/point-to-point-module.h"
31#include "ns3/spectrum-module.h"
32#include <ns3/buildings-helper.h>
33
34using namespace ns3;
35
36NS_LOG_COMPONENT_DEFINE("LenaDistributedFrequencyReuse");
37
38void
39PrintGnuplottableUeListToFile(std::string filename)
40{
41 std::ofstream outFile;
42 outFile.open(filename, std::ios_base::out | std::ios_base::trunc);
43 if (!outFile.is_open())
44 {
45 NS_LOG_ERROR("Can't open file " << filename);
46 return;
47 }
48 for (NodeList::Iterator it = NodeList::Begin(); it != NodeList::End(); ++it)
49 {
50 Ptr<Node> node = *it;
51 int nDevs = node->GetNDevices();
52 for (int j = 0; j < nDevs; j++)
53 {
54 Ptr<LteUeNetDevice> uedev = node->GetDevice(j)->GetObject<LteUeNetDevice>();
55 if (uedev)
56 {
57 Vector pos = node->GetObject<MobilityModel>()->GetPosition();
58 outFile << "set label \"" << uedev->GetImsi() << "\" at " << pos.x << "," << pos.y
59 << " left font \"Helvetica,4\" textcolor rgb \"grey\" front point pt 1 ps "
60 "0.3 lc rgb \"grey\" offset 0,0"
61 << std::endl;
62 }
63 }
64 }
65}
66
67void
68PrintGnuplottableEnbListToFile(std::string filename)
69{
70 std::ofstream outFile;
71 outFile.open(filename, std::ios_base::out | std::ios_base::trunc);
72 if (!outFile.is_open())
73 {
74 NS_LOG_ERROR("Can't open file " << filename);
75 return;
76 }
77 for (NodeList::Iterator it = NodeList::Begin(); it != NodeList::End(); ++it)
78 {
79 Ptr<Node> node = *it;
80 int nDevs = node->GetNDevices();
81 for (int j = 0; j < nDevs; j++)
82 {
83 Ptr<LteEnbNetDevice> enbdev = node->GetDevice(j)->GetObject<LteEnbNetDevice>();
84 if (enbdev)
85 {
86 Vector pos = node->GetObject<MobilityModel>()->GetPosition();
87 outFile << "set label \"" << enbdev->GetCellId() << "\" at " << pos.x << ","
88 << pos.y
89 << " left font \"Helvetica,4\" textcolor rgb \"white\" front point pt 2 "
90 "ps 0.3 lc rgb \"white\" offset 0,0"
91 << std::endl;
92 }
93 }
94 }
95}
96
97int
98main(int argc, char* argv[])
99{
100 Config::SetDefault("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue(true));
101 Config::SetDefault("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue(true));
102 Config::SetDefault("ns3::LteHelper::UseIdealRrc", BooleanValue(true));
103 Config::SetDefault("ns3::LteHelper::UsePdschForCqiGeneration", BooleanValue(true));
104
105 // Uplink Power Control
106 Config::SetDefault("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue(true));
107 Config::SetDefault("ns3::LteUePowerControl::ClosedLoop", BooleanValue(true));
108 Config::SetDefault("ns3::LteUePowerControl::AccumulationEnabled", BooleanValue(false));
109
110 uint32_t runId = 3;
111 uint16_t numberOfRandomUes = 0;
112 double simTime = 5.000;
113 bool generateSpectrumTrace = false;
114 bool generateRem = false;
115 int32_t remRbId = -1;
116 uint16_t bandwidth = 25;
117 double distance = 1000;
118 Box macroUeBox =
119 Box(-distance * 0.5, distance * 1.5, -distance * 0.5, distance * 1.5, 1.5, 1.5);
120
121 // Command line arguments
122 CommandLine cmd(__FILE__);
123 cmd.AddValue("numberOfUes", "Number of UEs", numberOfRandomUes);
124 cmd.AddValue("simTime", "Total duration of the simulation (in seconds)", simTime);
125 cmd.AddValue("generateSpectrumTrace",
126 "if true, will generate a Spectrum Analyzer trace",
127 generateSpectrumTrace);
128 cmd.AddValue("generateRem",
129 "if true, will generate a REM and then abort the simulation",
130 generateRem);
131 cmd.AddValue("remRbId",
132 "Resource block Id, for which REM will be generated,"
133 "default value is -1, what means REM will be averaged from all RBs",
134 remRbId);
135 cmd.AddValue("runId", "runId", runId);
136 cmd.Parse(argc, argv);
137
140
141 Ptr<LteHelper> lteHelper = CreateObject<LteHelper>();
142 Ptr<PointToPointEpcHelper> epcHelper = CreateObject<PointToPointEpcHelper>();
143 lteHelper->SetEpcHelper(epcHelper);
144 lteHelper->SetHandoverAlgorithmType("ns3::NoOpHandoverAlgorithm"); // disable automatic handover
145
146 Ptr<Node> pgw = epcHelper->GetPgwNode();
147
148 // Create a single RemoteHost
149 NodeContainer remoteHostContainer;
150 remoteHostContainer.Create(1);
151 Ptr<Node> remoteHost = remoteHostContainer.Get(0);
153 internet.Install(remoteHostContainer);
154
155 // Create the Internet
157 p2ph.SetDeviceAttribute("DataRate", DataRateValue(DataRate("100Gb/s")));
158 p2ph.SetDeviceAttribute("Mtu", UintegerValue(1500));
159 p2ph.SetChannelAttribute("Delay", TimeValue(Seconds(0.010)));
160 NetDeviceContainer internetDevices = p2ph.Install(pgw, remoteHost);
161 Ipv4AddressHelper ipv4h;
162 ipv4h.SetBase("1.0.0.0", "255.0.0.0");
163 Ipv4InterfaceContainer internetIpIfaces = ipv4h.Assign(internetDevices);
164 Ipv4Address remoteHostAddr = internetIpIfaces.GetAddress(1);
165
166 // Routing of the Internet Host (towards the LTE network)
167 Ipv4StaticRoutingHelper ipv4RoutingHelper;
168 Ptr<Ipv4StaticRouting> remoteHostStaticRouting =
169 ipv4RoutingHelper.GetStaticRouting(remoteHost->GetObject<Ipv4>());
170 // interface 0 is localhost, 1 is the p2p device
171 remoteHostStaticRouting->AddNetworkRouteTo(Ipv4Address("7.0.0.0"), Ipv4Mask("255.0.0.0"), 1);
172
173 // Create Nodes: eNodeB and UE
174 NodeContainer enbNodes;
175 NodeContainer randomUeNodes;
176 enbNodes.Create(3);
177 randomUeNodes.Create(numberOfRandomUes);
178
179 /* the topology is the following:
180 * eNB3
181 * / \
182 * / \
183 * / \
184 * / \
185 * distance / \ distance
186 * / UEs \
187 * / \
188 * / \
189 * / \
190 * / \
191 * eNB1-------------------------eNB2
192 * distance
193 */
194
195 // Install Mobility Model
196 Ptr<ListPositionAllocator> enbPositionAlloc = CreateObject<ListPositionAllocator>();
197 enbPositionAlloc->Add(Vector(0.0, 0.0, 0.0)); // eNB1
198 enbPositionAlloc->Add(Vector(distance, 0.0, 0.0)); // eNB2
199 enbPositionAlloc->Add(Vector(distance * 0.5, distance * 0.866, 0.0)); // eNB3
201 mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel");
202 mobility.SetPositionAllocator(enbPositionAlloc);
203 mobility.Install(enbNodes);
204
205 Ptr<RandomBoxPositionAllocator> randomUePositionAlloc =
206 CreateObject<RandomBoxPositionAllocator>();
207 Ptr<UniformRandomVariable> xVal = CreateObject<UniformRandomVariable>();
208 xVal->SetAttribute("Min", DoubleValue(macroUeBox.xMin));
209 xVal->SetAttribute("Max", DoubleValue(macroUeBox.xMax));
210 randomUePositionAlloc->SetAttribute("X", PointerValue(xVal));
211 Ptr<UniformRandomVariable> yVal = CreateObject<UniformRandomVariable>();
212 yVal->SetAttribute("Min", DoubleValue(macroUeBox.yMin));
213 yVal->SetAttribute("Max", DoubleValue(macroUeBox.yMax));
214 randomUePositionAlloc->SetAttribute("Y", PointerValue(yVal));
215 Ptr<UniformRandomVariable> zVal = CreateObject<UniformRandomVariable>();
216 zVal->SetAttribute("Min", DoubleValue(macroUeBox.zMin));
217 zVal->SetAttribute("Max", DoubleValue(macroUeBox.zMax));
218 randomUePositionAlloc->SetAttribute("Z", PointerValue(zVal));
219 mobility.SetPositionAllocator(randomUePositionAlloc);
220 mobility.Install(randomUeNodes);
221
222 // Create Devices and install them in the Nodes (eNB and UE)
223 NetDeviceContainer enbDevs;
224 NetDeviceContainer randomUeDevs;
225 lteHelper->SetSchedulerType("ns3::PfFfMacScheduler");
226 lteHelper->SetSchedulerAttribute("HarqEnabled", BooleanValue(true));
227
228 lteHelper->SetEnbDeviceAttribute("DlBandwidth", UintegerValue(bandwidth));
229 lteHelper->SetEnbDeviceAttribute("UlBandwidth", UintegerValue(bandwidth));
230
231 lteHelper->SetFfrAlgorithmType("ns3::LteFfrDistributedAlgorithm");
232 lteHelper->SetFfrAlgorithmAttribute("CalculationInterval", TimeValue(MilliSeconds(200)));
233 lteHelper->SetFfrAlgorithmAttribute("RsrpDifferenceThreshold", UintegerValue(5));
234 lteHelper->SetFfrAlgorithmAttribute("RsrqThreshold", UintegerValue(25));
235 lteHelper->SetFfrAlgorithmAttribute("EdgeRbNum", UintegerValue(6));
236 lteHelper->SetFfrAlgorithmAttribute("CenterPowerOffset",
238 lteHelper->SetFfrAlgorithmAttribute("EdgePowerOffset",
240
241 lteHelper->SetFfrAlgorithmAttribute("CenterAreaTpc", UintegerValue(0));
242 lteHelper->SetFfrAlgorithmAttribute("EdgeAreaTpc", UintegerValue(3));
243
244 // ns3::LteFfrDistributedAlgorithm works with Absolute Mode Uplink Power Control
245 Config::SetDefault("ns3::LteUePowerControl::AccumulationEnabled", BooleanValue(false));
246
247 enbDevs = lteHelper->InstallEnbDevice(enbNodes);
248 randomUeDevs = lteHelper->InstallUeDevice(randomUeNodes);
249
250 // Add X2 interface
251 lteHelper->AddX2Interface(enbNodes);
252
253 NodeContainer ueNodes;
254 ueNodes.Add(randomUeNodes);
255 NetDeviceContainer ueDevs;
256 ueDevs.Add(randomUeDevs);
257
258 // Install the IP stack on the UEs
259 internet.Install(ueNodes);
260 Ipv4InterfaceContainer ueIpIfaces;
261 ueIpIfaces = epcHelper->AssignUeIpv4Address(NetDeviceContainer(ueDevs));
262
263 // Attach a UE to a eNB
264 lteHelper->AttachToClosestEnb(ueDevs, enbDevs);
265
266 // Install and start applications on UEs and remote host
267 uint16_t dlPort = 10000;
268 uint16_t ulPort = 20000;
269
270 // randomize a bit start times to avoid simulation artifacts
271 // (e.g., buffer overflows due to packet transmissions happening
272 // exactly at the same time)
273 Ptr<UniformRandomVariable> startTimeSeconds = CreateObject<UniformRandomVariable>();
274 startTimeSeconds->SetAttribute("Min", DoubleValue(0));
275 startTimeSeconds->SetAttribute("Max", DoubleValue(0.010));
276
277 for (uint32_t u = 0; u < ueNodes.GetN(); ++u)
278 {
279 Ptr<Node> ue = ueNodes.Get(u);
280 // Set the default gateway for the UE
281 Ptr<Ipv4StaticRouting> ueStaticRouting =
282 ipv4RoutingHelper.GetStaticRouting(ue->GetObject<Ipv4>());
283 ueStaticRouting->SetDefaultRoute(epcHelper->GetUeDefaultGatewayAddress(), 1);
284
285 for (uint32_t b = 0; b < 1; ++b)
286 {
287 ++dlPort;
288 ++ulPort;
289
292
293 UdpClientHelper dlClientHelper(ueIpIfaces.GetAddress(u), dlPort);
294 dlClientHelper.SetAttribute("MaxPackets", UintegerValue(1000000));
295 dlClientHelper.SetAttribute("Interval", TimeValue(MilliSeconds(1.0)));
296 clientApps.Add(dlClientHelper.Install(remoteHost));
297 PacketSinkHelper dlPacketSinkHelper("ns3::UdpSocketFactory",
299 serverApps.Add(dlPacketSinkHelper.Install(ue));
300
301 UdpClientHelper ulClientHelper(remoteHostAddr, ulPort);
302 ulClientHelper.SetAttribute("MaxPackets", UintegerValue(1000000));
303 ulClientHelper.SetAttribute("Interval", TimeValue(MilliSeconds(1.0)));
304 clientApps.Add(ulClientHelper.Install(ue));
305 PacketSinkHelper ulPacketSinkHelper("ns3::UdpSocketFactory",
307 serverApps.Add(ulPacketSinkHelper.Install(remoteHost));
308
309 Ptr<EpcTft> tft = Create<EpcTft>();
311 dlpf.localPortStart = dlPort;
312 dlpf.localPortEnd = dlPort;
313 tft->Add(dlpf);
315 ulpf.remotePortStart = ulPort;
316 ulpf.remotePortEnd = ulPort;
317 tft->Add(ulpf);
319 lteHelper->ActivateDedicatedEpsBearer(ueDevs.Get(u), bearer, tft);
320
321 Time startTime = Seconds(startTimeSeconds->GetValue());
322 serverApps.Start(startTime);
323 clientApps.Start(startTime);
324 }
325 }
326
327 // Spectrum analyzer
328 NodeContainer spectrumAnalyzerNodes;
329 spectrumAnalyzerNodes.Create(1);
330 SpectrumAnalyzerHelper spectrumAnalyzerHelper;
331
332 if (generateSpectrumTrace)
333 {
334 Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator>();
335 // position of Spectrum Analyzer
336 positionAlloc->Add(Vector(0.0, 0.0, 0.0)); // eNB1
337 // positionAlloc->Add (Vector (distance, 0.0, 0.0)); // eNB2
338 // positionAlloc->Add (Vector (distance*0.5, distance*0.866, 0.0)); // eNB3
339
341 mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel");
342 mobility.SetPositionAllocator(positionAlloc);
343 mobility.Install(spectrumAnalyzerNodes);
344
345 Ptr<LteSpectrumPhy> enbDlSpectrumPhy = enbDevs.Get(0)
346 ->GetObject<LteEnbNetDevice>()
347 ->GetPhy()
348 ->GetDownlinkSpectrumPhy()
350 Ptr<SpectrumChannel> dlChannel = enbDlSpectrumPhy->GetChannel();
351
352 spectrumAnalyzerHelper.SetChannel(dlChannel);
354 spectrumAnalyzerHelper.SetRxSpectrumModel(sm);
355 spectrumAnalyzerHelper.SetPhyAttribute("Resolution", TimeValue(MicroSeconds(10)));
356 spectrumAnalyzerHelper.SetPhyAttribute("NoisePowerSpectralDensity",
357 DoubleValue(1e-15)); // -120 dBm/Hz
358 spectrumAnalyzerHelper.EnableAsciiAll("spectrum-analyzer-output");
359 spectrumAnalyzerHelper.Install(spectrumAnalyzerNodes);
360 }
361
363 if (generateRem)
364 {
367
368 remHelper = CreateObject<RadioEnvironmentMapHelper>();
369 Ptr<LteSpectrumPhy> enbDlSpectrumPhy = enbDevs.Get(0)
370 ->GetObject<LteEnbNetDevice>()
371 ->GetPhy()
372 ->GetDownlinkSpectrumPhy()
374 Ptr<SpectrumChannel> dlChannel = enbDlSpectrumPhy->GetChannel();
375 uint32_t dlChannelId = dlChannel->GetId();
376 NS_LOG_INFO("DL ChannelId: " << dlChannelId);
377 remHelper->SetAttribute("Channel", PointerValue(dlChannel));
378 remHelper->SetAttribute("OutputFile", StringValue("lena-distributed-ffr.rem"));
379 remHelper->SetAttribute("XMin", DoubleValue(macroUeBox.xMin));
380 remHelper->SetAttribute("XMax", DoubleValue(macroUeBox.xMax));
381 remHelper->SetAttribute("YMin", DoubleValue(macroUeBox.yMin));
382 remHelper->SetAttribute("YMax", DoubleValue(macroUeBox.yMax));
383 remHelper->SetAttribute("Z", DoubleValue(1.5));
384 remHelper->SetAttribute("XRes", UintegerValue(500));
385 remHelper->SetAttribute("YRes", UintegerValue(500));
386
387 if (remRbId >= 0)
388 {
389 remHelper->SetAttribute("UseDataChannel", BooleanValue(true));
390 remHelper->SetAttribute("RbId", IntegerValue(remRbId));
391 }
392
393 remHelper->Install();
394 // simulation will stop right after the REM has been generated
395 }
396 else
397 {
398 Simulator::Stop(Seconds(simTime));
399 }
400
403 return 0;
404}
holds a vector of ns3::Application pointers.
AttributeValue implementation for Boolean.
Definition: boolean.h:37
a 3d box
Definition: box.h:35
double yMax
The y coordinate of the top bound of the box.
Definition: box.h:116
double xMin
The x coordinate of the left bound of the box.
Definition: box.h:110
double yMin
The y coordinate of the bottom bound of the box.
Definition: box.h:114
double xMax
The x coordinate of the right bound of the box.
Definition: box.h:112
double zMin
The z coordinate of the down bound of the box.
Definition: box.h:118
double zMax
The z coordinate of the up bound of the box.
Definition: box.h:120
Parse command-line arguments.
Definition: command-line.h:232
Class for representing data rates.
Definition: data-rate.h:89
AttributeValue implementation for DataRate.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Definition: double.h:42
This class contains the specification of EPS Bearers.
Definition: eps-bearer.h:91
@ NGBR_VIDEO_TCP_DEFAULT
Non-GBR TCP-based Video (Buffered Streaming, e.g., www, e-mail...)
Definition: eps-bearer.h:126
an Inet address class
Hold a signed integer type.
Definition: integer.h:45
aggregate IP/TCP/UDP functionality to existing Nodes.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
void SetBase(Ipv4Address network, Ipv4Mask mask, Ipv4Address base="0.0.0.1")
Set the base network number, network mask and base address.
Ipv4InterfaceContainer Assign(const NetDeviceContainer &c)
Assign IP addresses to the net devices specified in the container based on the current network prefix...
Ipv4 addresses are stored in host order in this class.
Definition: ipv4-address.h:42
static Ipv4Address GetAny()
Access to the IPv4 forwarding table, interfaces, and configuration.
Definition: ipv4.h:79
holds a vector of std::pair of Ptr<Ipv4> and interface index.
Ipv4Address GetAddress(uint32_t i, uint32_t j=0) const
a class to represent an Ipv4 address mask
Definition: ipv4-address.h:257
Helper class that adds ns3::Ipv4StaticRouting objects.
Ptr< Ipv4StaticRouting > GetStaticRouting(Ptr< Ipv4 > ipv4) const
Try and find the static routing protocol as either the main routing protocol or in the list of routin...
The eNodeB device implementation.
The LteSpectrumPhy models the physical layer of LTE.
static Ptr< SpectrumModel > GetSpectrumModel(uint32_t earfcn, uint16_t bandwidth)
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.
holds a vector of ns3::NetDevice pointers
void Add(NetDeviceContainer other)
Append the contents of another NetDeviceContainer to the end of this container.
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.
uint32_t GetN() const
Get the number of Ptr<Node> stored in this container.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
void Add(const NodeContainer &nc)
Append the contents of another NodeContainer to the end of this container.
Ptr< Node > Get(uint32_t i) const
Get the Ptr<Node> stored in this container at a given index.
static Iterator Begin()
Definition: node-list.cc:237
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
Definition: node-list.h:44
static Iterator End()
Definition: node-list.cc:244
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
Definition: object.h:471
A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes.
Build a set of PointToPointNetDevice objects.
void SetDeviceAttribute(std::string name, const AttributeValue &value)
Set an attribute value to be propagated to each NetDevice created by the helper.
void SetChannelAttribute(std::string name, const AttributeValue &value)
Set an attribute value to be propagated to each Channel created by the helper.
NetDeviceContainer Install(NodeContainer c)
Hold objects of type Ptr<T>.
Definition: pointer.h:37
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
static void SetRun(uint64_t run)
Set the run number of simulation.
static void SetSeed(uint32_t seed)
Set the seed.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
Definition: simulator.cc:140
static void Run()
Run the simulation.
Definition: simulator.cc:176
static void Stop()
Tell the Simulator the calling event should be the last one executed.
Definition: simulator.cc:184
Class to allow the Spectrum Analysis.
NetDeviceContainer Install(NodeContainer c) const
void SetPhyAttribute(std::string name, const AttributeValue &v)
void SetChannel(Ptr< SpectrumChannel > channel)
Set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper.
void EnableAsciiAll(std::string prefix)
Enable ASCII output.
void SetRxSpectrumModel(Ptr< SpectrumModel > m)
Set the spectrum model used by the created SpectrumAnalyzer instances to represent incoming signals.
Hold variables of type string.
Definition: string.h:56
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
AttributeValue implementation for Time.
Definition: nstime.h:1423
Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit tim...
Hold an unsigned integer type.
Definition: uinteger.h:45
void SetDefault(std::string name, const AttributeValue &value)
Definition: config.cc:891
#define NS_LOG_ERROR(msg)
Use NS_LOG to output a message of level LOG_ERROR.
Definition: log.h:254
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition: log.h:275
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1360
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition: nstime.h:1336
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1348
void PrintGnuplottableEnbListToFile(std::string filename)
void PrintGnuplottableUeListToFile(std::string filename)
ns serverApps
Definition: first.py:48
ns clientApps
Definition: first.py:58
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns cmd
Definition: second.py:33
ns mobility
Definition: third.py:96
Implement the data structure representing a TrafficFlowTemplate Packet Filter.
Definition: epc-tft.h:71
uint16_t localPortEnd
end of the port number range of the UE
Definition: epc-tft.h:132
uint16_t remotePortEnd
end of the port number range of the remote host
Definition: epc-tft.h:130
uint16_t remotePortStart
start of the port number range of the remote host
Definition: epc-tft.h:129
uint16_t localPortStart
start of the port number range of the UE
Definition: epc-tft.h:131