https://open-cells.com/index.php/2020/05/27/5g-openair-first-run/

and

https://gitlab.eurecom.fr/oai/openairinterface5g/blob/develop/doc/BUILD.md

and

https://gitlab.eurecom.fr/oai/openairinterface5g/-/blob/develop/doc/RUNMODEM.md

and 

https://hackmd.io/@7n_KjKYsR_aGG_QMn0FGFA/BkE8iNFES

and

https://gitlab.eurecom.fr/oai/openairinterface5g/blob/develop/doc/BUILD.md#building-ues-enodeb-and-gnodeb-executables

and

https://git.weibeltech.com/cellular/oai-openairinterface5g/-/blob/2b5c6a1e402f8300697426c5a6cccf5a66120a37/doc/TESTING_GNB_W_COTS_UE.md

Rspec for eNB and gNB

Load the following rspec, with connected B210 USRPs and low-latency ubuntu 18.04 kernel. The CPU speed on each VM instance is dedicated 3.6GHz.

<?xml version='1.0'?>
<rspec xmlns="http://www.geni.net/resources/rspec/3" type="request" generated_by="jFed RSpec Editor" generated="2020-07-10T13:24:25.756+01:00" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:delay="http://www.protogeni.net/resources/rspec/ext/delay/1" xmlns:jfed-command="http://jfed.iminds.be/rspec/ext/jfed-command/1" xmlns:client="http://www.protogeni.net/resources/rspec/ext/client/1" xmlns:jfed-ssh-keys="http://jfed.iminds.be/rspec/ext/jfed-ssh-keys/1" xmlns:jfed="http://jfed.iminds.be/rspec/ext/jfed/1" xmlns:sharedvlan="http://www.protogeni.net/resources/rspec/ext/shared-vlan/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd ">
  <node client_id="eNB" exclusive="false" component_manager_id="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+authority+am">
    <sliver_type name="vm">
      <disk_image name="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+image+oai5g_ubuntu-18.04-5.3.0-62-lowlatency-oai-latest-07-07-2020"/>
      <flavor_type xmlns="http://iris-testbed.connectcentre.ie/rspec/ext/openstack/1" name="m1.oai.performance.7cpu.25gb-ram-b210"/>
    </sliver_type>
    <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="210.0" y="100.5"/>
  </node>
  <node client_id="gNB" exclusive="false" component_manager_id="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+authority+am">
    <sliver_type name="vm">
      <disk_image name="urn:publicid:IDN+iris-open-testbed.connectcentre.ie+image+oai5g_ubuntu-18.04-5.3.0-62-lowlatency-oai-latest-07-07-2020"/>
      <flavor_type xmlns="http://iris-testbed.connectcentre.ie/rspec/ext/openstack/1" name="m1.oai.performance.7cpu.25gb-ram-b210"/>
    </sliver_type>
    <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="212.0" y="193.5"/>
  </node>
</rspec>

Install dependencies

Before installing OAI, make sure to install SCTP protocol and associated dependencies. These are needed to support communication between the eNB and gNB

sudo apt-get install lksctp-tools libsctp-dev lksctp-tools -y
sudo modprobe sctp
#support octoclock
##https://files.ettus.com/manual/page_octoclock.html
sudo apt-get install avrdude -y

Note, the gNB does not attach to the eNB if the SCTP is not installed.

 

Build OAI eNB, and gNB on instantiated VMs

git clone -b develop https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd openairinterface5g
source oaienv
cd cmake_targets/
./build_oai -I -w USRP --eNB --UE --nrUE --gNB

Start OAI-FED-EPC

Instructions to start the OAI-FED-EPC as per the following link:

http://iristestbed.eu/index.php/10-full-stack-ping-using-fb-magma-core-oai-enodeb-and-srslte-ue/2-uncategorised/12-11-oai-5g-core

The only additional requirement requires, at this point in time, direct contact with the Iris testbed team. Basically we need to manually enable address spoofing via the OpenStack GUI.

Problem: The scenarios is that ping from the eNB or gNB to the FED-EPC core reaches the MME Core, but the response response gets lost on the Host docker VM - at interface ens3. 

What is required: We need to disable the ip spoofing filter for a specific port only (ens3)  and by determining what network to spoof.

