![]() |
5G-LENA nr-v3.3-120-gdac69c56
The 5G/NR module for the ns-3 simulator
|
Simple RAN. More...
#include "ns3/antenna-module.h"
#include "ns3/config-store.h"
#include "ns3/core-module.h"
#include "ns3/grid-scenario-helper.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/log.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/nr-eps-bearer-tag.h"
#include "ns3/nr-helper.h"
#include "ns3/nr-module.h"
#include "ns3/nr-point-to-point-epc-helper.h"
Go to the source code of this file.
Functions | |
void | ConnectPdcpRlcTraces () |
void | ConnectUlPdcpRlcTraces () |
void | RxPdcpPDU (std::string path, uint16_t rnti, uint8_t lcid, uint32_t bytes, uint64_t pdcpDelay) |
void | RxRlcPDU (std::string path, uint16_t rnti, uint8_t lcid, uint32_t bytes, uint64_t rlcDelay) |
static void | SendPacket (Ptr< NetDevice > device, Address &addr, uint32_t packetSize) |
Variables | |
static bool | g_rxPdcpCallbackCalled = false |
static bool | g_rxRxRlcPDUCallbackCalled = false |
Simple RAN.
This example describes how to setup a simulation using the 3GPP channel model from TR 38.901. This example consists of a simple topology of 1 UE and 1 gNb, and only NR RAN part is simulated. One Bandwidth part and one CC are defined. A packet is created and directly sent to gNb device by SendPacket function. Then several functions are connected to PDCP and RLC traces and the delay is printed.
Definition in file cttc-3gpp-channel-simple-ran.cc.
void ConnectPdcpRlcTraces | ( | ) |
Function that connects PDCP and RLC traces to the corresponding trace sources.
Definition at line 104 of file cttc-3gpp-channel-simple-ran.cc.
References RxPdcpPDU(), and RxRlcPDU().
void ConnectUlPdcpRlcTraces | ( | ) |
Function that connects UL PDCP and RLC traces to the corresponding trace sources.
Definition at line 117 of file cttc-3gpp-channel-simple-ran.cc.
References RxPdcpPDU(), and RxRlcPDU().
void RxPdcpPDU | ( | std::string | path, |
uint16_t | rnti, | ||
uint8_t | lcid, | ||
uint32_t | bytes, | ||
uint64_t | pdcpDelay | ||
) |
Function that prints out PDCP delay. This function is designed as a callback for PDCP trace source.
path | The path that matches the trace source |
rnti | RNTI of UE |
lcid | logical channel id |
bytes | PDCP PDU size in bytes |
pdcpDelay | PDCP delay |
Definition at line 73 of file cttc-3gpp-channel-simple-ran.cc.
Referenced by ConnectPdcpRlcTraces(), and ConnectUlPdcpRlcTraces().
void RxRlcPDU | ( | std::string | path, |
uint16_t | rnti, | ||
uint8_t | lcid, | ||
uint32_t | bytes, | ||
uint64_t | rlcDelay | ||
) |
Function that prints out RLC statistics, such as RNTI, lcId, RLC PDU size, delay. This function is designed as a callback for RLC trace source.
path | The path that matches the trace source |
rnti | RNTI of UE |
lcid | logical channel id |
bytes | RLC PDU size in bytes |
rlcDelay | RLC PDU delay |
Definition at line 90 of file cttc-3gpp-channel-simple-ran.cc.
Referenced by ConnectPdcpRlcTraces(), and ConnectUlPdcpRlcTraces().
|
static |
Function creates a single packet and directly calls the function send of a device to send the packet to the destination address.
device | Device that will send the packet to the destination address. |
addr | Destination address for a packet. |
packetSize | The packet size. |
Definition at line 52 of file cttc-3gpp-channel-simple-ran.cc.
|
static |
Definition at line 41 of file cttc-3gpp-channel-simple-ran.cc.
|
static |
Definition at line 42 of file cttc-3gpp-channel-simple-ran.cc.