5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
cttc-nr-mimo-demo.cc File Reference

An example that shows how to setup and use MIMO. More...

#include "mimo-sim-helpers/cttc-mimo-simple-db-helper.h"
#include "ns3/antenna-module.h"
#include "ns3/applications-module.h"
#include "ns3/basic-data-calculators.h"
#include "ns3/config-store-module.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/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/nr-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/stats-module.h"
#include "ns3/traffic-generator-helper.h"
#include <map>
+ Include dependency graph for cttc-nr-mimo-demo.cc:

Go to the source code of this file.

Functions

void CqiFeedbackTracedCallback (std::map< uint16_t, CqiFeedbackTraceStats > *stats, uint16_t rnti, uint8_t cqi, uint8_t mcs, uint8_t rank)
 

Detailed Description

An example that shows how to setup and use MIMO.

This example describes how to setup a simulation using MIMO. The scenario consists of a simple topology, in which there is only one gNB and one UE. An additional pair of gNB and UE can be enabled to simulate the interference (see enableInterfNode). Example creates one DL flow that goes through only BWP.

The example prints on-screen and into the file the end-to-end result of the flow. To see all the input parameters run:

$ ./ns3 run cttc-nr-mimo-demo -- --PrintHelp

MIMO is enabled by default. To disable it run:

  • $ ./ns3 run cttc-nr-mimo-demo -- --enableMimoFeedback=0

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

Function Documentation

◆ CqiFeedbackTracedCallback()

void CqiFeedbackTracedCallback ( std::map< uint16_t, CqiFeedbackTraceStats > *  stats,
uint16_t  rnti,
uint8_t  cqi,
uint8_t  mcs,
uint8_t  rank 
)

Definition at line 75 of file cttc-nr-mimo-demo.cc.