Skip to content

Configuration File

pablop edited this page Oct 23, 2026 · 7 revisions

All the configurable parameters can be manually selected by the user. The current implementation doesn't allow the emulator to be reconfigured dynamically, so the configuration has to be prepared before FikoRE is run. The configuration file, with .ini extension, has the following format:

# Comments
[VariableSuperclass1]
Variable1: value

The comments are preceded by a #. In [ ] we define the superclass to which the following variables are part of. The variables are defined followed by a : with no spaces before it. The value is written right after, with a space in between the : and the value.

The executable accepts the configuration file path as the first argument:

./bin/fikore config/offline_umi_n40_npn.ini

If no configuration path is provided, FikoRE uses ./config.ini.

Global Configuration

[Global]
duration: 180
period: -1
progress_log_period_s: 10
multithreading: true
threads: 16
verbose: true

Which define:

  • duration: duration of the simulation in seconds. Use -1 for an indefinite real-time run.
  • period: tick period in ms. If set to <0, FikoRE runs as fast as possible.
  • progress_log_period_s: period for progress logs in simulated seconds.
  • multithreading: enable/disable threaded execution.
  • threads: number of worker threads used by the UE handler. If set to 0, UE threading is disabled.
  • verbose: enable/disable verbose terminal logging.
  • seed: run seed, an integer. It selects which realization of the stochastic models the run explores, and two runs with the same seed are identical. Absent, random_v decides: true seeds from the wall clock and false behaves as seed 0. The configured variances are honoured either way -reproducibility is not the absence of stochasticity- and each generator draws from its own stream, so fading, mobility, background traffic and each UE are independent and repeatable.
  • run_id: name of the run's log directory, written under logs/. Absent, the run is named after the local time it started, as %Y_%m_%d_%H_%M_%S. Naming it is what lets a regression suite compare two runs without renaming anything afterwards.

Control Configuration

Runtime control plane. Without this section the emulator behaves exactly as it always has. Full description in Runtime Control.

[Control]
enabled: true
transport: unix          # unix | tcp | file | none
address: /tmp/fikore-control.sock
port: 0                  # tcp only
sync_mode: async         # async | barrier
credit_timeout_ms: 30000
on_timeout: continue     # continue | abort
on_peer_loss: abort      # abort | continue
timeline_file: none      # NDJSON script, used by transport: file
journal_file: none       # every applied command, in the same format
max_cmds_per_tick: 256
  • enabled: turns the control plane on. Off by default.
  • transport: unix and tcp open a socket with its own thread; file replays a NDJSON script from disk and needs no network; none leaves the plane inert.
  • address / port: unix socket path, or bind address and port for tcp. The unix socket is created with mode 0600, and a tcp address outside loopback is warned about at startup because the channel has no authentication.
  • sync_mode: async never waits. barrier only advances up to the granted TTI, and is refused with a warning when period > 0.
  • credit_timeout_ms / on_timeout: how long the barrier waits for credit, and whether to carry on or end the run when it does not arrive.
  • on_peer_loss: what to do in barrier mode when a controller that had connected goes away. abort, the default, ends the run: nothing would drive it any more, and the rest of the output would be a silence recorded as if it were data. continue carries on free running for the rest of the run, which is what an interactive session wants.
  • timeline_file: NDJSON script applied by simulated time.
  • journal_file: every applied command, written in the same format, so a session can be replayed as a script.
  • max_cmds_per_tick: upper bound on commands applied in a single step.

UE Configuration

Every [UE] section defines a group of UEs. The parser creates a new group every time it reads a new ue_id.

