srsRAN_4G
srsRAN_4G copied to clipboard
COTS UE not getting connected to Internet
Hi, I am working on connecting a Nokia 2.2 with USIM to the srsepc. The connectio is successful as indicated by the logs:
EPC: Received Initial UE message -- Attach Request Attach request -- M-TMSI: 0xcd23341d Attach request -- eNB-UE S1AP Id: 3 Attach request -- Attach type: 2 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: 10 PDN Connectivity Request -- ESM Information Transfer requested: false UL NAS: Received Identity Response ID Response -- IMSI: 001010123456780 Downlink NAS: Sent Authentication Request UL NAS: Received Authentication Response Authentication Response -- IMSI 001010123456780 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: 001010123456780 Getting subscription information -- QCI 7 Sending Create Session Request. Creating Session Response -- IMSI: 1010123456780 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 172.16.0.2 Received Create Session Response Create Session Response -- SPGW control TEID 1 Create Session Response -- SPGW S1-U Address: 127.0.1.100 SPGW Allocated IP 172.16.0.2 to IMSI 001010123456780 Adding attach accept to Initial Context Setup Request Sent Initial Context Setup Request. E-RAB id 5 Received Initial Context Setup Response E-RAB Context Setup. E-RAB id 5 E-RAB Context -- eNB TEID 0x1; eNB GTP-U Address 127.0.1.1 UL NAS: Received Attach Complete
eNB: jammy@dissect-Precision-3680:~/srsRAN_4G/srsenb$ sudo srsenb enb.conf Active RF plugins: libsrsran_rf_uhd.so Inactive RF plugins: --- Software Radio Systems LTE eNodeB ---
Reading configuration file enb.conf... WARNING: Could not verify cpu0 scaling governor WARNING: Could not verify cpu1 scaling governor WARNING: Could not verify cpu2 scaling governor WARNING: Could not verify cpu3 scaling governor WARNING: Could not verify cpu4 scaling governor WARNING: Could not verify cpu5 scaling governor WARNING: Could not verify cpu6 scaling governor WARNING: Could not verify cpu7 scaling governor WARNING: Could not verify cpu8 scaling governor WARNING: Could not verify cpu9 scaling governor WARNING: Could not verify cpu10 scaling governor WARNING: Could not verify cpu11 scaling governor WARNING: Could not verify cpu12 scaling governor WARNING: Could not verify cpu13 scaling governor WARNING: Could not verify cpu14 scaling governor WARNING: Could not verify cpu15 scaling governor WARNING: Could not verify cpu16 scaling governor WARNING: Could not verify cpu17 scaling governor WARNING: Could not verify cpu18 scaling governor WARNING: Could not verify cpu19 scaling governor WARNING: Could not verify cpu20 scaling governor WARNING: Could not verify cpu21 scaling governor WARNING: Could not verify cpu22 scaling governor WARNING: Could not verify cpu23 scaling governor
Built in Release mode using commit ec29b0c1f on branch master.
/home/jammy/srsRAN_4G/srsenb/src/enb_cfg_parser.cc:1881: Force DL EARFCN for cell PCI=1 to 2550 Opening 1 channels in RF device=default with args=default Supported RF device list: UHD file Trying to open RF device 'UHD' [INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.7.0.0-0ubuntu1~jammy1 [INFO] [LOGGING] Fastpath logging disabled at runtime. Opening USRP channels=1, args: type=b200,master_clock_rate=23.04e6 [INFO] [UHD RF] RF UHD Generic instance constructed [INFO] [B200] Detected Device: B210 [INFO] [B200] Operating over USB 3. [INFO] [B200] Initialize CODEC control... [INFO] [B200] Initialize Radio control... [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Asking for clock rate 23.040000 MHz... [INFO] [B200] Actually got clock rate 23.040000 MHz. RF device 'UHD' successfully opened
==== eNodeB started ===
Type
-----------------DL----------------|-------------------------UL-------------------------
rat pci rnti cqi ri mcs brate ok nok (%) | pusch pucch phr mcs brate ok nok (%) bsr lte 1 46 15 0 3 1.0k 2 0 0% | 34.2 28.9 35 0 4.4k 2 0 0% 0.0 lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 14 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 46 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 RACH: tti=5541, cc=0, pci=1, preamble=28, offset=0, temp_crnti=0x47 Disconnecting rnti=0x46. lte 1 47 13 0 2 2.2k 3 0 0% | 30.5 27.7 37 7 26k 3 0 0% 0.0
-----------------DL----------------|-------------------------UL-------------------------
rat pci rnti cqi ri mcs brate ok nok (%) | pusch pucch phr mcs brate ok nok (%) bsr lte 1 47 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 13 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 12 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 14 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 47 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 RACH: tti=5431, cc=0, pci=1, preamble=10, offset=0, temp_crnti=0x48 lte 1 47 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0 lte 1 48 15 0 3 5.7k 3 0 0% | 30.6 27.8 35 7 68k 3 0 0% 0.0 User 0x48 connected lte 1 47 n/a 0 0 0 0 0 0% | n/a n/a 0 0 0 0 0 0% 0.0 lte 1 48 15 0 5 2.9k 11 0 0% | 25.6 26.5 40 22 33k 8 0 0% 0.0
-----------------DL----------------|-------------------------UL-------------------------
rat pci rnti cqi ri mcs brate ok nok (%) | pusch pucch phr mcs brate ok nok (%) bsr lte 1 47 n/a 0 0 0 0 0 0% | n/a n/a 0 0 0 0 0 0% 0.0 lte 1 48 14 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0
The apn has been created in the phone with srsapn. The masquerading script has been run with the interface name of the Ethernet on the EPC machine. The phone shows a 4G with up and down arrows. But I do not get any internet access. How do I solve this?
It looks like you've successfully established a connection between your Nokia 2.2 and the srsEPC, which is great! Here are some steps to consider:
- Disable UFW and Set IP Forwarding: Run the following commands to temporarily disable the Uncomplicated Firewall (UFW) and ensure IP forwarding is enabled:
sudo ufw disable
sudo sysctl -w net.ipv4.ip_forward=1
- Set IPTables Policy: Make sure your IPTables policy allows forwarding:
sudo iptables -P FORWARD ACCEPT