Skip to content

PHY Layer

pablop edited this page Oct 23, 2026 · 4 revisions

The PHY layer models the Channel Quality Measurements: SINR, RSRP, MCS, CQI and HARQ ACK/NACK. These metrics, besides being logged for later analysis, are used by the MAC layer for resource allocation decisions, and to determine what happens with each data block. This info is also used to determine the probability of a packet to be retransmitted, according to the HARQ model.

The SINR is obtained by simulating the Received Signal Power (RSP), noise and interference:

SINR = RSP/(Noise + Interference)

The signal power is modeled according to 3GPP 38.901 specification:

RSP(dB) = transmissionPower(dBm) - pathLoss(dB) + shadowing(dB) + fading(dB) + txGain(dB) + rxGain(dB)

The path loss, attenuation and fading models can be found in the 3GPP specification for several outdoor/indoor scenarios. txGain, rxGain and transmissionPower are configuration parameters manually selected by the user using the configuration file.

Scenarios and Maps

The current scenario IDs are:

  • 0: Urban Microcell.
  • 1: Urban Macrocell.
  • 2: Rural Macrocell.
  • 3: Indoor Open Office.
  • 4: Indoor Mixed Office.
  • 5: Indoor Shopping Mall.

Macroscopic fading maps are stored in include/maps_scenarios/. FikoRE selects the closest available map according to the selected scenario_type and frequency. Current maps cover the available frequencies for each scenario, such as 3.5 GHz, 4.9 GHz, 26 GHz, 28 GHz, 0.7/0.8 GHz for rural scenarios and 60 GHz for indoor shopping mall.

The maps are generated with the Matlab scripts in tools/matlab/shadow_fading_map/. The generator creates LOS and NLOS pathloss maps, LOS and NLOS spatially correlated shadow fading maps, and a stochastic LOS/NLOS map. The final JSON stores a macroscopic fading map:

macroscopic_fading_LOS  = shadow_fading_LOS  - pathloss_LOS
macroscopic_fading_NLOS = shadow_fading_NLOS - pathloss_NLOS

The LOS and NLOS values are combined according to the LOS/NLOS map and stored as cell_number, cell_size and map. The emulator reads this map and interpolates the value at the UE position.

Pathloss maps are generated with the ABG model:

PL(dB) = 10 * alpha * log10(d) + beta + 10 * gamma * log10(f)

where d is the distance in meters and f is the carrier frequency in GHz. Current ABG parameters are:

Scenario Condition Frequency alpha beta gamma
RURAL_MACROCELL LOS all 2.16 32.4 2
RURAL_MACROCELL NLOS all 2.75 32.4 2
URBAN_MACROCELL LOS < 6 GHz 2.2 28 2
URBAN_MACROCELL LOS >= 6 GHz 1.9 35.8 1.9
URBAN_MACROCELL NLOS all 3.5 13.6 2.4
URBAN_MICROCELL LOS < 6 GHz 2.27 27.02 2
URBAN_MICROCELL LOS >= 6 GHz 1.1 46.8 2.1
URBAN_MICROCELL NLOS all 2.8 31.4 2.7
INDOOR_OPEN_OFFICE / INDOOR_MIXED_OFFICE LOS < 6 GHz 1.87 32.82 2
INDOOR_OPEN_OFFICE / INDOOR_MIXED_OFFICE LOS >= 6 GHz 1.6 32.9 1.8
INDOOR_OPEN_OFFICE / INDOOR_MIXED_OFFICE NLOS < 6 GHz 4.33 11.5 2
INDOOR_OPEN_OFFICE / INDOOR_MIXED_OFFICE NLOS >= 6 GHz 3.9 19 2.1
INDOOR_SHOPPING_MALL LOS all 1.9 31.2 2.2
INDOOR_SHOPPING_MALL NLOS all 2.0 34.4 2.3

Noise and Interference

The noise and interference are modeled using the same models as above but for other eNBs/gNBs and UEs sufficiently close to the simulated eNBs/gNBs and UEs:

  • Noise estimation: thermal noise plus receiver noise figure.
  • Interference estimation: modeled using the Received Signal Power models for other Base Stations and UEs.

The number and distance of the interfering eNBs/gNBs and UEs, and the interfered bandwidth ratio, are configured by the user:

[PHYLayer]
interference_ues: 5
interference_eNBs: 1
distance_interference: 3500
interfered_bandwidth_ratio: 0.1
thermal_noise: -174
enb_noise_figure: 2
ut_noise_figure: 9

MCS, CQI and HARQ

The SINR is used to estimate the optimal MCS index for each UE and PRB/RBG. To get the SINR-MCS relations, we performed a set of link level simulations using Matlab, obtaining a set of SINR-BLER curves for each MCS. These are obtained for different configurations according to the maximum number of MIMO layers and RBG sizes.

The HARQ model determines whether a packet has to be retransmitted or not following a stochastic approach:

HARQ.svg

From the specifications we assumed:

  • Maximum configured retransmissions before dropping the packet.
  • No fixed ACK/NACK delay, asynchronous.
  • Modulation kept from original transmission regardless of updated CQIs.
  • HARQ packets with higher priority than first transmission packets.

HARQ timing is configured as:

[PHYLayer]
air_delay_var_ul: 0.0
rtx_period_ul: 0.004
rtx_period_var_ul: 0
rtx_proc_delay_ul: 0.002
rtx_proc_delay_var_ul: 0.0
air_delay_var_dl: 0.0
rtx_period_dl: 0.005
rtx_period_var_dl: 0
rtx_proc_delay_dl: 0.002
rtx_proc_delay_var_dl: 0.0

Rank Indicator

Finally, we have the Rank Indicator Model which determines if the signals received in each antenna of the UE are uncorrelated, and MIMO can be used. Available models in the State of the Art are based on correlation matrices which we do not and will not estimate. Current implemented model is based on the idea that the transmitted power is constant for the same UE and is divided by each non-correlated antenna. Consequently, we can estimate the limit SINR values for each added layer from which it is more efficient to use the extra layer. We built a simple look-up table with this information.

All the channel quality estimations are done depending on the correlation time estimated from the doppler effect from the frequency band and the UE's velocity. Besides, shadowing estimation and pathloss also depend on the correlation distance traveled by the UE.

PHYFlow.svg

The steps shown in the figure implement the models described in 3GPP 38.901 specifications:

ModelsPHY.svg

All the functionality is implemented within the phy_layer class. Each UE owns a PHY layer instance per transmission direction, UL and DL, and the UE uses those instances to provide metrics to the MAC scheduler.

PHY Model V2: uplink power, environment and maps

Three parts of the PHY model changed with version 3.0:

  • Uplink power. ul_power_mode: fixed transmits tx_power_ul split over the granted PRBs. fractional requests P0 + alpha * PL + 10 log10(M) dBm, with M the granted PRBs, and caps the request at tx_power_ul. The shipped scenarios use fractional. The paired comparison over the offline profiles is in docs/ul-fractional-power-campaign.md.
  • UE environment. ue_location_type, building_penetration and vehicle_penetration replace the integer o2i. Penetration is drawn once per UE from a deterministic stream, is the same in DL and UL, and stays fixed for the session. See docs/o2i-v2.md.
  • Macroscopic maps. Map files carry a v2 schema with the scenario, carrier frequency, seed and generator version, and the v1 format is still readable. A map can be chosen with map_file; see docs/map-schema-v2.md.

The equations and the validation evidence are in the external technical review.

Clone this wiki locally