Composition of NR nodes
5G Toolbox™ offers the
nrUE objects for
creating the 5G base station (gNB) and user equipment (UE) nodes, respectively, for network
simulation. These new radio (NR) nodes, as illustrated in this figure, contains protocol
stacks comprising the traffic, radio link control (RLC), medium access control (MAC), and
physical (PHY) layers. This topic presents the functionalities of different layers implemented
by the objects
The traffic manager contains a set of traffic pattern objects. The Communications Toolbox™ Wireless Network Simulation Library offers four kinds of application traffic pattern objects to model real-world data traffic:
networkTrafficOnOff— Generate a traffic pattern with two states: on and off.
networkTrafficFTP— Generate a file transfer protocol (FTP) application traffic pattern.
networkTrafficVoIP— Generate a voice over internet protocol (VoIP) application traffic pattern.
networkTrafficVideoConference— Generate a video conference application traffic pattern.
In addition to these traffic pattern objects, the Communications Toolbox Wireless Network Simulation Library supports full-buffer traffic. Full-buffer traffic means an unlimited amount of
queued data awaiting transmission. For more information about full-buffer traffic, see the
The RLC layers of the gNB and UE nodes operate in unacknowledged mode (UM). In UM, as depicted in this figure, a transmitting RLC entity handles the transmission, and a receiving entity manages the reception.
The transmitting RLC entity perform these operations.
Generate a header, upon receiving a service data unit (SDU) from the higher layer, and place the SDU in a transmit buffer.
Add the header to the SDU upon receiving a request from the MAC layer to transmit the protocol data unit (PDU).
If an SDU does not fit into the given resource grant, segment the SDU and modify the RLC header.
The receiving RLC entity, on the other hand, performs these operations, opposite the transmitting RLC entity.
If the PDU has a complete SDU, remove the header and deliver the PDU directly to the higher layer.
If the PDU does not contain a complete SDU, store the SDU in the reception buffer. Then, remove the RLC header and reassemble the SDUs.
The MAC layer of the UE and gNB nodes has these common functionalities.
Logical channel prioritisation — Determine the amount of data for different logical channels in a MAC PDU.
Multiplexing — Combine the MAC SDUs (RLC PDUs) from the prioritized logical channel.
Demultiplexing — Separates the MAC SDUs received from the PHY layer.
Hybrid automatic repeat request (HARQ) management — The MAC layer controls the HARQ operation within the PHY layer. For more information about HARQ management, see the Model 5G NR Transport Channels with HARQ example.
The MAC layer of the gNB node also includes a scheduler. The scheduler allocates
resources to UE nodes and decides how the gNB and UE nodes use uplink and downlink channels.
object function to configure a scheduler at a gNB. The scheduler supports three scheduling strategies:
Round-robin — Provides equal scheduling opportunities to all the UE nodes.
Best channel quality indicator (CQI) scheduler — Prioritizes the UE node with the best CQI.
Proportional-fair scheduler— Compromises between the round-robin and best CQI schedulers.
nrUE objects support
two types of physical layer processing — full PHY and abstract PHY. You can use the
PHYAbstractionMethod property of the
nrUE objects to
select the link-to-system mapping-based abstract PHY or full PHY processing. Note that all
the gNB and UE nodes must use the same PHY abstraction method.
Full PHY, as depicted in this figure, receives and processes the MAC PDU. Full PHY processing involves waveform generation and decoding.
At the transmitter, full PHY involves these operations.
Downlink(DL)/Uplink (UL) shared channel processing — Perform these steps:
Attach cyclic redundancy check (CRC) to the MAC PDU.
Segment code block.
Apply error correction coding.
Perform rate matching.
Modulation — Map information bits to symbols.
Precoding — Map multiple input data streams onto a set of transmit antennas.
Cyclic prefix (CP)-orthogonal frequency division multiplexing (OFDM) — Perform an inverse fast Fourier transform (FFT) operation on the information symbols, and insert a cyclic prefix. For more information about CP-OFDM, see
At the receiver, full PHY performs these operations.
CP-OFDM demodulation — Demodulate the OFDM modulated waveform by performing an FFT on the sampled received signal. For more information about CP-OFDM demodulation, see
Channel estimation — Estimate amplitude scaling factors and phase shifts from the CP-OFDM demodulated symbols. For more information about channel estimation, see
Equalization and decoding — Equalize the CP-OFDM demodulated symbols and decode the equalized symbols. For more information about equalization and decoding, see
For more information about full PHY processing, see the examples NR PDSCH Throughput Using Channel State Information Feedback and NR PUSCH Throughput.
Abstract PHY models the link quality and performance to calculate the packet error rate (PER), as illustrated in this figure. Unlike full PHY, it does not involve waveform generation and decoding.
Link Quality Model — Calculates the post-equalizer signal to interference and noise ratio (SINR) per subcarrier. It involves these operations.
Calculate transport block size (TBS)
Calculate precoding matrix using the previous channel estimate
Create path gains for small-scale fading or large scale fading (Channel modelling).
Perform perfect time estimation
Perform perfect channel estimation
Calculate noise variance
Link Performance Model— Uses the SINR per subcarrier (calculated by the link quality model) and the transmission coding parameters to predict the instantaneous PER. It consists of these steps.
Combine the post-equalizer SINR per subcarrier into a single effective SINR using the received bit mutual information rate (RBIR) mapping function. The effective SINR represents the SINR at which the PER performance over an additive white Gaussian noise (AWGN) channel is equivalent to the PER performance over the fading channel.
Calculate PER for an SINR for a given channel coding, modulation scheme, and coding rate using a pre-computed lookup table.
Determine whether the received packet is in error.