Solution: At IRIS we need to spoof the OAI-FED-EPC MME IP address 10.154.61.3 with Mac address matching ens3 of the host VM. 

Additionally, please ensure ensure that the eNB and the gNB can route traffic to the OAI-FED-EPC network 10.154.61.0/24. This is achieved as follows:

In the servers that are hosting the eNB(s) and/or gNB(s), create IP route(s):

# On eNB
sudo ip route add 10.154.61.0/24 via <IP_ADDRESS_OF_EPC_HOST_VM> dev ens3

e.g., sudo ip route add 10.154.61.0/24 via 10.154.50.70 dev ens3

# On gNB
sudo ip route add 10.154.61.0/24 via <IP_ADDRESS_OF_EPC_HOST_VM> dev ens3

e.g., sudo ip route add 10.154.61.0/24 via 10.154.50.70 dev ens3

Check the route to MME is working by pinging the MME. Make sure you get a response before proceeding. If you dont, there is a problem somewhere. 

iristest@gnb:~$ ping 10.154.61.3
PING 10.154.61.3 (10.154.61.3) 56(84) bytes of data.
64 bytes from 10.154.61.3: icmp_seq=1 ttl=63 time=1.49 ms
64 bytes from 10.154.61.3: icmp_seq=2 ttl=63 time=0.614 ms

 

Logging in EPC containers

bash into the hss container and tail the log

docker exec -it prod-oai-hss /bin/bash

tail -f hss_check_run.log

 bash into the mme container and tail the log

docker exec -it prod-oai-mme /bin/bash

tail -f mme_check_run.log

 bash into the spgc container and tail the log

docker exec -it prod-oai-spgwc /bin/bash

tail -f spgwc_check_run.log

bash into the spgwu container and tail the log  

docker exec -it prod-oai-spgwu-tiny /bin/bash

tail -f spgwu_check_run.log

 

Install tools in Docker containers

 The following tools can be useful to install in the in the prod-oai-spgwu-tiny. support tcpdump to gateway address. Also ping, and vi if you need it.

docker exec -it prod-oai-spgwu-tiny /bin/bash

apt-get update

apt install iputils-ping tcpdump iptables vim -y

In Docker Container

 

docker exec -it prod-oai-spgwu-tiny /bin/bash

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface pdn  -j ACCEPT
sysctl net.ipv4.conf.all.forwarding=1

Then reload the containers.
When the UE attaches to the network, ping responds when ping the Google DNS server 8.8.8.8

[INFO] [B200] Actually got clock rate 23.040000 MHz.
Waiting PHY to initialize ... done!
Attaching UE...
.
Found Cell:  Mode=FDD, PCI=0, PRB=50, Ports=1, CFO=-6.6 KHz
Found PLMN:  Id=22201, TAC=1
Random Access Transmission: seq=33, ra-rnti=0x2
Random Access Complete.     c-rnti=0x7025, ta=0
RRC Connected
Network attach successful. IP: 12.1.1.2
RF status: O=0, U=1, L=0



iristestbed@iristestbed-Inspiron-7577:~$ ping 12.1.1.1
PING 12.1.1.1 (12.1.1.1) 56(84) bytes of data.
64 bytes from 12.1.1.1: icmp_seq=1 ttl=64 time=26.4 ms
64 bytes from 12.1.1.1: icmp_seq=2 ttl=64 time=35.0 ms
64 bytes from 12.1.1.1: icmp_seq=3 ttl=64 time=33.9 ms
64 bytes from 12.1.1.1: icmp_seq=4 ttl=64 time=40.8 ms
64 bytes from 12.1.1.1: icmp_seq=5 ttl=64 time=23.1 ms

 

Start eNB

We used the following eNB config file: eNB Config file

Example:

Other edits: Make all the edits differentiated by the "+" in the diff files.

cd ~/openairinterface5g 
source oaienv

# edit the conf file by replacing all following parameters and `CI_*IP_ADDR` pattern with valid IP addresses for Magma EPC and OAI ENB
vi /home/${USER}/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.50PRB.usrpb210.conf


