Troubleshooting

RF Configuration

The srsUE software application generates and consumes raw radio signals in the form of baseband I/Q samples. In order to transmit and receive these signals over the air, an RF front end device is needed. Devices supported by srsRAN 4G include e.g. USRP, BladeRF and LimeSDR.

When using an RF front-end, the dl_earfcn field in ue.conf should be populated. This field provides the UE with a list (comma separated) of DL EARFCNs. The UE will perform the cell search procedure using the specified EARFCNs. The UL EARFCN is normally deduced from the DL EARFCN but it could optionally forced by setting ul_earfcn:

[rf]
dl_earfcn = 3400
#ul_earfcn = 21400
...

In some cases, one may use some custom bands which do not mach with any EARFCN. In these cases, the downlink and uplink frequencies can be forced by setting dl_frequency and ul_frequency respectively in Hertz:

...
dl_freq = 400e6
ul_freq = 450e6
...

Attention: the eNB and UE DL EARFCNs calculate some security sequences using the DL EARFCN. If they do not match, the UE may fail to perform some actions.

Most off-the-shelf RF front-ends have relatively low-accuracy clocks, resulting in high frequency offsets (> 1kHz) from base stations (which use high-accuracy GPS disciplined clock sources). A large frequency offset deteriorates the UE receiver performance. It is recommended setting the parameter freq_offset (Hz) in order manually correct large offsets. This parameter applies an offset to the received DL signal and will mitigate the impairment caused by the carrier frequency offset. Also, the UE will apply a proportional correction in the UL frequency.

...
freq_offset = -6600
...

The current UE does not support open or closed loop power control. The RF front end gain is controlled by the user before running the UE. The transmit gain (tx_gain) is specified in dB and maximum transmit power range varies between brands and models.

At the receiver side, an Automatic Gain Control (AGC) module is activated when the receiver gain (rx_gain in dB) is not specified. Otherwise, it sets a fixed receive gain. Once again, the range of gain varies between brands and models.

...
tx_gain = 80
#rx_gain = 40
...

When transmitting, the srsUE application provides a radio signal to the front-end and specifies the time at which the signal should be transmitted. Typically, an RF front-end will have a small fixed timing offset caused by delays in the RF chain. This offset is usually in the order of microseconds and can vary between different devices. To calibrate this offset, it is possible to use the time_adv_nsamples parameter. This compensates the delay and will ensure that the UE transmits at the correct time.

Network Attach

There are two main reasons for a network attach failing:

  • A misconfigured network

  • RF issues

Either may stop the UE being able to see the eNB, cause the UE to fail to connect, or cause the UE to connect but with poor stability.

Misconfigured Network

A misconfigured network may stop the UE being able to see the eNB and/ or connect to the EPC. It may be helpful to reference the EPC user manual, namely the configuration section to ensure the EPC has been configured correctly. The UE configuration file should also be checked to ensure the relevant information is reflected across the two files. See the configuration section of the UE documentation for notes on this.

An unsuccessful attach can be down to how the UE’s credentials are reflected in the EPC’s config file and database. See the COTS UE Application Note for info on how to add a UE to the EPC’s database and ensure the correct network configuration. Note, this is for connecting a COTS UE but may also be useful for troubleshooting issues when connecting srsUE using an SDR.

Users should also keep an eye on the console outputs of the UE, eNB and EPC to ensure no errors were given when starting up the network. Errors during network instantiation may lead to elements not connecting properly.

RF Issues

The RF hardware and configuration should also be checked if a network attach continues to fail.

First check that the hardware is correctly connected and running over USB 3.0, also check the drivers for your HW are up to date. The latest drivers can be found here.

The antenna choice and position is important to ensure the correct operation of the SDR and overall network. We recommend using the Vert2450 antenna from Ettus (or similar). The antennae should be positioned at 90° to each other. You should also ensure the correct ports are used for the antennae. For example, on the b200 mini the TRX and RX2 ports are used.

