In general, 5G LENA is considered as the GPLv2 new radio network simulator and that is designed as the pluggable module towards the network simulator 3.
The simulator is considered as the natural evolution of LENA, enhancement of mmWave module and the LTE and EPC network simulator. Following that, we have highlighted some sample simulation code based on LENA.
- mmWave node configuration
Ptr mmWaveObj = CreateObject ();
mmWaveObj->Initialize();
NetDeviceContainer enbNetDev = mmWaveObj->InstallEnbDevice (AccessPoint);
NetDeviceContainer ueNetDev = mmWaveObj->InstallUeDevice (IoTNodes);
mmWaveObj->AttachToClosestEnb (ueNetDev, enbNetDev);
mmWaveObj->EnableTraces();
- Node creation
NodeContainer IoTNodes;
NodeContainer BlockchainNode;
NodeContainer CloudServer;
NodeContainer AccessPoint;
NodeContainer EdgeServers;
IoTNodes.Create (numNodes);
BlockchainNode.Create (1);
CloudServer.Create (1);
AccessPoint.Create (2);
EdgeServers.Create (2);
- Include header file
#include "ns3/internet-module.h"
#include "ns3/gnuplot.h"
#include "ns3/mac-gplot.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/yans-wifi-phy.h"
#include "ns3/netanim-module.h"
#include
#include "ns3/flow-monitor-module.h"
#include
#include "ns3/ipv6-static-routing-helper.h"
#include "ns3/ipv6-routing-table-entry.h"
#include "ns3/mmwave-helper.h"
#include "ns3/iot-module.h"
#include "ns3/applications-module.h"
Now, let’s come to know about the implementation of the simulation code through the utilization of LENA over the execution of the below mentioned commands.
cd /home/research/ns-allinone-3.26/ns-3.26
sudo ./waf --run LENASimulation --vis
Consequently, the outcome of implementing the simulation code based on LENA is demonstrated below.
Additionally, the researchers can ping us and acquire more research assistance from our experts!!!