diff --git a/ci-scripts/conf_files/enb.band7.tm1.50PRB.usrpb210.conf b/ci-scripts/conf_files/enb.band7.tm1.50PRB.usrpb210.conf
index bdcc201fd..06e38df1d 100644
--- a/ci-scripts/conf_files/enb.band7.tm1.50PRB.usrpb210.conf
+++ b/ci-scripts/conf_files/enb.band7.tm1.50PRB.usrpb210.conf
@@ -14,7 +14,7 @@ eNBs =
 
     // Tracking area code, 0x0000 and 0xfffe are reserved values
     tracking_area_code = 1;
-    plmn_list = ( { mcc = 208; mnc = 92; mnc_length = 2; } );
+    plmn_list = ( { mcc = 901; mnc = 70; mnc_length = 2; } );
 
     tr_s_preference     = "local_mac"
 
@@ -179,7 +179,7 @@ eNBs =
 
 
     ////////// MME parameters:
-    mme_ip_address      = ( { ipv4       = "CI_MME_IP_ADDR";
+    mme_ip_address      = ( { ipv4       = "10.154.61.3";
                               ipv6       = "192:168:30::17";
                               active     = "yes";
                               preference = "ipv4";
@@ -189,18 +189,25 @@ eNBs =
     enable_measurement_reports = "no";
 
     ///X2
-    enable_x2 = "no";
+    ///X2
+    enable_x2 = "yes";
     t_reloc_prep      = 1000;      /* unit: millisecond */
     tx2_reloc_overall = 2000;      /* unit: millisecond */
+    target_enb_x2_ip_address      = (
+                                     { ipv4       = "10.154.50.69";
+                                       ipv6       = "192:168:30::17";
+                                       preference = "ipv4";
+                                     }
+                                    );
 
     NETWORK_INTERFACES :
     {
-        ENB_INTERFACE_NAME_FOR_S1_MME            = "eth0";
-        ENB_IPV4_ADDRESS_FOR_S1_MME              = "CI_ENB_IP_ADDR";
-        ENB_INTERFACE_NAME_FOR_S1U               = "eth0";
-        ENB_IPV4_ADDRESS_FOR_S1U                 = "CI_ENB_IP_ADDR";
+        ENB_INTERFACE_NAME_FOR_S1_MME            = "ens3";
+        ENB_IPV4_ADDRESS_FOR_S1_MME              = "10.154.50.60";
+        ENB_INTERFACE_NAME_FOR_S1U               = "ens3";
+        ENB_IPV4_ADDRESS_FOR_S1U                 = "10.154.50.60";
         ENB_PORT_FOR_S1U                         = 2152; # Spec 2152
-        ENB_IPV4_ADDRESS_FOR_X2C                 = "CI_ENB_IP_ADDR";
+        ENB_IPV4_ADDRESS_FOR_X2C                 = "10.154.50.60";
         ENB_PORT_FOR_X2C                         = 36422; # Spec 36422
     };
   }
iristest@enb:~/openairinterface5g$ 


# ensure no LTE session already running
sudo kill -9 `ps aux | grep -ie softmodem | awk '{print $2}' `

cd ~/openairinterface5g/cmake_targets/ran_build/build 

## example: sudo ./lte-softmodem -O **YOUR_ENB_CONF_FILE** | tee **YOUR_LOG_FILE**
sudo ./lte-softmodem -O /home/${USER}/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.50PRB.usrpb210.conf | tee mylogfile.log



###Notes:
###sudo -E ./lte_build_oai/build/lte-softmodem -O ~/openairinterface5g/ci-scripts/conf_files/my-enb.band7.tm1.25PRB.usrpb210.conf --eNBs.[0].rrc_inactivity_threshold 0 2>&1 | tee ENB.log

 

Start gNB

We used the following gNB config file: gNB config file

Make all the edits differentiated by the "+" in the diff files.

##edit the gnb.band78.tm1.106PRB.usrpb210.conf file and make the associated edits 
##
vi /home/${USER}/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf

+++ b/targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
@@ -15,7 +15,7 @@ gNBs =
     // Tracking area code, 0x0000 and 0xfffe are reserved values
     tracking_area_code  =  1;
 
-    plmn_list = ({mcc = 208; mnc = 93; mnc_length = 2;});       
+    plmn_list = ({mcc = 901; mnc = 70; mnc_length = 2;});       
 
     tr_s_preference     = "local_mac"
 
@@ -33,7 +33,7 @@ gNBs =
 #  downlinkConfigCommon
     #frequencyInfoDL
       # this is 3600 MHz + 43 PRBs@30kHz SCS (same as initial BWP)
-      absoluteFrequencySSB                                          = 641032;
+      absoluteFrequencySSB                                          = 641272;
       dl_frequencyBand                                                 = 78;
       # this is 3600 MHz
       dl_absoluteFrequencyPointA                                       = 640000;
@@ -197,7 +197,7 @@ gNBs =
 
 
     ////////// MME parameters:
-    mme_ip_address      = ( { ipv4       = "192.168.12.26";
+    mme_ip_address      = ( { ipv4       = "10.154.61.3";
                               ipv6       = "192:168:30::17";
                               active     = "yes";
                               preference = "ipv4";
@@ -207,10 +207,10 @@ gNBs =
     NETWORK_INTERFACES :
     {
 
-        GNB_INTERFACE_NAME_FOR_S1_MME            = "eth0";
-        GNB_IPV4_ADDRESS_FOR_S1_MME              = "192.168.12.111/24";
-        GNB_INTERFACE_NAME_FOR_S1U               = "eth0";
-        GNB_IPV4_ADDRESS_FOR_S1U                 = "192.168.12.111/24";
+        GNB_INTERFACE_NAME_FOR_S1_MME            = "ens3";
+        GNB_IPV4_ADDRESS_FOR_S1_MME              = "10.154.50.82/24";
+        GNB_INTERFACE_NAME_FOR_S1U               = "ens3";
+        GNB_IPV4_ADDRESS_FOR_S1U                 = "10.154.50.82/24";
         GNB_PORT_FOR_S1U                         = 2152; # Spec 2152
     };
   }

 
iristest@ue:~/openairinterface5g$ 

cd ~/openairinterface5g/cmake_targets/ran_build/build

# ensure no LTE session already running
sudo kill -9 `ps aux | grep -ie softmodem | awk '{print $2}' `

sudo ./nr-softmodem -O /home/${USER}/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpb210.conf | tee mylogfile.log


###notes:
####cd /home/${USER}/openairinterface5g/cmake_targets/ran_build/build
sudo ./nr-softmodem -E -O /home/${USER}/openairinterface5g/ci-scripts/conf_files/gnb.band78.tm1.fr1.106PRB.usrpb210.conf --parallel-config PARALLEL_SINGLE_THREAD -d

###~/openairinterface5g/cmake_targets/ran_build/build$ sudo ./nr-softmodem -O **YOUR_GNB_CONF_FILE** | tee **YOUR_LOG_FILE**

###sudo ./nr-softmodem -O  /home/${USER}/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf | tee mylogfile.log


According to (https://git.weibeltech.com/cellular/oai-openairinterface5g/-/blob/2b5c6a1e402f8300697426c5a6cccf5a66120a37/doc/TESTING_GNB_W_COTS_UE.md), the frequency setting requires a manual update in the .C and in the gNB conf file:

In the C file openair2/RRC/LTE/rrc_eNB.c:3217
set the nrarfcn to the same value as absoluteFrequencySSB in the gNB config file, that is 641272 in the example below

C file :

MeasObj2->measObject.choice.measObjectNR_r15.carrierFreq_r15 =641272;
vi /home/iristest/openairinterface5g/openair2/RRC/LTE/rrc_eNB.c
#MeasObj2->measObject.choice.measObjectNR_r15.carrierFreq_r15 =641272; //634000; //(634000 = 3.51GHz) (640000 = 3.6GHz) (641272 = 3619.08MHz = 3600 + 30/1000*106*12/2) (642256 is for 3.6GHz and absoluteFrequencySSB = 642016)

Start OAI NR UE

# ensure no LTE session already running
sudo kill -9 `ps aux | grep -ie softmodem | awk '{print $2}' `

#(to see help options)
sudo -E ./nr-uesoftmodem -h 

cd /home/${USER}/openairinterface5g/cmake_targets/ran_build/build


sudo ./nr-uesoftmodem -d --rrc_config_path . --nokrnmod --phy-test --rfsim --rfsimulator.serveraddr 10.200.1.1 --noS1

 

Troubleshooting

Getting the following error:

[HW]   Found USRP b200
[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 30.720000 MHz... 
[INFO] [B200] Actually got clock rate 30.720000 MHz.
-- Using calibration table: calib_table_b210_38[HW]   Clock source set neither in usrp_args nor on command line, using default!
[HW]   Time source set neither in usrp_args nor on command line, using default!

[HW]   Error: unknown sampling rate 61440000.000000

The sampling rate of 61440000.000000 is coming from the B210 (USB3.0) USRP

check out this link: https://kb.ettus.com/About_USRP_Bandwidths_and_Sampling_Rates 

 

To fix the problem, add -E to run the nr-softmodem

sudo ./nr-softmodem -E -O /home/${USER}/openairinterface5g/ci-scripts/conf_files/gnb.band78.tm1.fr1.106PRB.usrpb210.conf --parallel-config PARALLEL_SINGLE_THREAD -d

 

Error 2

[NR_RRC]   [FRAME 00000][eNB][MOD 00][RNTI 0] gNB:OPENAIR NR RRC IN....
[SCTP]   Found data for descriptor 86
[SCTP]   [60][86] Msg of length 56 received from port 36422, on stream 0, PPID 27
[X2AP]   x2ap_eNB_decode_initiating_message!
[X2AP]   3584 -> 00e000
[X2AP]   TAC: 30960 -> 78f0
[SCTP]   Found data for descriptor 86
[SCTP]   Received notification for sd 86, type 32777

Assertion (0) failed!
In x2ap_eNB_generate_x2_setup_response() /home/iristest/openairinterface5g/openair2/X2AP/x2ap_eNB_generate_messages.c:456
Failed: Check value for N_RB_DL/N_RB_UL
Exiting execution
[SCTP]   Found data for descriptor 86
[SCTP]   [60][86] Msg of length 53 received from port 36422, on stream 0, PPID 27

 Solve: ???

Error 3

OAI-FED-EPC saying problems with the APN as in the below error

009885 01470:401680 7FA7057FA700 DEBUG S6A    /src/s6a/s6a_subscription_data.c:0473    AVP code 1446 Regional-Subscription-Zone=Code not processed
009886 01470:401683 7FA7057FA700 DEBUG S6A    /src/s6a/s6a_subscription_data.c:0473    AVP code 1446 Regional-Subscription-Zone=Code not processed
009887 01470:401714 7FA7057FA700 DEBUG S6A    openair-mme/src/s6a/s6a_up_loc.c:0182    Sending S6A_UPDATE_LOCATION_ANS to task MME_APP
009888 01470:401731 7FA70D7FA700 TRACE MME-AP e/src/mme_app/mme_app_location.c:0053    Entering mme_app_handle_s6a_update_location_ans()
009889 01470:401767 7FA70D7FA700 DEBUG MME-AP e/src/mme_app/mme_app_location.c:0064    mme_app_handle_s6a_update_location_ans Handling imsi 222010100000018
009890 01470:401784 7FA70D7FA700 INFO  NAS-EM r-mme/src/nas/emm/emm_data_ctx.c:0876    EMM-CTX - get UE id a context 0x7fa67c0034b0
009891 01470:401793 7FA70D7FA700 DEBUG NAS-EM r-mme/src/nas/emm/emm_data_ctx.c:0900    EMM-CTX - get UE id a context 0x7fa67c0034b0 by imsi 222010100000018
009892 01470:401800 7FA70D7FA700 TRACE MME-AP me/src/mme_app/mme_app_context.c:0979    Entering mme_remove_subscription_profile()
009893 01470:401806 7FA70D7FA700 WARNI MME-AP me/src/mme_app/mme_app_context.c:0987    No subscription data was found for IMSI 222010100000018 in the subscription profile cache.009894 01470:401811 7FA70D7FA700 TRACE MME-AP me/src/mme_app/mme_app_context.c:0988    Leaving mme_remove_subscription_profile() (rc=0)
009895 01470:401815 7FA70D7FA700 TRACE MME-AP me/src/mme_app/mme_app_context.c:0936    Entering mme_insert_subscription_profile()
009896 01470:401819 7FA70D7FA700 TRACE MME-AP me/src/mme_app/mme_app_context.c:0962    Leaving mme_insert_subscription_profile() (rc=0)
009897 01470:401823 7FA70D7FA700 INFO  MME-AP e/src/mme_app/mme_app_location.c:0100    Updated the subscription profile for IMSI 222010100000018 in the cache. 
009898 01470:401827 7FA70D7FA700 TRACE MME-AP me/src/mme_app/mme_app_context.c:1001    Entering mme_app_update_ue_subscription()
009899 01470:401831 7FA70D7FA700 TRACE MME-AP me/src/mme_app/mme_app_context.c:1066    Leaving mme_app_update_ue_subscription() (rc=0)
009900 01470:401845 7FA70D7FA700 TRACE MME-AP e/src/mme_app/mme_app_location.c:0151    Leaving mme_app_handle_s6a_update_location_ans() (rc=0)
009901 01470:401851 7FA70FFFF700 TRACE NAS-ES r-mme/src/nas/esm/nas_esm_proc.c:0209    Entering nas_esm_proc_pdn_config_res()
009902 01470:401877 7FA70FFFF700 TRACE NAS-ES ir-mme/src/nas/esm/sap/esm_sap.c:0141    Entering esm_sap_signal()
009903 01470:401886 7FA70FFFF700 INFO  NAS-ES ir-mme/src/nas/esm/sap/esm_sap.c:0156    ESM-SAP   - Received primitive ESM_PDN_CONFIG_RES (1)
009904 01470:401890 7FA70FFFF700 TRACE NAS-ES me/src/nas/esm/PdnConnectivity.c:0561    Entering esm_proc_pdn_config_res()
009905 01470:401894 7FA70FFFF700 TRACE MME-AP mme_app/mme_app_esm_procedures.c:0220    Entering mme_app_nas_esm_get_pdn_connectivity_procedure()
009906 01470:401902 7FA70FFFF700 TRACE MME-AP mme_app/mme_app_esm_procedures.c:0238    Leaving mme_app_nas_esm_get_pdn_connectivity_procedure() (rc=140352820355744)
009907 01470:401906 7FA70FFFF700 TRACE MME-AP /mme_app/mme_app_apn_selection.c:0055    Entering mme_app_select_apn()
009908 01470:401917 7FA70FFFF700 TRACE MME-AP /mme_app/mme_app_apn_selection.c:0112    Leaving mme_app_select_apn() (rc=-1)
009909 01470:401921 7FA70FFFF700 ERROR NAS-ES me/src/nas/esm/PdnConnectivity.c:0649    ESM-SAP   - No APN configuration could be found for APN "wap.tim.it". Rejecting the PDN connectivity procedure.(ue_id=10, pti=5)
009910 01470:401930 7FA70FFFF700 TRACE NAS-ES me/src/nas/esm/PdnConnectivity.c:0652    Leaving esm_proc_pdn_config_res() (rc=27)
009911 01470:401940 7FA70FFFF700 TRACE NAS-ES me/src/nas/esm/PdnConnectivity.c:0119    Entering esm_send_pdn_connectivity_reject()
009912 01470:401944 7FA70FFFF700 DEBUG NAS-ES me/src/nas/esm/PdnConnectivity.c:0143    ESM-SAP   - Send PDN Connectivity Reject message (pti=5, ebi=0)


and further down the logs:

007165 01153:312997 7FA70D7FA700 TRACE MME-AP /src/mme_app/mme_app_transport.c:0055    Entering mme_app_handle_nas_dl_req()
007166 01153:313004 7FA70FFFF700 TRACE NAS-EM air-mme/src/nas/emm/sap/emm_as.c:1286    Leaving _emm_as_send() (rc=0)
007167 01153:313012 7FA70D7FA700 DEBUG MME-AP /src/mme_app/mme_app_transport.c:0068    DOWNLINK NAS TRANSPORT Found enb_ue_s1ap_id 6860ed mme_ue_s1ap_id 7
007168 01153:313017 7FA70FFFF700 TRACE NAS-EM air-mme/src/nas/emm/sap/emm_as.c:0238    Leaving emm_as_send() (rc=0)
007169 01153:313030 7FA70D7FA700 TRACE MME-AP /src/mme_app/mme_app_transport.c:0099     MME_APP:DOWNLINK NAS TRANSPORT. MME_UE_S1AP_ID 7 and ENB_UE_S1AP_ID 6860ed. 
007171 01153:313053 7FA70FFFF700 TRACE NAS    ir-mme/src/nas/api/mme/mme_api.c:0706    Entering mme_api_remove_subscription_data()
007172 01153:313056 7FA70D7FA700 ERROR MME-AP /src/mme_app/mme_app_transport.c:0172     MME_APP: UE MME_UE_S1AP_ID 7 is in UE_UNREGISTERED state. Triggering detach (S11 should already be removeD).
007173 01153:313058 7FA70FFFF700 TRACE MME-AP me/src/mme_app/mme_app_context.c:0979    Entering mme_remove_subscription_profile()
007170 01153:313044 7FA70DFFB700 DEBUG S1AP   c/s1ap/s1ap_mme_nas_procedures.c:0456    SEARCHING UE REFERENCE for SCTP association id 3,  enbUeS1apId 6860ed and enbId 3585. 
007174 01153:313063 7FA70D7FA700 TRACE MME-AP mme_app/mme_app_itti_messaging.c:0065    Entering mme_app_itti_ue_context_release()
007175 01153:313072 7FA70FFFF700 TRACE MME-AP me/src/mme_app/mme_app_context.c:0995    Leaving mme_remove_subscription_profile() (rc=140354967842800)
007176 01153:313095 7FA70D7FA700 TRACE MME-AP mme_app/mme_app_itti_messaging.c:0080    Leaving mme_app_itti_ue_context_release()
007178 01153:313107 7FA70FFFF700 TRACE NAS    ir-mme/src/nas/api/mme/mme_api.c:0711    Leaving mme_api_remove_subscription_data() (rc=140354967842800)
007177 01153:313103 7FA70DFFB700 NOTIC S1AP   c/s1ap/s1ap_mme_nas_procedures.c:0547    Send S1AP DOWNLINK_NAS_TRANSPORT message ue_id = 7 MME_UE_S1AP_ID = 7 eNB_UE_S1AP_ID = 6860ed

 

Solve:

Change the APN to an acceptable value so you dont get this error. You need to investigate what is the APN you are suppose to be using. Check the phone - as it might tell you.

######################################
##HSS
######################################
echo "###########Launch HSS###############"
sleep 2
HSS_IP=`docker exec -it prod-oai-hss /bin/bash -c "ifconfig eth1 | grep inet" | sed -f ./ci-scripts/convertIpAddrFromIfconfig.sed`
sleep 2
python3 component/oai-hss/ci-scripts/generateConfigFiles.py --kind=HSS --cassandra=${Cassandra_IP} \
--hss_s6a=${HSS_IP} --apn1=wap.tim.it --apn2=ibox.tim.it \
--users=200 --imsi=222010100000001 \
--ltek=fec86ba6eb707ed08905757b1bb44b8f --op=1006020f0a478bf6b699f15c062e42b3 \
--nb_mmes=1 --from_docker_file
sleep 2
docker cp ./hss-cfg.sh prod-oai-hss:/openair-hss/scripts
sleep 2
docker exec -it prod-oai-hss /bin/bash -c "cd /openair-hss/scripts && chmod 777 hss-cfg.sh && ./hss-cfg.sh"


######################################
##SPGW-C
######################################
echo "###########Launch SPGW-C###############"
sleep 2
python3 component/oai-spgwc/ci-scripts/generateConfigFiles.py --kind=SPGW-C \
--s11c=eth0 --sxc=eth0 --apn=wap.tim.it \
--dns1_ip=8.8.8.8 --dns2_ip=8.8.4.4 --from_docker_file
sleep 2
docker cp ./spgwc-cfg.sh prod-oai-spgwc:/openair-spgwc
sleep 2
docker exec -it prod-oai-spgwc /bin/bash -c "cd /openair-spgwc && chmod 777 spgwc-cfg.sh && ./spgwc-cfg.sh"

OAI Support and Troubleshooting

The best source of support and troubleshooting issues is available here:

https://gitlab.eurecom.fr/oai/openairinterface5g/-/wikis/MailingList

https://lists.eurecom.fr/sympa/info/openair5g-user