5G-LENA nr-v3.3-81-g75c7590d
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
cttc-nr-traffic-ngmn-mixed.cc File Reference

A hegagonal topology example used to show how to configure different NGMN types of traffics or NGMN mixed scenario. More...

#include "ns3/applications-module.h"
#include "ns3/config-store-module.h"
#include "ns3/config-store.h"
#include "ns3/core-module.h"
#include "ns3/flow-monitor-module.h"
#include "ns3/internet-apps-module.h"
#include "ns3/internet-module.h"
#include "ns3/log.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/nr-module.h"
#include "ns3/point-to-point-module.h"
#include <ns3/antenna-module.h>
#include <ns3/nr-radio-environment-map-helper.h>
#include <ns3/ping-helper.h>
#include <ns3/rng-seed-manager.h>
#include <ns3/three-gpp-ftp-m1-helper.h>
#include <ns3/three-gpp-http-client.h>
#include <ns3/three-gpp-http-helper.h>
#include <ns3/three-gpp-http-server.h>
#include <ns3/three-gpp-http-variables.h>
#include <ns3/traffic-generator-ngmn-ftp-multi.h>
#include <ns3/traffic-generator-ngmn-gaming.h>
#include <ns3/traffic-generator-ngmn-video.h>
#include <ns3/traffic-generator-ngmn-voip.h>
#include <algorithm>
#include <iostream>
+ Include dependency graph for cttc-nr-traffic-ngmn-mixed.cc:

Go to the source code of this file.

Enumerations

enum  TrafficTypeConf {
  UDP_CBR , FTP_3GPP_M1 , NGMN_FTP , NGMN_VIDEO ,
  NGMN_HTTP , NGMN_GAMING , NGMN_VOIP , NGMN_MIXED
}
 

Functions

static std::ostream & operator<< (std::ostream &os, const TrafficTypeConf &item)
 operator << for TrafficTypeConf
 
static std::istream & operator>> (std::istream &is, TrafficTypeConf &item)
 
void Set5gLenaSimulatorParameters (HexagonalGridScenarioHelper gridScenario, std::string scenario, std::string radioNetwork, std::string operationMode, std::string direction, NodeContainer gnbSector1Container, NodeContainer gnbSector2Container, NodeContainer gnbSector3Container, NodeContainer ueSector1Container, NodeContainer ueSector2Container, NodeContainer ueSector3Container, Ptr< NrPointToPointEpcHelper > &baseNrEpcHelper, Ptr< NrHelper > &nrHelper, NetDeviceContainer &gnbSector1NetDev, NetDeviceContainer &gnbSector2NetDev, NetDeviceContainer &gnbSector3NetDev, NetDeviceContainer &ueSector1NetDev, NetDeviceContainer &ueSector2NetDev, NetDeviceContainer &ueSector3NetDev, bool uniformLambda)
 

Detailed Description

A hegagonal topology example used to show how to configure different NGMN types of traffics or NGMN mixed scenario.

The example consists of an hexagonal grid deployment consisting on a central site and a number of outer rings of sites around this central site. Each site is sectorized, meaning that a number of three antenna arrays or panels are deployed per gNB. These three antennas are pointing to 30º, 150º and 270º w.r.t. the horizontal axis. We allocate a band to each sector of a site, and the bands are contiguous in frequency. We provide a number of simulation parameters that can be configured in the command line.

Please have a look at the possible parameters to know what you can configure through the command line.

$ ./ns3 run "cttc-nr-traffic-ngmn-mixed --PrintHelp"

The example will print on-screen the end-to-end result of each flow, as well as writing them on a file.

Definition in file cttc-nr-traffic-ngmn-mixed.cc.

Enumeration Type Documentation

◆ TrafficTypeConf

enum TrafficTypeConf

Definition at line 580 of file cttc-nr-traffic-ngmn-mixed.cc.

Function Documentation

◆ operator<<()

static std::ostream & operator<< ( std::ostream &  os,
const TrafficTypeConf &  item 
)
inlinestatic

operator << for TrafficTypeConf

Parameters
osoutput stream
itemTrafficType to print
Returns
a copy of the output stream

Definition at line 598 of file cttc-nr-traffic-ngmn-mixed.cc.

◆ operator>>()

static std::istream & operator>> ( std::istream &  is,
TrafficTypeConf &  item 
)
inlinestatic

Definition at line 634 of file cttc-nr-traffic-ngmn-mixed.cc.

◆ Set5gLenaSimulatorParameters()

void Set5gLenaSimulatorParameters ( HexagonalGridScenarioHelper  gridScenario,
std::string  scenario,
std::string  radioNetwork,
std::string  operationMode,
std::string  direction,
NodeContainer  gnbSector1Container,
NodeContainer  gnbSector2Container,
NodeContainer  gnbSector3Container,
NodeContainer  ueSector1Container,
NodeContainer  ueSector2Container,
NodeContainer  ueSector3Container,
Ptr< NrPointToPointEpcHelper > &  baseNrEpcHelper,
Ptr< NrHelper > &  nrHelper,
NetDeviceContainer &  gnbSector1NetDev,
NetDeviceContainer &  gnbSector2NetDev,
NetDeviceContainer &  gnbSector3NetDev,
NetDeviceContainer &  ueSector1NetDev,
NetDeviceContainer &  ueSector2NetDev,
NetDeviceContainer &  ueSector3NetDev,
bool  uniformLambda 
)