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

Error model example comparison: TBS for all MCSs. More...

#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-module.h"
#include "ns3/nr-module.h"
#include "ns3/nr-point-to-point-epc-helper.h"
#include "ns3/point-to-point-helper.h"
+ Include dependency graph for cttc-error-model-comparison.cc:

Go to the source code of this file.

Detailed Description

Error model example comparison: TBS for all MCSs.

This example allows the user to compare the Transport Block Size that is obtained for each MCS index under different error models (NR and LTE) and different MCS Tables.

The NR error model can be set as "--errorModel=ns3::NrEesmCcT1", for HARQ-CC and MCS Table1, while "--errorModel=ns3::NrLteMiErrorModel" configures the LTE error model. For NR, you can choose between different types of error model, which use different tables and different methods to process the HARQ history, e.g., "--errorModel=ns3::NrEesmIrT1", for HARQ-IR and MCS Table2.

There is no deployment scenario configured, the example directly computes the TBS for all MCSs of the configured error model and MCS Table, assuming numerology 4 and 100 MHz of channel bandwidth.

This simulation prints the output to the terminal, showing for each MCS: 1) the TBS that fits in 1 OFDM symbol (whole bandwidth) and 2) the TBS that fits in 1 OFDM symbol and a single RB.

To run the simulation with the default configuration one shall run the following in the command line:

./ns3 run cttc-error-model-comparison

Definition in file cttc-error-model-comparison.cc.