Skip to content

Metric Estimation

pablop edited this page Oct 23, 2026 · 5 revisions

As we have already mentioned, one of the key processes in our emulator is the resource allocation step. This step relies on the estimated metric for each RB/RBG and UE. There are countless metrics proposed in the state of the art. However, we have only implemented a subset of them, allowing future users to incorporate their own metrics:

  • 0 - First In First Out (FIFO): this metric does not rely on the Channel State Indicators, it just prioritizes the packets in their arrival order.
  • 1 - Blind Equal Throughput (BET): this metric ignores the UEs' channel state. The goal is to evenly provide the same throughput levels to all the UEs if possible.
  • 2 - Distributed Delay: the goal is to fulfill the delay requirements of the individual users.
  • 3 - Weighted Delay: delay-aware metric using UE-specific metric parameters.
  • 4 - Max. Throughput: prioritizes the overall throughput provided by the eNB/gNB by granting transmission resources to UEs with higher channel quality.
  • 5 - Round Robin: gives the same priority to all UEs without taking into account their CSIs.
  • 6 - Proportional Fair: tries to evenly distribute the throughput among the connected UEs while also maximizing the throughput of UEs with good channel quality.

Besides, we have also provided the emulator with user prioritization capabilities. We achieve this in a very simple manner: regardless the chosen metric, each UE has a prioritization level assigned. Later, in each timestep, the estimated metric is multiplied by the prioritization level. This approach is extremely simple but it does the job. The user should, however, carefully choose these prioritization levels to fulfill its own requirements.

The metric is selected in the MAC configuration:

[MACLayer]
metric_type: 5

Some metrics also use UE-specific parameters:

[UE]
priority: 4
delta_metric: 1.0
delay_t_metric: 0.1
beta_metric: 0.5
pkt_delay_budget: 0.300

Where the UE priority is applied

The six metric functions return the base expression, without the UE priority. The priority is applied afterwards, in phy_layer::get_metric, over the value the metric produced.

The reason is that metric_v[] is only rewritten when the CQI is refreshed. With the priority folded into that cached value, changing it at runtime would take up to cqi_period to be felt, and the delay would depend on where each UE happens to be in its CQI cycle. Applying it at the point of reading makes the change effective on the next TTI for every UE at once.

Two consequences worth knowing:

  • The priority is absolute: the runtime knob replaces the .ini value instead of multiplying it. Without a control plane the behaviour is the configured one.
  • Under Round Robin the priority is ignored, as it always was: get_metric derives to the round robin rotation before the multiplication happens.

Scheduler family: MT, BET, PF and RR

metric_type values 1 (BET), 4 (MT), 5 (RR) and 6 (PF) are the throughput schedulers. MT, PF and BET share one score,

M(i,b) = priority_i * r(i,b)^alpha / max(R_i, eps)^beta

where r(i,b) is the achievable rate of UE i on allocation unit b and R_i is the service history. MT uses alpha = 1, beta = 0, so it keeps no history; PF uses alpha = pf_alpha, beta = 1; BET uses alpha = 0, beta = 1. Round Robin keeps its own rotation and ignores both history and priority.

The history is an exponentially weighted average of the payload actually delivered in each active 1 ms TTI, with time constant throughput_time_window_ms. It does not depend on the CQI period. With throughput_intra_tti_update: allocation_unit, PF and BET also account each grant provisionally before ranking the next RB or RBG, which avoids one UE collecting a whole group of units before the history moves. MT and RR reject that mode.

The legacy per-UE beta_metric is not accepted by PF or BET. Configuration keys, tie handling and eligibility rules are in docs/throughput-schedulers.md.

Clone this wiki locally