Skip to content

User Equipment

pablop edited this page Oct 23, 2026 · 4 revisions

The User Equipment (UE) module models the individual UEs connected to the emulated gNB/antenna. In each timestep, the UE is designed to:

  1. Generate or capture traffic.
  2. Update position using the configured mobility model.
  3. Estimate the Channel State Indicators using the PHY Layer models from the 3GPP specifications.
  4. Release, CE-mark or drop packets which have already been processed by the emulator.

The simplified UE structure is the following:

UEOverall.svg

The UE module is implemented in the ue class, which models and updates the simulated UE's position, generates or handles packets, estimates the Channel State Indicator and releases or drops the already processed packets. The method step() is in charge of performing these steps:

UEDataflow.svg

The emulator's instances of mobility_model, traffic_model, pkt_capture, phy_layer and pdcp_layer are all part of the UE data path. There is one pdcp_layer for UL and one for DL, and each one uses a packet_handler implementation depending on whether the UE uses simulated traffic or captured real traffic. We have created a helper class, ue_handler, which gets the UE-related configuration parameters and creates all the emulated UEs.

UE Groups

The configuration file is designed to allow the user to simulate multiple users grouped according to their specifications. A new group of UEs is initialized as:

[UE]
ue_id: idReal
# ...

The configuration file parser creates a new set of UEs every time it parses the ue_id key inside a [UE] section. While the ue_id is not important for the correct functioning of the emulator, it is better to use a unique id for debugging and logging purposes.

Configuration Parameters

The most relevant UE configuration parameters are:

[UE]
ue_id: capturedStudy
ue_type: 0
ul_queue_n: 100
dl_queue_n: 101
n_ues: 1
n_antennas: 1
alpha_ul: 0.8
nominal_pusch_p0: -60
ul_power_mode: fractional
tx_power_ul: 23
cqi_period: 5
ri_period: 5
scaling_factor: 1
random_v: true
log_freq: 100
log_ue: true
log_quality: true
log_traffic: true
log_mobility: true
traffic_type: 0
ul_target: 20.0
dl_target: 20.0
ul_traffic_file: none
dl_traffic_file: none
delay: 0.0
var_perc: 0.10
pkt_size: 12000
mobility_type: 5
pos_x: -400
pos_y: 0
random_init: false
speed: 60.0
speed_var: 10.0
max_distance: 5000
time_target: 5
time_target_var: 0
priority: 4
delta_metric: 1.0
delay_t_metric: 0.1
beta_metric: 0.5
pkt_delay_budget: 0.300
l4s_dual_queue: true
l4s_target_ms: 15
l4s_rtt_max_ms: 100
l4s_min_th_us: 2000
l4s_range_us: 9000
l4s_k: 2.0
l4s_classic_guard_ms: 1.0
ue_height: 1.5
ue_location_type: vehicle
building_penetration: none
vehicle_penetration: standard

Which define:

  • ue_type: if 0, real IP traffic is assigned to the user. If 1, traffic is simulated.
  • ul_queue_n / dl_queue_n: unique Netfilter Queue IDs configured for the UL and DL streams. They are only used by real UEs.
  • n_ues: number of UEs of this type.
  • n_antennas: number of physical antennas in the UE.
  • alpha_ul, nominal_pusch_p0, ul_power_mode, tx_power_ul: uplink power configuration. ul_power_mode is fixed or fractional; see Configuration File.
  • cqi_period: period in ms for the PHY layer to re-estimate the CSI.
  • ri_period: period in ms for the PHY layer to estimate the Rank Indicator.
  • scaling_factor: used for carrier aggregation throughput calculation.
  • random_v: enables stochastic behavior for variance fields parsed after this key.
  • log_freq, log_ue, log_quality, log_traffic, log_mobility: text logging configuration.
  • traffic_type: selected traffic generator model for this type of UEs.
  • ul_target / dl_target: target throughput for UL and DL respectively.
  • ul_traffic_file / dl_traffic_file: trace-driven traffic files.
  • delay: optional traffic start delay.
  • var_perc: size of the variance of the generated noise.
  • pkt_size: virtual IP packet size in bits.
  • mobility_type: id of the desired mobility model for current UE.
  • pos_x / pos_y: initial position.
  • random_init: whether to initialize the position randomly.
  • speed / speed_var: target UE speed and random variation in km/h.
  • max_distance: maximum distance to the gNB.
  • time_target / time_target_var: target time used by mobility models.
  • priority: UE prioritization factor.
  • delta_metric, delay_t_metric, beta_metric: metric-specific parameters.
  • pkt_delay_budget: delay budget in seconds. Packets older than this budget are dropped.
  • l4s_*: DualQ/L4S parameters.
  • ue_height: UE height above ground.
  • ue_location_type, building_penetration, vehicle_penetration: explicit environment of the UE. They replace the deprecated integer o2i; see Configuration File.

For the complete configuration reference, see Configuration File.

Related Sections

Clone this wiki locally