[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
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_id: arbitrary unique identifier used for logging and debugging.
  • ue_type: 0 for captured real IP traffic, 1 for simulated traffic.
  • ul_queue_n / dl_queue_n: NFQUEUE IDs used by real UEs.
  • n_ues: number of UEs created from this group.
  • n_antennas: number of UE antennas.
  • alpha_ul: factor controlling uplink power adjustment based on path loss.
  • nominal_pusch_p0: target received power for PUSCH.
  • ul_power_mode: fixed transmits tx_power_ul split over the granted PRBs (the former set_ul_pow: true); fractional requests P0 + alpha * PL + 10 log10(M) and caps it at tx_power_ul. The shipped scenarios use fractional.
  • tx_power_ul: uplink UE transmission power.
  • cqi_period / ri_period: CSI and Rank Indicator update periods in ms.
  • scaling_factor: throughput scaling factor used for carrier aggregation calculations.
  • random_v: enable stochastic behavior for variance fields parsed after this key. Place it before parameters such as var_perc, backhaul_d_var or HARQ delay variations when stochastic variation is required.
  • log_freq, log_ue, log_quality, log_traffic, log_mobility: text logging controls.
  • traffic_type: 0 for constant traffic, 1 for trace-driven traffic.
  • ul_target / dl_target: target throughput in Mbps for constant traffic.
  • ul_traffic_file / dl_traffic_file: trace files used by traffic_type: 1.
  • delay: optional start delay for trace-driven traffic.
  • var_perc: random variation around target traffic. It is ignored when random_v is false.
  • pkt_size: virtual packet size in bits.
  • mobility_type: mobility model ID. See Mobility Models.
  • pos_x / pos_y: initial position when random_init is false.
  • random_init: randomly initialize the UE position.
  • speed / speed_var: target speed and variation in km/h.
  • max_distance: maximum distance to the gNB.
  • time_target / time_target_var: time target used by mobility models.
  • priority, delta_metric, delay_t_metric: parameters used by scheduler metrics. beta_metric is rejected under PF and BET, which take throughput_time_window_ms and priority instead; see Metric Estimation.
  • pkt_delay_budget: packet delay budget in seconds; expired packets are dropped.
  • l4s_*: DualQ/L4S configuration parameters. See L4S and DualQ.
  • ue_height: UE height above ground in meters.
  • ue_location_type: outdoor, indoor, vehicle or random.
  • building_penetration: none, low_loss or high_loss; used by indoor UEs.
  • vehicle_penetration: standard or metallized; used by vehicle UEs.
  • o2i: deprecated integer form of the three keys above. It is still read, with a warning.

The environment model is described in docs/o2i-v2.md.

Scenario Configuration

[Scenario]
scenario_type: 2

Which define:

  • scenario_type: propagation scenario ID. Current values are 0 Urban Microcell, 1 Urban Macrocell, 2 Rural Macrocell, 3 Indoor Open Office, 4 Indoor Mixed Office and 5 Indoor Shopping Mall.

  • map_file: optional. Selects a macroscopic map explicitly instead of looking one up.

  • allow_nearest_map_fallback: true or false. Without an explicit map_file, FikoRE selects the map for the scenario and carrier frequency; when no map matches the carrier frequency it stops with an error unless this is true, in which case the closest one is used and a warning is logged.

The maps are stored in include/maps_scenarios/. Their provenance and the v1/v2 file schema are in docs/map-provenance.md and docs/map-schema-v2.md.

eNB Configuration

[eNBConfig]
modulation_m: 1
target_ber: 0.00005
cqi_mode: 1
tx_power: 43
eNB_gain: 8.7
UT_gain: 0
power_boost: 2
frequency: 3500000000.0
bandwidth: 200000000

Which define:

  • modulation_m: 0 for 64QAM tables, 1 for 256QAM tables.
  • target_ber: target BER used when MCS tables are not enabled.
  • cqi_mode: 0 for wideband CQI, 1 for RBG/sub-band CQI.
  • tx_power: eNB/gNB transmission power in dBm.
  • eNB_gain / UT_gain: antenna gains.
  • power_boost: power boost used for RSRP calculation.
  • frequency: carrier frequency in Hz.
  • bandwidth: total bandwidth in Hz.

PDCP/RLC Configuration

[PDCP_RLC]
backhaul_d: 0.003
backhaul_d_var: 0.0
order_pkts: true

Which define:

  • backhaul_d: backhauling delay used before releasing packets.
  • backhaul_d_var: random variation around backhauling delay. It is ignored when random_v is false.
  • order_pkts: enable/disable packet ordering for captured traffic.

MAC Layer Configuration

[MACLayer]
metric_type: 6
pf_alpha: 1.0
throughput_time_window_ms: 100.0
throughput_intra_tti_update: allocation_unit
log_freq: 10
log_mac: true
mimo_layers: 1
n_ofdm_syms: 14
n_re_freq: 12
numerology: 1
max_rtx_ul: 4
max_rtx_dl: 4
mcs_tables: true
harq_model: legacy_bler
scheduling_mode: 0
scheduling_type: 1
scheduling_config: 1
duplexing_type: 0
n_dl_slots: 7
n_ul_slots: 3
transition_c: 54
ratio_DL_UL: 0.7

Which define:

  • metric_type: scheduler metric ID. See Metric Estimation.
  • pf_alpha: rate exponent of Proportional Fair (metric_type: 6); rejected for any other metric.
  • throughput_time_window_ms: averaging window of the service history used by PF and BET, in ms. It must be positive.
  • throughput_intra_tti_update: none or allocation_unit. allocation_unit re-ranks UEs after each RB or RBG grant and is accepted only by PF and BET. The older keys pf_time_window_ms and pf_intra_tti_update were removed.
  • log_freq / log_mac: MAC text logging controls.
  • mimo_layers: maximum MIMO layers available at the eNB/gNB.
  • n_ofdm_syms: OFDM symbols per slot.
  • n_re_freq: subcarriers per resource block.
  • numerology: NR numerology.
  • max_rtx_ul / max_rtx_dl: maximum HARQ retransmissions.
  • mcs_tables: use MCS-BLER-SINR tables instead of the SNR gap equation.
  • harq_model: legacy_bler (default) draws packet errors from the table-driven BLER and retries up to max_rtx_*; disabled makes every transmission succeed and exists for ablation. legacy_bler requires mcs_tables: true. See docs/harq-legacy-bler.md.
  • scheduling_mode: 0 distributed, 1 localized.
  • scheduling_type: 0 frequency RBs grouped into RBGs, 1 no frequency grouping.
  • scheduling_config: RBG grouping configuration.
  • duplexing_type: 0 TDD, 1 FDD.
  • n_dl_slots / n_ul_slots: number of DL/UL slots in the TDD pattern.
  • transition_c: transition slot configuration.
  • ratio_DL_UL: DL/UL resource ratio used by the current MAC configuration.

PHY Layer Configuration

[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
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

Which define:

  • interference_ues / interference_eNBs: number of interfering UEs and eNBs/gNBs.
  • distance_interference: distance to interfering nodes.
  • interfered_bandwidth_ratio: portion of the bandwidth affected by interference.
  • thermal_noise: thermal noise value.
  • enb_noise_figure / ut_noise_figure: receiver noise figures.
  • air_delay_var_*: random variation around propagation delay.
  • rtx_period_* / rtx_period_var_*: HARQ retransmission period and variation.
  • rtx_proc_delay_* / rtx_proc_delay_var_*: HARQ processing delay and variation.

Monitoring Configuration

[Monitoring]
enabled: true
aggregation_window_ms: 500
default_metric_type: counter
emit_ue_phy: true
emit_ue_pdcp: true
emit_ue_queue: true
emit_ue_mobility: true
emit_l4s: true
emit_mac_scheduler: true
emit_emulator_runtime: true
emit_runtime_debug_logs: false
emit_text_logs_compat: false
outputs: api_udp
output_api_udp_type: udp
output_api_udp_address: 127.0.0.1
output_api_udp_port: 8098

Which define:

  • enabled: enable/disable structured monitoring.
  • aggregation_window_ms: aggregation window for emitted metrics.
  • default_metric_type: default type used by the monitoring output.
  • emit_*: enable/disable specific metric families.
  • outputs: comma-separated list of output names.
  • output_<name>_type, output_<name>_address, output_<name>_port: output configuration.

See Monitoring and Dashboard for more details.

In [Monitoring], emit_control (default true) controls the control measurement, which reports what the control plane did in each window.

Clone this wiki locally