It is also important that the correct configuration settings are used as described above.

If possible you should use a spectrum analyser or other such piece of equipment to check the state of the signal(s) being transmitted by the RF-hardware. If the signal is too weak or malformed then an attach will not be successful. The gr-fosphor tool is a very useful SDR spectrum analyzer which can be used to check the properties of transmitted RF signals.

Carrier frequency offset (CFO) may also result in a UE not being able to successfully attach to an eNB. Check the configuration files so that EARFCNs and carrier frequencies match. You may also need to calibrate your SDR, as low clock accuracy may result in the CFO being outside of the accepted tolerance. Multiple open source tools like Kalibrate-RTL can be used to calculate the oscillator offset of your SDR and help to minimize CFO. An external clock reference or GPSODO can also be used to increase clock accuracy. Calibrating your SDR may also help with peak throughput and stability.

Peak Throughput

Maximum achievable srsUE peak throughput may be limited for a number of different reasons. These include limitations in the PC being used, the network configuration, the RF-hardware and the physical network conditions.

Computational Power

In order to achieve peak throughput, we recommend using a PC with an 8th Gen i7 processor or above, running Ubuntu 16.04 OS or higher. Machines with lower specs can also run srsRAN 4G successfully but with lower maximum throughput.

The CPU governor of the PC should be set to performance mode to allow for maximum compute power and throughput. This can be configured for e.g. Ubuntu using:

echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Again, you should also ensure your SDR drivers are up to date and that you are running over USB 3.0, as this will also affect maximum throughput.

If using a laptop, users should keep the PC connected to a power-source at all times while running srsRAN 4G, as this will avoid performance loss due to CPU frequency scaling on the machine.

The computational requirements of the srsUE application are closely tied to the bandwidth of the LTE or NR carrier being used. For example, maximum throughput using 100-PRB carrier will require a more powerful CPU than maximum throughput using a 25-PRB carrier. If your machine is not powerful enough to support srsUE with a given network configuration, you will see Late and/or Overflow packet reports from the SDR front-end.

RF Hardware

The RF-signal itself can also affect the peak throughput a network can achieve. Ensure the radio being used is correctly calibrated and that the appropriate gain settings are used. The health of an RF-signal can be quickly checked using the console trace output by srsUE.

The following is an example of a console trace from srsUE running in 5G NSA mode over the air:

---------Signal-----------|-----------------DL-----------------|-----------UL-----------
rat  pci  rsrp   pl   cfo | mcs  snr  iter  brate  bler  ta_us | mcs   buff  brate  bler
lte    1   -33   33 -101m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0  431m |  28   20   2.0    15M    0%    0.0 |  28    91k    10M    0%
lte    1   -33   33  -25m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0  -8.6 |  28   20   1.9    16M    0%    0.0 |  28   216k    14M    0%
lte    1   -33   33 -191m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0  -5.7 |  28   21   1.7    16M    0%    0.0 |  28   256k    15M    0%
lte    1   -33   33  -21m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0   8.8 |  28   20   1.8    16M    0%    0.0 |  28   226k    15M    0%
lte    1   -33   33   50m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0   -13 |  28   20   1.8    16M    0%    0.0 |  28   165k    15M    0%
lte    1   -33   33  -71m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0  724m |  28   21   1.9    17M    0%    0.0 |  28   191k    15M    0%
lte    1   -33   33  -54m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0    13 |  28   20   1.9    17M    0%    0.0 |  28   120k    15M    0%
lte    1   -33   33 -115m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0  -3.6 |  28   21   1.9    17M    0%    0.0 |  28   194k    15M    0%
lte    1   -33   33  -43m |   0   34   0.0    0.0    0%    1.6 |   0    0.0    0.0    0%
 nr  500     0    0  -2.5 |  28   21   1.9    17M    0%    0.0 |  28   205k    15M    0%

The SNR, CFO and BLER can be used to debug the health of a signal connection. See the section on UE command line reference for information regarding the console trace.