srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.36k stars 1.1k forks source link

COTS UE unable to connect to srsRAN 4G #1353

Open sambak22 opened 1 week ago

sambak22 commented 1 week ago

Issue Description

COTS UE (Samsung Galaxy) with MCC 001 and MNC 01 and IMSI 001010000000037 is unable to register on the srsRAN 4G. The log of srsepc shows: User not in HSS. IMSI: 001010000000037 User not found. IMSI: 001010000000037 I have manually edited the user_db.csv with ue details which include: IMSI, Key, OPC of the SIM card, however, I keep getting same error message in the log of srsepc. I am unable to get any headway and am stuck at this step. Please guide me to resolve the issue as I am required to carry out further trials of srsRAN.

Setup Details

OS: Ubuntu 22.04 srsRAN 4G version: 23.11 SDR: USRP B205 Mini (UHD 4.6.0) COTS UE: Samsung Galaxy 5G

Expected Behavior

Attach Request -- UE Network Capabilities EEA: 11110000 Attach Request -- UE Network Capabilities EIA: 11110000 Attach Request -- MS Network Capabilities Present: true PDN Connectivity Request -- EPS Bearer Identity requested: 0 PDN Connectivity Request -- Procedure Transaction Id: 2 PDN Connectivity Request -- ESM Information Transfer requested: true Downlink NAS: Sending Authentication Request UL NAS: Authentication Failure Authentication Failure -- Synchronization Failure Downlink NAS: Sent Authentication Request UL NAS: Received Authentication Response Authentication Response -- IMSI 001010000000037 UE Authentication Accepted. Generating KeNB with UL NAS COUNT: 0 Downlink NAS: Sending NAS Security Mode Command. UL NAS: Received Security Mode Complete Security Mode Command Complete -- IMSI: 001010000000037 Sending ESM information request UL NAS: Received ESM Information Response ESM Info: APN srsapn ESM Info: 6 Protocol Configuration Options Getting subscription information -- QCI 9 Sending Create Session Request. Creating Session Response -- IMSI: 001010000000037 Creating Session Response -- MME control TEID: 1 Received GTP-C PDU. Message type: GTPC_MSG_TYPE_CREATE_SESSION_REQUEST SPGW: Allocated Ctrl TEID 1 SPGW: Allocated User TEID 1 SPGW: Allocate UE IP 192.168.0.2

Actual Behaviour

Attach Request -- UE Network Capabilities EEA: 11110000 Attach Request -- UE Network Capabilities EIA: 11110000 Attach Request -- MS Network Capabilities Present: true PDN Connectivity Request -- EPS Bearer Identity requested: 0 PDN Connectivity Request -- Procedure Transaction Id: 2 PDN Connectivity Request -- ESM Information Transfer requested: true User not in HSS. IMSI: 001010000000037 User not found. IMSI: 001010000000037

Steps to reproduce the problem

herlesupreeth commented 1 week ago

@sambak22 Then, please check whether the user_db.csv you edited is the correct one i.e. check the location etc. from which srsepc is reading the user_db.csv