5G-LENA  nr-v3.0-25-g90be5d1
The 5G/NR module for the ns-3 simulator
cttc-nr-cc-bwp-demo.cc File Reference

Creates a NR TDD deployment with a configurable number of sites, UEs, downlink and uplink flows. More...

#include "ns3/antenna-module.h"
#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/ideal-beamforming-algorithm.h"
#include "ns3/internet-apps-module.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/log.h"
#include "ns3/nr-helper.h"
#include "ns3/nr-mac-scheduler-tdma-rr.h"
#include "ns3/nr-module.h"
#include "ns3/nr-point-to-point-epc-helper.h"
#include "ns3/point-to-point-helper.h"
#include "ns3/point-to-point-module.h"
+ Include dependency graph for cttc-nr-cc-bwp-demo.cc:

Go to the source code of this file.

Detailed Description

Creates a NR TDD deployment with a configurable number of sites, UEs, downlink and uplink flows.

This example describes how to setup a simulation using the 3GPP channel model from TR 38.901. This example consists of configurable number of NR base stations (gNBs) with an also configurable number of UEs attached to each gNB.

In this example, the network operates in TDD in a given band. This band is split in a number of Component Carriers (CC). There are two methods to do this separation: automatic or manual. The automatic way divides the bandwidth in a given number of equally-sized contiguous CCs. In the example, the number of contiguous CCs is 4, but can be changed. In the manual way, the simulator user is free to create CCs and bandwidth parts (BWPs) on their way. The helper will take care of validating the customized spectrum allocation. The example provides 2 CCs, one with 2 BWPs and another one with one single BWP occupying the whole CC bandwidth.

By default, the example uses the non-automatic spectrum division. The number of gNBs and UEs is 1. The UE may generate 3 different flows in downlink and other 3 flows in uplink. Each directional flow belongs to a different traffic pattern, which is map to a unique BWP in the configuration, demonstrating that carrier aggregation can be done in our module just by multiplexing flows on different CCs.

We provide a number of simulation parameters that can be configured in the command line, such as the number of UEs per gNB or traffic flow directions. Please have a look at the possible parameters to know what you can configure through the command line.

The example will print on-screen the end-to-end result of one (or two) flows, With the default configuration, the example will create one DL flow per UE. The example will print on-screen the end-to-end result of each flow, as well as writing them on a file.

$ ./ns3 run "cttc-nr-cc-bwp-demo --PrintHelp"

Definition in file cttc-nr-cc-bwp-demo.cc.