Skip to content

Unable to run srsRAN gNB with srsUE  #221

Closed
@rohitdwivedula

Description

@rohitdwivedula

Issue Description

Attempting to run this codebase with srsUE and ZeroMQ following the instructions on this page

Setup Details

Operation System: Ubuntu 22.04.3 LTS

Expected Behavior

In the user equipment stdout, I want to see the IP that is being assigned to the UE. For example, on the tutorial page linked above, this is what they gave as an example of these logs:

Waiting PHY to initialize ... done!
Attaching UE...
Random Access Transmission: prach_occasion=0, preamble_index=0, ra-rnti=0x39, tti=2094
Random Access Complete.     c-rnti=0x4602, ta=0
RRC Connected
PDU Session Establishment successful. IP: 10.45.10.2
RRC NR reconfiguration successful.

Actual Behaviour

The user equipment script prints nothing to stdout after the RRC connected line:

Active RF plugins: libsrsran_rf_zmq.so
Inactive RF plugins: 
Reading configuration file zmq.conf...

Built in Release mode using commit fa56836b1 on branch master.

Opening 1 channels in RF device=zmq with args=tx_port=tcp://127.0.0.1:2001,rx_port=tcp://127.0.0.1:2000,base_srate=11.52e6
Supported RF device list: zmq file
CHx base_srate=11.52e6
Current sample rate is 1.92 MHz with a base rate of 11.52 MHz (x6 decimation)
CH0 rx_port=tcp://127.0.0.1:2000
CH0 tx_port=tcp://127.0.0.1:2001
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Current sample rate is 11.52 MHz with a base rate of 11.52 MHz (x1 decimation)
Waiting PHY to initialize ... done!
Attaching UE...
Random Access Transmission: prach_occasion=0, preamble_index=0, ra-rnti=0x39, tti=974
Random Access Complete.     c-rnti=0x4601, ta=0
RRC Connected

Looking at the UE logs at /tmp/ue.log, I see the following error line:

2023-09-22T21:05:35.006981 [NAS5G  ] [I] DL PDU (length 11)
    0000: 7e 02 a6 39 cf fd 03 7e 00 64 5b
2023-09-22T21:05:35.006987 [NAS5G  ] [I] Integrity check ok. Local: count=3, Received: count=3  [a6 39 cf fd]
2023-09-22T21:05:35.006988 [NAS5G  ] [I] Decrypted DL PDU (length 11)
    0000: 7e 02 a6 39 cf fd 03 7e 00 64 5b
2023-09-22T21:05:35.006995 [NAS5G  ] [E] Not handling NAS message type: Status 5GMM (0x64)

It looks like some PDU message received by the UE is not being handled, causing it to not be assigned an IP. This error is coming from line#234 in srsue/src/stack/upper/nas_5g.cc file in the srsRAN_4G project.

Steps to reproduce the problem

Find attached my config files gNB and srsUE.
gnb.txt
ue.txt

Commands that I run:

# start gNB
sudo rm -rfv /tmp/*.log && sudo ip netns delete myue && sudo ip netns add myue && sudo ip netns list && cd ~/srsRAN_Project/build/apps/gnb && sudo ./gnb -c ./gnb.yaml

# start srsUE
cd ~/srsRAN_4G/build/srsue/src && sudo ./srsue ue.conf

Additional Information

  • I am able to run the ZeroMQ based setup of 4G perfectly - am able to ping/iperf3 and see changes in the UL/DL logs of the eNB.
  • commit 5e6f50a on srsRAN_Project
  • commit fa56836b14dc6ad7ce0c3484a1944ebe2cdbe63b on srsRAN_4G
  • Installed Open5Gs via package manager on Ubuntu:
open5gs-amf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-ausf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-bsf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-common/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-dbg/jammy 2.6.4~jammy amd64
open5gs-hss/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-mme/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-nrf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-nssf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-pcf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-pcrf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-scp/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-sgwc/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-sgwu/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-smf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-udm/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-udr/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs-upf/jammy,now 2.6.4~jammy amd64 [installed,automatic]
open5gs/jammy,now 2.6.4~jammy amd64 [installed]
  • Linux 5.15.0-69-generic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions