All in one OpenAirInterface

November 28th 2019: fix from user review

September 23rd 2019: minor fix of warnings

September 2019, large rework and update to latest eNB

June 21st 2019: replace ubuntu 17.04 by ubuntu 18.04

Sept 7th 2017: small update for more recent eNB git commit version in develop branch

Starting condition:
Ubuntu 18.04 all packages upgraded, uhd last commit, OAI last commit

Modifications

  • Latest commits
  • Fix a issue in mme that crash mme with some phones in the attach-request procedure
    If you want to fix only this issue, pick files:
    src/nas/emm/Attach.c
    src/nas/ies/SupportedCodecList.c
    in the hereafter tar file
    The issue is: mme wrong decoding of smartphone codec list
  • Full re-test, from disk install of Ubuntu 17.04 to commercial UEs throughput measurement (Android 5 and Android 6)

This document explains how to install and configure OAI EPC+eNB on one single Ubuntu 18.04 64 bits machine connected with a regular UE, routing the UE traffic to internet.

The description uses a USRP B210 board.

We also explain how to simplify, fix existing issues, to make a single computer as a full LTE network: EPC+eNB.

Known limitations fixed in the hereafter description

  • GTP UDP ports are in conflict for eNB and SGW
  • Useless link between OAI and the Ubuntu/Linux hostname removed
  • Several simplifications and precisions to make easier and reliable installations

Install Ubuntu

  • Prepare a machine: a 4 actual cores, no hyper-threading.
    All other configuration in OAI Wiki (C1 states, …) describes is about useless.
  • Download Ubuntu 18.04 64 bits version iso file
  • create a usb key to boot on it
  • install Ubuntu: choose to install Third party SW, and to upgrade all packages while installing
  • do: apt update; apt upgrade until the machine is up-to-date
  • install git and configure your identification in git:
     sudo apt install git 
     git config --global user.name "Laurent"
     git config --global user.email "laurent.thomas@open-cells.com"
  • Add the OAI repository as authorized remote system
    echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
  • if you are upset with sudo password, add this line in /etc/sudoers
    • xxxxxx ALL=(ALL) NOPASSWD: ALL (xxxxxx is your login name)
    • sudo will not ask anymore for a password

Install USRP drivers

We prefer to use UHD driver from source:

sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-mako doxygen python-docutils python-requests python3-pip cmake build-essential
pip3 install mako numpy
git clone git://github.com/EttusResearch/uhd.git
cd uhd; mkdir host/build; cd host/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install
sudo ldconfig
sudo /usr/lib/uhd/utils/uhd_images_downloader.py

Download our modifications

download and extract the data:

cd ~
wget https://open-cells.com/opencells-mods-20190923.tgz
tar xf opencells-mods-20190923.tgz

Download and patch EPC

Clone OAI EPC:

# maybe go back to home directory (leave openairinterface5g directory)
git clone https://gitlab.eurecom.fr/oai/openair-cn.git
cd openair-cn
git checkout develop

We tested with commit: 724542d0b59797b010af8c5df15af7f669c1e838

The Eurecom gitlab require now a login, if you don’t have one, a copy of the git repository is in:openair-cn extract the tar with

tar xf openair-cn.tgz
cd openair-cn
git checkout develop

This is the last commit for OAI EPC on this development tree. Active OpenAir EPC is now another project on github. We use here this legacy EPC because the installation is quite easy (the new project uses Cassandra, al LOT of virtual machines, OpenVswitch and complex dependancies).

Apply the patch:

git apply ~/opencells-mods/EPC.patch

The new version of the source files are also in the tar, if you want to merge with another version of OpenAir EPC

What is in the patch file:

  • Add Ubuntu 18.04 for compilation and fix some bugs
  • Remove link between Linux host name and LTE diameter protocol configuration
  • Add usage of the input address for the SGW input socket
  • modify the freediameter S6a interface to fix a wrong OAI parameter
  • No kernel module patch is required: generic Ubuntu kernel 18.04 works fine with OAI
  • separate ASN.1 compiler installation to be compatible with other OpenAir components on the same machine (ans1c version is different for eNB and gNB)

Install third party SW for EPC

cd openair-cn; source oaienv; cd scripts
./build_hss -i
  • Answer yes to install: freeDiameter 1.2.0
  • phpmyadmin:
    • We don’t use phpmyadmin later in this procedure to update the MySQL database
    • We removed the installation of phpmyadmin (of course you can use it if you prefer)

For ubuntu 18.04, we set back the legacy mysql security level

sudo mysql -u root << END
USE mysql;
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
FLUSH PRIVILEGES;
END

sudo systemctl restart mysql.service

sudo mysql_secure_installation

The last command will ask a few questions:

    • password: set your password (linux is set in our default config files)
    • VALIDATE PASSWORD PLUGIN: no
    • Remove anonymous users: yes
    • Disallow root login remotely: yes
    • Remove test database and access to it: yes
    • Reload privilege tables now: yes
  • Install 3PP SW for mme and spgw
./build_mme -i
  • Do you want to install freeDiameter 1.2.0: no
  • Do you want to install asn1c rev 1516 patched? <y/N>: yes
  • Do you want to install libgtpnl ? <y/N>: yes
  • wireshark permissions: as you prefer
 ./build_spgw -i
  • Do you want to install libgtpnl ? <y/N>: no

Compile the EPC nodes

No difficulty found in this phase.

cd openair-cn; source oaienv; cd scripts
./build_hss
./build_mme
./build_spgw

If you face compilation issues, the log files are in openair-cn/build/log

In there files, look for “error:” string.

Download & Compile the eNB on 18.04

git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd openairinterface5g
git checkout develop
  • We tested with commit edb74831dabf79686eb5a92fbf8fc06e6b267d35
  • Build in two steps
source oaienv  
./cmake_targets/build_oai -I  # install SW packages from internet
./cmake_targets/build_oai -w USRP --eNB --UE # compile eNB and UE

Our Network setup description

I’ve made a simple configuration for this all-in-one setup.

Each node is on a separate IP address, this address is used for all it’s interfaces. In our case of all-in-one, we take addresses on the loopback: this will be fine on all your machines.

  • HSS is on localhost: 127.0.0.1
  • eNB is on 127.0.0.10
  • MME is on 127.0.0.20
  • SPGW is on 127.0.0.30

The LTE diameter configuration is now isolated from Linux hostname.

realm for our EPC: “OpenAir5G.Alliance”, so, full distinguish names (FQDN) are: hss.OpenAir5G.Alliance, mme.OpenAir5G.Alliance

Install this configuration for eNB

In your eNB configuration file, the network is now fixed, as lo interface always exists and our computer internal addresses also:

////////// MME parameters:
 mme_ip_address = ( { ipv4 = "127.0.0.20";
 ipv6 = "192:168:30::17";
 active = "yes";
 preference = "ipv4";
 }
 );

NETWORK_INTERFACES : 
 {
 ENB_INTERFACE_NAME_FOR_S1_MME = "lo";
 ENB_IPV4_ADDRESS_FOR_S1_MME = "127.0.0.10/8";

 ENB_INTERFACE_NAME_FOR_S1U = "lo";
 ENB_IPV4_ADDRESS_FOR_S1U = "127.0.0.10/8";
 ENB_PORT_FOR_S1U = 2152; # Spec 2152
 };

In the eNB config file, you need also to set the MCC and MNC as per your SIM card:

tracking_area_code = “1”;
mobile_country_code = “208”;
mobile_network_code = “92”;

And obviously, your radio parameters.

Wwe tested with USRP B210 20MHz band, Huawei E3272 UE, a cavity duplexer a simple antenna, about 1 meter distance UE/eNB antenna with this file: ~/opencells-mods/enb.10MHz.b200

if you use the OpenAir UE, a sim card file that match our hss database example: opencells-mods/sim.conf. We will make another tutorial to use together OpenAir UE and rf board simulation

Install this configuration for EPC

For the EPC, we install in OAI default directory: /usr/local/etc/oai

sudo mkdir -p /usr/local/etc/oai
sudo cp -rp ~/opencells-mods/config_epc/* /usr/local/etc/oai
cd openair-cn; source oaienv; cd scripts
./check_hss_s6a_certificate /usr/local/etc/oai/freeDiameter hss.OpenAir5G.Alliance
./check_mme_s6a_certificate /usr/local/etc/oai/freeDiameter mme.OpenAir5G.Alliance

Only the SGi output to internet need to be configured.
In /usr/local/etc/oai/spgw.conf,
your should set the Ethernet interface that is connected to Internet, and,
to tell to the PGW to implement NAPT for the UE traffic

 PGW_INTERFACE_NAME_FOR_SGI = "enp3s0"; 
 PGW_MASQUERADE_SGI = "yes";

For the SIM card, you’ll have more to do:

  • SIM MCC/MNC should be duplicated in a couple of files
    • eNB: See above in eNB configuration chapter
    • MME file: /usr/local/etc/oai/mme.conf to update
GUMMEI_LIST = ( MCC="208" ; MNC="92"; MME_GID="4" ; MME_CODE="1"; } );
TAI_LIST = ({MCC="208" ; MNC="92"; TAC = "1"; } );
    • HSS
      • Configure the password for MySQL
        • in /usr/local/etc/oai/hss.conf, set password as the password you created during MySQL installation
      • A HSS database in text is in: ~/opencells-mods/opencells_db.sql
        • We don’t use phpmyadmin: we load the database from a ascii file
        • It is pre-configured with the
          • mme id
          • 10 users is network 208/92 (a French test network) are also created (don’t use 3GPP test network: 001/01: the mme fails when MCC starts by “0”)
        • Each time you import this db, it erases the entire database
          (example: you set mysql password to “linux”)
~/opencells-mods/hss_import 127.0.0.1 root linux oai_db ~/opencells-mods/opencells_db.sql
        • We use to modify the db by updating this file with regular text editor,
          then we re-load the entire database,
          but, if you prefer, usage of http://localhost/phpmyadmin is fine.
        • if you modified the hss db directly, we offer a export script:
          ~/opencells-mods/hss_export
        • The important values to set are:
          • table pdn:
            • all IMSI are listed, with the APN: these values are in UE/USIM
          • table users:
            • all IMSI, key (Ki) and OPc must be the same in USIM card
            • Sqn increments automatically  when the UE authenticate in both USIM and HSS DB: it should be set as per USIM internal incrementation
      • SIM card update
        • Open cells UICC and card reader will  be supported

Final test and verification

open 4 terminal windows

  1. in each window
cd openair-cn; source oaienv; cd scripts; ./run_hss
cd openair-cn; source oaienv; cd scripts; ./run_mme
cd openair-cn; source oaienv; cd scripts; sudo -E ./run_spgw
sudo bash
cd ~/openairinterface5g; source oaienv
cd cmake_targets/lte_build_oai/build
./lte-softmodem -O ~/opencells-mods/enb.10MHz.b200

Connect the UE, it should attach to network and be able to reach internet through OAI network.

If the UE attaches, but you don’t have internet access, verify phone configuration: enable data in config->sim and verify the APN value

Issues related to CPU power

If you reach performance issues: USRP/UHD prints “LLLLL” or the process exits “problem with samples”, OVERFLOW, …

The first case is to verify the USRP dialogs over USB3 (not USB2): the process must report:

Found USRP B200
-- Detected Device: B200
-- Operating over USB 3.

For OAI source code, we wrote improvements and some hints for UE performance last year. The Linux/Ubuntu advises can be applied to the eNB:

https://gitlab.eurecom.fr/oai/openairinterface5g/wikis/setup-for-real-time-performance

We may make later a post for eNB (OAI/eNB can reach much better performance than today develop branch, but it require to enhance parts of the source code).

We re-built this procedure from scratch and tested i5-6600K.

On the i5-6600K, we obtained stable performance at maximum traffic over 20MHz, transmission mode 1 (SISO), duplexer, antenna, E3372 UE (one single UE) over-the-air 10 cm distance :

235 thoughts on “All in one OpenAirInterface”

  1. Hi, Laurent,
    I ran the eNB and EPC successfully. And my board is Limesdr, but I have also met some problem.
    Build the lte-softmodem,like this:
    ./cmake_targets/build_oai -c -w LMSSDR –eNB –UE
    run lte-softmodem:
    sudo ./cmake_targets/lte_build_oai/build/lte-softmodem -O ./targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.50PRB.usrpb210.conf –rf-config-file ./targets/ARCH/LMSSDR/LimeSDR_above_1p8GHz_1v4.ini

    But I can not get the tx signal when I checked the frequency of nearby neighborhoods by professional equipment. Can you help me out please?

    1. Hi,
      Maybe try first to follow our LimeSDR guide (see the dedicated post)
      We didn’t try LimeSDR for a while, I’ll run a test soon.
      Regards,
      Laurent

    2. Hi i had the same problem , i changed tx_gain to 100 in enb.band7.tm1.50PRB.lmssdr.conf file and now carrier is visible .

      But i can’t see base station in my phone , phone is nexus 5x and i know it support LTE band7 without problem .

      i even set mnc and mcc according to my sim card in enb.band7.tm1.50PRB.lmssdr.conf and mme.conf .

  2. Hi Dear Laurent
    Could you please help me regarding a problem that occures in the execution of lte-softmodem
    That error is:

    [MAC][I][eNB_dlsch_ulsch_scheduler] UE rnti 72c : in synch, PHR 36 dB CQI 15
    [RRC][I]UE rnti 72c failure timer 0/20000
    [PHY][I]rx_rf: rfdevice timing drift of -1 samples (ts_off 62698675)
    [PHY][I]UE 0 : rnti 72c
    [MAC][I][eNB_dlsch_ulsch_scheduler] UE rnti 72c : in synch, PHR 38 dB CQI 15
    [RRC][I]UE rnti 72c failure timer 0/20000
    [PHY][I]UE 0 : rnti 72c
    [MAC][I][eNB_dlsch_ulsch_scheduler] UE rnti 72c : in synch, PHR 38 dB CQI 15
    [RRC][I]UE rnti 72c failure timer 0/20000

    1. Reza,
      There is no error in this: [I] trace is “information”
      It tells you the UE is attached, and no failure timer occured.
      the 0/20000 means that after 20000 errors, the eNB will abort the UE connexion
      Regards,
      Laurent

  3. Hi Laurent!
    Thank you for the detailed steps it worked fine, however I have tested a different setup, I considered epc on one machine (I have used the patch you have provided) and enb + oaisim on another machine(I run one enb and one user). As a result the enb could not connect to the epc’s mme leading to the ue not being able to attach to epc’s hss+mme. Do you have any suggestions?

    1. Hello,
      We never work with OAISIM.
      We will publish a separte channel simulator that will work with regular OAI UE and OAI eNB,
      nevertheless, as it is free, we do it in “best effort” work.
      Regards,
      Laurent

  4. Hi, Laurent

    Could you please give a hint as to why after command

    ~/openairinterface5g$ git checkout develop

    I get error message when trying to apply the patch?

    git apply ../opencells-mods/eNB.patch
    error: patch failed: cmake_targets/tools/build_helper:551
    error: cmake_targets/tools/build_helper: patch does not apply

    1. Actual commit is commit 1fb76157c838819587a4a5bd0c214fc100b7fbaf. ‘Though it says that it has merged the commit 17b9a9e917ce2a3a8c7004c7b9a221c350ddfe17 that you tested against, later build_oai -I for eNB fails with ‘oai doesn’t support ubuntu 17.04’ message.

    2. Below is git apply in verbose mode.

      ~/openairinterface5g$ git apply -v ../opencells-mods/eNB.patch
      Checking patch cmake_targets/tools/build_helper…
      error: while searching for:
      pydb \
      libyaml-dev \
      wget \
      libxpm-dev

      $SUDO update-alternatives –set liblapack.so /usr/lib/atlas-base/atlas/liblapack.so

      #Remove old gnutls/nettle installation that was done from sources
      remove_nettle_from_source

      $SUDO apt-get install -y nettle-dev nettle-bin
      remove_gnutls_from_source

      $SUDO apt-get install -y libgnutls-dev
      elif [[ “$OS_BASEDISTRO” == “fedora” ]]; then
      if [[ “$OS_DISTRO” == “rhel” ]] || [[ “$OS_DISTRO” == “centos” ]]; then
      if rpm -q epel-release > /dev/null; then

      error: patch failed: cmake_targets/tools/build_helper:551
      error: cmake_targets/tools/build_helper: patch does not apply

      1. I am not a linux nerd, but libgnutls-dev library is compatible with previous release of Ubuntu, 16.04. 17.04 utilizes libgnutls30 library only. Do you think it could be the reason for the patch to fail? If yes, how one can fix it?

        1. As per description of git apply error, the patch couldn’t find the line of code in question. It could have been added by earlier commits.

          1. Got tired of finding out where the diff between eNB.patch and build_helper comes from, so applied changes manually.

          2. Dmitry,
            Thanks to point out the latest develop git branch commit refuses to merge our patch.
            I’m a bit lost in your trials:
            – works fine with the version we tested
            => if you do git checkout 17b9a9e917ce2a3a8c7004c7b9a221c350ddfe17
            the patch works fine
            – for the latest commit, as you discovered, the command “git apply eNB.patch” fails
            => the merge fails for a small detail
            instead of git apply, replace the file we need to patch by our version:
            cp ../opencells-mods/cmake_targets/tools/build_helper cmake_targets/tools/build_helper

            I tested: the following compilation works, nevertheless someone will have to perform a full test with a UE.

            I’ll do a new patch version later (we’ll try to maintain this tutorial up to date with latest commits about once per month).

            Regards,
            Laurent

  5. Hi Laurent,
    i am getting following error while executing ./run_spgw:
    Initializing GTPV1U interface
    Creating new listen socket on address 127.0.0.30 and port 2123
    Inserting new descriptor for task 6, sd 31
    Received 1 events
    rmmod: ERROR: Module gtp is not currently loaded
    ERROR in loading gtp kernel module (check if built in kernel)
    Initializing GTPv1-U ERROR
    Function sgw_init (&spgw_config) has failed
    returning -1

    i am using Ubuntu 17.04 (GNU/Linux 4.10.0-33-generic x86_64), i have applied the patches given above. could you please help me out here?

    Regards,
    Ankita

  6. Hi, Laurent,
    I have succesfully compiled eNB+EPC, my RF board is limeSDR. No issues, your instructions are excellent, code is great, components of the system start smoothly, except eNB. I get LLLLL soon after the start of the eNb. My system is Ubuntu 17.04, CPU i5-3260, 4 cores (MacBook Pro 2013+Retina). Applying cpu improvement instructions make things even worse. So my question to you is should i opt for a more powerfull HW or there are code enhancement opportunities yet to be realized that will make the code run on a weaker system? Could moving mme+hss+spgw to a different machine help my cpu handle eNB processing load? I’d appreciate you giving a piece of advice.

    1. Dmitry,

      About the CPU, i don’t find this reference, maybe it is a i5-3360M.
      Anyway, it is likely a 2 cores CPU + hyperthreading.
      You can verify with:
      grep -i core /proc/cpuinfo
      grep siblings /proc/cpuinfo

      If the cores have siblings, it means hyperthreading is running and you see two cores whereas only one exists (this is not two cores, but one core with two sets of registers).

      I saw many people on the mailing list complaining OAI doesn’t run well on such (even recent) 2 cores CPUs (Intel released even “i7” with two actual cores).

      Today, I don’t think OAI runs nicely (even 5MHz/SISO) on such 2 cores CPU, but it should (if we pay enough effort in optimization).
      The best you can do right now: isolate the second core in a shield (probably core 1 and 3 are siblings)
      Run the EPC out of the shielded core
      Run the softmodem in the shielded domain.

      I don’t think running the EPC on another machine will make it significantly better, but you can try.
      For this separate EPC, change the IPs in the all config files to use the Ethernet interface ones.
      (If it is not that simple, I’ll make a post on separate eNB/EPC configuration).

      In next months, we need is to improve the softmodem to run well with less CPU.
      Open cells implemented pieces of code, for that purpose.
      We didn’t release it because we wait a major update that will come soon in develop branch to merge our improvements.
      It is hard to estimate when we will release our work: there is overlap between the near future huge commit in develop branch and what we did.
      So, we expect a complex “merge” that will partially erase what we did.

      Furthermore, we have to deliver first the work we are paid for.
      This is also why we didn’t progress during August on our LimeSDR tests: we do such free open source in best effort mode.

      Regards,
      Laurent

      1. Laurent,

        Thanks for replying. I double checked, my CPU is i5-3230M, 2 cores. Look forward to getting into cpu shielding.

  7. Hi Laurent,
    Recently, my friends told me a way to solve the “LLLLL…” in eNB.
    In system settings->software& updates->Additional Drivers ,we select “Do not use the device ” instead of “Using processor microcode …….”, restart the computer, then it works. that’s all, thank you.

    1. Hello,
      This is a very important remark that need to be qualified better.
      This package is made by Intel, only Intel know what is in, but we know the purpose.
      The motherboard bios contains a version of Intel microcode (a microcode must be loaded in the CPU).
      The Debian/Ubuntu package runs a Intel code that updates this microcode if needed.

      So, you found at least a case where the updated microcode is worse than the one in the bios.

      Could you provide us with more information: CPU type, mother board reference and bios version where this situation occurs?

      thanks for this discovery
      Laurent

  8. Hello,
    I’m sorry to reply you so late.
    my computer is (DELL)3668-R2938/R1938
    and CPU type is i7-7700
    bios version 1.1.0
    Before I change it, it prints out the “LLL…” every time when I run eNB.

    thanks

    1. Hi,
      The source of microcode seems to be:
      https://downloadcenter.intel.com/download/26925/Linux-Processor-Microcode-Data-File
      in the tar file, the file releasenote explains how is done the root integration in Linux.

      Ubuntu/Debian seems to only repackage this from Intel delivery, believing they will put better version than the MB bios one.
      In your case it seems a mistake to perform this update.

      Linux boot trace gives us the microcode version:
      dmesg | grep microcode:

      If microcode update in enabled, the output has a line like:
      [ 0.000000] microcode: microcode updated early to revision 0xba, date = 2017-04-09

      In all cases, the microcode version is given like:
      [ 0.963620] microcode: sig=0x506e3, pf=0x2, revision=0xba

      Could you check the versions you have in each case?
      Regards,
      Laurent

  9. Hi Laurent,
    after I run “dmesg | grep microcode”,I got the output as follows;
    [ 0.086702] mce: [Hardware Error]: PROCESSOR 0:906e9 TIME 1510484689 SOCKET 0 APIC 0 microcode 48
    [ 0.086704] mce: [Hardware Error]: PROCESSOR 0:906e9 TIME 1510484689 SOCKET 0 APIC 0 microcode 48
    [ 0.086707] mce: [Hardware Error]: PROCESSOR 0:906e9 TIME 1510484689 SOCKET 0 APIC 0 microcode 48
    [ 0.086709] mce: [Hardware Error]: PROCESSOR 0:906e9 TIME 1510484689 SOCKET 0 APIC 0 microcode 48
    [ 0.818583] microcode: sig=0x906e9, pf=0x2, revision=0x48
    [ 0.818766] microcode: Microcode Update Driver: v2.2.
    I don’t know what it means, could you figure it out for me, thank you.

    ldle

    1. Hi
      mce => machine check exception
      Means your machine have a HW fault (or the SW wrongly detects HW fault)
      there is package to obtain more details:
      apt install mcelog
      mcelog --client

      Do you have this log for both cases: with “microcode enabled” in ubuntu drivers?
      Regards,
      Laurent

  10. Hi Laurent:
    when i run “./cmake_targets/lte_build_oai/build/lte-softmodem -O “,the result is ok,but when i run “./cmake_targets/lte_build_oai/build/lte-softmodem -O -d”,it whill occure an error(core dump) like below:

    [PHY][I]lte_parms.c: Setting N_RB_DL to 50, ofdm_symbol_size 1024
    Scope thread has priority 2
    Scope thread created, ret=0
    Segmentation fault (core dumped)

    I don’t know what it means, could you figure it out for me, thank you.

    brieftime

      1. Hello,
        I guess you use new develop (commit after October 23rd).
        In this version and all above major regressions exist(see the mail from Cédric “IMPORTANT NOTICE: new versions of master and develop branches” when this update has been done).
        If i’m right, please complain on OAI mailing list about all defects that appeared in this commit and after).
        Regards,
        Laurent

  11. Hi Laurent
    I’m running the program with configurations given in opencells-cells/enb.10MHz.b200 file on USRP B210.
    when my phone found the 4G network I’ve got the following error messages:

    [OSA][E]Mismatch found in integrity for algorithm 2,
    got 8c.83.1c.b4, expecting 00.00.00.00
    [PDCP][E][OSA][RB 1] eNB failed to validate MAC-I of incoming PDU

    [S1AP][E][s1ap_eNB_task] Received unhandled message: 94:S1AP_INITIAL_CONTEXT_SETUP_FAIL

    [PHY][E]ERROR: Format 1A: rb_alloc (7ff) > RIV_max (4fa)

    [PHY][E][eNB 0] Frame 982: Unknown UE_id for rnti 7931

    and after 10-20 seconds fails to Internet connection, but stay to show the 4G sign on my phone.
    Thanks in advance.

    1. Hi,
      S1AP fails to create the link for an issue in the cyphering keys: what is your phone and what SIM card do you use?
      Laurent

        1. Hi Aram,
          This is a problem of security keys: likely the phone is working well, maybe you didn’t program well the sysmoUSIM-SJS1 or the core network is not working.
          I would suspect the EPC: are you using OAI EPC?
          Regards,
          Laurent

          1. I used exactly the same way mentioned in Your artice above.

            I’ve added in the config file the following settings:
            srs_enable = “ENABLE”;
            srs_BandwidthConfig = 2;
            srs_SubframeConfig = 7;
            srs_ackNackST = “DISABLE”;
            srs_MaxUpPts = “DISABLE”;

            And felt a little bit advance in connection time, but gives the following errors and connection lost:
            [MAC][E][initiate_ra_proc] [eNB 0][RAPROC] FAILURE: CC_id 0 Frame 558 Initiating RA procedure for preamble index 52

            Regards,
            Aram.

          2. Hi Aram,

            So, you use OAI eNB, OAI EPC and the HSS is loaded with the database from our tutorial.
            I don’t think it is a radio or low layer issue: it should be a authentication issue between the SIM and the HSS, then the derivated keys are wrong.

            In this case, I guess the SIM card is not well configured: set it to milenage (not XOR) algorithm.
            Please test the authentication (as in the Sysmocom manual).

            Regards,
            Laurent

  12. Thank you for nice description!
    Can I follow this procedure exactly on Ubuntu 16.04? will it cause any problems?

    My OS is Ubuntu 16.04 LTS and kernel is 4.10.0-40-generic

    1. James,
      Yes, I saw reports from other users that made the same on recent flavor of 16.04 (you have the same if your kernel is 16.04).
      Laurent

  13. Hi Laurent
    I’ve used the program “sysmo-usim-tool.sjs1.py” to test the authentication
    and it prints the follows:

    Reading Authentication parameters…
    * Initalizing…
    * Reading…
    * Current algorithm setting:
    2G: 3=COMP128v1
    3G: 1=MILENAGE

    so it seems that our algorithm is MILENAGE, but the issue still remains.
    Regards,
    Aram.

    1. Aram,
      I don’t know.
      Maybe you can spend 10€ buying us a programmed SIM card, nevertheless I’m not 100% sure the issue is the SIM card.
      Regards,
      Laurent

  14. Hi Laurent,

    Thank you for such a detailed guide.
    Everything worked fine.

    In my setup I am using LimeSDR as eNB and for UE its Huawei E3276-s.
    When I attach UE to eNB the MME crashes.

    I am trying to follow your comment:
    Fix a issue in mme that crash mme with some phones in the attach-request procedure (maybe Android 6 phones)
    If you want to fix only this issue, pick files:
    src/nas/emm/Attach.c
    src/nas/ies/SupportedCodecList.c
    in the hereafter tar file
    The issue is: mme wrong decoding of smartphone codec list

    Is there a file missing or do I need to replace the Attach.c ?

    Regards,
    Ubaid

    1. Ubaid,
      E3276-s works fine with OAI, the issue is not this one.
      The most common reason is some parameters are not correct, so the MME reach one of it’s bugs.
      Could you try the same with a USRP ?
      Regards,
      Laurent

      1. Hi Laurent,

        I do not have a USRP unfortunately only LimeSDR.
        I also tried with a samsung s6 edge (android 7). I can ping from eNB to UE. The data rate is too low around 170Bytes/sec. When I use s6 edge the MME does not crash while the spw crashes.

        I see this on the terminal running spgw:
        000649 00189:566373 7F121DABB700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1243 Leaving nwGtpv2cProcessUlpReq() (rc=0)
        000650 00189:566379 7F121E2BC700 DEBUG UDP /src/udp/udp_primitives_server.c:0088 Looking for task 6
        000651 00189:566382 7F121E2BC700 DEBUG UDP /src/udp/udp_primitives_server.c:0091 Found matching task desc
        000652 00189:566385 7F121E2BC700 DEBUG UDP /src/udp/udp_primitives_server.c:0309 [31] Sending message of size 18 to 127.0.0.20 and port 2123
        000653 00189:566403 7F121E2BC700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
        000654 00193:566382 7F121DABB700 DEBUG S11 aug/openair-cn/src/s11/s11_sgw.c:0212 Received event TIMER_HAS_EXPIRED for timer_id 0x7f121400a6d0 and arg 0x7f12140041c0
        000655 00193:566401 7F121DABB700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1315 Entering nwGtpv2cProcessTimeout()
        000656 00193:566430 7F121DABB700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0113 Duplicate request hold timer expired for transaction 0x0x7f1214000aa0
        000657 00193:566436 7F121DABB700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7f1214000bb0!
        000658 00193:566441 7F121DABB700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0328 Purging transaction 0x0x7f1214000aa0
        000659 00193:566446 7F121DABB700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1367 Leaving nwGtpv2cProcessTimeout() (rc=0)

        Any help would be great.
        Can you kindly also suggest any changes I can make to MME?

        Regards,
        Ubaid

        1. Hello,

          I tried a LimeSDR a few days ago: it succeeded to attach to the OAI network.
          Then, my lab have problems with RF signal quality (even with USRP), so I didn’t manage to get stable traffic.
          So, I got almost the same as you.

          I used OpenAir CN with our patches, our SIM, our duplexer, OAI eNB, 10MHz, band 7.

          My SPGW didn’t crash, nevertheless known issues exists when the UE re-attach.

          My assumption is the radio quality is not good, so the UE attach, reattach, …

          The OAI code contains numerous bugs, so to obtain stable traffic, for now, we need good radio conditions.

          I’ll try to make a good setup, in the next two weeks.

          Regards,
          Laurent

  15. Hello Laurent,
    I’m trying to get this config up and running on 16.04.3 machine. Succeeded to build everything by your instruction, now trying to run: hss and mme started up OK, but spgw complains (see log below). Seems that it’s missing gtp module, but at wich stage should it be built? Is it an external module? I checked build logs in openair-cn, all looks good, except for couple messages “Didn’t find any information element for message: S1ap-PrivateMessageIEs”. Start log follows (this goes right after big nw-gtpv2c copyright notice, no errors indicated until this point):

    000134 00001:104316 7F1F8A69C700 DEBUG S11 enb/openair-cn/src/s11/s11_sgw.c:0244 Tx UDP_INIT IP addr 127.0.0.30
    000135 00001:104324 7F1F8A69C700 DEBUG S11 enb/openair-cn/src/s11/s11_sgw.c:0301 Initializing S11 interface: DONE
    000136 00001:104326 7F1F8A69C700 DEBUG SPGW-A nb/openair-cn/src/sgw/sgw_task.c:0148 Initializing SPGW-APP task interface
    000137 00001:104328 7F1F8A69C700 DEBUG GTPv1- air-cn/src/gtpv1-u/gtpv1u_task.c:0096 Initializing GTPV1U interface
    000138 00001:104331 7F1F86764700 DEBUG UDP /src/udp/udp_primitives_server.c:0126 Creating new listen socket on address 127.0.0.30 and port 2123
    000139 00001:104639 7F1F86764700 DEBUG UDP /src/udp/udp_primitives_server.c:0171 Inserting new descriptor for task 6, sd 31
    000140 00001:104660 7F1F86764700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
    rmmod: ERROR: Module gtp is not currently loaded
    modprobe: FATAL: Module gtp not found in directory /lib/modules/4.4.0-104-generic
    000141 00001:107330 7F1F8A69C700 CRITI GTPv2- air-cn/src/gtpv1-u/gtpv1u_task.c:0105 ERROR in loading gtp kernel module (check if built in kernel)
    000142 00001:107344 7F1F8A69C700 ALERT SPGW-A nb/openair-cn/src/sgw/sgw_task.c:0151 Initializing GTPv1-U ERROR
    Function sgw_init (&spgw_config) has failed
    returning -1

  16. Laurent,

    Just found your note about gtp in previous version of this post. So, as far as I got it, the best way is update the kernel to 4.10, right?

    Vladimir

  17. Hi Laurent,
    Thanks for your painstaking efforts in providing excellent instruction for the implementation of All in one OpenAirInterface. I have made attempts to follow the steps in https://open-cells.com/index.php/2017/08/22/all-in-one-openairinterface-august-22nd/. The hss, mme and spgw were loaded with success, but I have issues with the eNB as the UE could not establish connection to the internet and reported thefollowing message when I issue the command “./cmake_targets/lte_build_oai/build/lte-softmodem -O enb.band7.tm1.50PRB.usrpb210.conf”:

    [CONFIG] get parameters from libconfig /home/ranadmin/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.50PRB.usrpb210.conf
    .
    .
    .
    Sending sync to all threads
    got sync (ru_thread)
    [CONFIG] calling config module end function…
    [CONFIG] free 1 config parameter pointers
    [CONFIG] free 12 config value pointers
    TYPE TO TERMINATE
    Entering ITTI signals handler
    [PHY][I]Time in secs now: 37398604
    [PHY][I]Time in secs last pps: 30657425
    [PHY][I]RU 0 rf device ready
    [PHY][I]RU 0 no asynch_south interface
    [HW][I][SCHED][eNB] eNB_thread_prach_br started on CPU 2, sched_policy = SCHED_FIFO , priority = 99, CPU Affinity= CPU_0 CPU_1 CPU_2 CPU_3
    [PHY][I]prach_I0 = 2.1 dB
    [PHY][I]max_I0 42, min_I0 34
    ULLLLLLLLLLLLLLLLLLLLLLLLLLLLLLULLLUULLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLULL[PHY][I]prach_I0 = 17.4 dB
    [PHY][I]max_I0 44, min_I0 33

    Is there any thing I missed out or did wrongly that is preventing the UE from having access to the internet? ..and how can I fix the “ULLLL…” issue?
    Details are in the attached eNB log, also enclosed with this email are logs for hss, mme, spgw.
    Please I need your to fix these problems
    Thank you and happy new year in advance.

    Best Regards.

  18. Hi Laurent,

    I wanna try OAI with lime SDR. In this post you mention that there would be a seperate post about a setup with Lime. Did you publish such post anywhere?

    If not, are there any specific differences trying USRP and Lime with OAI?

    regards,

    Cihan

    1. Hi Cihan,
      The post was not visible because the menu was too short, it is on https://open-cells.com/index.php/2017/05/10/limesdr-installation/

      I didn’t try again for a while to use Lime, I will do but I don’t know when.

      It is very similar to USRP in term of SW interface, the main issue is to calibrate properly the RF.
      There was issues inside the LimeSDR driver, at least the Tx part have been fixed.
      For OAI part, you need to set the proper radio power values.

      Also, note the maximum output power is 10dB lower than USRP, so the range will be shorter.

      I’ll try to have a look in it on Friday with a R&S analyzer.
      Laurent

  19. Hi,

    Thank you for this excellent guide. I’m trying to follow this it using a BladeRF x40. My system is 64 bit Ubuntu 17.04 with Intel® Core™ i7-5500U Processor (4M Cache, 2.4GHz, Turbo Boost up to 3.0 GHz).

    At the very end of the guide, when I try to launch the lte-softmodem, it hangs on “Waiting for eNB application to be ready.”

    I’m using the bladerf file (https://gitlab.eurecom.fr/oai/openairinterface5g/blob/master/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.bladerfx40.conf), with small edits suggested by the configuration file here (MNC = 92, downlink_frequency = 2630000000L, different mme_ip_address and NETWORK_INTERFACES). I also changed the one line in this tutorial to:

    ./cmake_targets/build_oai -w BLADERF –eNB –UE

    The running MME output shows that there are no connected eNBs, and the dmesg output is below.

    Before it hangs, there’s an error, which I’m not sure if it’s related.

    [SCTP][I][sctp_eNB_read_from_socket] Received notification for sd 41, type 32769
    [SCTP][I][sctp_eNB_read_from_socket] Client association changed: 4
    [SCTP][I][sctp_eNB_flush_sockets] Found data for descriptor 41
    [SCTP][I][sctp_eNB_read_from_socket] An error occured during read
    *[SCTP][E][sctp_eNB_read_from_socket] sctp_recvmsg (fd 41, len -1 ): Connection refused:111*
    [RRC][I][FRAME 00000][eNB][MOD 00][RNTI 0] Init…

    Here is the dmesg output:
    [ 2046.470992] usb 3-3: reset SuperSpeed USB device number 3 using xhci_hcd
    [ 2046.491610] usb 3-3: LPM exit latency is zeroed, disabling LPM.
    [ 2173.599956] gtp: GTP module unloaded
    [ 2173.632364] gtp: GTP module loaded (pdp ctx size 80 bytes)
    [ 2180.042042] perf: interrupt took too long (4066 > 4058), lowering kernel.perf_event_max_sample_rate to 49000
    [ 2195.646291] usb 3-3: reset SuperSpeed USB device number 3 using xhci_hcd
    [ 2195.666874] usb 3-3: LPM exit latency is zeroed, disabling LPM.

    The full output of the lte-softmodem command is here: https://ufile.io/zlwwc – any pointers would be helpful. I know the processor only has 2 cores – is this the source of the problem?

    Thank you,
    Nate

    1. Hi Nate,
      The problem is not the 2 cores.
      gtp unlaod/load and most of messages are ok.

      Maybe the origin of the issue is in the sctp: Connection refused:111
      I would suggest to recheck MME connection parameters.
      Regards,
      Laurent

      1. Hello,

        I got the same error message and it works after carefully recheck the IP addresses in “openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.100PRB.usrpb210.conf” following this guide.

        Nghia Nguyen.

  20. Hi Laurent,

    It was a really nice instruction. In my case, I am using a bladeRFx40 as the eNB. And I can see the network in my phone which is a Huawei P9. But when I want to connect my phone to the mme, it fails all the time because the authentication request is rejected. I checked all the certificates that I had installed and I think the problema is not this. Do you know what is happening here? Thank you very much!

    1. The following informations are from after the compilation of MME:
      001331 00334:528706 7F40DF0B2700 TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0477 Entering _authentication_t3460_handler()
      001332 00334:528729 7F40DF0B2700 WARNI NAS-EM -cn/src/nas/emm/Authentication.c:0487 EMM-PROC – T3460 timer expired, retransmission counter = 3
      001333 00334:528735 7F40DF0B2700 TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0559 Entering _authentication_request()
      001334 00334:528738 7F40DF0B2700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000002 context 0x7f40d4000b10
      001335 00334:528741 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0352 Entering emm_as_set_security_data()
      001336 00334:528745 7F40DF0B2700 DEBUG NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0398 NO Valid Security Context Available
      001337 00334:528747 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0405 Leaving emm_as_set_security_data()
      001338 00334:528754 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
      001339 00334:528773 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0175 Entering emm_as_send()
      001340 00334:528778 7F40DF0B2700 INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0181 EMMAS-SAP – Received primitive EMMAS_SECURITY_REQ (201)
      001341 00334:528781 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0923 Entering _emm_as_send()
      001342 00334:528783 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1267 Entering _emm_as_security_req()
      001343 00334:528785 7F40DF0B2700 INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1270 EMMAS-SAP – Send AS security request
      001344 00334:528788 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0734 Entering _emm_as_set_header()
      001345 00334:528790 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0786 Leaving _emm_as_set_header() (rc=139916596680880)
      001346 00334:528795 7F40DF0B2700 TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0905 Entering emm_send_authentication_request()
      001347 00334:528798 7F40DF0B2700 INFO NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0908 EMMAS-SAP – Send Authentication Request message
      001348 00334:528801 7F40DF0B2700 TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0935 Leaving emm_send_authentication_request() (rc=36)
      001349 00334:528804 7F40DF0B2700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000002 context 0x7f40d4000b10
      001350 00334:528806 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0815 Entering _emm_as_encode()
      001351 00334:528828 7F40DF0B2700 TRACE NAS rc/nas/api/network/nas_message.c:0540 Entering nas_message_encode()
      001352 00334:528831 7F40DF0B2700 TRACE NAS rc/nas/api/network/nas_message.c:0852 Entering _nas_message_header_encode()
      001353 00334:528835 7F40DF0B2700 TRACE NAS rc/nas/api/network/nas_message.c:0885 Leaving _nas_message_header_encode() (rc=1)
      001354 00334:528838 7F40DF0B2700 TRACE NAS rc/nas/api/network/nas_message.c:0913 Entering _nas_message_plain_encode()
      001355 00334:528842 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0271 Entering emm_msg_encode()
      001356 00334:528851 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0420 Leaving emm_msg_encode() (rc=36)
      001357 00334:528856 7F40DF0B2700 TRACE NAS rc/nas/api/network/nas_message.c:0933 Leaving _nas_message_plain_encode() (rc=36)
      001358 00334:528859 7F40DF0B2700 TRACE NAS rc/nas/api/network/nas_message.c:0623 Leaving nas_message_encode() (rc=36)
      001359 00334:528862 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0851 Leaving _emm_as_encode() (rc=36)
      001360 00334:528864 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1353 Leaving _emm_as_security_req() (rc=263)
      001361 00334:528866 7F40DF0B2700 DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0968 EMMAS-SAP – Sending msg with id 0x107, primitive EMMAS_SECURITY_REQ (201) to S1AP layer for transmission
      001362 00334:528880 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0973 Leaving _emm_as_send() (rc=0)
      001363 00334:528883 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=0)
      001364 00334:528885 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
      001365 00334:528917 7F40DF0B2700 INFO NAS-EM -cn/src/nas/emm/Authentication.c:0605 EMM-PROC – Timer T3460 (1) expires in 6 seconds
      001366 00334:528920 7F40DF0B2700 TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0609 Leaving _authentication_request() (rc=0)
      001367 00334:528922 7F40DF0B2700 TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0509 Leaving _authentication_t3460_handler() (rc=0)
      001368 00334:528934 7F40DC8AD700 TRACE MME-AP /src/mme_app/mme_app_transport.c:0057 Entering mme_app_handle_nas_dl_req()
      001369 00334:528965 7F40DC8AD700 TRACE MME-AP /src/mme_app/mme_app_transport.c:0098 Leaving mme_app_handle_nas_dl_req() (rc=0)
      001370 00334:528975 7F40DD0AE700 TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0344 Entering s1ap_generate_downlink_nas_transport()
      001371 00334:529004 7F40DD0AE700 NOTIC S1AP c/s1ap/s1ap_mme_nas_procedures.c:0399 Send S1AP DOWNLINK_NAS_TRANSPORT message ue_id = 0x00000002 MME_UE_S1AP_ID = 0x00000002 eNB_UE_S1AP_ID = 0x6FE0DC
      001372 00334:529015 7F40DD0AE700 TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0409 Leaving s1ap_generate_downlink_nas_transport() (rc=0)
      001373 00334:529023 7F40DE8B1700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0277 [40][91] Sending buffer 0x7f40c40081c0 of 62 bytes on stream 1 with ppid 18
      001374 00334:529179 7F40DE8B1700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0288 Successfully sent 62 bytes on stream 1
      001375 00337:030373 7F40BFFFF700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0476 [91][40] Msg of length 27 received from port 36412, on stream 1, PPID 18
      001376 00337:030477 7F40DD0AE700 TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0050 Entering s1ap_mme_decode_initiating()
      001377 00337:030499 7F40DD0AE700 DEBUG S1AP /CMakeFiles/r10.5/s1ap_decoder.c:5574 Decoding message S1ap_UEContextReleaseRequestIEs (/home/ikerlan/openair-cn/build/mme/build/CMakeFiles/r10.5/s1ap_decoder.c:5574)
      001378 00337:030524 7F40DD0AE700 TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0144 Leaving s1ap_mme_decode_initiating() (rc=0)
      001379 00337:030527 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0645 Entering s1ap_mme_handle_ue_context_release_request()
      001380 00337:030533 7F40DD0AE700 DEBUG S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0659 UE CONTEXT RELEASE REQUEST with Cause_Type = Radio Network and Cause_Value = 21
      001381 00337:030536 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0414 Found ue_ref 0x7f40c4007c20 mme_ue_s1ap_id 0x00000002
      001382 00337:030538 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0428 Found ue_ref 0x7f40c4007c20 mme_ue_s1ap_id 0x00000002
      001383 00337:030540 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0469 Return ue_ref 0x7f40c4007c20
      001384 00337:030550 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0716 Leaving s1ap_mme_handle_ue_context_release_request() (rc=0)
      001385 00337:030558 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1049 Entering _mme_app_handle_s1ap_ue_context_release()
      001386 00337:030564 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1102 Leaving _mme_app_handle_s1ap_ue_context_release()
      001387 00337:030571 7F40DF0B2700 TRACE NAS-EM an/openair-cn/src/nas/nas_proc.c:0495 Entering nas_proc_implicit_detach_ue_ind()
      001388 00337:030574 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
      001389 00337:030576 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0451 Entering emm_cn_send()
      001390 00337:030577 7F40DF0B2700 INFO NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0452 EMMCN-SAP – Received primitive EMMCN_IMPLICIT_DETACH_UE (406)
      001391 00337:030580 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0201 Entering _emm_cn_implicit_detach_ue()
      001392 00337:030581 7F40DF0B2700 DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0202 EMM-PROC Implicit Detach UE0x00000002
      001393 00337:030583 7F40DF0B2700 TRACE NAS-EM /openair-cn/src/nas/emm/Detach.c:0224 Entering emm_proc_detach_request()
      001394 00337:030585 7F40DF0B2700 INFO NAS-EM /openair-cn/src/nas/emm/Detach.c:0228 EMM-PROC – Detach type = EPS (0) requested (ue_id=0x00000002)001395 00337:030588 7F40DF0B2700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000002 context 0x7f40d4000b10
      001396 00337:030593 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
      001397 00337:030595 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0106 Entering emm_reg_send()
      001398 00337:030597 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0256 Entering emm_fsm_process()
      001399 00337:030599 7F40DF0B2700 INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0263 EMM-FSM – Received event DETACH_REQ (8) in state COMMON-PROCEDURE-INITIATED
      001400 00337:030602 7F40DF0B2700 TRACE NAS-EM ap/EmmCommonProcedureInitiated.c:0090 Entering EmmCommonProcedureInitiated()
      001401 00337:030605 7F40DF0B2700 ERROR NAS-EM ap/EmmCommonProcedureInitiated.c:0192 EMM-FSM – Primitive is not valid (8)
      001402 00337:030608 7F40DF0B2700 TRACE NAS-EM ap/EmmCommonProcedureInitiated.c:0196 Leaving EmmCommonProcedureInitiated() (rc=-1)
      001403 00337:030611 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0271 Leaving emm_fsm_process() (rc=-1)
      001404 00337:030613 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0119 Leaving emm_reg_send() (rc=-1)
      001405 00337:030614 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=-1)
      001406 00337:030616 7F40DF0B2700 TRACE NAS -cn/src/nas/nas_itti_messaging.c:0442 Entering nas_itti_detach_req()
      001407 00337:030621 7F40DF0B2700 TRACE NAS -cn/src/nas/nas_itti_messaging.c:0460 Leaving nas_itti_detach_req()
      001408 00337:030623 7F40DF0B2700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0807 EMM-PROC – Stop timer T3460 (1)
      001409 00337:030632 7F40DF0B2700 TRACE NAS-ES air-cn/src/nas/esm/sap/esm_sap.c:0158 Entering esm_sap_send()
      001410 00337:030634 7F40DF0B2700 INFO NAS-ES air-cn/src/nas/esm/sap/esm_sap.c:0168 ESM-SAP – Received primitive ESM_EPS_BEARER_CONTEXT_DEACTIVATE_REQ (10)
      001411 00337:030637 7F40DF0B2700 TRACE NAS-ES m/EpsBearerContextDeactivation.c:0139 Entering esm_proc_eps_bearer_context_deactivate()
      001412 00337:030639 7F40DF0B2700 INFO NAS-ES m/EpsBearerContextDeactivation.c:0144 ESM-PROC – EPS bearer context deactivation: No Valid context
      001413 00337:030642 7F40DF0B2700 TRACE NAS-ES m/EpsBearerContextDeactivation.c:0145 Leaving esm_proc_eps_bearer_context_deactivate() (rc=0)
      001414 00337:030645 7F40DF0B2700 TRACE NAS-ES air-cn/src/nas/esm/sap/esm_sap.c:0273 Leaving esm_sap_send() (rc=0)
      001415 00337:030648 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0176 Entering emm_fsm_set_status()
      001416 00337:030650 7F40DF0B2700 INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0182 UE 0x00000002 EMM-FSM – Status changed: COMMON-PROCEDURE-INITIATED ===> DEREGISTERED
      001417 00337:030654 7F40DF0B2700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1014 Entering mme_ue_context_update_ue_emm_state()
      001418 00337:030656 7F40DF0B2700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1033 Leaving mme_ue_context_update_ue_emm_state()
      001419 00337:030658 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0194 Leaving emm_fsm_set_status() (rc=0)
      001420 00337:030660 7F40DF0B2700 DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0603 EMM-CTX – Remove in context 0x7f40d4000b10 UE id 0x00000002
      001421 00337:030662 7F40DF0B2700 DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0622 EMM-CTX – Remove in ctx_coll_imsi context 0x7f40d4000b10 UE id 0xD4000B10 imsi 901700000023531
      001422 00337:030664 7F40DF0B2700 DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0194 ue_id=0x00000002 cleared IMSI
      001423 00337:030667 7F40DF0B2700 TRACE NAS-EM /openair-cn/src/nas/emm/Detach.c:0291 Leaving emm_proc_detach_request() (rc=0)
      001424 00337:030668 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0205 Leaving _emm_cn_implicit_detach_ue() (rc=0)
      001425 00337:030670 7F40DF0B2700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0494 Leaving emm_cn_send() (rc=0)
      001426 00337:030672 7F40DF0B2700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
      001427 00337:030674 7F40DF0B2700 TRACE NAS-EM an/openair-cn/src/nas/nas_proc.c:0499 Leaving nas_proc_implicit_detach_ue_ind() (rc=0)
      001428 00337:030682 7F40DC8AD700 TRACE MME-AP mme_app/mme_app_itti_messaging.h:0042 Leaving mme_app_itti_ue_context_release()
      001429 00337:030684 7F40DC8AD700 TRACE MME-AP -cn/src/mme_app/mme_app_detach.c:0127 Leaving mme_app_handle_detach_req()
      001430 00337:030688 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0811 Entering s1ap_handle_ue_context_release_command()
      001431 00337:030691 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0414 Found ue_ref 0x7f40c4007c20 mme_ue_s1ap_id 0x00000002
      001432 00337:030693 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0428 Found ue_ref 0x7f40c4007c20 mme_ue_s1ap_id 0x00000002
      001433 00337:030695 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0469 Return ue_ref 0x7f40c4007c20
      001434 00337:030697 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0743 Entering s1ap_mme_generate_ue_context_release_command()
      001435 00337:030734 7F40DD0AE700 DEBUG S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0796 Started S1AP UE context release timer for UE id 2
      001436 00337:030736 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0798 Leaving s1ap_mme_generate_ue_context_release_command() (rc=0)
      001437 00337:030738 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0831 Leaving s1ap_handle_ue_context_release_command() (rc=0)
      001438 00337:030746 7F40DE8B1700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0277 [40][91] Sending buffer 0x7f40c4003aa0 of 23 bytes on stream 1 with ppid 18
      001439 00337:030920 7F40DE8B1700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0288 Successfully sent 23 bytes on stream 1
      001440 00337:045581 7F40BFFFF700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0476 [91][40] Msg of length 21 received from port 36412, on stream 1, PPID 18
      001441 00337:045639 7F40DD0AE700 DEBUG S1AP /CMakeFiles/r10.5/s1ap_decoder.c:3702 Decoding message S1ap_UEContextReleaseCompleteIEs (/home/ikerlan/openair-cn/build/mme/build/CMakeFiles/r10.5/s1ap_decoder.c:3702)
      001442 00337:045661 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0845 Entering s1ap_mme_handle_ue_context_release_complete()
      001443 00337:045670 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0414 Found ue_ref 0x7f40c4007c20 mme_ue_s1ap_id 0x00000002
      001444 00337:045673 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0428 Found ue_ref 0x7f40c4007c20 mme_ue_s1ap_id 0x00000002
      001445 00337:045676 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0469 Return ue_ref 0x7f40c4007c20
      001446 00337:045694 7F40DD0AE700 TRACE S1AP n/openair-cn/src/s1ap/s1ap_mme.c:0595 Removing UE enb_ue_s1ap_id: 0x6FE0DC mme_ue_s1ap_id:0x00000002 in eNB id : 3584
      001447 00337:045698 7F40DD0AE700 DEBUG S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0876 Removed UE 0x00000002
      001448 00337:045701 7F40DD0AE700 TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0877 Leaving s1ap_mme_handle_ue_context_release_complete() (rc=0)
      001449 00337:045709 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:0972 Entering mme_app_handle_s1ap_ue_context_release_complete()
      001450 00337:045713 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:0662 Entering mme_notify_ue_context_released()
      001451 00337:045715 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:0667 Leaving mme_notify_ue_context_released()
      001452 00337:045718 7F40DC8AD700 DEBUG MME-AP cn/src/mme_app/mme_app_context.c:0988 Deleting UE context associated in MME for mme_ue_s1ap_id 0x00000002
      001453 00337:045721 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:0677 Entering mme_remove_ue_context()
      001454 00337:045726 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:0721 Leaving mme_remove_ue_context()
      001455 00337:045729 7F40DC8AD700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1003 Leaving mme_app_handle_s1ap_ue_context_release_complete()

  21. Hello,

    I used a bladeRF instead of a USPR, for now, I can register in my network, the problem appears when I want to stablish internet connection using my phone, it is not stable, the internet works rarely. In the logs of eNB, I can see the following errors:

    [MAC][E][schedule_ulsch] scheduled retransmission in forbidden RBs
    [DEBUG @”/build/bladerf-zjSF8E/…./libusb.c”:1339]Non-blocking buffer submission requested, but no transfers are currently available.

    I don’t know if the failure of the internet is due to these errors o not.

    Thanks
    Alexandra

  22. Hi,

    I started facing some problems to have the eNB connected to the MME after an Ubuntu update. The following log is the log after the starting procedure of eNB:

    [MAC][E][rrc_mac_config_req_eNB] RC.mac:0x7fef08002080 mib:0x7fef08003108

    [SCTP][E]sctp_recvmsg (fd 41, len -1 ): Connection refused:111

    [PHY][E]config_mib() dl_BandwidthP:3

    [MAC][E][rrc_mac_config_req_eNB] rrc_mac_config_req_eNB() /home/lcrr-032553/openairinterface5g/openair2/LAYER2/MAC/config.c:967 RC.mac[Mod_idP]->if_inst->PHY_config_req:0x56048265e570

    [PHY][E]***DJP*** removed assert on preamble fp->prach_emtc_config_common.prach_ConfigInfo.prach_numRepetitionPerPreambleAttempt[0]:0 expecting >0 /home/lcrr-032553/openairinterface5g/openair1/PHY/INIT/lte_init.c:259

    [PHY][E]DJP – delete code above this /home/lcrr-032553/openairinterface5g/targets/RT/USER/lte-ru.c:2399

    [PHY][E][INIT] phy_init_RU() RC.nb_L1_inst:1

    Can you help me, please?

    Regards,
    Alexandre

    1. Dear Alexandre,

      The line sctp_recvmsg (fd 41, len -1 ): Connection refused:111 indicates the eNB can’t connect to the mme.
      One possibility is the diameter certificate expired: renew it with

      cd openair-cn; source oaienv; cd scripts
      ./check_hss_s6a_certificate /usr/local/etc/oai/freeDiameter hss.OpenAir5G.Alliance
      ./check_mme_s6a_certificate /usr/local/etc/oai/freeDiameter mme.OpenAir5G.Alliance

      I guess you have more explanation in the mme log.

      Please try and report to continue this diagnosis
      Laurent

      1. Hi,

        I got the same problem with Alexandre, and I didn’t find the solution.
        Could you please offer a link to the solution? Lots of thanks.

        Regards,
        Candice

        1. Hi,

          So, the new problem it started somewhere after kernel revision 4.15.23 (ubuntu 18.04 update now installs a more recent kernel).

          This recent kernel refuses SCTP connect from eNB even if the MME is running.
          Forcing IPv4 (so replace AF_INET6 by AF_INET) in mme source: src/sctp/sctp_primitives_server.c:352 seems ok.

          The root error is still to be found: OAI IPv6 implementation contains bugs, maybe the kernel refuses for good reasons.

          Regards,
          Laurent

          1. Hi,

            Thanks for your reply. But I’m still confused. What exactly should I do to fix this problem?
            Should I change my kernel version? Please give me some specific suggestions.

            Regards,
            Candice

  23. Hi, Laurent,

    By following the tutorial above, but still we have this kind of error (as also reported by someone else earlier):
    “`
    [SCTP][I][sctp_eNB_read_from_socket] Received notification for sd 41, type 32769
    [SCTP][I][sctp_eNB_read_from_socket] Client association changed: 4
    [SCTP][I][sctp_eNB_flush_sockets] Found data for descriptor 41
    [SCTP][I][sctp_eNB_read_from_socket] An error occured during read
    *[SCTP][E][sctp_eNB_read_from_socket] sctp_recvmsg (fd 41, len -1 ): Connection refused:111*
    [RRC][I][FRAME 00000][eNB][MOD 00][RNTI 0] Init…
    “`
    And as you have replied earlier:
    “`
    Maybe the origin of the issue is in the sctp: Connection refused:111
    I would suggest to recheck MME connection parameters.
    Regards,
    Laurent
    “`
    And, yes, we do observed “SCTP abort!” message from the communication between EPC and eNB.
    Could you specify more clearly how I should configure MME? (we have already followed the tutorial above…)

    Sorry for bothering.

    1. Hi,
      So, maybe you use Ubuntu 18.04 up-to-date.
      In this case, something is wrong either in the kernel or in OAI, see above the fix to set in the mme code.
      Regards,
      Laurent

  24. Hi,
    After the release of OAI v1.0.1, are the steps provided in this post still applicable ? Also is it possible to install the new release on ubuntu 18.04 ?
    Thanks in advance.

    1. For OAI EPC, I think the best is to use what is described in this old tutorial because newer OAI EPC is over complex to install and use.
      For OAI RAN, it is probably better to use OAI v1.0.1
      We will try to find out some time to update this tutorial with recent versions.
      Laurent

  25. hello, the script is not working either on ubuntu 17.04 since it is out of date or on 18.04 since it says it is not supported.
    any suggestion. or any one faced this problem.

    1. In cmake_targets/tools/build_helper, replace 17.04 by 18.04 everywhere.
      I didn’t test nevertheless it should work: the difference between these two versions is small.
      Laurent

  26. Hello
    I have issue about the number of user that are serviceable in a simple host (Intel Core i5-8400 & 4.0 GHz ) and usrp (b210).
    This is a question in both structure (RAN & EPC).
    Thanks if you guide me.

    1. Hi,
      OAI quality is not high enough for a commercial like usage.
      The number of users would be a few only because of bugs before CPU size.
      Laurent

  27. please your support with the below error , occured when applying the epc patch that impact installation of third party sw
    root@user:/home/user/Downloads/opencells-mods-20170823/opencells-mods# git apply EPC.patch
    error: patch failed: build/tools/build_helper:99
    error: build/tools/build_helper: patch does not apply
    error: patch failed: scripts/run_spgw:173
    error: scripts/run_spgw: patch does not apply
    error: patch failed: src/common/common_defs.h:109
    error: src/common/common_defs.h: patch does not apply
    error: patch failed: src/gtpv1-u/gtp_mod_kernel.c:31
    error: src/gtpv1-u/gtp_mod_kernel.c: patch does not apply
    error: patch failed: src/gtpv1-u/gtp_mod_kernel.h:6
    error: src/gtpv1-u/gtp_mod_kernel.h: patch does not apply
    error: patch failed: src/gtpv1-u/gtpv1u_task.c:111
    error: src/gtpv1-u/gtpv1u_task.c: patch does not apply
    error: src/nas/emm/Attach.c: No such file or directory
    error: src/nas/ies/SupportedCodecList.c: No such file or directory
    error: patch failed: src/oai_hss/utils/hss_config.c:297
    error: src/oai_hss/utils/hss_config.c: patch does not apply
    error: patch failed: src/s6a/s6a_peer.c:88
    error: src/s6a/s6a_peer.c: patch does not apply

  28. Build type is Debug
    Architecture is x86_64
    git found: /usr/bin/git
    NETTLE VERSION_INSTALLED = 3.2
    NETTLE_VERSION_MAJOR = 3
    NETTLE_VERSION_MINOR = 2
    mme compilation failed
    cp: cannot stat ‘/home/epc/openair-cn/build/mme/build/mme’: No such file or directory
    auth_request compilation failed
    cp: cannot stat ‘/home/epc/openair-cn/build/mme/build/auth_request’: No such file or directory

    hi, I have this problem, i can’t fix i need help please

      1. Hi Laurent,

        First thank you for this guide.

        I had the same problem when building the mme, the error logs in ~/openair-cn/build/log/mme.txt states:
        “”
        [ 94%] Linking C static library libLIB_NAS_MME.a
        [ 94%] Built target LIB_NAS_MME
        Makefile:94: recipe for target ‘all’ failed
        make: *** [all] Error 2

        “”

        1. Hi
          in the log, above the ‘all’ failed message, you should find a message identified by this string: “error:”
          This message would explain the problem
          Laurent

          1. Hi Laurent,

            Thanks for reply.

            During the MME compile, I can see following error:
            ___
            /home/test/openair-cn/src/s1ap/s1ap_common.h:43:10: fatal error: S1ap-Criticality.h: No such file or directory
            CMakeFiles/S1AP_LIB.dir/build.make:79: recipe for target ‘CMakeFiles/S1AP_LIB.dir/CMakeFiles/r10.5/s1ap_decoder.c.o’ failed
            make[2]: *** [CMakeFiles/S1AP_LIB.dir/CMakeFiles/r10.5/s1ap_decoder.c.o] Error 1
            CMakeFiles/Makefile2:388: recipe for target ‘CMakeFiles/S1AP_EPC.dir/all’ failed
            make[1]: *** [CMakeFiles/S1AP_EPC.dir/all] Error 2
            ___

            Sorry that I am not an expert on this, any thoughts are appreciated.

            Thanks,
            Weiqi

          2. Hi,

            I think it is a asn1c version compatibility issue.
            asn1c version for this EPC is a older one than the current xNB.
            You have to force asn1c reinstall (./build_mme -i), then compile the mme
            After this, you can install back the xNB asn1c version (./build_oai -I)

            You can also modify the openair-cn scripts to install the 2 versions of asn1c in two different directories
            Laurent

          3. Hi Laurent,

            It is the asn1c issue. Now I had them complied correctly.

            Thanks again and appreciate for the help!

            -Weiqi

          4. Hi Laurent,

            Sorry to bother you again.
            I finally got the OAI-CN working and phone attached. However, the phone is not getting any internet connection.
            In the MME logs I can see the PDN connection has been created and the phone got an IP 172.16.0.4, the APN = ltebox. In the wireshark I can see the 172.16.0.4 is doing DNS query but got no respnose.
            I tried change the APN to oai.ipv4 but still the same.

            The SIM card I used is sysmocom SJS1 SIM, the phone I used is one plus 3T.

            Thanks,
            Weiqi

          5. Hi Weiqi,
            I need more details, please send it by mail.
            One guess from your description that your can try immediately: in spgw.conf file, verify (or set): PGW_MASQUERADE_SGI = “yes”;
            Regards,
            Laurent

  29. Hi,
    I have bought these sim cards, and I want to know will they work with other software than Open Air Interface, like srsLTE . If so, could you publish a post on how to set it up? Also how to use Blade RF in this set up inplace of USRP?

    1. Hi,
      Yes, this is standard SIM cards, that can work with any network.
      We already have srsLTE customers.
      For the RF board, there is no relation with the SIM: any RF board can work or not work, independently of the SIM
      Best regards,
      Laurent

  30. Hi Laurent,

    I’m trying to set up OAI on my Ubuntu 18.04 machine with the latest developer branch of the OAI RAN (2019.w23) and the OAI EPC you suggested ( commit 724542d0b59797b010af8c5df15af7f669c1e838). I applied the patch an changed the lines with ” ubuntu17.04″ to “ubuntu18.04” as you mentioned in the comments. By building the hss I faced the fist error in relation to the phpadmin (ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) ) .
    By building mme the error occured that there would be no packet candidate for “libconfig8-dev” and that it would be replaced by “libconfig-dev”. Is it possible to simply use the new package and what about the erreor with phpadmin? Thank you in advance!

    Greetings

    Johannes

    1. Hi Johannes,
      I updated this post for ubuntu 18.04 with your remarks integrated and the mysql issue fix.
      Regards,
      Laurent

  31. Yes, but there is a separate guide for setting up LimeSDR, so I was asking if there was a different setup guide for BladeRF as well?

    1. I fixed the link error.
      Some parts of this tuto is now very old.
      I also didn’t test well the latest update for ubuntu 18.04

  32. Hello,

    There is something wrong with the opencells-mods-20190621 patch link.

    Would you kindly fix it?

    Thanks you, I like your work!

    1. I fixed the link error.
      Some parts of this tuto is now very old.
      I also didn’t test well the latest update for ubuntu 18.04

  33. I have an issue with building on 18.04 with 4 packages.
    FreeDiameter prefix not found, install freeDiameter if EPC, HSS
    E: Package ‘iproute’ has no installation candidate
    E: Package ‘libatlas-dev’ has no installation candidate
    E: Package ‘libconfig8-dev’ has no installation candidate

    Am i missing something?

      1. A big update of the tutorial has been made. the base versions are now more recent, more Open Cells fixes delivered. Please re-test from scratch.

    1. A big update of the tutorial has been made. the base versions are now more recent, more Open Cells fixes delivered. Please re-test from scratch.

  34. Hi dear laurent
    i went through your tutorial but got this error while compiling MME!

    mme compilation failed
    cp: cannot stat ‘/home/core/openair-cn/build/mme/build/mme’: No such file or directory

      1. A big update of the tutorial has been made. the base versions are now more recent, more Open Cells fixes delivered. Please re-test from scratch.
        Laurent

  35. Hi laurent
    The commit number for EPC of gitlab openair-cn does not exist
    error: pathspec ‘7c5cad’ did not match any file(s) known to git.
    !
    Can u use git hub?
    its newer that this, almost for a week ago.while this gitlab link is for 2-3 years ago!

      1. Of course you can use github EPC version, nevertheless the configuration is very different.
        Our tutorial is ony for the legacy gitlab version.
        We won’t make any tutorial for the github version of the EPC until the author cleanup the dependencies (openvswitch, multi virtual machines, …)

  36. Hello Laurent,
    I am getting a segfault when running the MME the output states the following:
    Assertion (fd_dict_search (fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, “Service-Selection”, &s6a_fd_cnf.dataobj_s6a_service_selection, 2) == 0) failed!
    In s6a_fd_init_dict_objs() ~/openair-cn/src/s6a/s6a_dict.c:92

    Will Intentionaly raise SEGFAULT to be catched by GDB!
    Obtained 6 stack frames.
    mme(display_backtrace+0x28) [0x55efcdbc0847]
    mme(s6a_fd_init_dict_objs+0x1777) [0x55efcdba6555]
    mme(s6a_init+0x3fe) [0x55efcdba0742]
    mme(main+0x478) [0x55efcdaf14d2]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7efdcbe05b97]
    mme(_start+0x2a) [0x55efcdaf0e2a]
    ./run_mme: line 87: 560 Segmentation fault $SUDO mme `echo $exe_arguments` 2>&1

    1. Hi,
      We modified the freediameter code for this attribute, compared to the OpenAir version of freediameter.
      Have you recopiled and re-installed freediamter ?
      Laurent

      1. Yes, I have recompiled and reinstalled free diamter using the build_mme -i option; however I am now getting a new assertion error.

        Assertion (fd_dict_search (fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME_ALL_VENDORS, “CLR-Flags”, &s6a_fd_cnf.dataobj_s6a_clr_flags, 2) == 0) failed!
        In s6a_fd_init_dict_objs() ~/openair-cn/src/s6a/s6a_dict.c:91

        Will Intentionaly raise SEGFAULT to be catched by GDB!
        Obtained 6 stack frames.
        mme(display_backtrace+0x28) [0x55c6e8b8674b]
        mme(s6a_fd_init_dict_objs+0x1419) [0x55c6e8ae393a]
        mme(s6a_init+0x3fe) [0x55c6e8adcac9]
        mme(main+0x59f) [0x55c6e8a5a9a9]
        /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f8eb0835b97]
        mme(_start+0x2a) [0x55c6e8a5a1da]
        ./oai-research/backup/backup_mme/scripts/run_mme: line 85: 54497 Segmentation fault $SUDO mme `echo $exe_arguments` 2>&1

      1. Hi,

        We have made a new test from scratch: the procedure works as it is.
        I think the error comes from your installation of several freediameter versions.
        Please do “sudo find / -name libfdcore.so”
        I think you will find several versions of free diameter in your computer.

        You can also rebuild and reinstall manually freediameter and find out what is wrong:
        GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/freediameter.git -b eurecom-1.2.0
        cd freediameter
        git apply ~/opencells-mods/freediameter1.2.0.postOAI.patch
        mkdir build
        cd build
        cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ../
        make -j4
        sudo make install

        Regards,
        Laurent

  37. Hi laurent
    i got this error while typing this command:
    git apply ~/opencells-mods/EPC.patch

    git apply ~/opencells-mods/EPC.patch
    /home/ubuntu/opencells-mods/EPC.patch:537: trailing whitespace.
    DevCheck (hdr_service_selection->avp_value->os.len <= APN_MAX_LENGTH &&
    /home/ubuntu/opencells-mods/EPC.patch:539: trailing whitespace.

  38. Hi Laurent

    ./cmake_targets/build_oai -w USRP –eNB –UE

    This command does not work!

    LTE_softmodem compilation failed
    build have failed

    it mean Compilation of eNB and UE have failed!

    when i saw the log file
    this was the error:
    LTE_asn_constant.h:No such file or directory
    # include “LTE_asn-constant.h”
    ^~~~~~~~~~~~~~~~~~
    LTE_RLC-Config.h: No such file or directory
    # include “LTE_RLC-Config.h”
    ^~~~~~~~~~~~~~~~~~
    and …

        1. Hi Pooya,
          Please understand there are quite a lot of OAI users.
          All of them manage to compile the eNB.

          So, let’s revise your assumption:
          – either you don’t follow the tutorial correctly
          – or OpenAir + this tutorial is wrong

          Laurent

    1. i have same problem ,and i try download oai5g several times ,unfortunate.the probem follows again,so i want ask you have you solve the problem?3q

  39. Dear Laurent,
    How are you? Thanks a lot for providing this guide about the installation of All in one OpenAirInterface. It works fine for me. Could you please tell me if we could install mme, hss and spgw into different containers with different ips? Thanks a lot. Have a nice day~
    Sincerely,
    Hongjing

    1. Dear Hongjing,
      Yes, of course.
      All the EPC configuration files are in our tar file examples, and you can find other prepared versions in OAI wiki.
      All the EPC files default directory is /usr/local/etc/oai.
      In these files, you need only to change the IP@ to use your IP network configuration.
      For eNB, the IP@ are in the configuration you pass in parameter -O on the command line.
      Best regards,
      Laurent

  40. Hi Laurent,
    I am trying to connect my ZC706 and AD9371 to OAI, but the files and instructions in /openairinterface/targets/ARCH/ADRV9371_ZC706 appear to obsolete, for the zip file is nowhere to be found and the shell file will produce the error “Previous SYRIQ is not loaded”. Is there any chance you know about this setup or the location of the zip file? Do you know how to resolve this problem? or how to work around this?
    thank you for your help
    -Michael

    1. Dear Michael,

      We never used ZC706, please try the OAI mailing list (I don’t think there is any user of this board).

      The only information I can push is my experience with Zynq boards.
      The Zynq build in Ethernet interface is too poor for OAI, because it has to get through the PS to the PL (your AD9371 must be behind the PL part), maybe 5MHz SISO could work.
      If you use a interface that goes directly in the PL, the data rate can be good, but the BRAM size is very small, and the PS is almost useless.
      Small BRAM will lead you to shape the OAI traffic in smaller grains than today OAI (a LTE subframe).

      Laurent

      1. Hi Laurent,
        thanks so much for the help with this
        I’m trying to replicate the setup put together by a group called SYRTEM, it appears they used an Ethernet connection, but its hard to tell.

        Would you know how to set up a 5MHz SISO with the ZC706 and ADRV9371?

        Is there a way to do OAI in a non-realtime setting, so the data rates cab be relaxed?

        I’ve contacted the Openairinterface5g-Users mailing list as well as Syrtem, do you know of anyone else I can reach out to?

        thank you
        -Michael

  41. Hi, in the past i have setup a OAI test bed based on OAI Wiki. However, i want to try the setup with Ubuntu 18.04 in a single machine. There is something not quite clear to me in this new tutorial regarding the following phrase: “All other configuration in OAI Wiki (C1 states, …) describes is about useless.”.

    Does this mean that all the step related to sleep states, in particular
    C-states) and CPU frequency scaling are not required anymore ?

    What about low-latency kernel? Is this required ?

    Thanks in advance

    1. Hi,
      Lowlatency kernel preempts at 1000Hz, that is anyway too slow.
      C-state: is managed inside OAI source for years: see set_latency_target(), it is useless to do it in bios or by any external means
      P-state: this is frequency scaling, you have to fix the CPU cores frequency
      Laurent

  42. I started with a clean install and am running Ubuntu 18
    I am getting an error with the hss, when performing ./run_hss, as follows:
    ————————————————————–
    Parsing configuration file: /usr/local/etc/oai/hss.conf
    Configuration
    * Global:
    – File ………….: /usr/local/etc/oai/hss.conf
    * MYSQL:
    – Server ………..: 127.0.0.1
    – Database ………: oai_db
    – User ………….: root
    – Password ………: *****
    * FreeDiameter:
    – Conf file ……..: /usr/local/etc/oai/freeDiameter/hss_fd.conf
    * Security:
    – Operator key……: None
    – Random ……: true
    Initializing db layer
    An error occured while connecting to db: Unknown database ‘oai_db’

    1. you should import/create the database oai_db.
      In this tutorial, a example database is offered, witht he script to install it automatically
      Laurent

  43. Hey Laurent,

    I am trying to run :
    cd openair-cn; source oaienv; cd scripts; sudo -E ./run_spgw

    however it is failing and I am getting:
    Failed to read SGI ip addresses: error No such device
    Function spgw_config_parse_opt_line (argc, argv, &spgw_config) has failed
    returning -1

    Also my eNB is on a different device.

    1. Hi Ryan,
      I think you missed the tuto chapter explaining you have to edit /usr/local/etc/oai/spgw.conf
      Could you check if you did this piece of configuration?
      Laurent

      1. I think I am doing something wrong, I check the configuration and made changes, now the output is as follows:

        OPENAIR_DIR =
        Initializing OAI Logging
        000000 00000:799135 7F81A1230640 INFO SPGW-A /openair-cn/src/sgw/sgw_config.c:0212 Parsing configuration file found S1u_S12_S4_up: xx.xxx.xx.xxx/xx on lo
        000001 00000:799152 7F81A1230640 INFO SPGW-A /openair-cn/src/sgw/sgw_config.c:0225 Parsing configuration file found S5_S8_up: 0.0.0.0/24 on none
        000002 00000:799157 7F81A1230640 INFO SPGW-A /openair-cn/src/sgw/sgw_config.c:0238 Parsing configuration file found S11: 127.0.11.2/8 on lo
        000003 00000:799247 7F81A1230640 INFO SPGW-A /openair-cn/src/sgw/pgw_config.c:0265 Parsing configuration file provided /usr/local/etc/oai/spgw.conf
        000004 00000:799255 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0283 Parsing configuration file found SGI: on enp3s0
        000005 00000:799259 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0287 Masquerade SGI
        000006 00000:799262 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0294 CLAMP TCP MSS
        000007 00000:799271 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0352 Parsing configuration file default primary DNS IPv4 address: 8080808
        000008 00000:799276 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0353 Parsing configuration file default secondary DNS IPv4 address: 4040808
        000009 00000:799282 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0371 UE MTU : 1500
        000010 00000:799290 7F81A1230640 DEBUG SPGW-A openair-cn/src/sgw/spgw_config.c:0065 system command: sysctl -w net.ipv4.ip_forward=1
        net.ipv4.ip_forward = 1
        000011 00000:800430 7F81A1230640 DEBUG SPGW-A openair-cn/src/sgw/spgw_config.c:0065 system command: sync
        000012 00000:877014 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0075 system command: iptables -t mangle -F FORWARD
        000013 00000:880813 7F81A1230640 DEBUG SPGW-A /openair-cn/src/sgw/pgw_config.c:0075 system command: iptables -t nat -F POSTROUTING
        000014 00000:887493 7F81A1230640 CRITI SPGW-A /openair-cn/src/sgw/pgw_config.c:0128 Failed to read SGI ip addresses: error No such device
        Function spgw_config_parse_opt_line (argc, argv, &spgw_config) has failed
        returning -1
        ————————————————————————————————————————————————————

        Changes I made:
        S-GW :
        {
        NETWORK_INTERFACES :
        {
        # S-GW binded interface for S11 communication (GTPV2-C), if none selected the ITTI message interface is used
        SGW_INTERFACE_NAME_FOR_S11 = “lo”; # STRING, interface name, YOUR NETWORK CONFIG HERE
        SGW_IPV4_ADDRESS_FOR_S11 = “127.0.11.2/8”; # STRING, CIDR, YOUR NETWORK CONFIG HERE

        # S-GW binded interface for S1-U communication (GTPV1-U) can be ethernet interface, virtual ethernet interface, we don’t advise wireless interfaces
        SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP = “lo”; # STRING, interface name, YOUR NETWORK CONFIG HERE, USE “lo” if S-GW run on eNB host
        SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP = “xx.xxx.xxx.xxx/xx”; # STRING, CIDR, YOUR NETWORK CONFIG HERE
        SGW_IPV4_PORT_FOR_S1U_S12_S4_UP = 2152; # INTEGER, port number, PREFER NOT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING

        # S-GW binded interface for S5 or S8 communication, not implemented, so leave it to none
        SGW_INTERFACE_NAME_FOR_S5_S8_UP = “none”; # STRING, interface name, DO NOT CHANGE (NOT IMPLEMENTED YET)
        SGW_IPV4_ADDRESS_FOR_S5_S8_UP = “0.0.0.0/24”; # STRING, CIDR, DO NOT CHANGE (NOT IMPLEMENTED YET)
        };

        INTERTASK_INTERFACE :
        {
        # max queue size per task
        ITTI_QUEUE_SIZE = 2000000; # INTEGER
        };

        LOGGING :
        {
        # OUTPUT choice in { “CONSOLE”, “SYSLOG”, `path to file`”, “`IPv4@`:`TCP port num`”}
        # `path to file` must start with ‘.’ or ‘/’
        # if TCP stream choice, then you can easily dump the traffic on the remote or local host: nc -l `TCP port num` > received.txt
        OUTPUT = “CONSOLE”; # see 3 lines above
        #OUTPUT = “SYSLOG”; # see 4 lines above
        #OUTPUT = “/tmp/spgw.log”; # see 5 lines above
        #OUTPUT = “127.0.0.1:5656”; # see 6 lines above

        # THREAD_SAFE choice in { “yes”, “no” } means use of thread safe intermediate buffer then a single thread pick each message log one
        # by one to flush it to the chosen output
        THREAD_SAFE = “no”;

        # COLOR choice in { “yes”, “no” } means use of ANSI styling codes or no
        COLOR = “yes”;

        # Log level choice in { “EMERGENCY”, “ALERT”, “CRITICAL”, “ERROR”, “WARNING”, “NOTICE”, “INFO”, “DEBUG”, “TRACE”}
        UDP_LOG_LEVEL = “TRACE”;
        GTPV1U_LOG_LEVEL = “TRACE”;
        GTPV2C_LOG_LEVEL = “TRACE”;
        SPGW_APP_LOG_LEVEL = “TRACE”;
        S11_LOG_LEVEL = “TRACE”;
        };
        };

        P-GW =
        {
        NETWORK_INTERFACES :
        {
        # P-GW binded interface for S5 or S8 communication, not implemented, so leave it to none
        PGW_INTERFACE_NAME_FOR_S5_S8 = “none”; # STRING, interface name, DO NOT CHANGE (NOT IMPLEMENTED YET)

        # P-GW binded interface for SGI (egress/ingress internet traffic)
        PGW_INTERFACE_NAME_FOR_SGI = “enp3s0”; # STRING, YOUR NETWORK CONFIG HERE
        PGW_MASQUERADE_SGI = “yes”; # STRING, {“yes”, “no”}. YOUR NETWORK CONFIG HERE, will do NAT for you if you put “yes”.
        UE_TCP_MSS_CLAMPING = “yes”; # STRING, {“yes”, “no”}.
        };

        # Pool of UE assigned IP addresses
        # Do not make IP pools overlap
        # first IPv4 address X.Y.Z.1 is reserved for GTP network device on SPGW
        # Normally no more than 16 pools allowed, but since recent GTP kernel module use, only one pool allowed (TODO).
        IP_ADDRESS_POOL :
        {
        IPV4_LIST = (
        “172.16.0.0/12” # STRING, CIDR, YOUR NETWORK CONFIG HERE.
        );
        };

        # DNS address communicated to UEs
        DEFAULT_DNS_IPV4_ADDRESS = “8.8.8.8”; # YOUR NETWORK CONFIG HERE
        DEFAULT_DNS_SEC_IPV4_ADDRESS = “8.8.4.4”; # YOUR NETWORK CONFIG HERE

        # Non standard feature, normally should be set to “no”, but you may need to set to yes for UE that do not explicitly request a PDN address through NAS signalling
        FORCE_PUSH_PROTOCOL_CONFIGURATION_OPTIONS = “no”; # STRING, {“yes”, “no”}.
        UE_MTU = 1500 # INTEGER
        };

        1. Hi,
          The line: PGW_INTERFACE_NAME_FOR_SGI = “enp3s0”
          is not good
          do “ip a” to see the existing interfaces, and take the right one (the one that goes to internet)
          Laurent

  44. Hi Laurent,

    I have Ubuntu 18.10 on my computer and tried to install OAI as in the instruction above but after command: ./build_hss -i installation fails and I receive “Your distribution 18.10Ubuntu is not supported by openair-cn” and I am not asked about any questions as you wrote in the instruction, installation fails. Do I have to install older version of Ubuntu or are there any steps which should I modify to install OAI on Ubuntu18.10?

    Best regards,
    Charles

    1. Hi Charles,
      you can change this check in openair-cn/build/tools/build_helper
      18.10 is not anymore supported: why don’t you try 19.04 if you want a very recent distro ?
      Laurent

  45. Hi laurent,

    Thanks for this detailed guide. I installed OAI develop branch on three separate physical machines (all three ubuntu 16.04). One machine for HSS/MME/SPGW, one machine for eNB and one for UE. Everything seems to be working fine but UE is not attaching to eNB. I am using USRP B210 and VERT2450 Vertical Antenna (2.4-2.5 and 4.9-5.9 GHz) Dualband.

    I think I have issues with frequency range, because the frequency range in eNB configuration file is 2685000000 which is not supported by antenna (as shown above). I tried to change it to 2450000000 but eNB does not start and logs say “could not find matching band in given frequency range”. My eNB configuration is shown below (enb.band7.tm1.50PRB.usrpb210.conf):

    // Tracking area code, 0x0000 and 0xfffe are reserved values
    tracking_area_code = 1;

    plmn_list = ( { mcc = 208; mnc = 93; mnc_length = 2; } );

    tr_s_preference = “local_mac”

    ////////// Physical parameters:

    component_carriers = (
    {
    node_function = “3GPP_eNODEB”;
    node_timing = “synch_to_ext_device”;
    node_synch_ref = 0;
    frame_type = “FDD”;
    tdd_config = 3;
    tdd_config_s = 0;
    prefix_type = “NORMAL”;
    eutra_band = 7;
    downlink_frequency = 2685000000L;
    uplink_frequency_offset = -120000000;
    Nid_cell = 0;
    N_RB_DL = 50;
    Nid_cell_mbsfn = 0;
    nb_antenna_ports = 1;
    nb_antennas_tx = 1;
    nb_antennas_rx = 1;
    tx_gain = 90;
    rx_gain = 125;
    pbch_repetition = “FALSE”;
    prach_root = 0;
    prach_config_index = 0;
    prach_high_speed = “DISABLE”;
    prach_zero_correlation = 1;
    prach_freq_offset = 2;
    pucch_delta_shift = 1;
    pucch_nRB_CQI = 0;
    pucch_nCS_AN = 0;
    pucch_n1_AN = 0;
    pdsch_referenceSignalPower = -27;
    pdsch_p_b = 0;
    pusch_n_SB = 1;
    pusch_enable64QAM = “DISABLE”;
    pusch_hoppingMode = “interSubFrame”;
    pusch_hoppingOffset = 0;
    pusch_groupHoppingEnabled = “ENABLE”;
    pusch_groupAssignment = 0;
    pusch_sequenceHoppingEnabled = “DISABLE”;
    pusch_nDMRS1 = 1;
    phich_duration = “NORMAL”;
    phich_resource = “ONESIXTH”;
    srs_enable = “DISABLE”;
    /* srs_BandwidthConfig =;
    srs_SubframeConfig =;
    srs_ackNackST =;
    srs_MaxUpPts =;*/
    pusch_p0_Nominal = -96;
    pusch_alpha = “AL1”;
    pucch_p0_Nominal = -104;
    msg3_delta_Preamble = 6;
    pucch_deltaF_Format1 = “deltaF2”;
    pucch_deltaF_Format1b = “deltaF3”;
    pucch_deltaF_Format2 = “deltaF0”;
    pucch_deltaF_Format2a = “deltaF0”;
    pucch_deltaF_Format2b = “deltaF0”;
    rach_numberOfRA_Preambles = 64;
    rach_preamblesGroupAConfig = “DISABLE”;

    Is there any way I can enforce to use 2.4GHz frequency range due to my antenna limitations? Or could you suggest any other workaround? Thanks in Advance

    Note: I am not following your guidelines, I am using one on the OAI wiki.

    1. Hi,
      A OAI function checks if the frequency pair is allocated in 3GPP.
      You can hack this function.
      For eNB:
      config_check_band_frequencies() called in openair2/ENB_APP/enb_config.c
      for UE, the code is duplicated directly in
      targets/RT/USER/lte-ue.c

      in both eNB and UE cases, the same table name (duplicated in source) is used: eutra_bands

      But, if you are outside the 3GPP frequencies, you will never find out a commercial UE (this is possible only with OAI UE)

      About antenna: your antenna will radiate some power at 2.6GHz, even if it is not optimal.
      You can use it from technical point of view (frequency band allocation by law is another question.
      Regards,
      Laurent

  46. Hi Laurents,

    I tried the procedure up to Install Thrid party and SW, in this section while trying
    sudo mysql -u root << END
    USE mysql;
    UPDATE user SET plugin='mysql_native_password' WHERE User='root';
    FLUSH PRIVILEGES;
    END

    I have got this error,

    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    Could you please help me out how to move forward for further installation.

    1. Hi,
      It is not clear why you have to give the password, we will recheck all the procedure later.
      For now, please add ‘-p’ parameter as:

      sudo mysql -u root -p

      Enter the password you have set when you installed mysql/mariadb

      then type the command lines:
      USE mysql;
      UPDATE user SET plugin=’mysql_native_password’ WHERE User=’root’;
      FLUSH PRIVILEGES;
      quit;

      Regards,
      Laurent

  47. Hi Laurents,
    I am running on ubuntu 18.04, ./build_mme -i worked, but mme_compilation failed using ./build_mme

    Following is the log file i got ,
    I installed the libgptnl also,
    [ 1%] Built target auth_request
    [ 1%] Built target BSTR
    [ 1%] Built target HASHTABLE
    [ 1%] Built target MSC
    [ 2%] Built target CN_UTILS
    [ 6%] Built target LFDS
    [ 7%] Built target ITTI
    [ 9%] Built target S6A
    [ 10%] Built target SECU_CN
    [ 11%] Built target GTPV2C
    [ 13%] Built target MME_APP
    [ 13%] Built target SCTP_SERVER
    [ 13%] Built target UDP_SERVER
    [ 13%] Building C object CMakeFiles/GTPV1U.dir/home/aimscs/openair-cn/src/gtpv1-u/gtp_mod_kernel.c.o
    [ 14%] Built target S11_MME
    [ 16%] Built target SGW
    [ 17%] Built target S11_SGW
    [ 18%] Built target test_mme_app_ue_context_imsi
    [ 19%] Built target S1AP_EPC
    /home/aimscs/openair-cn/src/gtpv1-u/gtp_mod_kernel.c:9:10: fatal error: libgtpnl/gtp.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~
    compilation terminated.
    CMakeFiles/GTPV1U.dir/build.make:110: recipe for target ‘CMakeFiles/GTPV1U.dir/home/aimscs/openair-cn/src/gtpv1-u/gtp_mod_kernel.c.o’ failed
    make[2]: *** [CMakeFiles/GTPV1U.dir/home/aimscs/openair-cn/src/gtpv1-u/gtp_mod_kernel.c.o] Error 1
    CMakeFiles/Makefile2:610: recipe for target ‘CMakeFiles/GTPV1U.dir/all’ failed
    make[1]: *** [CMakeFiles/GTPV1U.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs….
    [ 44%] Built target LIB_NAS_MME
    [ 98%] Built target S1AP_LIB
    Makefile:94: recipe for target ‘all’ failed
    make: *** [all] Error 2

    1. Hi,
      gtpnl is a external library that is installed when you do ./build_mme -i
      It asks you to install this libray
      something went wrong: maybe you answered “no”, maybe the gtpnl didn’t install well.
      Please check this
      after installation, the file full path should be: /usr/local/include/libgtpnl/gtp.h
      Regards,
      Laurent

  48. Hello dear laurent,
    I have lime sdr and also wanna buy few simcard + programmer

    After doing this tutorial i got to this point
    source oaienv
    ./cmake_targets/build_oai -I # install SW packages from internet
    ./cmake_targets/build_oai -w USRP –eNB –UE # compile eNB and UE

    So i should replace -w USRP with LMSSDR
    Right?

    So after that what should i do?
    is there any config file for limesdr( can u sent the link here)?

    then after configuring the lime i should go through the run part

    So what should i do in this part?
    i mean :

    sudo bash
    cd ~/openairinterface5g; source oaienv
    cd cmake_targets/lte_build_oai/build
    ./lte-softmodem -O ~/opencells-mods/enb.10MHz.b200

    should it be changed?( can u name it)

    And one last question is when i got the sim and programmer what shall i do with database?

    i mean should i change the hss db ?
    if yes how?

    Thank u very much

    1. Hi,
      i should replace -w USRP with LMSSDR
      => yes
      is there any config file for limesdr
      => in directory openairinterface5g/targets/ARCH/LMSSDR/ there are some *.ini files specific to LimeSDR
      => these configuration files are very important
      => as in our posts related to LimeSDR, we never succeeded to make a configuration as good as the USRP one
      ./lte-softmodem -O ~/opencells-mods/enb.10MHz.b200 =>
      you should add –rf-config-file and one “good” Lime config File
      This file configures the RF chip
      should i change the hss db
      => we program the SIM before shipping to be used with our hss db example
      => it should work directly, no setting is required
      => you are also free to reprogram the cards with our SW tool, and so, also change the HSS db

      Regards,
      Laurent

  49. Hi Laurent
    I recently bought open cell SIM cards that are already programmed. On the receipt, it says that other values (ki and opc) are in the hss dump in the provided tutorial. I already have a working EPC and eNodeB using wiki oai tutorial, can u send me the ki and opc values or can I re-programmed the SIM card with the UICC software ?
    Thank you.

    1. Hi,
      Both are possible.
      The Ki we set is: 0x6874736969202073796D4B2079650A73
      The OPc: 0x504F20634F6320504F50206363500A4F
      nevertheless, you can load your values with our software tool.
      Regards,
      Laurent

  50. Hi laurent,

    Thanks for this detailed guide. I have bought a GPSDO for USRP 210. Is there any configuration to set if I want to use clock source set as gpsdo?

    1. Hi Sun,

      Yes, there is a parameter clock_src = “gpsdo”; to set in the configuration file

      You can check if the parameter is used.
      Enable HW debug traces on the command line, add to the command line: –log_config.hw_log_level debug
      There is a trace line in file: targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
      This file is the USRP interface source code for OpenAirInterface

      Laurent

  51. Hello,
    I wanna use a test sim card with MCC 001 and MNC 01
    Why is it not possible to use the test-network 00101?
    It would be really nice if some one could tell me how to fix this.

    1. Hi,
      Yes you can
      The issue I know is the OpenAir EPC was bugged with IMSI starting by 001 (it was converting internally the IMSI in integer)
      Laurent

  52. Hello again,
    I’ve got a problem with the Spgw.
    I configure the Spgw.conf but I get the following:

    …/openair-cn/scripts$ sudo -E ./run_spgw
    OPENAIR_DIR =
    Initializing OAI Logging

    Assertion (0) failed!
    In spgw_config_parse_file() /…../openair-cn/src/sgw/spgw_config.c:135
    Failed to parse SP-GW configuration file /usr/local/etc/oai/spgw.conf!

    Will Intentionaly raise SEGFAULT to be catched by GDB!
    Obtained 6 stack frames.
    spgw(display_backtrace+0x28) [0x5599c147a98c]
    spgw(+0xadaf) [0x5599c144edaf]
    spgw(spgw_config_parse_opt_line+0x2d5) [0x5599c144f53f]
    spgw(main+0xe3) [0x5599c144deed]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fb4e62a3b97]
    spgw(_start+0x2a) [0x5599c144dd2a]
    ./run_spgw: line 85: 31274 Segmentation fault $SUDO spgw `echo $exe_arguments` 2>&1

    I don’t know what is the problem.
    Is it possible, that the Spgw have some Problems with my proxysettings?
    Have someone an idea?

    1. Hi,
      As per the trace: the file /usr/local/etc/oai/spgw.conf syntax is not correct.
      I think you modified it and missed a syntax piece: “;” at the end of line for example
      Laurent

      1. Hey laurent,
        thanks for your tutorial and your tips, now I’m really close to finish this setup.
        But still I have some questions left.
        I get a really short connection of my UE but it get instant removed.

        My MME:
        | Current Status| Added since last display| Removed since last display |
        Connected eNBs | 1 | 0 | 0 |
        Attached UEs | 0 | 0 | 0 |
        Connected UEs | 0 | 1 | 1 |
        Default Bearers| 0 | 0 | 0 |
        S1-U Bearers | 0 | 0 | 0 |

        My eNB:
        [RRC] S1AP removed entry in hashtable s1ap_id2_s1ap_ids for eNB_ue_s1ap_id 420141
        [RRC] S1AP removed entry in hashtable initial_id2_s1ap_ids for ue_initial_id 1
        [S1AP] Removed UE context eNB_ue_s1ap_id 420141
        [SCTP] Successfully sent 21 bytes on stream 1 for assoc_id 15
        [RRC] Removing UE 701e instance after UE_CONTEXT_RELEASE_Complete (ue_release_timer_rrc timeout)
        [RRC] [eNB 0] Removing UE RNTI 701e
        [RRC] Put UE 701e into freeList
        [RRC] clean_eNb_ulsch ulsch[0] UE 701e
        [RRC] clean_eNb_dlsch dlsch[2] UE 701e
        [MAC] clean eNb uci_vars[0] UE 701e
        [MAC] clean eNb uci_vars[1] UE 701e
        [MAC] clean eNb uci_vars[2] UE 701e
        [RRC] remove UE 701e from ul_config_pdu_list 0/1
        [MAC] Removing UE 0 from Primary CC_id 0 (rnti 701e)

        … and so on ….

        There are some red lines left when I start my softmodem:
        (1)[PHY] DJP – delete code above this …./openairinterface5g/targets/RT/USER/lte-ru.c:2639
        (2)[MAC] SCHED_MODE = 0
        (3)[PHY] fill_ulsch UE_id 0 nb_rb = 0

        I hope you can help me again.

        1. Hi,

          [PHY] DJP – delete code above this …./openairinterface5g/targets/RT/USER/lte-ru.c:2639
          => known bad trace, no issue

          The UE is removed, but I don’t know why from your trace

          Laurent

  53. Hi Laurent,
    The mme is easy to end with a segmentation fault:
    Assertion ((15 == auth_info_req->imsi_length)|| (14 == auth_info_req->imsi_length)) failed!
    In nas_itti_auth_info_req() /home/damon/oai/openair-cn/src/nas/nas_itti_messaging.c:320
    Bad IMSI length 13
    Will Intentionaly raise SEGFAULT to be catched by GDB!
    Obtained 10 stack frames.
    mme(display_backtrace+0x28) [0x555d81710847]
    mme(nas_itti_auth_info_req+0x14f) [0x555d8165f200]
    mme(+0xada5c) [0x555d81683a5c]
    mme(emm_proc_attach_request+0x1268) [0x555d81682d06]
    mme(emm_recv_attach_request+0xb6b) [0x555d816562be]
    mme(+0x7a650) [0x555d81650650]
    mme(emm_as_send+0xff) [0x555d8164f3d8]
    mme(emm_sap_send+0xd5) [0x555d8164af32]
    mme(nas_proc_establish_ind+0x1b6) [0x555d816426fc]
    mme(+0x6bf76) [0x555d81641f76]
    ./run_mme: line 87: 8134 Segmentation fault $SUDO mme `echo $exe_arguments` 2>&1

    Do you know how to solve it? Thanks.
    Best regards,
    Damon

    1. Hi,
      I guess you used MCC as 001
      The MME has a bug with MCC starting by 0 (it makes a faulty conversion to integer)
      Coud you confirm and try with another MCC?
      Laurent

      1. Hi Laurent,
        Thanks for your reply.
        Yes, the MCC is 001. Changing MCC to 460, the issue is solved.
        But when the ue trying to connect to enb, MME end with the output:
        001518 00160:830816 7FAE0A472700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
        001519 00160:830819 7FAE0A472700 TRACE NAS-EM ai/openair-cn/src/nas/nas_proc.c:0326 Leaving nas_proc_ul_transfer_ind() (rc=0)
        001520 00160:831030 7FAE09470700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
        001521 00160:831034 7FAE09470700 DEBUG UDP /src/udp/udp_primitives_server.c:0105 Looking for sd 32
        001522 00160:831036 7FAE09470700 DEBUG UDP /src/udp/udp_primitives_server.c:0108 Found matching task desc
        001523 00160:831038 7FAE09470700 DEBUG UDP /src/udp/udp_primitives_server.c:0212 Inserting new descriptor for task 6, sd 32
        001524 00160:831044 7FAE09470700 DEBUG UDP /src/udp/udp_primitives_server.c:0239 Msg of length 18 received from 127.0.0.30:2123
        001525 00160:831054 7FAE08C6F700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1113 Entering nwGtpv2cProcessUdpReq()
        001526 00160:831069 7FAE08C6F700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1535 Entering nwGtpv2cStopTimer()
        001527 00160:831072 7FAE08C6F700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1542 Stopping active timer 0x7fadec000ba0 for info 0x0x7fadec003be0!
        001528 00160:831074 7FAE08C6F700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1545 Stopping active timer 0x7fadec000ba0 for info 0x0x7fadec003be0!
        001529 00160:831078 7FAE08C6F700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1570 Leaving nwGtpv2cStopTimer() (rc=0)
        001530 00160:831080 7FAE08C6F700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7fadec001290!
        001531 00160:831082 7FAE08C6F700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0328 Purging transaction 0x0x7fadec000f90
        001532 00160:831084 7FAE08C6F700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0134 Created message 0x7fadec001290!
        001533 00160:831086 7FAE08C6F700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 2 with instance 0 of length 2 in msg-type 35!
        001534 00160:831089 7FAE08C6F700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0770 Entering nwGtpv2cSendTriggeredRspIndToUlp()
        001535 00160:831091 7FAE08C6F700 DEBUG S11 penair-cn/src/s11/s11_mme_task.c:0072 Received triggered response indication
        001536 00160:831111 7FAE08C6F700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 2 of length 2!
        001537 00160:831113 7FAE08C6F700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0441 – Cause 16
        001538 00160:831117 7FAE08C6F700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7fadec001290!
        001539 00160:831123 7FAE08C6F700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0778 Leaving nwGtpv2cSendTriggeredRspIndToUlp() (rc=0)
        001540 00160:831125 7FAE08C6F700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1187 Leaving nwGtpv2cProcessUdpReq() (rc=0)
        mme: /home/damon/oai/openair-cn/src/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:487: nwGtpv2cCreateLocalTunnel: Assertion `0′ failed.
        ./run_mme: line 87: 21364 Aborted $SUDO mme `echo $exe_arguments` 2>&1

        Do you have any suggestion to solve it?
        Best regards,
        Damon

        1. Hi,
          GTPv2c is the protocol to the S-GW
          There are not a lot of details, nevertheless a “ie” (information element) coming from the SGW answer is not accepted, so the mme terminates itself.
          maybe check in the spgw traces if something is writtent
          Laurent

          1. Hi Laurent,
            The output information of spgw is as follow:
            000148 00102:556616 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
            000149 00102:556636 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0105 Looking for sd 31
            000150 00102:556641 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0108 Found matching task desc
            000151 00102:556645 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0212 Inserting new descriptor for task 6, sd 31
            000152 00102:556661 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0239 Msg of length 144 received from 127.0.0.20:2123
            000153 00102:556685 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0180 Processing new data indication from UDP
            000154 00102:556698 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1113 Entering nwGtpv2cProcessUdpReq()
            000155 00102:556706 7F5323FFF700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0299 Created outstanding RX transaction 0x0x7f5318000bc0
            000156 00102:556713 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0134 Created message 0x7f5318000fc0!
            000157 00102:556720 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 3 with instance 0 of length 1 in msg-type 32!
            000158 00102:556741 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 1 with instance 0 of length 8 in msg-type 32!
            000159 00102:556749 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 82 with instance 0 of length 1 in msg-type 32!
            000160 00102:556754 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 99 with instance 0 of length 1 in msg-type 32!
            000161 00102:556761 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 87 with instance 0 of length 9 in msg-type 32!
            000162 00102:556765 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 87 with instance 1 of length 5 in msg-type 32!
            000163 00102:556770 7F5323FFF700 ERROR GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0687 Mandatory IE of type 87 and instance 1 incorrect!
            000164 00102:556775 7F5323FFF700 WARNI GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0867 Malformed request message received on TEID 0 from peer 0x7f000014. Notifying ULP.
            000165 00102:556780 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0740 Entering nwGtpv2cSendInitialReqIndToUlp()
            000166 00102:556785 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0057 Received initial req indication
            000167 00102:556810 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 3 of length 1!
            000168 00102:556815 7F5323FFF700 DEBUG S11 /openair-cn/src/s11/s11_common.c:0038 Received IE Parse Indication for of type 3, length 1, instance 0!
            000169 00102:556833 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 1 of length 8!
            000170 00102:556838 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0073 – IMSI length 16
            000171 00102:556843 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0074 – value 2089201000011050
            000172 00102:556849 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 82 of length 1!
            000173 00102:556854 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0328 – RAT type (6): 1004
            000174 00102:556859 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 99 of length 1!
            000175 00102:556863 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0247 – PDN type 0
            000176 00102:556867 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 87 of length 9!
            000177 00102:556872 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0875 – F-TEID type 10
            000178 00102:556876 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0880 – TEID/GRE 04001900
            000179 00102:556881 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0888 – IPv4 addr 127.0.0.20
            000180 00102:556886 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 87 of length 5!
            000181 00102:556890 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0875 – F-TEID type 7
            000182 00102:556894 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0880 – TEID/GRE 00000000
            000183 00102:556899 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 71 of length 7!
            000184 00102:556904 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:1066 – APN ltebox
            000185 00102:556909 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 83 of length 3!
            000186 00102:556913 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0786 – Serving network 208.92
            000187 00102:556918 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 78 of length 26!
            000188 00102:556923 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 93 of length 31!
            000189 00102:556928 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0404 – EBI 5
            000190 00102:556934 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7f5318000fc0!
            000191 00102:556955 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0086 Entering sgw_handle_create_session_request()
            000192 00102:556960 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0750 Leaving nwGtpv2cSendInitialReqIndToUlp() (rc=0)
            000193 00102:556973 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1187 Leaving nwGtpv2cProcessUdpReq() (rc=0)
            000194 00102:556973 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0121 Rx CREATE-SESSION-REQUEST MME S11 teid 67115264 S-GW S11 teid 1 APN ltebox EPS bearer Id 5
            000195 00102:556988 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0122 IMSI 208920100001105
            000196 00102:556996 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0342 sgw_cm_create_bearer_context_information_in_collection 1
            000197 00102:557006 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0368 Added new s_plus_p_gw_eps_bearer_context_information_t in s11_bearer_context_information_hashtable key teid 1
            000198 00102:557015 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0411 Inserted new EPS bearer entry for EPS bearer id 5 status HASH_TABLE_OK
            000199 00102:557020 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0102 | 5 ebi: 5, enb_teid_for_S1u: 0, s_gw_teid_for_S1u_S12_S4_up: 0 (tbc)
            000200 00102:557029 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0081 +————————————–+
            000201 00102:557033 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0082 | MME SGW |
            000202 00102:557037 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0083 +————————————–+
            000203 00102:557041 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0068 | 67115264 1
            000204 00102:557046 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0085 +————————————–+
            000205 00102:557050 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0157 +—————————————–+
            000206 00102:557054 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0158 | S11 BEARER CONTEXT INFORMATION MAPPINGS |
            000207 00102:557058 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0159 +—————————————–+
            000208 00102:557062 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0123 | KEY 1:
            000209 00102:557066 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0124 | sgw_eps_bearer_context_information: |
            000210 00102:557071 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0126 | imsi_unauthenticated_indicator: 1
            000211 00102:557077 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0128 | mme_teid_ S11: 67115264
            000212 00102:557083 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0130 | s_gw_teid_S11_S4: 1
            000213 00102:557089 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0133 | pdn_connection:
            000214 00102:557094 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0134 | apn_in_use: ltebox
            000215 00102:557100 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0135 | default_bearer: 5
            000216 00102:557105 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0136 | eps_bearers:
            000217 00102:557111 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0102 | 5 ebi: 5, enb_teid_for_S1u: 0, s_gw_teid_for_S1u_S12_S4_up: 0 (tbc)
            000218 00102:557118 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0161 +————————————–+
            000219 00102:557127 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0351 Entering sgw_handle_gtpv1uCreateTunnelResp()
            000220 00102:557132 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0354 Rx GTPV1U_CREATE_TUNNEL_RESP, Context S-GW S11 teid 1, S-GW S1U teid 1 EPS bearer id 5 status 0
            000221 00102:557137 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0360 Updated eps_bearer_entry_p eps_b_id 5 with SGW S1U teid 1
            000222 00102:557141 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0157 +—————————————–+
            000223 00102:557145 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0158 | S11 BEARER CONTEXT INFORMATION MAPPINGS |
            000224 00102:557149 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0159 +—————————————–+
            000225 00102:557153 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0123 | KEY 1:
            000226 00102:557157 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0124 | sgw_eps_bearer_context_information: |
            000227 00102:557162 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0126 | imsi_unauthenticated_indicator: 1
            000228 00102:557169 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0128 | mme_teid_ S11: 67115264
            000229 00102:557175 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0130 | s_gw_teid_S11_S4: 1
            000230 00102:557181 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0133 | pdn_connection:
            000231 00102:557185 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0134 | apn_in_use: ltebox
            000232 00102:557191 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0135 | default_bearer: 5
            000233 00102:557197 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0136 | eps_bearers:
            000234 00102:557202 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0102 | 5 ebi: 5, enb_teid_for_S1u: 0, s_gw_teid_for_S1u_S12_S4_up: 1 (tbc)
            000235 00102:557209 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0161 +————————————–+
            000236 00102:557214 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0071 PCO: Protocol identifier IPCP length 16
            000237 00102:557218 7F5322FFD700 TRACE SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0078 PCO: Protocol identifier IPCP (0x8021) code 0x1 identifier 0x1 length 16
            000238 00102:557223 7F5322FFD700 TRACE SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0095 PCO: Protocol identifier IPCP ipcp_option 129 ipcp_option_length 6 ipcp_remaining_length 6 pco_in_index 4
            000239 00102:557228 7F5322FFD700 TRACE SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0108 PCO: Protocol identifier IPCP option PRIMARY_DNS_SERVER_IP_ADDRESS length 6
            000240 00102:557232 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0114 PCO: Protocol identifier IPCP option SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_dns_prim_ipv4_addr 0x0
            000241 00102:557236 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0132 PCO: Protocol identifier IPCP option SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_out_dns_prim_ipv4_addr 0x8080808
            000242 00102:557241 7F5322FFD700 TRACE SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0095 PCO: Protocol identifier IPCP ipcp_option 131 ipcp_option_length 6 ipcp_remaining_length 0 pco_in_index 10
            000243 00102:557246 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0155 PCO: Protocol identifier IPCP option SECONDARY_DNS_SERVER_IP_ADDRESS length 6
            000244 00102:557250 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0162 PCO: Protocol identifier IPCP option SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_dns_sec_ipv4_addr 0x0
            000245 00102:557254 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0174 PCO: Protocol identifier IPCP option SECONDARY_DNS_SERVER_IP_ADDRESS ipcp_out_dns_sec_ipv4_addr 0x4040808
            000246 00102:557259 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0272 PCO: Allocation via NAS signalling requested
            000247 00102:557263 7F5322FFD700 DEBUG SPGW-A oai/openair-cn/src/sgw/pgw_pco.c:0210 PCO: Protocol identifier IPCP option DNS Server Request
            000248 00102:557269 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0242 Entering sgw_handle_sgi_endpoint_created()
            000249 00102:557273 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0243 Rx SGI_CREATE_ENDPOINT_RESPONSE,Context: S11 teid 1, SGW S1U teid 1 EPS bearer id 5
            000250 00102:557282 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0320 Tx CREATE-SESSION-RESPONSE SPGW -> TASK_S11, S11 MME teid 67115264 S11 S-GW teid 1 S1U teid 1 S1U addr 0x1e00007f EPS bearer id 5 status 16
            000251 00102:557296 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0331 Leaving sgw_handle_sgi_endpoint_created() (rc=0)
            000252 00102:557304 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0458 Leaving sgw_handle_gtpv1uCreateTunnelResp() (rc=0)
            000253 00102:557308 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0226 Leaving sgw_handle_create_session_request() (rc=0)
            000254 00102:557527 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0187 Received S11_CREATE_SESSION_RESPONSE from S-PGW APP
            000255 00102:557535 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1203 Entering nwGtpv2cProcessUlpReq()
            000256 00102:557540 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1225 Received create local tunnel from ulp
            000257 00102:557545 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0686 Entering nwGtpv2cHandleUlpCreateLocalTunnel()
            000258 00102:557549 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0687 Creating local tunnel with teid ‘0x1’ and peer IP 0x1400007f
            000259 00102:557555 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0700 Leaving nwGtpv2cHandleUlpCreateLocalTunnel() (rc=0)
            000260 00102:557559 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1243 Leaving nwGtpv2cProcessUlpReq() (rc=0)
            000261 00102:557564 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0092 Created message 0x7f5318000fc0!
            000262 00102:557571 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1203 Entering nwGtpv2cProcessUlpReq()
            000263 00102:557575 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1219 Received triggered response from ulp
            000264 00102:557579 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0652 Entering nwGtpv2cHandleUlpTriggeredRsp()
            000265 00102:557584 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0659 Sending response message over seq ‘0xf860’
            000266 00102:557594 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1390 Entering nwGtpv2cStartTimer()
            000267 00102:557605 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0088 Looking for task 6
            000268 00102:557610 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0091 Found matching task desc
            000269 00102:557614 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0309 [31] Sending message of size 117 to 127.0.0.20 and port 2123
            000270 00102:557620 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1444 Started timer 0x0 for info 0x0x7f53180065e0!
            000271 00102:557627 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1450 Leaving nwGtpv2cStartTimer() (rc=0)
            000272 00102:557631 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0668 Leaving nwGtpv2cHandleUlpTriggeredRsp() (rc=0)
            000274 00102:557636 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1243 Leaving nwGtpv2cProcessUlpReq() (rc=0)
            000273 00102:557636 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
            000275 00102:806369 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
            000276 00102:806385 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0105 Looking for sd 31
            000277 00102:806390 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0108 Found matching task desc
            000278 00102:806394 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0212 Inserting new descriptor for task 6, sd 31
            000279 00102:806403 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0239 Msg of length 43 received from 127.0.0.20:2123
            000280 00102:806420 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0180 Processing new data indication from UDP
            000281 00102:806432 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1113 Entering nwGtpv2cProcessUdpReq()
            000282 00102:806439 7F5323FFF700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0299 Created outstanding RX transaction 0x0x7f5318006980
            000283 00102:806445 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0134 Created message 0x7f5318006a90!
            000284 00102:806450 7F5323FFF700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 87 with instance 0 of length 5 in msg-type 34!
            000285 00102:806456 7F5323FFF700 ERROR GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0687 Mandatory IE of type 87 and instance 0 incorrect!
            000286 00102:806461 7F5323FFF700 WARNI GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0867 Malformed request message received on TEID 1 from peer 0x7f000014. Notifying ULP.
            000287 00102:806467 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0740 Entering nwGtpv2cSendInitialReqIndToUlp()
            000288 00102:806472 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0057 Received initial req indication
            000289 00102:806498 7F5323FFF700 WARNI GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0232 Unexpected IE 87 of length 5 received in msg 34!
            000290 00102:806505 7F5323FFF700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 93 of length 18!
            000291 00102:806510 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0404 – EBI 5
            000292 00102:806515 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0875 – F-TEID type 0
            000293 00102:806520 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0880 – TEID/GRE ca6fe0dd
            000294 00102:806524 7F5323FFF700 DEBUG S11 ir-cn/src/s11/s11_ie_formatter.c:0888 – IPv4 addr 127.0.0.10
            000295 00102:806530 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7f5318006a90!
            000296 00102:806540 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0750 Leaving nwGtpv2cSendInitialReqIndToUlp() (rc=0)
            000297 00102:806545 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1187 Leaving nwGtpv2cProcessUdpReq() (rc=0)
            000298 00102:806547 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0752 Entering sgw_handle_modify_bearer_request()
            000299 00102:806558 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0754 Rx MODIFY_BEARER_REQUEST, teid 1
            000300 00102:806563 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0081 +————————————–+
            000301 00102:806568 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0082 | MME SGW |
            000302 00102:806572 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0083 +————————————–+
            000303 00102:806580 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0068 | 67115264 1
            000304 00102:806585 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0085 +————————————–+
            000305 00102:806589 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0157 +—————————————–+
            000306 00102:806594 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0158 | S11 BEARER CONTEXT INFORMATION MAPPINGS |
            000307 00102:806598 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0159 +—————————————–+
            000308 00102:806602 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0123 | KEY 1:
            000309 00102:806607 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0124 | sgw_eps_bearer_context_information: |
            000310 00102:806612 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0126 | imsi_unauthenticated_indicator: 1
            000311 00102:806618 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0128 | mme_teid_ S11: 67115264
            000312 00102:806623 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0130 | s_gw_teid_S11_S4: 1
            000313 00102:806629 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0133 | pdn_connection:
            000314 00102:806634 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0134 | apn_in_use: ltebox
            000315 00102:806640 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0135 | default_bearer: 5
            000316 00102:806646 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0136 | eps_bearers:
            000317 00102:806652 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0102 | 5 ebi: 5, enb_teid_for_S1u: 0, s_gw_teid_for_S1u_S12_S4_up: 1 (tbc)
            000318 00102:806659 7F5322FFD700 DEBUG SPGW-A cn/src/sgw/sgw_context_manager.c:0161 +————————————–+
            000319 00102:806664 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0597 Entering sgw_handle_sgi_endpoint_updated()
            000320 00102:806668 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0600 Rx SGI_UPDATE_ENDPOINT_RESPONSE, Context teid 1, SGW S1U teid 1, eNB S1U teid 3396329693, EPS bearer id 5, status 0
            000321 00102:806674 7F5322FFD700 DEBUG SPGW-A penair-cn/src/sgw/sgw_handlers.c:0631 Rx SGI_UPDATE_ENDPOINT_RESPONSE: REQUEST_ACCEPTED
            000322 00102:806732 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0666 Leaving sgw_handle_sgi_endpoint_updated() (rc=0)
            000323 00102:806740 7F5322FFD700 TRACE SPGW-A penair-cn/src/sgw/sgw_handlers.c:0824 Leaving sgw_handle_modify_bearer_request() (rc=-1)
            000324 00102:806741 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0193 Received S11_MODIFY_BEARER_RESPONSE from S-PGW APP
            000325 00102:806753 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0092 Created message 0x7f5318006a90!
            000326 00102:806759 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1203 Entering nwGtpv2cProcessUlpReq()
            000327 00102:806763 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1219 Received triggered response from ulp
            000328 00102:806767 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0652 Entering nwGtpv2cHandleUlpTriggeredRsp()
            000329 00102:806772 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0659 Sending response message over seq ‘0xf861’
            000330 00102:806785 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1390 Entering nwGtpv2cStartTimer()
            000331 00102:806792 7F5323FFF700 DEBUG GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1437 Already Started timer 0x0 for info 0x0x7f53180065e0!
            000332 00102:806794 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0088 Looking for task 6
            000333 00102:806800 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1439 Leaving nwGtpv2cStartTimer() (rc=0)
            000334 00102:806806 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0091 Found matching task desc
            000335 00102:806812 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0668 Leaving nwGtpv2cHandleUlpTriggeredRsp() (rc=0)
            000336 00102:806818 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0309 [31] Sending message of size 18 to 127.0.0.20 and port 2123
            000337 00102:806824 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1243 Leaving nwGtpv2cProcessUlpReq() (rc=0)
            000338 00102:806847 7F5328FAA700 DEBUG UDP /src/udp/udp_primitives_server.c:0187 Received 1 events
            000339 00106:557650 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0212 Received event TIMER_HAS_EXPIRED for timer_id 0x7f5318000ba0 and arg 0x7f53180065e0
            000340 00106:557668 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1315 Entering nwGtpv2cProcessTimeout()
            000341 00106:557675 7F5323FFF700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0113 Duplicate request hold timer expired for transaction 0x0x7f5318000bc0
            000342 00106:557681 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7f5318000fc0!
            000343 00106:557686 7F5323FFF700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0328 Purging transaction 0x0x7f5318000bc0
            000344 00106:557696 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1367 Leaving nwGtpv2cProcessTimeout() (rc=0)
            000345 00106:806815 7F5323FFF700 DEBUG S11 oai/openair-cn/src/s11/s11_sgw.c:0212 Received event TIMER_HAS_EXPIRED for timer_id 0x7f5318000b80 and arg 0x7f5318009de0
            000346 00106:806829 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1315 Entering nwGtpv2cProcessTimeout()
            000347 00106:806835 7F5323FFF700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0113 Duplicate request hold timer expired for transaction 0x0x7f5318006980
            000348 00106:806841 7F5323FFF700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7f5318006a90!
            000349 00106:806846 7F5323FFF700 DEBUG GTPv2- nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:0328 Purging transaction 0x0x7f5318006980
            000350 00106:806850 7F5323FFF700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1367 Leaving nwGtpv2cProcessTimeout() (rc=0)

            Best regards,
            Damon

          2. Hi,
            This trace looks good.
            I checked my mme trace: i have the same error as you: 003037 01408:258327 7F70ECFCE700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0134 Created message 0x7f70dc001200!
            003038 01408:258329 7F70ECFCE700 DEBUG GTPv2- .11/src/NwGtpv2cMsgIeParseInfo.c:0665 Received IE 2 with instance 0 of length 2 in msg-type 35!
            003039 01408:258331 7F70ECFCE700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0770 Entering nwGtpv2cSendTriggeredRspIndToUlp()
            003040 01408:258333 7F70ECFCE700 DEBUG S11 n.eurecom/src/s11/s11_mme_task.c:0072 Received triggered response indication
            003041 01408:258347 7F70ECFCE700 DEBUG GTPv2- v2c-0.11/src/NwGtpv2cMsgParser.c:0203 Received IE 2 of length 2!
            003042 01408:258350 7F70ECFCE700 DEBUG S11 recom/src/s11/s11_ie_formatter.c:0441 – Cause 16
            003043 01408:258354 7F70ECFCE700 DEBUG GTPv2- /nwgtpv2c-0.11/src/NwGtpv2cMsg.c:0146 Purging message 7f70dc001200!
            003044 01408:258358 7F70ECFCE700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:0778 Leaving nwGtpv2cSendTriggeredRspIndToUlp() (rc=0)
            003045 01408:258360 7F70ECFCE700 TRACE GTPv2- 2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1187 Leaving nwGtpv2cProcessUdpReq() (rc=0)

            So it is “normal error” (this EPC has a lot of bugs), but my mme doesn’t reach the assert after this message.
            Reading the code of this assert, the context is related to
            “Local tunnel creation failed for teid ‘0x%x’ and peer IP ” NW_IPV4_ADDR “. Tunnel already exists!”
            So, I think you reach this after another initial problem (maybe the UE tries to reconnect and reveals this bug).
            Laurent

  54. Hi laurent,
    I have some authentication problems.
    My OPc mismatch after I start the HSS.
    Updated OPc 00000000000000000000000000000000 -> c6a13b378**********
    How can I change Rijndael (AES) to Snow 3g (EIA1) algorithm?

    regards Paul.

    1. Hi,
      The OAI HSS automatically updates the OPc if the OP is set in the file hss.conf.
      Set OP as void string: “” , the OPc will not be updated
      Laurent

  55. I am getting this error below:

    Initializing s6a layer
    01/28/20,12:42:15.848646 NOTI libfdproto ‘1.2.0’ initialized.
    01/28/20,12:42:15.848697 NOTI libgnutls ‘3.5.18’ initialized.
    01/28/20,12:42:15.849264 DBG Core state: 0 -> 1
    01/28/20,12:42:15.849284 NOTI libfdcore ‘1.2.0’ initialized.
    01/28/20,12:42:15.854451 ERROR TLS: The certificate owner does not match the hostname ‘hss.openair4G.eur’
    01/28/20,12:42:15.854478 ERROR ERROR: in ‘((fd_conf_parse()))’ : Invalid argument
    Initializing s6a layer: FAILED (fd_core_parseconf)

    Any advice?

    1. Hi,
      your TLS certificate has something wrong
      Please regenerate it (see our tutorial, it explains how to generate these certificates)
      Laurent

  56. Hi Laurent,

    Im trying to use my own test SIM cards (MCC 999 MNC 99). I configured the SQL user table to have the correct IMSI and setup the config files accordingly.

    The Android UE seems to establish a connection for a very short moment and is then disconnected. In the logs I can see the MME identifies the UE and the HSS tells ‘okay’, but then something goes wrong. I attached the MME logs, any ideas what went wrong?:

    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0476 [10][39] Msg of length 147 received from port 57283, on stream 1, PPID 18
    TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0050 Entering s1ap_mme_decode_initiating()
    DEBUG S1AP /CMakeFiles/r10.5/s1ap_decoder.c:1456 Decoding message S1ap_InitialUEMessageIEs (/root/openair-cn/build/mme/build/CMakeFiles/r10.5/s1ap_decoder.c:1456)
    TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0144 Leaving s1ap_mme_decode_initiating() (rc=0)
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0064 Entering s1ap_mme_handle_initial_ue_message()
    INFO S1AP c/s1ap/s1ap_mme_nas_procedures.c:0067 Received S1AP INITIAL_UE_MESSAGE eNB_UE_S1AP_ID 0x06692D
    INFO S1AP c/s1ap/s1ap_mme_nas_procedures.c:0078 New Initial UE message received with eNB UE S1AP ID: 0x06692D
    TRACE S1AP c/s1ap/s1ap_mme_itti_messaging.h:0070 Entering s1ap_mme_itti_mme_app_initial_ue_message()
    TRACE S1AP c/s1ap/s1ap_mme_itti_messaging.h:0125 Leaving s1ap_mme_itti_mme_app_initial_ue_message()
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0192 Leaving s1ap_mme_handle_initial_ue_message() (rc=0)
    TRACE MME-AP -cn/src/mme_app/mme_app_bearer.c:0452 Entering mme_app_handle_initial_ue_message()
    DEBUG MME-AP -cn/src/mme_app/mme_app_bearer.c:0453 Received MME_APP_INITIAL_UE_MESSAGE from S1AP
    DEBUG MME-AP -cn/src/mme_app/mme_app_bearer.c:0509 MME_APP_INITIAL_UE_MESSAGE from S1AP,without S-TMSI.
    DEBUG MME-AP -cn/src/mme_app/mme_app_bearer.c:0513 UE context doesn’t exist -> create one
    DEBUG MME-AP -cn/src/mme_app/mme_app_bearer.c:0528 MME_APP_INITAIL_UE_MESSAGE.Allocated new MME UE context and new mme_ue_s1ap_id. 1
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0571 Entering mme_insert_ue_context()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0655 Leaving mme_insert_ue_context() (rc=0)
    TRACE MME-AP -cn/src/mme_app/mme_app_bearer.c:1121 Entering notify_s1ap_new_ue_mme_s1ap_id_association()
    DEBUG MME-AP -cn/src/mme_app/mme_app_bearer.c:1134 Sent MME_APP_S1AP_MME_UE_ID_NOTIFICATION to S1AP for UE Id 1
    TRACE MME-AP -cn/src/mme_app/mme_app_bearer.c:1135 Leaving notify_s1ap_new_ue_mme_s1ap_id_association()
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0586 Entering s1ap_handle_mme_ue_id_notification()
    DEBUG S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0499 Associated sctp_assoc_id 10, enb_ue_s1ap_id 0x06692D, mme_ue_s1ap_id 0x00000001:HASH_TABLE_OK
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0590 Leaving s1ap_handle_mme_ue_id_notification()
    TRACE MME-AP -cn/src/mme_app/mme_app_bearer.c:0559 Leaving mme_app_handle_initial_ue_message()
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0161 Entering nas_proc_establish_ind()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0175 Entering emm_as_send()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0181 EMMAS-SAP – Received primitive EMMAS_ESTABLISH_REQ (205)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0573 Entering _emm_as_establish_req()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0574 EMMAS-SAP – Received AS connection establish request
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context (nil)
    TRACE NAS rc/nas/api/network/nas_message.c:0374 Entering nas_message_decode()
    DEBUG NAS rc/nas/api/network/nas_message.c:0386 0 (94667501841500 bytes) 07 41 72 08 99 99 99 00 00 00 00 20 05 f0 f0 c0 40 11 00 28 02 01 d0 11 d1 27 20 80 80 21 10 01 00 00 10 81 06 00 00 00 00 83 06 00 00 00 00 00 0d 00 00 0a 00 00 05 00 00 10 00 c0 5c 10 04 31 03 e5 e0 3e 90 11 03 57 58 82 20 09 60 14 00 52 30 68 00 90 d0 40 08 04 02 60 04 00 02 1f 02 5d 01 03 c1
    TRACE NAS rc/nas/api/network/nas_message.c:0663 Entering _nas_message_header_decode()
    TRACE NAS rc/nas/api/network/nas_message.c:0717 Leaving _nas_message_header_decode() (rc=1)
    DEBUG NAS rc/nas/api/network/nas_message.c:0392 _nas_message_header_decode returned size 1
    TRACE NAS rc/nas/api/network/nas_message.c:0745 Entering _nas_message_plain_decode()
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0093 Entering emm_msg_decode()
    INFO NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0112 EMM-MSG – Message Type 0x41
    INFO NAS-EM rc/nas/ies/UeNetworkCapability.c:0050 decode_ue_network_capability len = 5
    INFO NAS-EM rc/nas/ies/UeNetworkCapability.c:0069 uenetworkcapability decoded UMTS
    INFO NAS-EM rc/nas/ies/UeNetworkCapability.c:0080 uenetworkcapability decoded misc flags
    INFO NAS-EM rc/nas/ies/UeNetworkCapability.c:0085 uenetworkcapability decoded=6
    INFO NAS-EM rc/nas/ies/UeNetworkCapability.c:0089 uenetworkcapability then decoded=6
    TRACE NAS-ES rc/nas/ies/EsmMessageContainer.c:0042 Entering decode_esm_message_container()
    TRACE NAS-ES rc/nas/ies/EsmMessageContainer.c:0058 Leaving decode_esm_message_container() (rc=42)
    INFO NAS-EM rc/nas/ies/MsNetworkCapability.c:0049 decode_ms_network_capability len = 3
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0245 Leaving emm_msg_decode() (rc=2)
    TRACE NAS rc/nas/api/network/nas_message.c:0765 Leaving _nas_message_plain_decode() (rc=2)
    TRACE NAS rc/nas/api/network/nas_message.c:0514 Leaving nas_message_decode() (rc=2)
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0142 Entering emm_recv_attach_request()
    INFO NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0143 EMMAS-SAP – Received Attach Request message
    INFO NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0178 EMMAS-SAP – get attach type EPS_ATTACH_TYPE_COMBINED_EPS_IMSI
    INFO NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0223 EMMAS-SAP – get IMSI
    TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:0250 Entering emm_proc_attach_request()
    INFO NAS-EM /openair-cn/src/nas/emm/Attach.c:0265 EMM-PROC – EPS attach type = IMSI (1) requested (ue_id=0x00000001)
    INFO NAS-EM /openair-cn/src/nas/emm/Attach.c:0266 EMM-PROC – umts_present = 1 gprs_present = 1
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context (nil)
    NOTIC NAS-EM /openair-cn/src/nas/emm/Attach.c:0510 EMM-PROC – Create EMM context ue_id = 0x00000001
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0176 Entering emm_fsm_set_status()
    INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0182 UE 0x00000001 EMM-FSM – Status changed: INVALID ===> DEREGISTERED
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1014 Entering mme_ue_context_update_ue_emm_state()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1033 Leaving mme_ue_context_update_ue_emm_state()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0194 Leaving emm_fsm_set_status() (rc=0)
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0143 ue_id=0x00000001 GUTI cleared
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0168 ue_id=0x00000001 old GUTI cleared
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0194 ue_id=0x00000001 cleared IMSI
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0230 ue_id=0x00000001 IMEI cleared
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0263 ue_id=0x00000001 cleared IMEI_SV
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0288 ue_id=0x00000001 cleared last visited registered TAI
    TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0361 ue_id=0x00000001 set security context security type 0
    TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0368 ue_id=0x00000001 set security context eksi 7
    TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0375 ue_id=0x00000001 clear security context vector index
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0354 ue_id=0x00000001 cleared security context
    TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0402 ue_id=0x00000001 clear non current security context vector index
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0396 ue_id=0x00000001 cleared non current security context
    TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0375 ue_id=0x00000001 clear security context vector index
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0320 ue_id=0x00000001 cleared auth vectors
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0443 ue_id=0x00000001 cleared MS network capability IE
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0417 ue_id=0x00000001 cleared UE network capability IE
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0452 ue_id=0x00000001 cleared current DRX parameter
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0477 ue_id=0x00000001 cleared pending DRX parameter
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0502 ue_id=0x00000001 cleared EPS bearer context status
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0672 EMM-CTX – Add in context 0x7fc64c000f50 UE id 0x00000001
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0288 ue_id=0x00000001 cleared last visited registered TAI
    TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:1876 Entering _emm_attach_update()
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0219 ue_id=0x00000001 set IMSI 999990000000002 (valid)
    TRACE NAS air-cn/src/nas/api/mme/mme_api.c:0230 Entering mme_api_notify_imsi()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0412 Entering mme_ue_context_update_coll_keys()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0415 Update ue context.old_enb_ue_s1ap_id_key 60129962285 ue context.old_mme_ue_s1ap_id 0x00000001 ue context.old_IMSI 0 ue context.old_GUTI 000.000|0000|00|00000000
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0418 Update ue context 0x7fc5d4001b70 updated_enb_ue_s1ap_id_key 60129962285 updated_mme_ue_s1ap_id 0x00000001 updated_IMSI 999990000000002 updated_GUTI 000.000|0000|00|00000000
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0534 Leaving mme_ue_context_update_coll_keys()
    TRACE NAS air-cn/src/nas/api/mme/mme_api.c:0242 Leaving mme_api_notify_imsi() (rc=0)
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0758 EMM-CTX – Add in context UE id 0x00000001 with IMSI 999990000000002
    TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:1945 Leaving _emm_attach_update() (rc=0)
    TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:1003 Entering _emm_attach_identify()
    INFO NAS-EM /openair-cn/src/nas/emm/Attach.c:1009 ue_id=0x00000001 EMM-PROC – Identify incoming UE using IMSI
    TRACE NAS -cn/src/nas/nas_itti_messaging.c:0307 Entering nas_itti_auth_info_req()
    TRACE NAS -cn/src/nas/nas_itti_messaging.c:0338 Leaving nas_itti_auth_info_req()
    TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:1139 Leaving _emm_attach_identify() (rc=0)
    TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:0574 Leaving emm_proc_attach_request() (rc=0)
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0316 Leaving emm_recv_attach_request() (rc=0)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0704 Leaving _emm_as_establish_req() (rc=0)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0190 Leaving nas_proc_establish_ind() (rc=0)
    DEBUG S6A enair-cn/src/s6a/s6a_auth_info.c:0377 s6a_generate_authentication_info_req plmn: 99F999
    DEBUG S6A enair-cn/src/s6a/s6a_auth_info.c:0378 s6a_generate_authentication_info_req visited_plmn: 99F999
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 SENT to ‘hss.OpenAir5G.Alliance’: ‘Authentication-Information-Request’16777251/318 f:RP– src:'(nil)’ len:288 {C:263/l:50,C:277/l:12,C:264/l:30,C:296/l:26,C:293/l:30,C:283/l:26,C:1/l:23,V:10415/C:1407/l:15,V:10415/C:1408/l:44}
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Sending 288b data on connection {—-} TCP,#38->127.0.0.1(3868)
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 ‘STATE_OPEN’ <– 'FDEVP_CNX_MSG_RECV' (0x7fc5cc0016d0,300) 'hss.OpenAir5G.Alliance'
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 RCV from 'hss.OpenAir5G.Alliance': (no model)16777251/318 f:-P– src:'hss.OpenAir5G.Alliance' len:300 {C:263/l:50,V:10415/C:1413/l:144,C:277/l:12,C:264/l:30,C:296/l:26,C:268/l:12}
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Peer timeout reset to 30 seconds (+/- 2)
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 'hss.OpenAir5G.Alliance' in state 'STATE_OPEN' waiting for next event.
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 DISPATCHING: (no model)16777251/318 f:-P– src:'hss.OpenAir5G.Alliance' len:300 {C:263/l:50,V:10415/C:1413/l:144,C:277/l:12,C:264/l:30,C:296/l:26,C:268/l:12,C:282/l:8}
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Iterating on rules of AVP: 'E-UTRAN-Vector'.
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Iterating on rules of AVP: 'Authentication-Info'.
    ALERT S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Iterating on rules of COMMAND: 'Authentication-Information-Answer'.
    DEBUG S6A enair-cn/src/s6a/s6a_auth_info.c:0217 Received S6A Authentication Information Answer (AIA)
    DEBUG S6A enair-cn/src/s6a/s6a_auth_info.c:0243 Received S6A Result code 2001:DIAMETER_SUCCESS
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0337 Entering nas_proc_authentication_info_answer()
    DEBUG NAS-EM ot/openair-cn/src/nas/nas_proc.c:0342 Handling imsi 999990000000002
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0556 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50 by imsi 999990000000002
    DEBUG NAS-EM ot/openair-cn/src/nas/nas_proc.c:0360 INFORMING NAS ABOUT AUTH RESP SUCCESS got 1 vector(s)
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0390 Entering nas_proc_auth_param_res()
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Message discarded ('Internal error: Answer received to locally issued request, but not handled by any handler.'):
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 'Authentication-Information-Answer'
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Version: 0x01
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Length: 300
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Flags: 0x40 (-P–)
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Command Code: 318
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 ApplicationId: 16777251
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 Hop-by-Hop Identifier: 0x60FAE6C4
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 End-to-End Identifier: 0x00000000
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 {internal data}: src:hss.OpenAir5G.Alliance(22) rwb:(nil) rt:1 cb:(nil),(nil)((nil)) qry:0x561980e8fe60 asso:0 sess:0x561980bb7160
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0451 Entering emm_cn_send()
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: 'Session-Id'(263) l=50 f=-M val="mme.OpenAir5G.Alliance;1580479756;1;apps6a"
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: 'Authentication-Info'(1413) vend='3GPP'(10415) l=144 f=VM val=(grouped)
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0452 EMMCN-SAP – Received primitive EMM_CN_AUTHENTICATION_PARAM_RES (401)
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: 'E-UTRAN-Vector'(1414) vend='3GPP'(10415) l=132 f=VM val=(grouped)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0096 Entering _emm_cn_authentication_res()
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: 'RAND'(1447) vend='3GPP'(10415) l=28 f=VM val=
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘XRES'(1448) vend=’3GPP'(10415) l=20 f=VM val=
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0113 EMM-PROC – Received Vector 0:
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘AUTN'(1449) vend=’3GPP'(10415) l=28 f=VM val=
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0114 EMM-PROC – Received RAND ..: 25,55,10,28,ef,41,92,2d,ac,bc,cf,29,e4,5b,b0,2f
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘KASME'(1450) vend=’3GPP'(10415) l=44 f=VM val=
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘Auth-Session-State'(277) l=12 f=-M val=’NO_STATE_MAINTAINED’ (1 (0x1))
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0115 EMM-PROC – Received AUTN ..: e9,f5,0a,70,52,c6,80,00,c6,b1,4e,20,a3,bb,49,76
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘Origin-Host'(264) l=30 f=-M val=”hss.OpenAir5G.Alliance”
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘Origin-Realm'(296) l=26 f=-M val=”OpenAir5G.Alliance”
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0117 EMM-PROC – Received KASME .: cc,7d,83,d7,77,c9,80,55,8f,17,f8,2f,fe,69,df,ce 00,a0,b5,1e,fd,a0,80,4b,9d,d8,bb,b7,76,36,37,ee
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘Result-Code'(268) l=12 f=-M val=’DIAMETER_SUCCESS’ (2001 (0x7d1))
    NOTIC S6A ot/openair-cn/src/s6a/s6a_task.c:0080 AVP: ‘Route-Record'(282) l=8 f=-M val=”hss.OpenAir5G.Alliance”
    TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0381 ue_id=0x00000001 set security context vector index 0
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0176 Entering emm_proc_authentication()
    INFO NAS-EM -cn/src/nas/emm/Authentication.c:0177 ue_id=0x00000001 EMM-PROC – Initiate authentication KSI = 0, ctx = 0x7fc64c000f50
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0163 Entering emm_proc_common_initialize()
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0188 Leaving emm_proc_common_initialize() (rc=0)
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0559 Entering _authentication_request()
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0352 Entering emm_as_set_security_data()
    DEBUG NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0398 NO Valid Security Context Available
    TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0405 Leaving emm_as_set_security_data()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0175 Entering emm_as_send()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0181 EMMAS-SAP – Received primitive EMMAS_SECURITY_REQ (201)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0923 Entering _emm_as_send()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1267 Entering _emm_as_security_req()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1270 EMMAS-SAP – Send AS security request
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0734 Entering _emm_as_set_header()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0786 Leaving _emm_as_set_header() (rc=140489842804000)
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0905 Entering emm_send_authentication_request()
    INFO NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0908 EMMAS-SAP – Send Authentication Request message
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0935 Leaving emm_send_authentication_request() (rc=36)
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0815 Entering _emm_as_encode()
    TRACE NAS rc/nas/api/network/nas_message.c:0540 Entering nas_message_encode()
    TRACE NAS rc/nas/api/network/nas_message.c:0852 Entering _nas_message_header_encode()
    TRACE NAS rc/nas/api/network/nas_message.c:0885 Leaving _nas_message_header_encode() (rc=1)
    TRACE NAS rc/nas/api/network/nas_message.c:0913 Entering _nas_message_plain_encode()
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0271 Entering emm_msg_encode()
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0420 Leaving emm_msg_encode() (rc=36)
    TRACE NAS rc/nas/api/network/nas_message.c:0933 Leaving _nas_message_plain_encode() (rc=36)
    TRACE NAS rc/nas/api/network/nas_message.c:0623 Leaving nas_message_encode() (rc=36)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0851 Leaving _emm_as_encode() (rc=36)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1353 Leaving _emm_as_security_req() (rc=263)
    DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0968 EMMAS-SAP – Sending msg with id 0x107, primitive EMMAS_SECURITY_REQ (201) to S1AP layer for transmission
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0973 Leaving _emm_as_send() (rc=0)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    TRACE MME-AP /src/mme_app/mme_app_transport.c:0057 Entering mme_app_handle_nas_dl_req()
    INFO NAS-EM -cn/src/nas/emm/Authentication.c:0605 EMM-PROC – Timer T3460 (0) expires in 6 seconds
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0609 Leaving _authentication_request() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    DEBUG MME-AP /src/mme_app/mme_app_transport.c:0087 MME_APP:DOWNLINK NAS TRANSPORT. Establishing S1 sig connection. mme_ue_s1ap_id = 1,enb_ue_s1ap_id = 420141
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0106 Entering emm_reg_send()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0734 Entering mme_ue_context_update_ue_sig_connection_state()
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0344 Entering s1ap_generate_downlink_nas_transport()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0256 Entering emm_fsm_process()
    DEBUG MME-AP cn/src/mme_app/mme_app_context.c:0768 MME_APP: UE Connection State changed to CONNECTED.enb_ue_s1ap_id = 420141, mme_ue_s1ap_id = 1
    TRACE MME-AP /src/mme_app/mme_app_transport.c:0098 Leaving mme_app_handle_nas_dl_req() (rc=0)
    INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0263 EMM-FSM – Received event COMMON_PROC_REQ (1) in state DEREGISTERED
    TRACE NAS-EM rc/nas/emm/sap/EmmDeregistered.c:0094 Entering EmmDeregistered()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0176 Entering emm_fsm_set_status()
    INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0182 UE 0x00000001 EMM-FSM – Status changed: DEREGISTERED ===> COMMON-PROCEDURE-INITIATED
    NOTIC S1AP c/s1ap/s1ap_mme_nas_procedures.c:0399 Send S1AP DOWNLINK_NAS_TRANSPORT message ue_id = 0x00000001 MME_UE_S1AP_ID = 0x00000001 eNB_UE_S1AP_ID = 0x06692D
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1014 Entering mme_ue_context_update_ue_emm_state()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1033 Leaving mme_ue_context_update_ue_emm_state()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0194 Leaving emm_fsm_set_status() (rc=0)
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0409 Leaving s1ap_generate_downlink_nas_transport() (rc=0)
    TRACE NAS-EM rc/nas/emm/sap/EmmDeregistered.c:0155 Leaving EmmDeregistered() (rc=0)
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0277 [39][10] Sending buffer 0x7fc63c004710 of 62 bytes on stream 1 with ppid 18
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0271 Leaving emm_fsm_process() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0119 Leaving emm_reg_send() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0241 Leaving emm_proc_authentication() (rc=0)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0160 Leaving _emm_cn_authentication_res() (rc=0)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_cn.c:0494 Leaving emm_cn_send() (rc=0)
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0288 Successfully sent 62 bytes on stream 1
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0402 Leaving nas_proc_auth_param_res() (rc=0)
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0376 Leaving nas_proc_authentication_info_answer() (rc=0)
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0476 [10][39] Msg of length 51 received from port 57283, on stream 1, PPID 18
    TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0050 Entering s1ap_mme_decode_initiating()
    DEBUG S1AP /CMakeFiles/r10.5/s1ap_decoder.c:6339 Decoding message S1ap_UplinkNASTransportIEs (/root/openair-cn/build/mme/build/CMakeFiles/r10.5/s1ap_decoder.c:6339)
    TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0144 Leaving s1ap_mme_decode_initiating() (rc=0)
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0209 Entering s1ap_mme_handle_uplink_nas_transport()
    INFO S1AP c/s1ap/s1ap_mme_nas_procedures.c:0224 Received S1AP UPLINK_NAS_TRANSPORT message MME_UE_S1AP_ID 0x00000001
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0414 Found ue_ref 0x7fc63c0048a0 mme_ue_s1ap_id 0x00000001
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0428 Found ue_ref 0x7fc63c0048a0 mme_ue_s1ap_id 0x00000001
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0469 Return ue_ref 0x7fc63c0048a0
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0276 Leaving s1ap_mme_handle_uplink_nas_transport() (rc=0)
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0300 Entering nas_proc_ul_transfer_ind()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0175 Entering emm_as_send()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0181 EMMAS-SAP – Received primitive EMMAS_DATA_IND (211)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0456 Entering _emm_as_data_ind()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0460 EMMAS-SAP – Received AS data transfer indication (ue_id=0x00000001, delivered=true, length=3)
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    TRACE NAS rc/nas/api/network/nas_message.c:0272 Entering nas_message_decrypt()
    TRACE NAS rc/nas/api/network/nas_message.c:0663 Entering _nas_message_header_decode()
    TRACE NAS rc/nas/api/network/nas_message.c:0717 Leaving _nas_message_header_decode() (rc=1)
    DEBUG NAS rc/nas/api/network/nas_message.c:0338 Plain NAS message found
    TRACE NAS rc/nas/api/network/nas_message.c:0345 Leaving nas_message_decrypt() (rc=3)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0283 Entering _emm_as_recv()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0294 EMMAS-SAP – Received EMM message (length=3) integrity protected 0 ciphered 0 mac matched 0 security context 0
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    TRACE NAS rc/nas/api/network/nas_message.c:0374 Entering nas_message_decode()
    DEBUG NAS rc/nas/api/network/nas_message.c:0386 0 (94667501841500 bytes) 07 5c 14
    TRACE NAS rc/nas/api/network/nas_message.c:0663 Entering _nas_message_header_decode()
    TRACE NAS rc/nas/api/network/nas_message.c:0717 Leaving _nas_message_header_decode() (rc=1)
    DEBUG NAS rc/nas/api/network/nas_message.c:0392 _nas_message_header_decode returned size 1
    TRACE NAS rc/nas/api/network/nas_message.c:0745 Entering _nas_message_plain_decode()
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0093 Entering emm_msg_decode()
    INFO NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0112 EMM-MSG – Message Type 0x5c
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0245 Leaving emm_msg_decode() (rc=3)
    TRACE NAS rc/nas/api/network/nas_message.c:0765 Leaving _nas_message_plain_decode() (rc=3)
    TRACE NAS rc/nas/api/network/nas_message.c:0514 Leaving nas_message_decode() (rc=3)
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0783 Entering emm_recv_authentication_failure()
    INFO NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0786 EMMAS-SAP – Received Authentication Failure message
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0432 Entering emm_proc_common_get_args()
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0435 Leaving emm_proc_common_get_args() (rc=140489655335136)
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0254 Entering emm_proc_authentication_failure()
    INFO NAS-EM -cn/src/nas/emm/Authentication.c:0255 EMM-PROC – Authentication failure (ue_id=0x00000001, cause=20)
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    INFO NAS-EM -cn/src/nas/emm/Authentication.c:0272 EMM-PROC – Stop timer T3460 (-1) UE 0x00000001
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0628 Entering _authentication_reject()
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0352 Entering emm_as_set_security_data()
    DEBUG NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0398 NO Valid Security Context Available
    TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0405 Leaving emm_as_set_security_data()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0175 Entering emm_as_send()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0181 EMMAS-SAP – Received primitive EMMAS_SECURITY_REJ (204)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0923 Entering _emm_as_send()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1378 Entering _emm_as_security_rej()
    INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1381 EMMAS-SAP – Send AS security reject
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0734 Entering _emm_as_set_header()
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0786 Leaving _emm_as_set_header() (rc=140489842803440)
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0960 Entering emm_send_authentication_reject()
    INFO NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0963 EMMAS-SAP – Send Authentication Reject message
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0968 Leaving emm_send_authentication_reject() (rc=2)
    INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7fc64c000f50
    DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1433 No security context, not set nas_msg.header.sequence_number -> 0
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0815 Entering _emm_as_encode()
    TRACE NAS rc/nas/api/network/nas_message.c:0540 Entering nas_message_encode()
    TRACE NAS rc/nas/api/network/nas_message.c:0852 Entering _nas_message_header_encode()
    TRACE NAS rc/nas/api/network/nas_message.c:0885 Leaving _nas_message_header_encode() (rc=1)
    TRACE NAS rc/nas/api/network/nas_message.c:0913 Entering _nas_message_plain_encode()
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0271 Entering emm_msg_encode()
    TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0420 Leaving emm_msg_encode() (rc=2)
    TRACE NAS rc/nas/api/network/nas_message.c:0933 Leaving _nas_message_plain_encode() (rc=2)
    TRACE NAS rc/nas/api/network/nas_message.c:0623 Leaving nas_message_encode() (rc=2)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0851 Leaving _emm_as_encode() (rc=2)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1450 Leaving _emm_as_security_rej() (rc=263)
    DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0968 EMMAS-SAP – Sending msg with id 0x107, primitive EMMAS_SECURITY_REJ (204) to S1AP layer for transmission
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0973 Leaving _emm_as_send() (rc=0)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    TRACE MME-AP /src/mme_app/mme_app_transport.c:0057 Entering mme_app_handle_nas_dl_req()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0106 Entering emm_reg_send()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0256 Entering emm_fsm_process()
    INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0263 EMM-FSM – Received event COMMON_PROC_REJ (3) in state COMMON-PROCEDURE-INITIATED
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0344 Entering s1ap_generate_downlink_nas_transport()
    TRACE NAS-EM ap/EmmCommonProcedureInitiated.c:0090 Entering EmmCommonProcedureInitiated()
    TRACE MME-AP mme_app/mme_app_itti_messaging.h:0042 Leaving mme_app_itti_ue_context_release()
    TRACE MME-AP /src/mme_app/mme_app_transport.c:0098 Leaving mme_app_handle_nas_dl_req() (rc=0)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0176 Entering emm_fsm_set_status()
    INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0182 UE 0x00000001 EMM-FSM – Status changed: COMMON-PROCEDURE-INITIATED ===> DEREGISTERED
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1014 Entering mme_ue_context_update_ue_emm_state()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1033 Leaving mme_ue_context_update_ue_emm_state()
    NOTIC S1AP c/s1ap/s1ap_mme_nas_procedures.c:0399 Send S1AP DOWNLINK_NAS_TRANSPORT message ue_id = 0x00000001 MME_UE_S1AP_ID = 0x00000001 eNB_UE_S1AP_ID = 0x06692D
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0194 Leaving emm_fsm_set_status() (rc=0)
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0254 Entering emm_proc_common_reject()
    TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0409 Leaving s1ap_generate_downlink_nas_transport() (rc=0)
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0479 Leaving emm_common_cleanup()
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0265 Leaving emm_proc_common_reject() (rc=-1)
    TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0811 Entering s1ap_handle_ue_context_release_command()
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0277 [39][10] Sending buffer 0x7fc63c001e50 of 28 bytes on stream 1 with ppid 18
    TRACE NAS-EM ap/EmmCommonProcedureInitiated.c:0196 Leaving EmmCommonProcedureInitiated() (rc=-1)
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0414 Found ue_ref 0x7fc63c0048a0 mme_ue_s1ap_id 0x00000001
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0428 Found ue_ref 0x7fc63c0048a0 mme_ue_s1ap_id 0x00000001
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0271 Leaving emm_fsm_process() (rc=-1)
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0469 Return ue_ref 0x7fc63c0048a0
    TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0743 Entering s1ap_mme_generate_ue_context_release_command()
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0119 Leaving emm_reg_send() (rc=-1)
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=-1)
    TRACE NAS-ES air-cn/src/nas/esm/sap/esm_sap.c:0158 Entering esm_sap_send()
    INFO NAS-ES air-cn/src/nas/esm/sap/esm_sap.c:0168 ESM-SAP – Received primitive ESM_EPS_BEARER_CONTEXT_DEACTIVATE_REQ (10)
    TRACE NAS-ES m/EpsBearerContextDeactivation.c:0139 Entering esm_proc_eps_bearer_context_deactivate()
    INFO NAS-ES m/EpsBearerContextDeactivation.c:0144 ESM-PROC – EPS bearer context deactivation: No Valid context
    TRACE NAS-ES m/EpsBearerContextDeactivation.c:0145 Leaving esm_proc_eps_bearer_context_deactivate() (rc=0)
    TRACE NAS-ES air-cn/src/nas/esm/sap/esm_sap.c:0273 Leaving esm_sap_send() (rc=0)
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0603 EMM-CTX – Remove in context 0x7fc64c000f50 UE id 0x00000001
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0622 EMM-CTX – Remove in ctx_coll_imsi context 0x7fc64c000f50 UE id 0x4C000F50 imsi 999990000000002
    DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0194 ue_id=0x00000001 cleared IMSI
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0288 Successfully sent 28 bytes on stream 1
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0664 Leaving _authentication_reject() (rc=-1)
    TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0507 Leaving emm_proc_common_clear_args()
    TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0364 Leaving emm_proc_authentication_failure() (rc=-1)
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0277 [39][10] Sending buffer 0x7fc63c001dd0 of 22 bytes on stream 1 with ppid 18
    TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0814 Leaving emm_recv_authentication_failure() (rc=-1)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0434 Leaving _emm_as_recv() (rc=-1)
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0541 Leaving _emm_as_data_ind() (rc=-1)
    ERROR NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0240 EMMAS-SAP – Failed to process primitive EMMAS_DATA_IND (211)
    DEBUG S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0796 Started S1AP UE context release timer for UE id 1
    TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=-1)
    TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0798 Leaving s1ap_mme_generate_ue_context_release_command() (rc=0)
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0288 Successfully sent 22 bytes on stream 1
    TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=-1)
    TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0831 Leaving s1ap_handle_ue_context_release_command() (rc=0)
    TRACE NAS-EM ot/openair-cn/src/nas/nas_proc.c:0326 Leaving nas_proc_ul_transfer_ind() (rc=-1)
    DEBUG SCTP rc/sctp/sctp_primitives_server.c:0476 [10][39] Msg of length 21 received from port 57283, on stream 1, PPID 18
    DEBUG S1AP /CMakeFiles/r10.5/s1ap_decoder.c:3702 Decoding message S1ap_UEContextReleaseCompleteIEs (/root/openair-cn/build/mme/build/CMakeFiles/r10.5/s1ap_decoder.c:3702)
    TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0845 Entering s1ap_mme_handle_ue_context_release_complete()
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0414 Found ue_ref 0x7fc63c0048a0 mme_ue_s1ap_id 0x00000001
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0428 Found ue_ref 0x7fc63c0048a0 mme_ue_s1ap_id 0x00000001
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0469 Return ue_ref 0x7fc63c0048a0
    TRACE S1AP t/openair-cn/src/s1ap/s1ap_mme.c:0595 Removing UE enb_ue_s1ap_id: 0x06692D mme_ue_s1ap_id:0x00000001 in eNB id : 3584
    DEBUG S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0876 Removed UE 0x00000001
    TRACE S1AP -cn/src/s1ap/s1ap_mme_handlers.c:0877 Leaving s1ap_mme_handle_ue_context_release_complete() (rc=0)
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0972 Entering mme_app_handle_s1ap_ue_context_release_complete()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0662 Entering mme_notify_ue_context_released()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0667 Leaving mme_notify_ue_context_released()
    DEBUG MME-AP cn/src/mme_app/mme_app_context.c:0988 Deleting UE context associated in MME for mme_ue_s1ap_id 0x00000001
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0677 Entering mme_remove_ue_context()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:0721 Leaving mme_remove_ue_context()
    TRACE MME-AP cn/src/mme_app/mme_app_context.c:1003 Leaving mme_app_handle_s1ap_ue_context_release_complete()
    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0033 ======================================= STATISTICS ============================================

    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0034 | Current Status| Added since last display| Removed since last display |
    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0036 Connected eNBs | 1 | 0 | 0 |
    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0038 Attached UEs | 0 | 0 | 0 |
    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0040 Connected UEs | 0 | 1 | 1 |
    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0042 Default Bearers| 0 | 0 | 0 |
    DEBUG MME-AP src/mme_app/mme_app_statistics.c:0044 S1-U Bearers | 0 | 0 | 0 |

    1. Hi,
      Debugging each case like this is too much time consuming.
      This is why we provide a tested package: tutorial + SIM + HSS database + sim reader
      Regards,
      Laurent

      1. Thanks,

        I was just hoping you can tell me what to set besides MCC MNC value in the config. Especially the tutorial doesn’t elaborate on OPc an Ki values a lot. How must/do I set those?

        regards,
        Michael

        1. Hi,
          for a given IMSI: you need to set the same Ki and OPc in the SIM and in the HSS.
          OPc may be computed automatically from the OP by the HSS, but it is over complexity for our usage.
          So, the simplest is to: disable OP (set it blank in hss.conf for OAI, in the HSS data file for srsLTE), set same triplet: IMSI,Ki and OPc in both HSS and SIM card.
          How you set it depends on the SIM card provider.

          The last key that need to be managed is the SQN (sequence number): the HSS and the SIM will update it internally after each successful authentication.

          Regards,
          Laurent

  57. hi
    Im trying to build limesdr in ubuntu 18.04. Ive successfully run the following

    ~git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
    ~cd openairinterface5g
    ~git checkout develop
    ~source oaienv # configure the shell
    ~./cmake_targets/build_oai -I # install SW packages from internet

    but when i run the following
    ~ ./cmake_targets/build_oai -c -w LMSSDR –eNB –UE # compile eNB
    Im getting the this error..
    oai_lmssdrdevif compilation failed
    build have failed

    1. Hi,
      There is a bug in recent OAI develop branch.
      See the answers provided in other comments.
      I pushed a branch called: fix-limeSDR-compile
      You can take it now, it will be merged soon in develop branch
      Laurent
      Laurent

      1. Hi Laurent,
        Was the “fix-limeSDR-compile” pushed to the Eurecom gitlab?
        I am not able to pull it.

        Many thanks for your help!
        Wael

        1. Hi Wael,
          It is even merged in develop branch now.
          We did some more tests: the ports are defined in the Lime .ini file you use, as the OAI calls to the API is very minimal (it sets the frequency, the gain, the sampling rate).
          Laurent

  58. Hi Laurent,
    Thank you for the excellent guide. I’m getting the following error when running eNB (signal 11).
    got sync (ru_thread)
    [LIBCONFIG] MMEs.[0]: 1/1 parameters successfully set, (1 to default value)
    Error: signal 11:
    [TMR] Created Posix thread TASK_MME_APP
    [MCE_APP] Creating MCE_APP eNB Task
    [TMR] Created Posix thread TASK_MCE_APP
    [LIBCONFIG] MCEs.[0]: 1/1 parameters successfully set, (1 to default value)
    [LIBCONFIG] MCEs.[0]: 1/1 parameters successfully set, (1 to default value)
    [ENB_APP] TYPE TO TERMINATE
    ./lte-softmodem(signal_handler+0xb8)[0x5627377e98e8]
    /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f1ce97adf20]
    /home/oai/openairinterface5g/cmake_targets/ran_build/build/liboai_device.so(+0x15695)[0x7f1ce05d8695]
    ./lte-softmodem(+0x5355ea)[0x5627377d65ea]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f1ceb6116db]
    /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f1ce989088f]

    1. Hi,
      Signal 11 is SEGV, so the process try to access a wrong memory address.
      run it in gdb
      when it crashes, make “where” command to know the call stack.
      There might also be useful information in the log before the line “Error: signal 11”
      Laurent
      Laurent

  59. Hey Laurent,
    I’m at the point where UE is connected but i can’t reach the internet.
    My eNB Terminal:

    Connecting to device: LimeSDR Mini, media=USB 3.0, module=FT601, addr=24607:1027, serial=1D40E9C2CDA121
    Reference clock 40.00 MHz
    Set sample rate 7.680000 MHz
    Set TX frequency 2140.000000 MHz
    RX LPF configured
    Filter calibrated. Filter order-4th, filter bandwidth set to 5 MHz.Real pole 1st order filter set to 2.5 MHz. Preemphasis filter not active
    TX LPF configured
    Rx calibration finished
    Tx calibration finished
    SR: 7.680 MHz
    SR: 7.680 MHz
    [PHY] RU 0 rf device ready
    [MAC] SCHED_MODE = 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 24, min_I0 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 15, min_I0 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 15, min_I0 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 15, min_I0 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 15, min_I0 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 15, min_I0 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 15, min_I0 0
    [PHY] [eNB 0/0][RAPROC] Frame 844, subframe 1 Initiating RA procedure with preamble 42, energy 12.5 dB, delay 216
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [RRC] [FRAME 00845][eNB][MOD 00][RNTI 8244] Decoding UL CCCH 5b.8c.85.c3.c9.86 (0x564eebe324a7)
    [RRC] [FRAME 00845][eNB][MOD 00][RNTI 8244] Accept new connection from UE random UE identity (0x983c5cc8b8000000) MME code 0 TMSI 0 cause 3
    [MAC] Added physicalConfigDedicated 0x7f048c03ebf0 for 0.0
    [RRC] [FRAME 00845][eNB][MOD 00][RNTI 8244]CALLING RLC CONFIG SRB1 (rbid 1)
    add new uid is 0 8244

    [PDCP] [FRAME 00845][eNB][MOD 00][RNTI 8244][SRB 01] Action ADD LCID 1 (SRB id 1) configured with SN size 5 bits and RLC AM
    [RLC] [FRAME 00845][eNB][MOD 00][RNTI 8244] [SRB 1] rrc_rlc_add_rlc SRB
    [RLC] [FRAME 00845][eNB][MOD 00][RNTI 8244][SRB AM 01][CONFIGURE] max_retx_threshold 4 poll_pdu 4 poll_byte 65535 t_poll_retransmit 80 t_reordering 35 t_status_prohibit 0
    [MAC] generate_Msg4 ra->Msg4_frame SFN/SF: 845.6, frameP SFN/SF: 845.6 FOR eNB_Mod: 0
    [MAC] [eNB 0][RAPROC] CC_id 0 Frame 845, subframeP 6: Generating Msg4 with RRC Piggyback (RNTI 8244)
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI 8244] [RAPROC] Logical Channel UL-DCCH, processing LTE_RRCConnectionSetupComplete from UE (SRB1 Active)
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI 8244] UE State = RRC_CONNECTED
    [S1AP] [eNB 0] Chose MME ‘(null)’ (assoc_id 35) through selected PLMN Identity index 0 MCC 101 MNC 1
    [S1AP] Found usable eNB_ue_s1ap_id: 0x06692d 420141(10)
    [SCTP] Successfully sent 158 bytes on stream 1 for assoc_id 35
    [SCTP] Found data for descriptor 67
    [SCTP] Received notification for sd 67, type 32777
    [SCTP] Found data for descriptor 67
    [SCTP] [35][67] Msg of length 62 received from port 36412, on stream 1, PPID 18
    [RRC] [eNB 0] Received S1AP_DOWNLINK_NAS: ue_initial_id 1, eNB_ue_s1ap_id 420141
    [RRC] sent RRC_DCCH_DATA_REQ to TASK_PDCP_ENB
    [RLC] [FRAME 00000][eNB][MOD 00][RNTI 8244][SRB AM 01] RLC_AM_DATA_REQ size 44 Bytes, NB SDU 1 current_sdu_index=0 next_sdu_index=1 conf 0 mui 0 vtA 0 vtS 0
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [MAC] [eNB 0][PUSCH 2] CC_id 0 869.0 ULSCH in error in round 0, ul_cqi 182, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 869.8 ULSCH in error in round 1, ul_cqi 182, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 870.6 ULSCH in error in round 2, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 871.4 ULSCH in error in round 3, ul_cqi 182, UE_id 0, RNTI 8244
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [SCTP] Successfully sent 59 bytes on stream 1 for assoc_id 35
    [SCTP] Found data for descriptor 67
    [SCTP] Received notification for sd 67, type 32777
    [SCTP] Found data for descriptor 67
    [SCTP] [35][67] Msg of length 42 received from port 36412, on stream 1, PPID 18
    [RRC] [eNB 0] Received S1AP_DOWNLINK_NAS: ue_initial_id 1, eNB_ue_s1ap_id 420141
    [RRC] sent RRC_DCCH_DATA_REQ to TASK_PDCP_ENB
    [RLC] [FRAME 00000][eNB][MOD 00][RNTI 8244][SRB AM 01] RLC_AM_DATA_REQ size 24 Bytes, NB SDU 2 current_sdu_index=1 next_sdu_index=2 conf 0 mui 1 vtA 2 vtS 2
    [MAC] [eNB 0][PUSCH 0] CC_id 0 877.6 ULSCH in error in round 0, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 877.8 ULSCH in error in round 0, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 878.4 ULSCH in error in round 1, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 878.6 ULSCH in error in round 1, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 879.2 ULSCH in error in round 2, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 879.4 ULSCH in error in round 2, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 880.0 ULSCH in error in round 3, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 880.2 ULSCH in error in round 3, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 2] CC_id 0 881.0 ULSCH in error in round 0, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 5] CC_id 0 884.5 ULSCH in error in round 0, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 884.8 ULSCH in error in round 0, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 5] CC_id 0 885.3 ULSCH in error in round 1, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 885.6 ULSCH in error in round 1, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 5] CC_id 0 886.1 ULSCH in error in round 2, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 886.4 ULSCH in error in round 2, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 5] CC_id 0 886.9 ULSCH in error in round 3, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 0] CC_id 0 887.2 ULSCH in error in round 3, ul_cqi 176, UE_id 0, RNTI 8244
    [MAC] [eNB 0][PUSCH 6] CC_id 0 887.8 ULSCH in error in round 0, ul_cqi 176, UE_id 0, RNTI 8244

    1. Hi,
      We made some trials: we even don’t succeed to reach this state.
      Could you share the .ini file and the .conf file you use.
      Also some details like the LimeSDR driver version.
      Laurent

      1. Hi Laurent,
        Were you able to get the ini and conf files?
        After the update my COTS UE is not able to search for the PLMN of my network anymore.

        Wael

  60. Hi,

    I am currently setting up this UICC as part of a project involving another SDR LTE software called srsLTE. However it seems this soft requires a card reader compatible with PCSC protocol, which doesn’t look to be the case for your card reader using serial com. Do you know if there’s any support of PCSC with your card reader being developed, or would you rather recommend to use it with OpenAir ?

    Many thanks for your feedback!

    1. Hi,
      You can use our cards with any pcsc reader.
      We already have some srsLTE customers.
      The single limitation is that if you want to use our SW tool to program the USIM, you need a serial interface reader (or you can contribute to the open source tool to support pcsc protocol)

      If it doesn’t work for you, please explain your needs
      Regards,
      Laurent

      1. Hi Laurent,

        Thanks for your feedback.
        We succeeded to read the data from the SIM card using the uicc software. However when we try to check the pcsc connection using pcsc_scan and the card reader furnished plugged with the SIM card, it doesn’t detect anything. Would it come from the card reader itself ?

        1. Hello,
          Our readers are raw readers, not PCSC (this protocol comes from M$)
          Nevertheless, pcscd can make the pcsc protocol with a raw reader
          So,

          A) connect our reader and insert a sim in it

          B) launch in one window:
          sudo pcscd –foreground –debug

          C) in another window
          launch pcsc_scan
          it should display the sim as: GREEN CARD, Grcard (Hong Kong ) Co.,Limited, LTE Usim Card (Telecommunication)

          We won’t debug this further because we remade from scratch a simple C++ code to replace this complex stack of pcsc tools
          Regards,
          Laurent

  61. Hey Laurent,
    I use 2 different Lime SDR the normal v1.4s and the Mini v1.2.
    With “LimeUtil –info”
    Version information:
    Library version: v19.04.1-g2cca1d96
    Build timestamp: 2019-12-16
    Interface version: v2019.1.0
    Binary interface: 19.04-1

    MY eNB config ( I made Band 1 by myself so there are maybe some mistakes):

    Active_eNBs = ( “eNB-Eurecom-LTEBox”);
    # Asn1_verbosity, choice in: none, info, annoying
    Asn1_verbosity = “none”;

    eNBs =
    (
    {
    ////////// Identification parameters:
    eNB_ID = 0xe00;

    cell_type = “CELL_MACRO_ENB”;

    eNB_name = “eNB-Eurecom-LTEBox”;

    // Tracking area code, 0x0000 and 0xfffe are reserved values
    tracking_area_code = 1;

    plmn_list = ( { mcc = 101; mnc = 01; mnc_length = 2; } );

    tr_s_preference = “local_mac”

    ////////// Physical parameters:

    component_carriers = (
    {
    node_function = “3GPP_eNODEB”;
    node_timing = “synch_to_ext_device”;
    node_synch_ref = 0;
    frame_type = “FDD”;
    tdd_config = 3;
    tdd_config_s = 0;
    prefix_type = “NORMAL”;
    eutra_band = 1;
    downlink_frequency = 2140000000L;
    uplink_frequency_offset = -190000000;
    Nid_cell = 0;
    N_RB_DL = 25;
    Nid_cell_mbsfn = 0;
    nb_antenna_ports = 1;
    nb_antennas_tx = 1;
    nb_antennas_rx = 1;
    tx_gain = 90;
    rx_gain = 125;
    pbch_repetition = “FALSE”;
    prach_root = 0;
    prach_config_index = 0;
    prach_high_speed = “DISABLE”;
    prach_zero_correlation = 1;
    prach_freq_offset = 2;
    pucch_delta_shift = 1;
    pucch_nRB_CQI = 0;
    pucch_nCS_AN = 0;
    pucch_n1_AN = 0;
    pdsch_referenceSignalPower = -27;
    pdsch_p_b = 0;
    pusch_n_SB = 1;
    pusch_enable64QAM = “DISABLE”;
    pusch_hoppingMode = “interSubFrame”;
    pusch_hoppingOffset = 0;
    pusch_groupHoppingEnabled = “ENABLE”;
    pusch_groupAssignment = 0;
    pusch_sequenceHoppingEnabled = “DISABLE”;
    pusch_nDMRS1 = 1;
    phich_duration = “NORMAL”;
    phich_resource = “ONESIXTH”;
    srs_enable = “DISABLE”;
    /* srs_BandwidthConfig =0;
    srs_SubframeConfig =;
    srs_ackNackST =;
    srs_MaxUpPts =;*/

    pusch_p0_Nominal = -96;
    pusch_alpha = “AL1”;
    pucch_p0_Nominal = -104;
    msg3_delta_Preamble = 6;
    pucch_deltaF_Format1 = “deltaF2”;
    pucch_deltaF_Format1b = “deltaF3”;
    pucch_deltaF_Format2 = “deltaF0”;
    pucch_deltaF_Format2a = “deltaF0”;
    pucch_deltaF_Format2b = “deltaF0”;

    rach_numberOfRA_Preambles = 64;
    rach_preamblesGroupAConfig = “DISABLE”;
    /*
    rach_sizeOfRA_PreamblesGroupA = ;
    rach_messageSizeGroupA = ;
    rach_messagePowerOffsetGroupB = ;
    */
    rach_powerRampingStep = 4;
    rach_preambleInitialReceivedTargetPower = -108;
    rach_preambleTransMax = 10;
    rach_raResponseWindowSize = 10;
    rach_macContentionResolutionTimer = 48;
    rach_maxHARQ_Msg3Tx = 4;

    pcch_default_PagingCycle = 128;
    pcch_nB = “oneT”;
    bcch_modificationPeriodCoeff = 2;
    ue_TimersAndConstants_t300 = 1000;
    ue_TimersAndConstants_t301 = 1000;
    ue_TimersAndConstants_t310 = 1000;
    ue_TimersAndConstants_t311 = 10000;
    ue_TimersAndConstants_n310 = 20;
    ue_TimersAndConstants_n311 = 1;
    ue_TransmissionMode = 1;

    //Parameters for SIB18
    rxPool_sc_CP_Len = “normal”;
    rxPool_sc_Period = “sf40”;
    rxPool_data_CP_Len = “normal”;
    rxPool_ResourceConfig_prb_Num = 20;
    rxPool_ResourceConfig_prb_Start = 5;
    rxPool_ResourceConfig_prb_End = 44;
    rxPool_ResourceConfig_offsetIndicator_present = “prSmall”;
    rxPool_ResourceConfig_offsetIndicator_choice = 0;
    rxPool_ResourceConfig_subframeBitmap_present = “prBs40”;
    rxPool_ResourceConfig_subframeBitmap_choice_bs_buf = “00000000000000000000”;
    rxPool_ResourceConfig_subframeBitmap_choice_bs_size = 5;
    rxPool_ResourceConfig_subframeBitmap_choice_bs_bits_unused = 0;
    /* rxPool_dataHoppingConfig_hoppingParameter = 0;
    rxPool_dataHoppingConfig_numSubbands = “ns1”;
    rxPool_dataHoppingConfig_rbOffset = 0;
    rxPool_commTxResourceUC-ReqAllowed = “TRUE”;
    */
    // Parameters for SIB19
    discRxPool_cp_Len = “normal”
    discRxPool_discPeriod = “rf32”
    discRxPool_numRetx = 1;
    discRxPool_numRepetition = 2;
    discRxPool_ResourceConfig_prb_Num = 5;
    discRxPool_ResourceConfig_prb_Start = 3;
    discRxPool_ResourceConfig_prb_End = 21;
    discRxPool_ResourceConfig_offsetIndicator_present = “prSmall”;
    discRxPool_ResourceConfig_offsetIndicator_choice = 0;
    discRxPool_ResourceConfig_subframeBitmap_present = “prBs40”;
    discRxPool_ResourceConfig_subframeBitmap_choice_bs_buf = “f0ffffffff”;
    discRxPool_ResourceConfig_subframeBitmap_choice_bs_size = 5;
    discRxPool_ResourceConfig_subframeBitmap_choice_bs_bits_unused = 0;

    }
    );

    srb1_parameters :
    {
    # timer_poll_retransmit = (ms) [5, 10, 15, 20,… 250, 300, 350, … 500]
    timer_poll_retransmit = 80;

    # timer_reordering = (ms) [0,5, … 100, 110, 120, … ,200]
    timer_reordering = 35;

    # timer_reordering = (ms) [0,5, … 250, 300, 350, … ,500]
    timer_status_prohibit = 0;

    # poll_pdu = [4, 8, 16, 32 , 64, 128, 256, infinity(>10000)]
    poll_pdu = 4;

    # poll_byte = (kB) [25,50,75,100,125,250,375,500,750,1000,1250,1500,2000,3000,infinity(>10000)]
    poll_byte = 99999;

    # max_retx_threshold = [1, 2, 3, 4 , 6, 8, 16, 32]
    max_retx_threshold = 4;
    }

    # ——- SCTP definitions
    SCTP :
    {
    # Number of streams to use in input/output
    SCTP_INSTREAMS = 2;
    SCTP_OUTSTREAMS = 2;
    };

    ////////// MME parameters:
    mme_ip_address = ( { ipv4 = “127.0.0.20”;
    ipv6 = “192:168:30::17”;
    active = “yes”;
    preference = “ipv4”;
    }
    );

    NETWORK_INTERFACES :
    {
    ENB_INTERFACE_NAME_FOR_S1_MME = “lo”;
    ENB_IPV4_ADDRESS_FOR_S1_MME = “127.0.0.10/8”;
    ENB_INTERFACE_NAME_FOR_S1U = “lo”;
    ENB_IPV4_ADDRESS_FOR_S1U = “127.0.0.10/8”;
    ENB_PORT_FOR_S1U = 2152; # Spec 2152

    ENB_IPV4_ADDRESS_FOR_X2C = “127.0.0.1/24”;
    ENB_PORT_FOR_X2C = 36422; # Spec 36422
    };
    }
    );

    MACRLCs = (
    {
    num_cc = 1;
    tr_s_preference = “local_L1”;
    tr_n_preference = “local_RRC”;
    phy_test_mode = 0;
    puSch10xSnr = 200;
    puCch10xSnr = 200;
    }
    );

    L1s = (
    {
    num_cc = 1;
    tr_n_preference = “local_mac”;
    }
    );

    RUs = (
    {
    local_rf = “yes”
    nb_tx = 1
    nb_rx = 1
    att_tx = 85
    att_rx = 60;
    bands = [7];
    max_pdschReferenceSignalPower = -27;
    max_rxgain = 125;
    eNB_instances = [0];

    }
    );

    NETWORK_CONTROLLER :
    {
    FLEXRAN_ENABLED = “no”;
    FLEXRAN_INTERFACE_NAME = “lo”;
    FLEXRAN_IPV4_ADDRESS = “127.0.0.1”;
    FLEXRAN_PORT = 2210;
    FLEXRAN_CACHE = “/mnt/oai_agent_cache”;
    FLEXRAN_AWAIT_RECONF = “no”;
    };

    THREAD_STRUCT = (
    {
    #three config for level of parallelism “PARALLEL_SINGLE_THREAD”, “PARALLEL_RU_L1_SPLIT”, or “PARALLEL_RU_L1_TRX_SPLIT”
    parallel_config = “PARALLEL_SINGLE_THREAD”;
    #parallel_config = “PARALLEL_RU_L1_TRX_SPLIT”;
    #two option for worker “WORKER_DISABLE” or “WORKER_ENABLE”
    worker_config = “WORKER_ENABLE”;
    }
    );

    log_config :
    {
    global_log_level =”info”;
    global_log_verbosity =”medium”;
    hw_log_level =”info”;
    hw_log_verbosity =”medium”;
    phy_log_level =”info”;
    phy_log_verbosity =”medium”;
    mac_log_level =”info”;
    mac_log_verbosity =”high”;
    rlc_log_level =”info”;
    rlc_log_verbosity =”medium”;
    pdcp_log_level =”info”;
    pdcp_log_verbosity =”medium”;
    rrc_log_level =”info”;
    rrc_log_verbosity =”medium”;
    };
    Band_7
    Active_eNBs = ( “eNB-Eurecom-LTEBox”);
    # Asn1_verbosity, choice in: none, info, annoying
    Asn1_verbosity = “none”;

    eNBs =
    (
    {
    ////////// Identification parameters:
    eNB_ID = 0xe00;

    cell_type = “CELL_MACRO_ENB”;

    eNB_name = “eNB-Eurecom-LTEBox”;

    // Tracking area code, 0x0000 and 0xfffe are reserved values
    tracking_area_code = 1;

    plmn_list = ( { mcc = 101; mnc = 01; mnc_length = 2; } );

    tr_s_preference = “local_mac”

    ////////// Physical parameters:

    component_carriers = (
    {
    node_function = “3GPP_eNODEB”;
    node_timing = “synch_to_ext_device”;
    node_synch_ref = 0;
    frame_type = “FDD”;
    tdd_config = 3;
    tdd_config_s = 0;
    prefix_type = “NORMAL”;
    eutra_band = 7;
    downlink_frequency = 2655000000L;
    uplink_frequency_offset = -120000000;
    Nid_cell = 0;
    N_RB_DL = 25;
    Nid_cell_mbsfn = 0;
    nb_antenna_ports = 1;
    nb_antennas_tx = 1;
    nb_antennas_rx = 1;
    tx_gain = 90;
    rx_gain = 125;
    pbch_repetition = “FALSE”;
    prach_root = 0;
    prach_config_index = 0;
    prach_high_speed = “DISABLE”;
    prach_zero_correlation = 1;
    prach_freq_offset = 2;
    pucch_delta_shift = 1;
    pucch_nRB_CQI = 0;
    pucch_nCS_AN = 0;
    pucch_n1_AN = 0;
    pdsch_referenceSignalPower = -27;
    pdsch_p_b = 0;
    pusch_n_SB = 1;
    pusch_enable64QAM = “DISABLE”;
    pusch_hoppingMode = “interSubFrame”;
    pusch_hoppingOffset = 0;
    pusch_groupHoppingEnabled = “ENABLE”;
    pusch_groupAssignment = 0;
    pusch_sequenceHoppingEnabled = “DISABLE”;
    pusch_nDMRS1 = 1;
    phich_duration = “NORMAL”;
    phich_resource = “ONESIXTH”;
    srs_enable = “DISABLE”;
    /* srs_BandwidthConfig =0;
    srs_SubframeConfig =;
    srs_ackNackST =;
    srs_MaxUpPts =;*/

    pusch_p0_Nominal = -96;
    pusch_alpha = “AL1”;
    pucch_p0_Nominal = -104;
    msg3_delta_Preamble = 6;
    pucch_deltaF_Format1 = “deltaF2”;
    pucch_deltaF_Format1b = “deltaF3”;
    pucch_deltaF_Format2 = “deltaF0”;
    pucch_deltaF_Format2a = “deltaF0”;
    pucch_deltaF_Format2b = “deltaF0”;

    rach_numberOfRA_Preambles = 64;
    rach_preamblesGroupAConfig = “DISABLE”;
    /*
    rach_sizeOfRA_PreamblesGroupA = ;
    rach_messageSizeGroupA = ;
    rach_messagePowerOffsetGroupB = ;
    */
    rach_powerRampingStep = 4;
    rach_preambleInitialReceivedTargetPower = -108;
    rach_preambleTransMax = 10;
    rach_raResponseWindowSize = 10;
    rach_macContentionResolutionTimer = 48;
    rach_maxHARQ_Msg3Tx = 4;

    pcch_default_PagingCycle = 128;
    pcch_nB = “oneT”;
    bcch_modificationPeriodCoeff = 2;
    ue_TimersAndConstants_t300 = 1000;
    ue_TimersAndConstants_t301 = 1000;
    ue_TimersAndConstants_t310 = 1000;
    ue_TimersAndConstants_t311 = 10000;
    ue_TimersAndConstants_n310 = 20;
    ue_TimersAndConstants_n311 = 1;
    ue_TransmissionMode = 1;

    //Parameters for SIB18
    rxPool_sc_CP_Len = “normal”;
    rxPool_sc_Period = “sf40”;
    rxPool_data_CP_Len = “normal”;
    rxPool_ResourceConfig_prb_Num = 20;
    rxPool_ResourceConfig_prb_Start = 5;
    rxPool_ResourceConfig_prb_End = 44;
    rxPool_ResourceConfig_offsetIndicator_present = “prSmall”;
    rxPool_ResourceConfig_offsetIndicator_choice = 0;
    rxPool_ResourceConfig_subframeBitmap_present = “prBs40”;
    rxPool_ResourceConfig_subframeBitmap_choice_bs_buf = “00000000000000000000”;
    rxPool_ResourceConfig_subframeBitmap_choice_bs_size = 5;
    rxPool_ResourceConfig_subframeBitmap_choice_bs_bits_unused = 0;
    /* rxPool_dataHoppingConfig_hoppingParameter = 0;
    rxPool_dataHoppingConfig_numSubbands = “ns1”;
    rxPool_dataHoppingConfig_rbOffset = 0;
    rxPool_commTxResourceUC-ReqAllowed = “TRUE”;
    */
    // Parameters for SIB19
    discRxPool_cp_Len = “normal”
    discRxPool_discPeriod = “rf32”
    discRxPool_numRetx = 1;
    discRxPool_numRepetition = 2;
    discRxPool_ResourceConfig_prb_Num = 5;
    discRxPool_ResourceConfig_prb_Start = 3;
    discRxPool_ResourceConfig_prb_End = 21;
    discRxPool_ResourceConfig_offsetIndicator_present = “prSmall”;
    discRxPool_ResourceConfig_offsetIndicator_choice = 0;
    discRxPool_ResourceConfig_subframeBitmap_present = “prBs40”;
    discRxPool_ResourceConfig_subframeBitmap_choice_bs_buf = “f0ffffffff”;
    discRxPool_ResourceConfig_subframeBitmap_choice_bs_size = 5;
    discRxPool_ResourceConfig_subframeBitmap_choice_bs_bits_unused = 0;

    }
    );

    srb1_parameters :
    {
    # timer_poll_retransmit = (ms) [5, 10, 15, 20,… 250, 300, 350, … 500]
    timer_poll_retransmit = 80;

    # timer_reordering = (ms) [0,5, … 100, 110, 120, … ,200]
    timer_reordering = 35;

    # timer_reordering = (ms) [0,5, … 250, 300, 350, … ,500]
    timer_status_prohibit = 0;

    # poll_pdu = [4, 8, 16, 32 , 64, 128, 256, infinity(>10000)]
    poll_pdu = 4;

    # poll_byte = (kB) [25,50,75,100,125,250,375,500,750,1000,1250,1500,2000,3000,infinity(>10000)]
    poll_byte = 99999;

    # max_retx_threshold = [1, 2, 3, 4 , 6, 8, 16, 32]
    max_retx_threshold = 4;
    }

    # ——- SCTP definitions
    SCTP :
    {
    # Number of streams to use in input/output
    SCTP_INSTREAMS = 2;
    SCTP_OUTSTREAMS = 2;
    };

    ////////// MME parameters:
    mme_ip_address = ( { ipv4 = “127.0.0.20”;
    ipv6 = “192:168:30::17”;
    active = “yes”;
    preference = “ipv4”;
    }
    );

    NETWORK_INTERFACES :
    {
    ENB_INTERFACE_NAME_FOR_S1_MME = “lo”;
    ENB_IPV4_ADDRESS_FOR_S1_MME = “127.0.0.10/8”;
    ENB_INTERFACE_NAME_FOR_S1U = “lo”;
    ENB_IPV4_ADDRESS_FOR_S1U = “127.0.0.10/8”;
    ENB_PORT_FOR_S1U = 2152; # Spec 2152

    # ENB_IPV4_ADDRESS_FOR_X2C = “127.0.0.1/24”;
    # ENB_PORT_FOR_X2C = 36422; # Spec 36422
    };
    }
    );

    MACRLCs = (
    {
    num_cc = 1;
    tr_s_preference = “local_L1”;
    tr_n_preference = “local_RRC”;
    phy_test_mode = 0;
    puSch10xSnr = 200;
    puCch10xSnr = 200;
    }
    );

    L1s = (
    {
    num_cc = 1;
    tr_n_preference = “local_mac”;
    }
    );

    RUs = (
    {
    local_rf = “yes”
    nb_tx = 1
    nb_rx = 1
    att_tx = 75
    att_rx = 70;
    bands = [7];
    max_pdschReferenceSignalPower = -27;
    max_rxgain = 125;
    eNB_instances = [0];

    }
    );

    NETWORK_CONTROLLER :
    {
    FLEXRAN_ENABLED = “no”;
    FLEXRAN_INTERFACE_NAME = “lo”;
    FLEXRAN_IPV4_ADDRESS = “127.0.0.1”;
    FLEXRAN_PORT = 2210;
    FLEXRAN_CACHE = “/mnt/oai_agent_cache”;
    FLEXRAN_AWAIT_RECONF = “no”;
    };

    THREAD_STRUCT = (
    {
    #three config for level of parallelism “PARALLEL_SINGLE_THREAD”, “PARALLEL_RU_L1_SPLIT”, or “PARALLEL_RU_L1_TRX_SPLIT”
    parallel_config = “PARALLEL_SINGLE_THREAD”;
    #parallel_config = “PARALLEL_RU_L1_TRX_SPLIT”;
    #two option for worker “WORKER_DISABLE” or “WORKER_ENABLE”
    worker_config = “WORKER_ENABLE”;
    }
    );

    log_config :
    {
    global_log_level =”info”;
    global_log_verbosity =”medium”;
    hw_log_level =”info”;
    hw_log_verbosity =”medium”;
    phy_log_level =”info”;
    phy_log_verbosity =”medium”;
    mac_log_level =”info”;
    mac_log_verbosity =”high”;
    rlc_log_level =”info”;
    rlc_log_verbosity =”medium”;
    pdcp_log_level =”info”;
    pdcp_log_verbosity =”medium”;
    rrc_log_level =”info”;
    rrc_log_verbosity =”medium”;
    };

    My Lime_Mini.ini

    [file_info]
    type=lms7002m_minimal_config
    version=1
    [lms7002_registers_a]
    0x0020=0xFFD5
    0x0021=0x0E9F
    0x0022=0x57FF
    0x0023=0x5550
    0x0024=0xE4E4
    0x0025=0x0101
    0x0026=0x0101
    0x0027=0xE4E4
    0x0028=0x0101
    0x0029=0x0101
    0x002A=0x0086
    0x002B=0x0038
    0x002C=0x0000
    0x002D=0x0641
    0x002E=0x0000
    0x002F=0x3841
    0x0081=0x0001
    0x0082=0x800B
    0x0084=0x0400
    0x0085=0x0001
    0x0086=0x4101
    0x0087=0xE353
    0x0088=0x0395
    0x0089=0x1090
    0x008A=0x0514
    0x008B=0x213A
    0x008C=0x267B
    0x0092=0xFFFF
    0x0093=0x03FF
    0x0094=0x0000
    0x0095=0x0000
    0x0096=0x0000
    0x0097=0x0000
    0x0098=0x0000
    0x0099=0x6565
    0x009A=0x658C
    0x009B=0x6565
    0x009C=0x658C
    0x009D=0x6565
    0x009E=0x658C
    0x009F=0x658C
    0x00A0=0x6565
    0x00A1=0x656A
    0x00A2=0x6565
    0x00A3=0x6565
    0x00A4=0x6565
    0x00A5=0x6565
    0x00A6=0x0001
    0x00A7=0x6565
    0x00A8=0x0000
    0x00A9=0x8000
    0x00AA=0x0000
    0x00AB=0x0040
    0x00AC=0x2000
    0x00AD=0x03FB
    0x00AE=0x0000
    0x0100=0x3409
    0x0101=0x7800
    0x0102=0x3180
    0x0103=0x0A12
    0x0104=0x0088
    0x0105=0x0011
    0x0106=0x318C
    0x0107=0x318C
    0x0108=0x194A
    0x0109=0x6134
    0x010A=0x174C
    0x010B=0x0001
    0x010C=0x8865
    0x010D=0x009E
    0x010E=0x0000
    0x010F=0x3142
    0x0110=0x2B14
    0x0111=0x0000
    0x0112=0x31F1
    0x0113=0x03C2
    0x0114=0x0190
    0x0115=0x0009
    0x0116=0x8180
    0x0117=0x18C2
    0x0118=0x018C
    0x0119=0x5292
    0x011A=0x3001
    0x011C=0x8941
    0x011D=0x0000
    0x011E=0x07AC
    0x011F=0x3600
    0x0120=0xE6B4
    0x0121=0x3730
    0x0122=0x0514
    0x0123=0x200F
    0x0124=0x0010
    0x0125=0x9400
    0x0126=0x12FF
    0x0200=0x0081
    0x0201=0x07FF
    0x0202=0x07FF
    0x0203=0x7000
    0x0204=0x0000
    0x0205=0x0000
    0x0206=0x0000
    0x0207=0x0000
    0x0208=0x0170
    0x0209=0x0000
    0x020A=0x0080
    0x020B=0x4000
    0x020C=0x7FFF
    0x0240=0x0020
    0x0241=0x0000
    0x0242=0x10AA
    0x0243=0xAAAF
    0x0244=0x0000
    0x0245=0x0000
    0x0246=0x0000
    0x0247=0x0000
    0x0248=0x0000
    0x0249=0x0000
    0x024A=0x0000
    0x024B=0x0000
    0x024C=0x0000
    0x024D=0x0000
    0x024E=0x0000
    0x024F=0x0000
    0x0250=0x0000
    0x0251=0x0000
    0x0252=0x0000
    0x0253=0x0000
    0x0254=0x0000
    0x0255=0x0000
    0x0256=0x0000
    0x0257=0x0000
    0x0258=0x0000
    0x0259=0x0000
    0x025A=0x0000
    0x025B=0x0000
    0x025C=0x0000
    0x025D=0x0000
    0x025E=0x0000
    0x025F=0x0000
    0x0260=0x0000
    0x0261=0x0000
    0x0280=0x70CA
    0x0281=0x1DA9
    0x0282=0x4027
    0x0283=0x0A2E
    0x0284=0x5B41
    0x0285=0x7A34
    0x0286=0x72A4
    0x0287=0xEA81
    0x0288=0x0B4C
    0x0289=0x72C5
    0x028A=0x8203
    0x028B=0x7378
    0x028C=0xB2C4
    0x028D=0x942A
    0x028E=0xA980
    0x028F=0x401A
    0x0290=0x8134
    0x0291=0x980C
    0x0292=0x8DD6
    0x0293=0x5816
    0x0294=0x8388
    0x0295=0x13DE
    0x0296=0x2D70
    0x0297=0xB885
    0x0298=0x7F0F
    0x0299=0xB008
    0x029A=0x4C3E
    0x029B=0x8EB1
    0x029C=0x69BF
    0x029D=0x23DA
    0x029E=0x1F49
    0x029F=0x8000
    0x02A0=0x9741
    0x02A1=0x4634
    0x02A2=0x00E6
    0x02A3=0x4108
    0x02A4=0x1225
    0x02A5=0xEF4D
    0x02A6=0x8E18
    0x02A7=0xE112
    0x02C0=0xB67E
    0x02C1=0x148F
    0x02C2=0x2A97
    0x02C3=0xF457
    0x02C4=0xC58A
    0x02C5=0x8C82
    0x02C6=0x0E2B
    0x02C7=0xA840
    0x02C8=0xAEED
    0x02C9=0x2CC4
    0x02CA=0xC1E9
    0x02CB=0x58C1
    0x02CC=0xC901
    0x02CD=0x7502
    0x02CE=0x4814
    0x02CF=0x0E36
    0x02D0=0x8A40
    0x02D1=0xC98C
    0x02D2=0x4450
    0x02D3=0xC951
    0x02D4=0x0317
    0x02D5=0x1797
    0x02D6=0xA602
    0x02D7=0xEF5E
    0x02D8=0x08AF
    0x02D9=0x9009
    0x02DA=0x9745
    0x02DB=0x4721
    0x02DC=0x49F7
    0x02DD=0x52F6
    0x02DE=0x460A
    0x02DF=0x5C39
    0x02E0=0xE25D
    0x02E1=0x2024
    0x02E2=0x062B
    0x02E3=0xA002
    0x02E4=0xD24F
    0x02E5=0x1A32
    0x02E6=0x4129
    0x02E7=0x3000
    0x0300=0x36AC
    0x0301=0x894B
    0x0302=0x8F16
    0x0303=0x2847
    0x0304=0x4820
    0x0305=0x7F06
    0x0306=0x7B10
    0x0307=0x839D
    0x0308=0x9546
    0x0309=0x96AD
    0x030A=0xAC62
    0x030B=0xD90B
    0x030C=0x5205
    0x030D=0x8955
    0x030E=0x022D
    0x030F=0x90AA
    0x0310=0x2603
    0x0311=0x1272
    0x0312=0x1296
    0x0313=0x0508
    0x0314=0x29C2
    0x0315=0x97F5
    0x0316=0x50D8
    0x0317=0xF88C
    0x0318=0x3A5F
    0x0319=0x616B
    0x031A=0x0402
    0x031B=0x36AA
    0x031C=0x8508
    0x031D=0xBBD0
    0x031E=0xC96F
    0x031F=0x06ED
    0x0320=0x804F
    0x0321=0x2211
    0x0322=0x8ACA
    0x0323=0x0100
    0x0324=0x7DA4
    0x0325=0x8836
    0x0326=0x1798
    0x0327=0x4A00
    0x0340=0xF69D
    0x0341=0x6E91
    0x0342=0x4165
    0x0343=0x3261
    0x0344=0xCCB0
    0x0345=0x3EC8
    0x0346=0xD541
    0x0347=0xE9B5
    0x0348=0xEC89
    0x0349=0x555D
    0x034A=0x1EC3
    0x034B=0x4884
    0x034C=0xC360
    0x034D=0xE5D3
    0x034E=0x7C12
    0x034F=0xA4F5
    0x0350=0x7941
    0x0351=0x588A
    0x0352=0x6463
    0x0353=0x8356
    0x0354=0x89B4
    0x0355=0xBF75
    0x0356=0x2EF4
    0x0357=0xEB86
    0x0358=0x6066
    0x0359=0x2630
    0x035A=0x28A0
    0x035B=0x1527
    0x035C=0x71EA
    0x035D=0x428C
    0x035E=0x30A0
    0x035F=0xC81E
    0x0360=0x5224
    0x0361=0x01B3
    0x0362=0x5472
    0x0363=0x0D2B
    0x0364=0x21DC
    0x0365=0x1491
    0x0366=0x10E1
    0x0367=0x0200
    0x0380=0x014C
    0x0381=0x804E
    0x0382=0x06B1
    0x0383=0x70B1
    0x0384=0x2FA0
    0x0385=0x7490
    0x0386=0x2869
    0x0387=0x6217
    0x0388=0xE24C
    0x0389=0xE782
    0x038A=0x1613
    0x038B=0x58B7
    0x038C=0x204A
    0x038D=0x403E
    0x038E=0x13E9
    0x038F=0x4204
    0x0390=0xEC42
    0x0391=0x400D
    0x0392=0x0B02
    0x0393=0xB5EE
    0x0394=0xF0D3
    0x0395=0xF627
    0x0396=0x5C25
    0x0397=0xC804
    0x0398=0xB2C2
    0x0399=0x081C
    0x039A=0x48F9
    0x039B=0x0A18
    0x039C=0x2D45
    0x039D=0x9315
    0x039E=0x07D0
    0x039F=0xA621
    0x03A0=0x6609
    0x03A1=0x0007
    0x03A2=0xF692
    0x03A3=0x4002
    0x03A4=0x935A
    0x03A5=0x233F
    0x03A6=0x487C
    0x03A7=0x4200
    0x0400=0x8081
    0x0401=0x07FF
    0x0402=0x07FF
    0x0403=0x7000
    0x0404=0x0006
    0x0405=0x0000
    0x0406=0x0000
    0x0407=0x0000
    0x0408=0x0000
    0x0409=0x0000
    0x040A=0x0000
    0x040B=0xAAAA
    0x040C=0x00F8
    0x040D=0x0000
    0x040E=0x0000
    0x040F=0x0000
    0x0440=0x0020
    0x0441=0x0000
    0x0442=0x0000
    0x0443=0x0000
    0x0444=0x0000
    0x0445=0x0000
    0x0446=0x0000
    0x0447=0x0000
    0x0448=0x0000
    0x0449=0x0000
    0x044A=0x0000
    0x044B=0x0000
    0x044C=0x0000
    0x044D=0x0000
    0x044E=0x0000
    0x044F=0x0000
    0x0450=0x0000
    0x0451=0x0000
    0x0452=0x0000
    0x0453=0x0000
    0x0454=0x0000
    0x0455=0x0000
    0x0456=0x0000
    0x0457=0x0000
    0x0458=0x0000
    0x0459=0x0000
    0x045A=0x0000
    0x045B=0x0000
    0x045C=0x0000
    0x045D=0x0000
    0x045E=0x0000
    0x045F=0x0000
    0x0460=0x0000
    0x0461=0x0000
    0x0480=0x713D
    0x0481=0xBA7C
    0x0482=0x58E0
    0x0483=0x07C1
    0x0484=0xE45E
    0x0485=0xB7AA
    0x0486=0x1516
    0x0487=0x7552
    0x0488=0xD863
    0x0489=0x5EF4
    0x048A=0xAD4D
    0x048B=0x030A
    0x048C=0x94CE
    0x048D=0x723A
    0x048E=0x6126
    0x048F=0x13B5
    0x0490=0x72B0
    0x0491=0x9900
    0x0492=0x2817
    0x0493=0x214D
    0x0494=0x408E
    0x0495=0x2600
    0x0496=0x4B35
    0x0497=0x7C78
    0x0498=0x6BF8
    0x0499=0x74AA
    0x049A=0xFA02
    0x049B=0xA3A9
    0x049C=0xF7ED
    0x049D=0x8067
    0x049E=0x8EEF
    0x049F=0xD302
    0x04A0=0x95DF
    0x04A1=0x65FC
    0x04A2=0x67BB
    0x04A3=0x410C
    0x04A4=0x43CF
    0x04A5=0xBD3E
    0x04A6=0x8F22
    0x04A7=0x2298
    0x04C0=0xCE56
    0x04C1=0xF50B
    0x04C2=0x0048
    0x04C3=0x8BAF
    0x04C4=0x94D4
    0x04C5=0x386B
    0x04C6=0x38C8
    0x04C7=0x7515
    0x04C8=0xF4E8
    0x04C9=0x4806
    0x04CA=0xE5CE
    0x04CB=0x306D
    0x04CC=0xA788
    0x04CD=0x8091
    0x04CE=0xF295
    0x04CF=0x040A
    0x04D0=0x6386
    0x04D1=0x4C47
    0x04D2=0x4BD0
    0x04D3=0xACD4
    0x04D4=0x17F0
    0x04D5=0xA392
    0x04D6=0x16E4
    0x04D7=0xC00E
    0x04D8=0x932C
    0x04D9=0x2466
    0x04DA=0x0EB5
    0x04DB=0xC262
    0x04DC=0xFE2D
    0x04DD=0x1C72
    0x04DE=0x0CA4
    0x04DF=0x0930
    0x04E0=0x5D29
    0x04E1=0x887A
    0x04E2=0x0901
    0x04E3=0xDA3A
    0x04E4=0xFA5E
    0x04E5=0x7C57
    0x04E6=0x5A42
    0x04E7=0x687A
    0x0500=0x3EED
    0x0501=0x95F8
    0x0502=0xA538
    0x0503=0xE934
    0x0504=0x8A4F
    0x0505=0x4D0C
    0x0506=0xD1FA
    0x0507=0xB4D0
    0x0508=0xB8E1
    0x0509=0x00D6
    0x050A=0x837D
    0x050B=0x1503
    0x050C=0xC2A5
    0x050D=0xB58F
    0x050E=0x8A1A
    0x050F=0x6B48
    0x0510=0x6E1D
    0x0511=0x4301
    0x0512=0xD521
    0x0513=0xCF59
    0x0514=0x0D16
    0x0515=0x0817
    0x0516=0xEF3D
    0x0517=0x8ABD
    0x0518=0x4B0D
    0x0519=0xBD43
    0x051A=0x29D3
    0x051B=0x0229
    0x051C=0xE06F
    0x051D=0xCEA3
    0x051E=0xB965
    0x051F=0x6D64
    0x0520=0xDB8C
    0x0521=0xF13A
    0x0522=0x2417
    0x0523=0x223E
    0x0524=0x721B
    0x0525=0xD253
    0x0526=0x04F5
    0x0527=0xA9A8
    0x0540=0x59E1
    0x0541=0xC990
    0x0542=0x92AC
    0x0543=0x9A14
    0x0544=0xD821
    0x0545=0xC1F1
    0x0546=0x1A0C
    0x0547=0xA263
    0x0548=0x28C1
    0x0549=0xDEBF
    0x054A=0x5C04
    0x054B=0xC8BD
    0x054C=0xF70D
    0x054D=0xA48D
    0x054E=0xABB4
    0x054F=0x2616
    0x0550=0x3A94
    0x0551=0x58B0
    0x0552=0x4BF8
    0x0553=0xA56C
    0x0554=0xC573
    0x0555=0x0822
    0x0556=0xA30E
    0x0557=0x5FAA
    0x0558=0x9192
    0x0559=0x2E4C
    0x055A=0x1878
    0x055B=0x610F
    0x055C=0x8045
    0x055D=0xF9A6
    0x055E=0x0021
    0x055F=0x75F1
    0x0560=0x9ABE
    0x0561=0xA117
    0x0562=0x9766
    0x0563=0x62CA
    0x0564=0x3C97
    0x0565=0x4091
    0x0566=0x383A
    0x0567=0x5857
    0x0580=0xA89F
    0x0581=0x0EFB
    0x0582=0x3FCD
    0x0583=0x315E
    0x0584=0x27CE
    0x0585=0xFDD5
    0x0586=0xFFFF
    0x0587=0x3814
    0x0588=0xB1C0
    0x0589=0x0EB5
    0x058A=0x2825
    0x058B=0x0482
    0x058C=0xB33D
    0x058D=0xC14C
    0x058E=0x967B
    0x058F=0xD445
    0x0590=0x714B
    0x0591=0xB620
    0x0592=0x8286
    0x0593=0xD981
    0x0594=0x3DD9
    0x0595=0x0877
    0x0596=0x9A12
    0x0597=0xCDA0
    0x0598=0x5AB4
    0x0599=0x3EF9
    0x059A=0xD662
    0x059B=0x8E13
    0x059C=0xF37D
    0x059D=0xB67D
    0x059E=0x3BD0
    0x059F=0x3C95
    0x05A0=0x5E17
    0x05A1=0x2DDC
    0x05A2=0xA175
    0x05A3=0x5F20
    0x05A4=0x4C8E
    0x05A5=0xFA36
    0x05A6=0xF193
    0x05A7=0xA6CD
    0x05C0=0x00FF
    0x05C1=0x0000
    0x05C2=0x0000
    0x05C3=0x0000
    0x05C4=0x0000
    0x05C5=0x0000
    0x05C6=0x0000
    0x05C7=0x0000
    0x05C8=0x0000
    0x05C9=0x0000
    0x05CA=0x0000
    0x05CB=0x1F0F
    0x05CC=0x0000
    0x0600=0x0F01
    0x0601=0x0000
    0x0602=0x2000
    0x0603=0x0000
    0x0604=0x0000
    0x0605=0x0000
    0x0606=0x0000
    0x0640=0x80A1
    0x0641=0x2040
    [lms7002_registers_b]
    0x0100=0x340E
    0x0101=0x7800
    0x0102=0x3180
    0x0103=0x0A12
    0x0104=0x0088
    0x0105=0x001E
    0x0106=0x318C
    0x0107=0x318C
    0x0108=0x958C
    0x0109=0x61C1
    0x010A=0x104C
    0x010B=0x0000
    0x010C=0x88FE
    0x010D=0x009E
    0x010E=0x2040
    0x010F=0x318C
    0x0110=0x0994
    0x0111=0x0083
    0x0112=0xC0E6
    0x0113=0x03C3
    0x0114=0x008D
    0x0115=0x000E
    0x0116=0x8180
    0x0117=0x280C
    0x0118=0x018C
    0x0119=0x18CB
    0x011A=0x2E02
    0x011C=0x8941
    0x011D=0x0000
    0x011E=0x080C
    0x011F=0x3600
    0x0120=0xE6B4
    0x0121=0x819A
    0x0122=0x0514
    0x0123=0x000F
    0x0124=0x001F
    0x0125=0x9400
    0x0126=0x12FF
    0x0200=0x0080
    0x0201=0x07FF
    0x0202=0x07FF
    0x0203=0x0000
    0x0204=0x0000
    0x0205=0x0000
    0x0206=0x0000
    0x0207=0x0000
    0x0208=0x01FB
    0x0209=0x0000
    0x020A=0x0080
    0x020B=0x4000
    0x020C=0x0000
    0x0240=0x0020
    0x0241=0x0000
    0x0242=0x0000
    0x0243=0x0000
    0x0244=0x0000
    0x0245=0x0000
    0x0246=0x0000
    0x0247=0x0000
    0x0248=0x0000
    0x0249=0x0000
    0x024A=0x0000
    0x024B=0x0000
    0x024C=0x0000
    0x024D=0x0000
    0x024E=0x0000
    0x024F=0x0000
    0x0250=0x0000
    0x0251=0x0000
    0x0252=0x0000
    0x0253=0x0000
    0x0254=0x0000
    0x0255=0x0000
    0x0256=0x0000
    0x0257=0x0000
    0x0258=0x0000
    0x0259=0x0000
    0x025A=0x0000
    0x025B=0x0000
    0x025C=0x0000
    0x025D=0x0000
    0x025E=0x0000
    0x025F=0x0000
    0x0260=0x0000
    0x0261=0x0000
    0x0280=0x0000
    0x0281=0x0000
    0x0282=0x0000
    0x0283=0x0000
    0x0284=0x0000
    0x0285=0x0000
    0x0286=0x0000
    0x0287=0x0000
    0x0288=0x0000
    0x0289=0x0000
    0x028A=0x0000
    0x028B=0x0000
    0x028C=0x0000
    0x028D=0x0000
    0x028E=0x0000
    0x028F=0x0000
    0x0290=0x0000
    0x0291=0x0000
    0x0292=0x0000
    0x0293=0x0000
    0x0294=0x0000
    0x0295=0x0000
    0x0296=0x0000
    0x0297=0x0000
    0x0298=0x0000
    0x0299=0x0000
    0x029A=0x0000
    0x029B=0x0000
    0x029C=0x0000
    0x029D=0x0000
    0x029E=0x0000
    0x029F=0x0000
    0x02A0=0x0000
    0x02A1=0x0000
    0x02A2=0x0000
    0x02A3=0x0000
    0x02A4=0x0000
    0x02A5=0x0000
    0x02A6=0x0000
    0x02A7=0x0000
    0x02C0=0x0000
    0x02C1=0x0000
    0x02C2=0x0000
    0x02C3=0x0000
    0x02C4=0x0000
    0x02C5=0x0000
    0x02C6=0x0000
    0x02C7=0x0000
    0x02C8=0x0000
    0x02C9=0x0000
    0x02CA=0x0000
    0x02CB=0x0000
    0x02CC=0x0000
    0x02CD=0x0000
    0x02CE=0x0000
    0x02CF=0x0000
    0x02D0=0x0000
    0x02D1=0x0000
    0x02D2=0x0000
    0x02D3=0x0000
    0x02D4=0x0000
    0x02D5=0x0000
    0x02D6=0x0000
    0x02D7=0x0000
    0x02D8=0x0000
    0x02D9=0x0000
    0x02DA=0x0000
    0x02DB=0x0000
    0x02DC=0x0000
    0x02DD=0x0000
    0x02DE=0x0000
    0x02DF=0x0000
    0x02E0=0x0000
    0x02E1=0x0000
    0x02E2=0x0000
    0x02E3=0x0000
    0x02E4=0x0000
    0x02E5=0x0000
    0x02E6=0x0000
    0x02E7=0x0000
    0x0300=0x0000
    0x0301=0x0000
    0x0302=0x0000
    0x0303=0x0000
    0x0304=0x0000
    0x0305=0x0000
    0x0306=0x0000
    0x0307=0x0000
    0x0308=0x0000
    0x0309=0x0000
    0x030A=0x0000
    0x030B=0x0000
    0x030C=0x0000
    0x030D=0x0000
    0x030E=0x0000
    0x030F=0x0000
    0x0310=0x0000
    0x0311=0x0000
    0x0312=0x0000
    0x0313=0x0000
    0x0314=0x0000
    0x0315=0x0000
    0x0316=0x0000
    0x0317=0x0000
    0x0318=0x0000
    0x0319=0x0000
    0x031A=0x0000
    0x031B=0x0000
    0x031C=0x0000
    0x031D=0x0000
    0x031E=0x0000
    0x031F=0x0000
    0x0320=0x0000
    0x0321=0x0000
    0x0322=0x0000
    0x0323=0x0000
    0x0324=0x0000
    0x0325=0x0000
    0x0326=0x0000
    0x0327=0x0000
    0x0340=0x0000
    0x0341=0x0000
    0x0342=0x0000
    0x0343=0x0000
    0x0344=0x0000
    0x0345=0x0000
    0x0346=0x0000
    0x0347=0x0000
    0x0348=0x0000
    0x0349=0x0000
    0x034A=0x0000
    0x034B=0x0000
    0x034C=0x0000
    0x034D=0x0000
    0x034E=0x0000
    0x034F=0x0000
    0x0350=0x0000
    0x0351=0x0000
    0x0352=0x0000
    0x0353=0x0000
    0x0354=0x0000
    0x0355=0x0000
    0x0356=0x0000
    0x0357=0x0000
    0x0358=0x0000
    0x0359=0x0000
    0x035A=0x0000
    0x035B=0x0000
    0x035C=0x0000
    0x035D=0x0000
    0x035E=0x0000
    0x035F=0x0000
    0x0360=0x0000
    0x0361=0x0000
    0x0362=0x0000
    0x0363=0x0000
    0x0364=0x0000
    0x0365=0x0000
    0x0366=0x0000
    0x0367=0x0000
    0x0380=0x0000
    0x0381=0x0000
    0x0382=0x0000
    0x0383=0x0000
    0x0384=0x0000
    0x0385=0x0000
    0x0386=0x0000
    0x0387=0x0000
    0x0388=0x0000
    0x0389=0x0000
    0x038A=0x0000
    0x038B=0x0000
    0x038C=0x0000
    0x038D=0x0000
    0x038E=0x0000
    0x038F=0x0000
    0x0390=0x0000
    0x0391=0x0000
    0x0392=0x0000
    0x0393=0x0000
    0x0394=0x0000
    0x0395=0x0000
    0x0396=0x0000
    0x0397=0x0000
    0x0398=0x0000
    0x0399=0x0000
    0x039A=0x0000
    0x039B=0x0000
    0x039C=0x0000
    0x039D=0x0000
    0x039E=0x0000
    0x039F=0x0000
    0x03A0=0x0000
    0x03A1=0x0000
    0x03A2=0x0000
    0x03A3=0x0000
    0x03A4=0x0000
    0x03A5=0x0000
    0x03A6=0x0000
    0x03A7=0x0000
    0x0400=0x0080
    0x0401=0x07FF
    0x0402=0x07FF
    0x0403=0x0000
    0x0404=0x0000
    0x0405=0x0000
    0x0406=0x0000
    0x0407=0x0000
    0x0408=0x0000
    0x0409=0x0000
    0x040A=0x2000
    0x040B=0x2040
    0x040C=0x01FF
    0x040D=0x0000
    0x040E=0x0000
    0x040F=0x0000
    0x0440=0x0000
    0x0441=0x0000
    0x0442=0x0000
    0x0443=0x0000
    0x0444=0x0000
    0x0445=0x0000
    0x0446=0x0000
    0x0447=0x0000
    0x0448=0x0000
    0x0449=0x0000
    0x044A=0x0000
    0x044B=0x0000
    0x044C=0x0000
    0x044D=0x0000
    0x044E=0x0000
    0x044F=0x0000
    0x0450=0x0000
    0x0451=0x0000
    0x0452=0x0000
    0x0453=0x0000
    0x0454=0x0000
    0x0455=0x0000
    0x0456=0x0000
    0x0457=0x0000
    0x0458=0x0000
    0x0459=0x0000
    0x045A=0x0000
    0x045B=0x0000
    0x045C=0x0000
    0x045D=0x0000
    0x045E=0x0000
    0x045F=0x0000
    0x0460=0x0000
    0x0461=0x0000
    0x0480=0x0000
    0x0481=0x0000
    0x0482=0x0000
    0x0483=0x0000
    0x0484=0x0000
    0x0485=0x0000
    0x0486=0x0000
    0x0487=0x0000
    0x0488=0x0000
    0x0489=0x0000
    0x048A=0x0000
    0x048B=0x0000
    0x048C=0x0000
    0x048D=0x0000
    0x048E=0x0000
    0x048F=0x0000
    0x0490=0x0000
    0x0491=0x0000
    0x0492=0x0000
    0x0493=0x0000
    0x0494=0x0000
    0x0495=0x0000
    0x0496=0x0000
    0x0497=0x0000
    0x0498=0x0000
    0x0499=0x0000
    0x049A=0x0000
    0x049B=0x0000
    0x049C=0x0000
    0x049D=0x0000
    0x049E=0x0000
    0x049F=0x0000
    0x04A0=0x0000
    0x04A1=0x0000
    0x04A2=0x0000
    0x04A3=0x0000
    0x04A4=0x0000
    0x04A5=0x0000
    0x04A6=0x0000
    0x04A7=0x0000
    0x04C0=0x0000
    0x04C1=0x0000
    0x04C2=0x0000
    0x04C3=0x0000
    0x04C4=0x0000
    0x04C5=0x0000
    0x04C6=0x0000
    0x04C7=0x0000
    0x04C8=0x0000
    0x04C9=0x0000
    0x04CA=0x0000
    0x04CB=0x0000
    0x04CC=0x0000
    0x04CD=0x0000
    0x04CE=0x0000
    0x04CF=0x0000
    0x04D0=0x0000
    0x04D1=0x0000
    0x04D2=0x0000
    0x04D3=0x0000
    0x04D4=0x0000
    0x04D5=0x0000
    0x04D6=0x0000
    0x04D7=0x0000
    0x04D8=0x0000
    0x04D9=0x0000
    0x04DA=0x0000
    0x04DB=0x0000
    0x04DC=0x0000
    0x04DD=0x0000
    0x04DE=0x0000
    0x04DF=0x0000
    0x04E0=0x0000
    0x04E1=0x0000
    0x04E2=0x0000
    0x04E3=0x0000
    0x04E4=0x0000
    0x04E5=0x0000
    0x04E6=0x0000
    0x04E7=0x0000
    0x0500=0x0000
    0x0501=0x0000
    0x0502=0x0000
    0x0503=0x0000
    0x0504=0x0000
    0x0505=0x0000
    0x0506=0x0000
    0x0507=0x0000
    0x0508=0x0000
    0x0509=0x0000
    0x050A=0x0000
    0x050B=0x0000
    0x050C=0x0000
    0x050D=0x0000
    0x050E=0x0000
    0x050F=0x0000
    0x0510=0x0000
    0x0511=0x0000
    0x0512=0x0000
    0x0513=0x0000
    0x0514=0x0000
    0x0515=0x0000
    0x0516=0x0000
    0x0517=0x0000
    0x0518=0x0000
    0x0519=0x0000
    0x051A=0x0000
    0x051B=0x0000
    0x051C=0x0000
    0x051D=0x0000
    0x051E=0x0000
    0x051F=0x0000
    0x0520=0x0000
    0x0521=0x0000
    0x0522=0x0000
    0x0523=0x0000
    0x0524=0x0000
    0x0525=0x0000
    0x0526=0x0000
    0x0527=0x0000
    0x0540=0x0000
    0x0541=0x0000
    0x0542=0x0000
    0x0543=0x0000
    0x0544=0x0000
    0x0545=0x0000
    0x0546=0x0000
    0x0547=0x0000
    0x0548=0x0000
    0x0549=0x0000
    0x054A=0x0000
    0x054B=0x0000
    0x054C=0x0000
    0x054D=0x0000
    0x054E=0x0000
    0x054F=0x0000
    0x0550=0x0000
    0x0551=0x0000
    0x0552=0x0000
    0x0553=0x0000
    0x0554=0x0000
    0x0555=0x0000
    0x0556=0x0000
    0x0557=0x0000
    0x0558=0x0000
    0x0559=0x0000
    0x055A=0x0000
    0x055B=0x0000
    0x055C=0x0000
    0x055D=0x0000
    0x055E=0x0000
    0x055F=0x0000
    0x0560=0x0000
    0x0561=0x0000
    0x0562=0x0000
    0x0563=0x0000
    0x0564=0x0000
    0x0565=0x0000
    0x0566=0x0000
    0x0567=0x0000
    0x0580=0x0000
    0x0581=0x0000
    0x0582=0x0000
    0x0583=0x0000
    0x0584=0x0000
    0x0585=0x0000
    0x0586=0x0000
    0x0587=0x0000
    0x0588=0x0000
    0x0589=0x0000
    0x058A=0x0000
    0x058B=0x0000
    0x058C=0x0000
    0x058D=0x0000
    0x058E=0x0000
    0x058F=0x0000
    0x0590=0x0000
    0x0591=0x0000
    0x0592=0x0000
    0x0593=0x0000
    0x0594=0x0000
    0x0595=0x0000
    0x0596=0x0000
    0x0597=0x0000
    0x0598=0x0000
    0x0599=0x0000
    0x059A=0x0000
    0x059B=0x0000
    0x059C=0x0000
    0x059D=0x0000
    0x059E=0x0000
    0x059F=0x0000
    0x05A0=0x0000
    0x05A1=0x0000
    0x05A2=0x0000
    0x05A3=0x0000
    0x05A4=0x0000
    0x05A5=0x0000
    0x05A6=0x0000
    0x05A7=0x0000
    0x0600=0x0F01
    0x0601=0x0000
    0x0602=0x2000
    0x0603=0x0000
    0x0604=0x0000
    0x0605=0x0000
    0x0606=0x0000
    0x0640=0x00A1
    0x0641=0x2040
    [reference_clocks]
    sxt_ref_clk_mhz=40
    sxr_ref_clk_mhz=40

    regards Paul.

    1. Dear Paul,
      Thanks for sharing this material.
      We tried, but it doesn’t work with our LimeSDR (not mini version).
      The main issue with Lime is spend days to understand LMS7002D internals to set hundreds parameters in LimeSuiteGUI
      Regards,
      Laurent

  62. Hi Laurent
    Thank you for this very clear tutorial.
    I have setup the EPC + eNB and my UE is able to connect and reach internet through OAI network.
    But The MME is craching after few minutes with the below error even with MCC not starting with 0.
    I’m using MCC = 208 and MNC = 92.

    Assertion ((15 == auth_info_req->imsi_length)|| (14 == auth_info_req->imsi_length)) failed!
    In nas_itti_auth_info_req() /home/narcisse/openair-cn/src/nas/nas_itti_messaging.c:320
    Bad IMSI length 13
    Will Intentionaly raise SEGFAULT to be catched by GDB!
    Obtained 10 stack frames.
    mme(display_backtrace+0x28) [0x55862bad1847]
    mme(nas_itti_auth_info_req+0x14f) [0x55862ba20200]
    mme(+0xada5c) [0x55862ba44a5c]
    mme(emm_proc_attach_request+0x1268) [0x55862ba43d06]
    mme(emm_recv_attach_request+0xb6b) [0x55862ba172be]
    mme(+0x7a650) [0x55862ba11650]
    mme(emm_as_send+0xff) [0x55862ba103d8]
    mme(emm_sap_send+0xd5) [0x55862ba0bf32]
    mme(nas_proc_establish_ind+0x1b6) [0x55862ba036fc]
    mme(+0x6bf76) [0x55862ba02f76]
    ./run_mme : ligne 87 : 23602 Erreur de segmentation $SUDO mme `echo $exe_arguments` 2>&1

    Any idea on how to fix this problem?

    Best regards,

    Narcisse

  63. Dear Laurent
    There is software oscilloscop(I have install it when run buildoai with -x),i wanna to know it whether has this function in openAirinterface5g develop branch.
    Regards,
    ZDS

  64. Hey Laurent,
    I use a lime Mini in my setup.
    My core network run without warnings or errors.
    The UE is connected and listed in the MME but after 1 min I get this:
    [PHY] L1_thread isn’t ready in 564.5, aborting RX processing

    I have no time to check the internet connection of the UE.
    Some idea what could be the reason for the abort?

    Regards,
    Nico.

  65. Here is a bigger part of my eNB terminal where you can see all my failers and Errors.
    Maybe you got an idea.

    [S1AP] S1AP_FIND_PROTOCOLIE_BY_ID: /…../openairinterface5g/openair3/S1AP/s1ap_eNB_handlers.c 374: ie is NULL
    .
    .
    .
    [PHY] DJP – delete code above this /…./openairinterface5g/targets/RT/USER/lte-ru.c:2658
    .
    .
    .
    [PHY] L1_thread isn’t ready in 0.1, aborting RX processing
    [MAC] SCHED_MODE = 0
    [PHY] eNB 0 frame 0, subframe 0 : previous information from RU tx 0 (num_RU 1,mask 1) has not been served yet!
    [PHY] max_I0 15, min_I0 0
    [PHY] [eNB 0/0][RAPROC] Frame 382, subframe 1 Initiating RA procedure with preamble 22, energy 33.0 dB, delay 240
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    .
    .
    .
    [MAC] UE rnti e720 : in synch, PHR 40 dB DL CQI 8 PUSCH SNR 33 PUCCH SNR 45
    [PHY] [eNB 0/0][RAPROC] Frame 136, subframe 1 Initiating RA procedure with preamble 35, energy 11.7 dB, delay 288
    [PHY] [eNB 0/0][RAPROC] Frame 190, subframe 1 Initiating RA procedure with preamble 35, energy 11.7 dB, delay 288
    [PHY] [eNB 0/0][RAPROC] Frame 244, subframe 1 Initiating RA procedure with preamble 20, energy 11.1 dB, delay 96
    [MAC] UE rnti e720 : in synch, PHR 40 dB DL CQI 8 PUSCH SNR 33 PUCCH SNR 45
    [PHY] [eNB 0/0][RAPROC] Frame 298, subframe 1 Initiating RA procedure with preamble 35, energy 11.7 dB, delay 288
    [PHY] [eNB 0/0][RAPROC] Frame 352, subframe 1 Initiating RA procedure with preamble 35, energy 11.4 dB, delay 288
    [MAC] UE rnti e720 : in synch, PHR 40 dB DL CQI 8 PUSCH SNR 33 PUCCH SNR 45
    [PHY] [eNB 0/0][RAPROC] Frame 406, subframe 1 Initiating RA procedure with preamble 46, energy 11.4 dB, delay 48
    [PHY] [eNB 0/0][RAPROC] Frame 460, subframe 1 Initiating RA procedure with preamble 35, energy 11.4 dB, delay 288
    [MAC] UE rnti e720 : in synch, PHR 40 dB DL CQI 8 PUSCH SNR 33 PUCCH SNR 45
    [PHY] [eNB 0/0][RAPROC] Frame 514, subframe 1 Initiating RA procedure with preamble 35, energy 11.7 dB, delay 288
    [SCTP] Successfully sent 69 bytes on stream 1 for assoc_id 52
    [SCTP] Found data for descriptor 67
    [SCTP] Received notification for sd 67, type 32777
    [SCTP] Found data for descriptor 67
    [SCTP] [52][67] Msg of length 34 received from port 36412, on stream 1, PPID 18
    [RRC] [eNB 0] Received S1AP_DOWNLINK_NAS: ue_initial_id 0, eNB_ue_s1ap_id 420141
    [RRC] sent RRC_DCCH_DATA_REQ to TASK_PDCP_ENB
    [RLC] [FRAME 00000][eNB][MOD 00][RNTI e720][SRB AM 02] RLC_AM_DATA_REQ size 16 Bytes, NB SDU 1 current_sdu_index=0 next_sdu_index=1 conf 0 mui 6 vtA 0 vtS 0
    [MAC] [eNB 0][PUSCH 2] CC_id 0 533.0 ULSCH in error in round 0, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 533.8 ULSCH in error in round 1, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 534.6 ULSCH in error in round 2, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 535.4 ULSCH in error in round 3, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 536.2 ULSCH in error in round 0, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 537.0 ULSCH in error in round 1, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 537.8 ULSCH in error in round 2, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 538.6 ULSCH in error in round 3, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 539.4 ULSCH in error in round 0, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 540.2 ULSCH in error in round 1, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 541.0 ULSCH in error in round 2, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 541.8 ULSCH in error in round 3, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 542.6 ULSCH in error in round 0, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 543.4 ULSCH in error in round 1, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 544.2 ULSCH in error in round 2, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 545.0 ULSCH in error in round 3, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 545.8 ULSCH in error in round 0, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 546.6 ULSCH in error in round 1, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 547.4 ULSCH in error in round 2, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 548.2 ULSCH in error in round 3, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 549.0 ULSCH in error in round 0, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 549.8 ULSCH in error in round 1, ul_cqi 128, UE_id 0, RNTI e720
    [MAC] [eNB 0][PUSCH 2] CC_id 0 550.6 ULSCH in error in round 2, ul_cqi 128, UE_id 0, RNTI e720
    [SCTP] Found data for descriptor 67
    [SCTP] [52][67] Msg of length 22 received from port 36412, on stream 1, PPID 18
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI e720] Logical Channel DL-DCCH, Generate RRCConnectionRelease (bytes 3)
    [RRC] sent RRC_DCCH_DATA_REQ to TASK_PDCP_ENB
    [RLC] [FRAME 00000][eNB][MOD 00][RNTI e720][SRB AM 01] RLC_AM_DATA_REQ size 8 Bytes, NB SDU 7 current_sdu_index=6 next_sdu_index=7 conf 0 mui 7 vtA 6 vtS 6
    [RRC] S1AP removed entry in hashtable s1ap_id2_s1ap_ids for eNB_ue_s1ap_id 420141
    [RRC] S1AP removed entry in hashtable initial_id2_s1ap_ids for ue_initial_id 1
    [S1AP] Removed UE context eNB_ue_s1ap_id 420141
    [SCTP] Successfully sent 21 bytes on stream 1 for assoc_id 52
    [RRC] Removing UE e720 instance after UE_CONTEXT_RELEASE_Complete (ue_release_timer_rrc timeout)
    [RRC] [eNB 0] Removing UE RNTI e720
    [RRC] Put UE e720 into freeList
    [RRC] clean_eNb_ulsch ulsch[0] UE e720
    [RRC] clean_eNb_ulsch ulsch[1] UE e720
    [RRC] clean_eNb_dlsch dlsch[2] UE e720
    [MAC] clean eNb uci_vars[0] UE e720
    [MAC] clean eNb uci_vars[1] UE e720
    [MAC] clean eNb uci_vars[2] UE e720
    [RRC] remove UE e720 from ul_config_pdu_list 0/1
    [RRC] remove UE e720 from ul_config_pdu_list 0/1
    [RRC] remove UE e720 from ul_config_pdu_list 0/1
    [MAC] Removing UE 0 from Primary CC_id 0 (rnti e720)
    [PDCP] remove uid is 0/0 e720
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI e720] Removed UE context
    [RRC] [release_UE_in_freeList] remove UE e720 from freeList
    [PHY] [eNB 0/0][RAPROC] Frame 556, subframe 1 Initiating RA procedure with preamble 49, energy 33.0 dB, delay 216
    [PHY] fill_ulsch UE_id 0 nb_rb = 0
    [RRC] [FRAME 00557][eNB][MOD 00][RNTI cc6d] Decoding UL CCCH 1c.e4.0.f.be.a8 (0x55ecc55ea547)
    [RRC] [FRAME 00557][eNB][MOD 00][RNTI cc6d] LTE_RRCConnectionReestablishmentRequest cause Other Failure
    [RRC] [FRAME 00557][eNB][MOD 00][RNTI cc6d] LTE_RRCConnectionReestablishmentRequest without UE context, let’s reject the UE
    Error: signal 11:
    ./cmake_targets/lte_build_oai/build/lte-softmodem(signal_handler+0x7c)[0x55ecbfaf24ec]
    /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f809015ff20]
    /lib/x86_64-linux-gnu/libc.so.6(+0x18eb3b)[0x7f80902afb3b]
    ./cmake_targets/lte_build_oai/build/lte-softmodem(+0x4316e0)[0x55ecbfb456e0]
    ./cmake_targets/lte_build_oai/build/lte-softmodem(uper_encode+0x110)[0x55ecbfb458b0]
    ./cmake_targets/lte_build_oai/build/lte-softmodem(uper_encode_to_buffer+0x30)[0x55ecbfb45930]
    [PHY] L1_thread isn’t ready in 557.3, aborting RX processing
    ./cmake_targets/lte_build_oai/build/lte-softmodem(do_RRCConnectionReestablishmentReject+0x84)[0x55ecbfeed1d4]
    ./cmake_targets/lte_build_oai/build/lte-softmodem(rrc_eNB_generate_RRCConnectionReestablishmentReject+0x8b)[0x55ecbfca1b6b]
    ./cmake_targets/lte_build_oai/build/lte-softmodem(rrc_eNB_decode_ccch+0xe37)[0x55ecbfcb9c87]
    ./cmake_targets/lte_build_oai/build/lte-softmodem(mac_rrc_data_ind+0xe6)[0x55ecbfce6606]
    [PHY] L1_thread isn’t ready in 557.4, aborting RX processing
    libusb: warning [libusb_exit] application left some devices open
    [PHY] rx_rf: Asked for 7680 samples, got 1120 from SDR
    [PHY] problem receiving samples[PHY] L1_thread isn’t ready in 557.5, aborting RX processing
    [PHY] rx_rf: Asked for 7680 samples, got 0 from SDR
    [PHY] rx_rf: rfdevice timing drift of 94474761170456 samples (ts_off 26720)
    [PHY] problem receiving samples[PHY] L1_thread isn’t ready in 557.6, aborting RX processing
    [SCTP] Found data for descriptor 67
    [SCTP] Received notification for sd 67, type 32777

    regards Nico

    1. Hi,
      This bug is known, when you reach this situation:
      LTE_RRCConnectionReestablishmentRequest without UE context, let’s reject the UE
      a bug in reject procedure crashes the eNB.
      You reach it maybe because your radio link is poor, so the UE reconnects several times
      A good fix of this bug is not that simple to do: avoid the crash is easy, but not enough: the fix should put the eNB is a state where it will accept later connection from this UE.
      Laurent

      1. Hi,
        any news about this bug?
        If I manually add SIM info inside hss db I will not have this error, but without putting any info inside hss db I will receive always this error.

        Regards,
        Ivan

        1. Hi Ivan,
          I don’t think anyone will fix this in OAI soon.
          Nevertheless I don’t understand what you mean: my answer was not related to SIM+HSS data.
          Of course, the HSS database have to match the SIM data.
          Please explain what you update in the HSS db, and when this occurs.
          Regards,
          Laurent

  66. Hi,

    Thank you so much for your tutorial. I am trying to set up EPC + ENB in my Ubuntu 18.04. In my EPC setup, I think my HSS and SPGW are running without any issues. Though for MME the build was successful, still I got the following issue when I try to run the MME using the command ./run_mme.

    It would be very helpful if you can shed some lights on this matter. Please let me know your suggestion regarding this issue. Thank you so much.

    MME log:
    Initializing OAI Logging
    Initializing MSC logs
    Initializing MSC logs Done

    Assertion (fd_dict_search (fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, “Service-Selection”, &s6a_fd_cnf.dataobj_s6a_service_selection, 2) == 0) failed!
    In s6a_fd_init_dict_objs() /home/radar-lab/Temp/openair-cn/src/s6a/s6a_dict.c:92

    Will Intentionaly raise SEGFAULT to be catched by GDB!
    Obtained 6 stack frames.
    mme(display_backtrace+0x28) [0x55aecb549847]
    mme(s6a_fd_init_dict_objs+0x1777) [0x55aecb52f555]
    mme(s6a_init+0x3fe) [0x55aecb529742]
    mme(main+0x478) [0x55aecb47a4d2]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f071cd78b97]
    mme(_start+0x2a) [0x55aecb479e2a]
    ./run_mme: line 87: 4337 Segmentation fault $SUDO mme `echo $exe_arguments` 2>&1

    Regards
    Tasfia

    1. Hi,
      You have another freediameter library installed, and you use the files libfdcore.so and libfdproto.so from this directory
      the variable LD_LIBRARY_PATH is what you need to manage the search path from shared libraries.
      Regards,
      Laurent

  67. Hello Laurent,
    Thank you for this detailed tutorial.
    I am trying to set up a 5G network using the USRP N310 for the gNB, when i attempted to compile the 5G Core Network repository (openair5g-cn) from GITHUB, it didn’t work because the Ubuntu 18.04 is not supported. So i want now to connect the gNB “as slave node” to the eNB “as master node” by configuring the X2 interface, if you have any tip or know any tutorial that explains the (E-UTRAN – NR dual connectivity) in OAI please let me know.
    many thanks in advance.
    Haddad

    1. Hi Haddad,
      We don’t have this yet.
      you are looking for ‘NSA’ (non standalone) mode of 5G, OpenAir try to do this.
      As far as I know the OAI software is not yet ready for this.
      Maybe you can ask on the OAI mailing list
      Laurent

  68. Hello Laurent,

    I compiled the MME as explained in this tutorial, but when I run it I get below crash on startup.

    Initializing OAI Logging
    Initializing MSC logs
    Initializing MSC logs Done

    Assertion (fd_dict_search (fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, “Service-Selection”, &s6a_fd_cnf.dataobj_s6a_service_selection, 2) == 0) failed!
    In s6a_fd_init_dict_objs() /home/rt/OAI-CN/opencells/openair-cn/src/s6a/s6a_dict.c:92

    Will Intentionaly raise SEGFAULT to be catched by GDB!
    Obtained 6 stack frames.
    /usr/local/bin/mme(display_backtrace+0x28) [0x55a6348db847]
    /usr/local/bin/mme(s6a_fd_init_dict_objs+0x1777) [0x55a6348c1555]
    /usr/local/bin/mme(s6a_init+0x3fe) [0x55a6348bb742]
    /usr/local/bin/mme(main+0x478) [0x55a63480c4d2]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f93a30eeb97]
    /usr/local/bin/mme(_start+0x2a) [0x55a63480be2a]
    Segmentation fault

    Not sure wheter it has something to do it freediameter extensions, but I use the same freediameter 1.2.0 and patch mentioned in this tutorial. And didn’t changed any extensions in mme_fd.conf, I can see you are loading below ones

    LoadExtension = “dict_nas_mipv6.fdx”;
    LoadExtension = “dict_s6a.fdx”;

    1. Hi,
      You have another version of freediameter installed on the machine.
      Look in the Q/A list, i already explained what to do.
      Laurent

  69. Getting this error. LIMESDR Mini, I7, 16GB memory
    Command that was run:

    root@SDR:~/openairinterface5g/targets/bin# ./lte-softmodem.Rel15 -O ~/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.25PRB.lmssdr.conf –rf-config-file ~/openairinterface5g/targets/ARCH/LMSSDR/LimeSDR_above_1p8GHz_1v4.ini -d

    [LIBCONFIG] list L1s not found in config file /home/larrylove/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.25PRB.lmssdr.conf
    [PHY] No L1s configuration found[PHY] RC.eNB[0] = 0x55e6c1efcff0
    [PHY] RC.eNB[0][0] = 0x7fb9e2821010
    [PHY] read_config_and_init() RC.nb_L1_inst: 0
    [LIBCONFIG] list MACRLCs not found in config file /home/larrylove/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.25PRB.lmssdr.conf
    [LIBCONFIG] list MACRLCs not found in config file /home/larrylove/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.25PRB.lmssdr.conf
    [MAC] read_config_and_init() RC.nb_macrlc_inst: 0
    [LIBCONFIG] (root): 3/3 parameters successfully set, (1 to default value)
    [LIBCONFIG] eNBs.[0]: 20/20 parameters successfully set, (12 to default value)
    [RRC] Instance 0: Southbound Transport local_mac
    [RRC] Setting node_type to ngran_eNB
    [LIBCONFIG] eNBs.[0].plmn_list.[0]: 3/3 parameters successfully set, (0 to default value)
    [RRC] num component carriers 1
    [RRC] enb_config::RCconfig_RRC() parameter number: 0, total number of parameters: 78, ccspath: eNBs.[0].component_carriers.[0]

    [LIBCONFIG] eNBs.[0].component_carriers.[0]: 78/78 parameters successfully set, (18 to default value)
    phich.resource 0 (ONESIXTH), phich.duration 0 (NORMAL)
    No eMBMS configuration, skipping it
    [LIBCONFIG] eNBs.[0].component_carriers.[0].emtc_parameters: 88/88 parameters successfully set, (88 to default value)
    No eMTC configuration, skipping it
    [LIBCONFIG] eNBs.[0].component_carriers.[0].SLparameters: 39/39 parameters successfully set, (39 to default value)
    No SL configuration skipping it
    [LIBCONFIG] eNBs.[0].srb1_parameters: 6/6 parameters successfully set, (0 to default value)
    [RRC] Node type 0
    [LIBCONFIG] (root): 3/3 parameters successfully set, (1 to default value)
    [LIBCONFIG] NETWORK_CONTROLLER: 6/6 parameters successfully set, (6 to default value)
    [FLEXRAN_AGENT] FlexRAN Agent for eNB 0 is DISABLED
    [PDCP] PDCP layer has been initialized
    [PDCP] pdcp init,usegtp
    [PDCP] ENB pdcp will use tun interface for MBMS
    [NETLINK]Opened socket oaitun_enm1 with fd 83
    returnValue 0
    returnValue 0
    returnValue 0
    [OIP] Interface oaitun_enm1 successfully configured, ip address 10.0.2.1, mask 255.255.255.0 broadcast address 10.0.2.255
    [ENB_APP] Creating ENB_APP eNB Task
    [TMR] Created Posix thread TASK_ENB_APP
    [LIBCONFIG] (root): 3/3 parameters successfully set, (1 to default value)
    [LIBCONFIG] eNBs.[0]: 20/20 parameters successfully set, (12 to default value)
    [LIBCONFIG] eNBs.[0].plmn_list.[0]: 3/3 parameters successfully set, (0 to default value)
    [LIBCONFIG] eNBs.[0].component_carriers.[0]: 78/78 parameters successfully set, (18 to default value)
    [LIBCONFIG] eNBs.[0].mme_ip_address.[0]: 5/5 parameters successfully set, (0 to default value)
    [LIBCONFIG] eNBs.[0].SCTP: 2/2 parameters successfully set, (0 to default value)
    [LIBCONFIG] eNBs.[0].NETWORK_INTERFACES: 11/11 parameters successfully set, (3 to default value)
    [GTPV1U] Configuring GTPu
    [LIBCONFIG] (root): 3/3 parameters successfully set, (1 to default value)
    [LIBCONFIG] eNBs.[0].NETWORK_INTERFACES: 3/3 parameters successfully set, (0 to default value)
    [GTPV1U] Configuring GTPu address : 127.0.0.10 -> a00007f
    [ENB_APP] default drx 2
    [ENB_APP] [eNB 0] eNB_app_register via S1AP for instance 0
    [LIBCONFIG] eNBs.[0]: 1/1 parameters successfully set, (1 to default value)
    [LIBCONFIG] gNBs.[0]: 1/1 parameters successfully set, (1 to default value)
    [LIBCONFIG] eNBs.[0]: 1/1 parameters successfully set, (1 to default value)
    [RRC] Creating RRC eNB Task
    [RRC] Entering main loop of RRC message task
    [TMR] Created Posix thread TASK_RRC_ENB
    [SCTP] Starting SCTP layer
    [TMR] Created Posix thread TASK_SCTP
    [S1AP] Starting S1AP layer
    [S1AP] Registered new eNB[0] and macro eNB id 3584
    [S1AP] [eNB 0] check the mme registration state
    [TMR] Created Posix thread TASK_S1AP
    [UDP] Initializing UDP task interface
    [UDP] Initializing UDP task interface: DONE
    [TMR] Created Posix thread TASK_UDP
    [GTPV1U] Initializing GTPU stack 0x55e6c0322c50
    [GTPV1U] Tx UDP_INIT IP addr 127.0.0.10 (868)
    [UDP] Initializing UDP for local address 127.0.0.10 with port 2152
    [SCTP] Converted ipv4 address 127.0.0.20 to network type
    [UDP] Inserting new descriptor for task 35, sd 86
    [UDP] Initializing UDP for local address 127.0.0.10 with port 2152: DONE
    [SCTP] connectx assoc_id 3 in progress…, used 1 addresses
    [SCTP] Inserted new descriptor for sd 85 in list, nb elements 1, assoc_id 3
    [SCTP] Found data for descriptor 85
    [SCTP] Received notification for sd 85, type 32769
    [SCTP] Client association changed: 0
    [SCTP] ———————-
    [SCTP] Peer addresses:
    [SCTP] – [127.0.0.20]
    [SCTP] ———————-
    [SCTP] ———————-
    [SCTP] SCTP Status:
    [SCTP] assoc id …..: 3
    [SCTP] state ……..: 4
    [SCTP] instrms ……: 2
    [SCTP] outstrms …..: 2
    [SCTP] fragmentation : 65484
    [SCTP] pending data .: 0
    [SCTP] unack data …: 0
    [SCTP] rwnd ………: 106496
    [SCTP] peer info :
    [SCTP] state ….: 2
    [SCTP] cwnd …..: 131064
    [SCTP] srtt …..: 0
    [SCTP] rto ……: 3000
    [SCTP] mtu ……: 65532
    [SCTP] ———————-
    [SCTP] Comm up notified for sd 85, assigned assoc_id 3
    [SCTP] Found data for descriptor 85
    [SCTP] Received notification for sd 85, type 32776
    [S1AP] 3584 -> 00e000
    [TMR] Created Posix thread TASK_GTPV1_U
    [X2AP] X2AP is disabled.
    [MAC] Creating MAC eNB Task
    [SCTP] Successfully sent 59 bytes on stream 0 for assoc_id 3
    [SCTP] Found data for descriptor 85
    [SCTP] Received notification for sd 85, type 32777
    [MAC] Starting main loop of MAC message task
    [TMR] Created Posix thread TASK_MAC_ENB
    [RRC] [eNB 0] Received RRC_CONFIGURATION_REQ : 0x55e6c1f2bd4c
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI 0] Init…
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI 0] Checking release
    [RRC] [FRAME 00000][eNB][MOD 00][RNTI 0] Rel14 RRC detected, MBMS flag 0
    [RRC] [eNB 0] Node type 0
    [RRC] configuration->schedulingInfoSIB1_BR_r13[CC_id] 0
    [RRC] Configuring MIB (N_RB_DL 25,phich_Resource 0,phich_Duration 0)
    [RRC] [MIB] systemBandwidth 2, phich_duration 0, phich_resource 0, sfn 0
    [RRC] [MIB] schedulingInfoSIB1 0
    [RRC] [eNB 0] Configuration SIB2/3, eMBMS = 0
    [RRC] do_SIB23, size 38
    Error: signal 11:
    ./lte-softmodem.Rel15(signal_handler+0xb8)[0x55e6bf2584b8]
    /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7fb9e2f36f20]
    ./lte-softmodem.Rel15(rrc_mac_config_req_eNB+0x166)[0x55e6bf4b5ba6]
    ./lte-softmodem.Rel15(openair_rrc_eNB_configuration+0x38a1)[0x55e6bf425cd1]
    ./lte-softmodem.Rel15(rrc_enb_process_itti_msg+0x9e5)[0x55e6bf433955]
    ./lte-softmodem.Rel15(rrc_enb_task+0x57)[0x55e6bf435a77]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7fb9e4dbf6db]
    /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fb9e301988f]

    1. you have to run in gdb, then checked what line of code is doing this SEGV, and do your best to fix and help the communauty

  70. First off let me say thank you for such a detailed tutorial. I am trying to use this guide alongside your “RF simulator and OAI UE tutorial”. I was able to successfully compile the UE but when I ran it gets stuck in a loop trying to “Waiting for eNB L1 instances to all get configured … sleeping 50ms (nb_L1_inst 1)” It will keep looping over that statement waiting for configuration until I close the program. I am sure I’m doing something wrong but I can’t seem to find the issue.

    Commands ran: sudo ./lte-softmodem -O ~/enb.10MHz.b200 -d

    When I run without sudo I get
    [NETLINK] Error opening socket oaitun_enm1 (1:Operation not permitted)

    1. Hi,
      I don’t know, maybe send us the eNB traces (make a link to a transfer mean like wetransfer, dropbox, …, don’t copy thousands lines in this blog)
      Laurent

  71. Dear laurent,
    Thank you

    I just finished the config, but cannot connect to the internet
    I used your Database and changed these items in it!

    (`id`, `apn`, `pdn_type`, `pdn_ipv4`, `pdn_ipv6`, `aggregate_ambr_ul`, `aggregate_ambr_dl`, `pgw_id`, `users_imsi`, `qci`, `priority_level`, `pre_emp_cap`, `pre_emp_vul`, `LIPA-Permissions`)
    to
    (31,’oai’,’IPv4′,’0.0.0.0′,’0:0:0:0:0:0:0:0′,50000000,100000000,3,’208920100001109′,9,15,’DISABLED’,’ENABLED’,’LIPA-only’);

    and

    (`imsi`, `msisdn`, `imei`, `imei_sv`, `ms_ps_status`, `rau_tau_timer`, `ue_ambr_ul`, `ue_ambr_dl`, `access_restriction`, `mme_cap`, `mmeidentity_idmmeidentity`, `key`, `RFSP-Index`, `urrp_mme`, `sqn`, `rand`, `OPc`)
    to
    (‘208920100001109′,’981111111′,’357773072932966′,01,’PURGED’,120,50000000,100000000,47,0000000000,1,0x6874736969202073796D4B2079650A73,1,0,00000000000000000351,0×00,0x504F20634F6320504F50206363500A4F);

    are these correct conf for Database?
    for example should i set PDN ipv4 address to any specific ip addresses like 172..0.0.1?

    and one other question is which parameter is obligatory to change? from above parameters
    also used oai as used here for APN in UE but no chance

    best regard

    1. Dear Asma,
      What is the issue, before you don’t reach internet:
      – is you UE connected to the eNB+MME (in the MMME log do you see UEall lines to ‘1 Ue’ ?)
      Laurent

      1. Hi, Thanks

        Yea all the things related to UE is equal to 1 for some moment/minutes but after that it changed to just attached UE =1, and after 1 min or less it totally change and i should try to search for network on UE again and again!

        So i’m changing everything related to Cell phone including Sim parameters and Database parameters!

        That’s why i’m asking it

        Thanks

        1. Hi,
          If the MME trace shows all lines “1”, the UE connects correctly: HSS, SIM, … are fine
          As the connection is lost quickly, the radio link is not stable.
          I suspect for a while OAI power control loop is not good and anyway we can’t make LimeSDR stable.
          What is your radio configuration ?
          Laurent

          1. Dear laurent,
            Sorry for late replay.
            The limesdr is not stable as you know at least above 2Ghz , I managed to connect to the core but due to instability couldn’t connect to the internet
            I used this .ini file : http://s12.picofile.com/file/8402039826/B.ini.html
            and this .conf: http://s13.picofile.com/file/8402039800/Lime.conf.html
            By any chance if anyone got sth by changing parameters of these files please let us know.

            Anyway i bought B210 and i’m free now /:
            I do recommend not to buy lime 7002D because of these difficulties!

            dear laurent do u have any idea on how can i integrate OAI with clearwater IMS to integrate Volte with OAI or anyone who can help me in this path(name or Email)?

  72. Hello, Laurent,

    I followed your tutorial in order to set up the EPC + OAI ENB on a slightly different configuration, on 2 different PCs. After several attempts I finally used the openair-cn v0.5.0 tag and I was able to run OAI EPC successfully. I then configured the SIM card and tried to connect a COTS UE to it. The authentication procedure seems to go well, however the MME ends up crashing in establishing the connection, and I couldn’t go any further.

    I saw your note about the MME crash at the top of this page: Fix a issue in mme that crash mme with some phones in the attach-request procedure. So I retrieved the files specified in the tar file and replaced them in my openair-cn (v0.5.0) installation folder, then I rebuilt the different elements, but no conclusive results.

    I attach below the log of the EMM before the crash, where the EU suddenly changes to EMM DEREGISTERED state. I specify that I use a Xiaomi 7A UE for this test.

    Do you have any idea what the malfunction is? Could the files to be replaced above be incompatible with my version of openai-cn (v0.5.0)?

    Thanks for any feedback!

    000799 00216:913865 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0368 ue_id=0x00000001 set security context eksi 0
    000800 00216:913869 7F7B3F44D700 DEBUG NAS-EM -cn/src/nas/emm/Authentication.c:0423 EMM-PROC – Successful authentication of the UE RESP XRES == XRES UE CONTEXT
    000801 00216:913876 7F7B3F44D700 DEBUG NAS-EM -cn/src/nas/emm/Authentication.c:0430 EMM-PROC – Notify EMM that the authentication procedure successfully completed
    000802 00216:913880 7F7B3F44D700 TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0507 Leaving emm_proc_common_clear_args()
    000803 00216:913884 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    000804 00216:913888 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0106 Entering emm_reg_send()
    000805 00216:913892 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0256 Entering emm_fsm_process()
    000806 00216:913897 7F7B3F44D700 INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0263 EMM-FSM – Received event COMMON_PROC_CNF (2) in state COMMON-PROCEDURE-INITIATED
    000807 00216:913906 7F7B3F44D700 TRACE NAS-EM ap/EmmCommonProcedureInitiated.c:0090 Entering EmmCommonProcedureInitiated()
    000808 00216:913914 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0176 Entering emm_fsm_set_status()
    000809 00216:913921 7F7B3F44D700 INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0182 UE 0x00000001 EMM-FSM – Status changed: COMMON-PROCEDURE-INITIATED ===> DEREGISTERED
    000810 00216:913968 7F7B3F44D700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1014 Entering mme_ue_context_update_ue_emm_state()
    000811 00216:913977 7F7B3F44D700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1033 Leaving mme_ue_context_update_ue_emm_state()
    000812 00216:913984 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0194 Leaving emm_fsm_set_status() (rc=0)
    000813 00216:913991 7F7B3F44D700 TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0217 Entering emm_proc_common_success()
    000814 00216:913998 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7f7b34000b10
    000815 00216:914006 7F7B3F44D700 TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:1167 Entering _emm_attach_security()
    000816 00216:914013 7F7B3F44D700 INFO NAS-EM /openair-cn/src/nas/emm/Attach.c:1172 ue_id=0x00000001 EMM-PROC – Setup NAS security
    000817 00216:914020 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0361 ue_id=0x00000001 set security context security type 0
    000818 00216:914027 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0368 ue_id=0x00000001 set security context eksi 7
    000819 00216:914034 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0375 ue_id=0x00000001 clear security context vector index
    000820 00216:914041 7F7B3F44D700 DEBUG NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0354 ue_id=0x00000001 cleared security context
    000821 00216:914048 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/SecurityModeControl.c:0215 Entering emm_proc_security_mode_control()
    000822 00216:914055 7F7B3F44D700 INFO NAS-EM rc/nas/emm/SecurityModeControl.c:0216 EMM-PROC – Initiate security mode control procedure KSI = 7 EEA = 240 EIA = 112
    000823 00216:914063 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7f7b34000b10
    000824 00216:914070 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0381 ue_id=0x00000001 set security context vector index 0
    000825 00216:914078 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0368 ue_id=0x00000001 set security context eksi 0
    000826 00216:914085 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/SecurityModeControl.c:0815 Entering _security_select_algorithms()
    000827 00216:914092 7F7B3F44D700 DEBUG NAS-EM rc/nas/emm/SecurityModeControl.c:0823 Selected NAS_SECURITY_ALGORITHMS_EIA2 (choice num 0)
    000828 00216:914100 7F7B3F44D700 DEBUG NAS-EM rc/nas/emm/SecurityModeControl.c:0831 Selected NAS_SECURITY_ALGORITHMS_EEA0 (choice num 0)
    000829 00216:914107 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/SecurityModeControl.c:0837 Leaving _security_select_algorithms() (rc=0)
    000830 00216:914114 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0361 ue_id=0x00000001 set security context security type 2
    000831 00216:914157 7F7B3F44D700 TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0163 Entering emm_proc_common_initialize()
    000832 00216:914165 7F7B3F44D700 TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0188 Leaving emm_proc_common_initialize() (rc=0)
    000833 00216:914172 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/SecurityModeControl.c:0630 Entering _security_request()
    000834 00216:914179 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7f7b34000b10
    000835 00216:914187 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0352 Entering emm_as_set_security_data()
    000836 00216:914194 7F7B3F44D700 INFO NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0366 EPS security context exists is new 1 KSI 0 SQN 0 count 0
    000837 00216:914202 7F7B3F44D700 DEBUG NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0367 0 (6058740 bytes) b8 89 4f 88 1f 4e 7b 5e 10 81 1e 84 4b a6 1d 04
    000838 00216:914220 7F7B3F44D700 DEBUG NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0368 0 (6058740 bytes) 68 49 72 7d 44 af eb b2 81 30 14 be 87 c1 e9 aa
    000839 00216:914236 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/LowerLayer.c:0405 Leaving emm_as_set_security_data()
    000840 00216:914247 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    000841 00216:914254 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0175 Entering emm_as_send()
    000842 00216:914261 7F7B3F44D700 INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0181 EMMAS-SAP – Received primitive EMMAS_SECURITY_REQ (201)
    000843 00216:914269 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0923 Entering _emm_as_send()
    000844 00216:914276 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1267 Entering _emm_as_security_req()
    000845 00216:914284 7F7B3F44D700 INFO NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1270 EMMAS-SAP – Send AS security request
    000846 00216:914291 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0734 Entering _emm_as_set_header()
    000847 00216:914299 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0758 Leaving _emm_as_set_header() (rc=140167319175008)
    000848 00216:914309 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0993 Entering emm_send_security_mode_command()
    000849 00216:914317 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:0996 EMMAS-SAP – Send Security Mode Command message
    000850 00216:914324 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:1024 replayeduesecuritycapabilities.gprs_present 1
    000851 00216:914331 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:1025 replayeduesecuritycapabilities.gea 112
    000852 00216:914338 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_send.c:1027 Leaving emm_send_security_mode_command() (rc=12)
    000853 00216:914346 7F7B3F44D700 INFO NAS-EM ir-cn/src/nas/emm/emm_data_ctx.c:0534 EMM-CTX – get UE id 0x00000001 context 0x7f7b34000b10
    000854 00216:914353 7F7B3F44D700 DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1339 Set nas_msg.header.sequence_number -> 0
    000855 00216:914361 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0815 Entering _emm_as_encode()
    000856 00216:914368 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0540 Entering nas_message_encode()
    000857 00216:914376 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0852 Entering _nas_message_header_encode()
    000858 00216:914383 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0885 Leaving _nas_message_header_encode() (rc=6)
    000859 00216:914391 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0960 Entering _nas_message_protected_encode()
    000860 00216:914398 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0913 Entering _nas_message_plain_encode()
    000861 00216:914406 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0271 Entering emm_msg_encode()
    000862 00216:914418 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/msg/emm_msg.c:0420 Leaving emm_msg_encode() (rc=10)
    000863 00216:914426 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0933 Leaving _nas_message_plain_encode() (rc=10)
    000864 00216:914434 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:1190 Entering _nas_message_encrypt()
    000865 00216:914441 7F7B3F44D700 DEBUG NAS rc/nas/api/network/nas_message.c:1202 No encryption of message according to security header type 0x03
    000866 00216:914449 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:1204 Leaving _nas_message_encrypt() (rc=10)
    000867 00216:914457 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0987 Leaving _nas_message_protected_encode() (rc=10)
    000868 00216:914464 7F7B3F44D700 DEBUG NAS rc/nas/api/network/nas_message.c:0569 offset 5 = 6 – 1, hdr encode = 6, length = 18 bytes = 10
    000869 00216:914472 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:1313 Entering _nas_message_get_mac()
    000870 00216:914480 7F7B3F44D700 DEBUG NAS rc/nas/api/network/nas_message.c:1371 NAS_SECURITY_ALGORITHMS_EIA2 dir DOWNLINK count.seq_num 0 count 0
    000871 00216:914499 7F7B3F44D700 TRACE NAS ir-cn/src/secu/nas_stream_eia2.c:0078 Byte length: 19, Zero bits: 0:
    000872 00216:914508 7F7B3F44D700 TRACE NAS ir-cn/src/secu/nas_stream_eia2.c:0079 0 (6058740 bytes) 00 00 00 00 04 00 00 00 00 07 5d 02 00 05 f0 70 c0 40 70
    000873 00216:914527 7F7B3F44D700 TRACE NAS ir-cn/src/secu/nas_stream_eia2.c:0080 0 (6058740 bytes) b8 89 4f 88 1f 4e 7b 5e 10 81 1e 84 4b a6 1d 04
    000874 00216:914543 7F7B3F44D700 TRACE NAS ir-cn/src/secu/nas_stream_eia2.c:0081 0 (6058740 bytes) 00 07 5d 02 00 05 f0 70 c0 40 70
    000875 00216:914613 7F7B3F44D700 TRACE NAS ir-cn/src/secu/nas_stream_eia2.c:0088 0 (6058740 bytes) f2 73 8e 27 5e f0 cb ce 97 e6 dc 51 2b c1 10 75
    000876 00216:914630 7F7B3F44D700 DEBUG NAS rc/nas/api/network/nas_message.c:1384 NAS_SECURITY_ALGORITHMS_EIA2 returned MAC f2.73.8e.27(663647218) for length 11 direction 1, count 0
    000877 00216:914640 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:1386 Leaving _nas_message_get_mac() (rc=4067659303)
    000878 00216:914647 7F7B3F44D700 DEBUG NAS rc/nas/api/network/nas_message.c:0599 Incremented emm_security_context.dl_count.seq_num -> 1
    000879 00216:914655 7F7B3F44D700 TRACE NAS rc/nas/api/network/nas_message.c:0620 Leaving nas_message_encode() (rc=16)
    000880 00216:914662 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0851 Leaving _emm_as_encode() (rc=16)
    000881 00216:914670 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:1353 Leaving _emm_as_security_req() (rc=263)
    000882 00216:914677 7F7B3F44D700 DEBUG NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0968 EMMAS-SAP – Sending msg with id 0x107, primitive EMMAS_SECURITY_REQ (201) to S1AP layer for transmission
    000883 00216:914696 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0973 Leaving _emm_as_send() (rc=0)
    000884 00216:914704 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=0)
    000885 00216:914711 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    000886 00216:914725 7F7B3F44D700 INFO NAS-EM rc/nas/emm/SecurityModeControl.c:0679 EMM-PROC – Started Timer T3460 (2) expires in 6 seconds
    000887 00216:914736 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/SecurityModeControl.c:0686 Leaving _security_request() (rc=0)
    000888 00216:914748 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0110 Entering emm_sap_send()
    000889 00216:914748 7F7B3CC48700 TRACE MME-AP /src/mme_app/mme_app_transport.c:0057 Entering mme_app_handle_nas_dl_req()
    000890 00216:914755 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0106 Entering emm_reg_send()
    000891 00216:914762 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0256 Entering emm_fsm_process()
    000892 00216:914769 7F7B3F44D700 INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0263 EMM-FSM – Received event COMMON_PROC_REQ (1) in state DEREGISTERED
    000894 00216:914779 7F7B3CC48700 TRACE MME-AP /src/mme_app/mme_app_transport.c:0098 Leaving mme_app_handle_nas_dl_req() (rc=0)
    000893 00216:914778 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/sap/EmmDeregistered.c:0094 Entering EmmDeregistered()
    000895 00216:914786 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0176 Entering emm_fsm_set_status()
    000896 00216:914793 7F7B3F44D700 INFO NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0182 UE 0x00000001 EMM-FSM – Status changed: DEREGISTERED ===> COMMON-PROCEDURE-INITIATED
    000897 00216:914804 7F7B3F44D700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1014 Entering mme_ue_context_update_ue_emm_state()
    000898 00216:914811 7F7B3F44D700 TRACE MME-AP cn/src/mme_app/mme_app_context.c:1033 Leaving mme_ue_context_update_ue_emm_state()
    000899 00216:914818 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0194 Leaving emm_fsm_set_status() (rc=0)
    000900 00216:914838 7F7B3D449700 TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0344 Entering s1ap_generate_downlink_nas_transport()
    000901 00216:914848 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/sap/EmmDeregistered.c:0155 Leaving EmmDeregistered() (rc=0)
    000902 00216:914857 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0271 Leaving emm_fsm_process() (rc=0)
    000903 00216:914865 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0119 Leaving emm_reg_send() (rc=0)
    000904 00216:914872 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    000905 00216:914879 7F7B3F44D700 TRACE NAS-EM rc/nas/emm/SecurityModeControl.c:0361 Leaving emm_proc_security_mode_control() (rc=0)
    000906 00216:914882 7F7B3D449700 NOTIC S1AP c/s1ap/s1ap_mme_nas_procedures.c:0399 Send S1AP DOWNLINK_NAS_TRANSPORT message ue_id = 0x00000001 MME_UE_S1AP_ID = 0x00000001 eNB_UE_S1AP_ID = 0x06692D
    000907 00216:914887 7F7B3F44D700 TRACE NAS-EM /openair-cn/src/nas/emm/Attach.c:1199 Leaving _emm_attach_security() (rc=0)
    000908 00216:914895 7F7B3F44D700 TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0479 Leaving emm_common_cleanup()
    000909 00216:914902 7F7B3F44D700 TRACE NAS-EM enair-cn/src/nas/emm/EmmCommon.c:0228 Leaving emm_proc_common_success() (rc=0)
    000910 00216:914906 7F7B3D449700 TRACE S1AP c/s1ap/s1ap_mme_nas_procedures.c:0409 Leaving s1ap_generate_downlink_nas_transport() (rc=0)
    000911 00216:914910 7F7B3F44D700 TRACE NAS-EM ap/EmmCommonProcedureInitiated.c:0196 Leaving EmmCommonProcedureInitiated() (rc=0)
    000912 00216:914916 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_fsm.c:0271 Leaving emm_fsm_process() (rc=0)
    000913 00216:914919 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_reg.c:0119 Leaving emm_reg_send() (rc=0)
    000915 00216:914937 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    000914 00216:914930 7F7B3EC4C700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0277 [41][20] Sending buffer 0x7f7b24003880 of 42 bytes on stream 1 with ppid 18
    000916 00216:914941 7F7B3F44D700 TRACE NAS-EM -cn/src/nas/emm/Authentication.c:0439 Leaving emm_proc_authentication_complete() (rc=0)
    000917 00216:914946 7F7B3F44D700 TRACE NAS-EM ir-cn/src/nas/emm/sap/emm_recv.c:0758 Leaving emm_recv_authentication_response() (rc=0)
    000918 00216:914951 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0434 Leaving _emm_as_recv() (rc=0)
    000919 00216:914955 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0541 Leaving _emm_as_data_ind() (rc=0)
    000920 00216:914959 7F7B3F44D700 TRACE NAS-EM nair-cn/src/nas/emm/sap/emm_as.c:0243 Leaving emm_as_send() (rc=0)
    000921 00216:914963 7F7B3F44D700 TRACE NAS-EM air-cn/src/nas/emm/sap/emm_sap.c:0143 Leaving emm_sap_send() (rc=0)
    000922 00216:914967 7F7B3F44D700 TRACE NAS-EM l2/openair-cn/src/nas/nas_proc.c:0326 Leaving nas_proc_ul_transfer_ind() (rc=0)
    000923 00216:914978 7F7B3EC4C700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0288 Successfully sent 42 bytes on stream 1
    000924 00216:940359 7F7B1FFFF700 DEBUG SCTP rc/sctp/sctp_primitives_server.c:0476 [20][41] Msg of length 56 received from port 36412, on stream 1, PPID 18
    000925 00216:940452 7F7B3D449700 TRACE S1AP r-cn/src/s1ap/s1ap_mme_decoder.c:0050 Entering s1ap_mme_decode_initiating()
    ./run_mme: line 87: 2128 Segmentation fault (core dumped) $SUDO mme `echo $exe_arguments` 2>&1

    1. Hi,
      I don’t know, at least run mme in gdb to see the line of source that makes the SEGV.
      Maybe use another EPC ?
      Laurent

      1. Hi Laurent,

        Thanks for the suggestion. I used the gdb option on the OAI MME and it returns the following at the SEGV event :
        Thread 17 “mme” received signal SIGSEGV, Segmentation fault.
        [Switching to Thread 0x7fffc5ffb700 (LWP 2695)]
        0x00007ffff66af4ad in parsedict_do_avp (dict=0xabca40, avp=0x7fffa8000b30,
        mandatory=1, error_info=0x7fffc5fface0)
        at /home/innocell2/openair-cn/build/git_submodules/freeDiameter/libfdproto/messages.c:2237
        2237 /home/innocell2/openair-cn/build/git_submodules/freeDiameter/libfdproto/messages.c: No such file or directory.

        I wondered if it was because of a wrong installation of diameter, so I rebuilt the mme but still have the issue. Would you have an idea on how to proceed ?
        I may try another branch tag if it still doesn’t work, otherwise I’ll move on to another EPC as you suggest.

        Anthony

        1. Hi,
          It looks like the bug we already fixed.
          Your configuration looks different: openair-cn/build/git_submodules/freeDiameter is not the patch we have
          Laurent

  73. Hi Laurent,

    thanks for this great tutorial.

    right in the last entry:

    ./lte-softmodem -O ~ / opencells-mods / enb.10MHz.b200

    I have the following problem (I report the final part of the output):

    [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.1.1-release
    [HW] Found USRP b200
    Found USRP b200
    [INFO] [B200] Detected Device: B210
    [INFO] [B200] Operating over USB 3.
    [INFO] [B200] Detecting internal GPSDO….
    [INFO] [GPS] Found an internal GPSDO: GPSTCXO , Firmware Rev 0.929a
    [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.
    [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!
    — Using calibration table: calib_table_b210_38
    Errore di segmentazione (core dump creato)

    What could it be?

    Thanks in advance

    1. Dear Giuseppe,
      Hard to answer

      1) command line: too much spaces in your line

      2) if it doesn’t work without extra spaces:
      run
      gdb –args ./lte-softmodem -O ~/opencells-mods/enb.10MHz.b200
      when you reach the segmentation error, do “where” and send it back to me.
      Regards,
      Laurent

      1. Hello Laurent
        Would you mind giving more details about the solution above? I met the same problem like Giuseppe which is caused by clock source and time source.
        But I still have no ideas.
        Best wishes !

      2. Hello dear Laurent
        I followed your advice by using gdb, but when I input where, it informed NO STACK. In order to make you see it clearly, I attached the message below.

        gdb -args ./lte-softmodem -O ~/Iverson/eNB/openairinterface5g/cmake_ta
        rgets/ran_build/build/enb.band13.tm1.25PRB.usrpb210.conf
        GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
        Copyright (C) 2016 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law. Type “show copying”
        and “show warranty” for details.
        This GDB was configured as “x86_64-linux-gnu”.
        Type “show configuration” for configuration details.
        For bug reporting instructions, please see:
        .
        Find the GDB manual and other documentation resources online at:
        .
        For help, type “help”.
        Type “apropos word” to search for commands related to “word”…
        Reading symbols from ./lte-softmodem…done.
        (gdb) where
        No stack.

    2. Hello sir
      Do you solve this problem or not? If you are already successful, please give me some suggestions or help.
      Best wishes

    3. Hi,

      I gave a try and got some information from you collectively.
      My understanding is your USRP setup is not correct.
      The call stack in gdb is purely internal USRP/UHD issue.
      You have maybe several versions of “libuhd.so” USRP driver: you have compiled with one version, then run with another one.
      Or you didn’t download the USRP firmware for the UHD version you have.

      Regards,
      Laurent

      1. Hi Iverson and Laurent,

        I have an error similar to that of Iverson. I have tried with gdb as suggested by Laurent. As Iverson did, I report the error:

        gdb –args ./lte-softmodem -O ~/opencells-mods/enb.10MHz.b200
        GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
        Copyright (C) 2018 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law. Type “show copying”
        and “show warranty” for details.
        This GDB was configured as “x86_64-linux-gnu”.
        Type “show configuration” for configuration details.
        For bug reporting instructions, please see:
        .
        Find the GDB manual and other documentation resources online at:
        .
        For help, type “help”.
        Type “apropos word” to search for commands related to “word”…
        Reading symbols from ./lte-softmodem…done.
        (gdb) where
        No stack.
        (gdb)

        Iverson and Laurent, do you have any suggestions?

  74. Hi laurent,
    I followed your steps to run build_mme and found this
    mme compilation failed
    cp: cannot stat ‘/home/lht/openair-cn/build/mme/build/mme’: No such file or directory
    auth_request compiled
    ‘/home/lht/openair-cn/build/mme/build/auth_request’ -> ‘/usr/local/bin/auth_request’
    auth_request installed
    then I lookup the log/mme.txt and find error like this
    /home/lht/openair-cn/build/mme/build/CMakeFiles/r10.5/INTEGER_oer.c:15:26: error: unknown type name ‘asn_oer_constraints_t’
    const asn_oer_constraints_t *constraints, void **sptr,
    ^~~~~~~~~~~~~~~~~~~~~
    /home/lht/openair-cn/build/mme/build/CMakeFiles/r10.5/NativeEnumerated_oer.c:35:35: error: unknown type name ‘asn_oer_constraints_t’
    const asn_oer_constraints_t *constraints,
    ^~~~~~~~~~~~~~~~~~~~~
    but the build_mme -i work well, and asn1c is installed successfully, could you help me with this problem?

    1. Dear Liu,
      You compile the EPC with the ans1c ASN.1 compiler version for the eNB.
      Probably you didn’t install our patch for the EPC, as it installs ans1c inside the openair-cn directory to separate it from the openair RAN version.
      Laurent

  75. Hi Laurent
    I also met the error when running eNB of master branch. The details are attached above
    INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.15.0.HEAD-0-gaea0e2de
    [HW] Found USRP b200
    Found USRP b200
    [INFO] [B200] Detected Device: B210
    [INFO] [B200] Operating over USB 3.
    [INFO] [B200] Detecting internal GPSDO….
    [INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929b
    [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.
    [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!
    — Using calibration table: calib_table_b210_38
    Segmentation fault (core dumped)
    I noticed that you recommanded to use gdb to check but it is a little general to me.
    Would you mind giving me more details? Thanks a lot!

  76. Hi Laurent,
    I follow your instruction, at the step: ./lte-softmodem -O ~/opencells-mods/enb.10MHz.b200
    There was below error. Could you help show me a solution for this?

    …..
    LIBCONFIG] loader.oai_device: 2/2 parameters successfully set, (1 to default value)
    [LOADER] library liboai_device.so successfully loaded
    [PHY] Checking for USRPs : UHD 4.0.0.0-711-ge62c93fe (4.0.0)
    [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_4.0.0.0-711-ge62c93fe
    [HW] Found USRP b200
    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.
    Setting clock source to internal
    [INFO] [B200] Asking for clock rate 30.720000 MHz…
    [INFO] [B200] OK
    [PHY] cal 0: freq 3500000000.000000, offset 44.000000, diff 990000000.000000
    [PHY] cal 1: freq 2660000000.000000, offset 49.800000, diff 150000000.000000
    [PHY] cal 2: freq 2300000000.000000, offset 51.000000, diff 210000000.000000
    [PHY] cal 3: freq 1880000000.000000, offset 53.000000, diff 630000000.000000
    [PHY] cal 4: freq 816000000.000000, offset 57.000000, diff 1694000000.000000
    [PHY] RX Gain 0 110.000000 (52.800000) => 57.200000 (max 76.000000)
    [PHY] USRP TX_GAIN:89.75 gain_range:89.75 tx_gain:0.00
    [PHY] Actual master clock: 30.720000MHz..

    PHY] init_eNB_afterRU() ************* DJP ***** eNB->frame_parms.nb_antennas_tx:0 – GOING TO HARD CODE TO 1[PHY] inst 0, CC_id 0 : nb_antennas_rx 1
    [PHY] Initialise transport
    [PHY] init_eNB_proc(inst:0) RC.nb_CC[inst]:1
    [PHY] Initializing eNB processes instance:0 CC_id 0
    [PHY] eNB->single_thread_flag:0
    [HW] [SCHED][eNB] eNB_thread_prach started on CPU 0, sched_policy = SCHED_FIFO , priority = 99, CPU Affinity= CPU_0 CPU_1 CPU_2 CPU_3
    [ENB_APP] ALL RUs ready – ALL eNBs ready
    [HW] [SCHED][eNB] eNB_thread_prach_br started on CPU 1, sched_policy = SCHED_FIFO , priority = 99, CPU Affinity= CPU_0 CPU_1 CPU_2 CPU_3
    [ENB_APP] Sending sync to all threads
    [ENB_APP] TYPE TO TERMINATE
    got sync (ru_thread)
    [PHY] Time in secs now: 46332903
    [PHY] Time in secs last pps: 33789692
    [PHY] RU 0 rf device ready
    [MAC] SCHED_MODE = 0
    [PHY] prach_I0 = 0.0 dB
    [PHY] max_I0 24, min_I0 12

    after 1 minute, it appears errors and exit with below log:
    [PHY] [recv] received 0 samples out of 15360
    [ERROR] [STREAMER] The receive packet handler caught a value exception.
    ValueError: bad vrt header or packet fragment
    [PHY] ERROR_CODE_BAD_PACKET

    [PHY] rx_rf: Asked for 15360 samples, got 0 from SDR
    [PHY] rx_rf: rfdevice timing drift of -332030155 samples (ts_off 46410955)
    [ERROR] [STREAMER] recv packet demuxer unexpected sid 0x40014
    terminate called after throwing an instance of ‘uhd::io_error’
    what(): EnvironmentError: IOError: usb rx6 transfer status: LIBUSB_TRANSFER_ERROR
    [PHY] problem receiving samplesLinux signal Aborted…
    /home/lttrung/openairinterface5g/targets/RT/USER/lte-softmodem.c:253 signal_handler() Exiting OAI softmodem: softmodem starting exit procedure

    On /var/log/syslog, I saw that
    Jul 16 11:12:41 lttrung upowerd[1341]: unhandled action ‘unbind’ on /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6
    Jul 16 11:12:42 lttrung kernel: [ 3474.449673] usb 2-6: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
    Jul 16 11:12:42 lttrung kernel: [ 3474.470444] usb 2-6: LPM exit latency is zeroed, disabling LPM.
    Jul 16 11:12:42 lttrung kernel: [ 3474.471306] usb 2-6: New USB device found, idVendor=2500, idProduct=0020, bcdDevice= 0.00
    Jul 16 11:12:42 lttrung kernel: [ 3474.471311] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Jul 16 11:12:42 lttrung kernel: [ 3474.471314] usb 2-6: Product: USRP B200
    Jul 16 11:12:42 lttrung kernel: [ 3474.471316] usb 2-6: Manufacturer: Ettus Research LLC
    Jul 16 11:12:42 lttrung kernel: [ 3474.471319] usb 2-6: SerialNumber: [xxxxx]
    Jul 16 11:12:42 lttrung mtp-probe: checking bus 2, device 6: “/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6”
    Jul 16 11:12:42 lttrung mtp-probe: bus: 2, device: 6 was not an MTP device

    I don’t know if this cause the issue due to usb connection. Could you show me the output when you plug USRP B210?

    1. Hi,
      I think this comes from a mismatch in libUHD.so, the uhd driver C header files or a B210 firmware error.
      Please check you have only one version of UHD installed, and redo the USRP firmware download procedure
      Laurent

      1. Hi Laurent,
        I fresh install the OS, and re-install following the instruction, but I still met the issue. Could you please advise me on this?
        [PHY] max_I0 24, min_I0 12
        [PHY] [recv] received 6144 samples out of 15360
        [ERROR] [STREAMER] The receive packet handler caught a value exception.
        ValueError: bad vrt header or packet fragment
        [PHY] ERROR_CODE_BAD_PACKET

        [PHY] rx_rf: Asked for 15360 samples, got 6144 from SDR
        [PHY] rx_rf: rfdevice timing drift of -346534344 samples (ts_off 46369224)
        [ERROR] [STREAMER] recv packet demuxer unexpected sid 0xffb300b8
        [ERROR] [UHD] An unexpected exception was caught in a task loop.The task loop will now exit, things may not work.EnvironmentError: IOError: usb rx8 transfer status: LIBUSB_TRANSFER_ERROR
        terminate called after throwing an instance of ‘uhd::io_error’
        what(): EnvironmentError: IOError: usb rx6 transfer status: LIBUSB_TRANSFER_ERROR
        [PHY] problem receiving samplesLinux signal Aborted…
        /home/lttrung/openairinterface5g/targets/RT/USER/lte-softmodem.c:253 signal_handler() Exiting OAI softmodem: softmodem starting exit procedure

        terminate called recursively
        Linux signal Aborted…
        /home/lttrung/openairinterface5g/targets/RT/USER/lte-softmodem.c:253 signal_handler() Exiting OAI softmodem: softmodem starting exit procedure

        terminate called recursively
        Linux signal Aborted…
        /home/lttrung/openairinterface5g/targets/RT/USER/lte-softmodem.c:253 signal_handler() Exiting OAI softmodem: softmodem starting exit procedure

        1. Dear Trung,
          This is errors inside the USRP driver.

          To confirm there is only one UHD driver, please do:
          sudo find / -name libuhd.so
          you should find only:
          /usr/lib/libuhd.so
          and maybe the same file in the uhd compilation directory like
          /uhd/host/build/lib/libuhd.so

          OpenAir can reveal some similar cases, for example if you compiled with “./build_oai –enable-deadline”
          Else, I would suggest to try the UHD test tools like
          /usr/lib/uhd/examples/benchmark_rate –rx_rate 15360000 –tx_rate 15360000
          to verify the USRP + UHD are working fine
          Laurent

          1. Dear Laurent,

            I ran a benchmark, it was good with below log:
            :~/uhd/host/build/utils$ sudo /usr/lib/uhd/examples/benchmark_rate –rx_rate 15360000 –tx_rate 15360000

            [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_4.0.0.0-804-gb2527716
            [00:00:00.000430] Creating the usrp device with: …
            [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] Setting master clock rate selection to ‘automatic’.
            [INFO] [B200] Asking for clock rate 16.000000 MHz…
            [INFO] [B200] Actually got clock rate 16.000000 MHz.
            Using Device: Single USRP:
            Device: B-Series Device
            Mboard 0: B210
            RX Channel: 0
            RX DSP: 0
            RX Dboard: A
            RX Subdev: FE-RX2
            RX Channel: 1
            RX DSP: 1
            RX Dboard: A
            RX Subdev: FE-RX1
            TX Channel: 0
            TX DSP: 0
            TX Dboard: A
            TX Subdev: FE-TX2
            TX Channel: 1
            TX DSP: 1
            TX Dboard: A
            TX Subdev: FE-TX1

            [00:00:01.982619132] Setting device timestamp to 0…
            [INFO] [B200] Asking for clock rate 61.440000 MHz…
            [INFO] [B200] Actually got clock rate 61.440000 MHz.
            Error: EnvironmentError: IOError: usb rx6 transfer status: LIBUSB_TRANSFER_ERROR
            tma@tma:~/uhd/host/build/utils$ cd /home/tma/uhd/host/build/utils; sudo ./b2xx_fx3_utils –reset-device
            Device opened (VID=0x2500,PID=0x0020)
            B2xx detected… Control of B2xx granted…

            Operation complete! I did it! I did it!
            tma@tma:~/uhd/host/build/utils$ sudo /usr/lib/uhd/examples/benchmark_rate –rx_rate 15360000 –tx_rate 15360000

            [INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_4.0.0.0-804-gb2527716
            [INFO] [B200] Loading firmware image: /usr/share/uhd/images/usrp_b200_fw.hex…
            [00:00:00.000140] Creating the usrp device with: …
            [INFO] [B200] Detected Device: B210
            [INFO] [B200] Loading FPGA image: /usr/share/uhd/images/usrp_b210_fpga.bin…
            [INFO] [B200] Operating over USB 3.
            [INFO] [B200] Detecting internal GPSDO….
            [INFO] [GPS] No GPSDO found
            [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] Setting master clock rate selection to ‘automatic’.
            [INFO] [B200] Asking for clock rate 16.000000 MHz…
            [INFO] [B200] Actually got clock rate 16.000000 MHz.
            Using Device: Single USRP:
            Device: B-Series Device
            Mboard 0: B210
            RX Channel: 0
            RX DSP: 0
            RX Dboard: A
            RX Subdev: FE-RX2
            RX Channel: 1
            RX DSP: 1
            RX Dboard: A
            RX Subdev: FE-RX1
            TX Channel: 0
            TX DSP: 0
            TX Dboard: A
            TX Subdev: FE-TX2
            TX Channel: 1
            TX DSP: 1
            TX Dboard: A
            TX Subdev: FE-TX1

            [00:00:18.972472863] Setting device timestamp to 0…
            [INFO] [B200] Asking for clock rate 61.440000 MHz…
            [INFO] [B200] Actually got clock rate 61.440000 MHz.
            [00:00:19.320705052] Testing receive rate 15.360000 Msps on 1 channels
            Setting TX spp to 2040
            [00:00:19.345679774] Testing transmit rate 15.360000 Msps on 1 channels
            [00:00:29.600231424] Benchmark complete.

            Benchmark rate summary:
            Num received samples: 157814754
            Num dropped samples: 0
            Num overruns detected: 0
            Num transmitted samples: 157500240
            Num sequence errors (Tx): 0
            Num sequence errors (Rx): 0
            Num underruns detected: 0
            Num late commands: 0
            Num timeouts (Tx): 0
            Num timeouts (Rx): 0
            Done!

            – According to libuhd, there is just one:
            $sudo find / -name libuhd.so
            /usr/lib/libuhd.so
            /home/lttrung/uhd/host/build/lib/libuhd.so

            – I still see the same issue:
            [PHY] prach_I0 = 0.0 dB
            [PHY] max_I0 24, min_I0 12
            [PHY] [recv] received 6144 samples out of 15360
            [ERROR] [STREAMER] The receive packet handler caught a value exception.
            ValueError: bad vrt header or packet fragment
            [PHY] ERROR_CODE_BAD_PACKET

            [PHY] rx_rf: Asked for 15360 samples, got 6144 from SDR
            [PHY] rx_rf: rfdevice timing drift of -392036213 samples (ts_off 46436213)
            [ERROR] [STREAMER] recv packet demuxer unexpected sid 0x26ffb4
            [PHY] problem receiving samples[PHY] [recv] received 0 samples out of 15360
            [PHY] ERROR_CODE_TIMEOUT

            [PHY] rx_rf: Asked for 15360 samples, got 0 from SDR
            [PHY] rx_rf: rfdevice timing drift of -15360 samples (ts_off -345600000)
            [PHY] problem receiving samples[PHY] [eNB 0/0][RAPROC] Frame 202, subframe 1 Initiating RA procedure with preamble 24, energy 20.7 dB, delay 48
            terminate called after throwing an instance of ‘uhd::io_error’
            what(): EnvironmentError: IOError: usb rx6 transfer status: LIBUSB_TRANSFER_ERROR
            Linux signal Aborted…
            /home/tma/openairinterface5g/targets/RT/USER/lte-softmodem.c:253 signal_handler() Exiting OAI softmodem: softmodem starting exit procedure

            – Could you please let me know which uhd version you used? I will switch to it release.

            Thanks,
            Trung.

          2. Dear Trung,
            I made a “git pull”, that also pulled “UHD_4.0.0.0-804-gb2527716”
            It works also very badly on my computer, even if the errors messages I get are different.
            So, I rolled back to:
            git checkout UHD-3.15.LTS
            This version looks ok, it is probably the best choice for now.
            Laurent

          3. Dear Laurent,

            Could you send me the output of command “lsusb” and “lsusb -t” when you plug USRP B210?

            Thanks,
            Trung.

          4. Dear Trung,
            lsusb -t
            when I plug the B210 it adds:
            > |__ Port 5: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 480M

            lsusb:
            > Bus 001 Device 005: ID 2500:0020

          5. Dear Laurent,

            If possible, could you please help “tail -f /var/log/syslog” when plug USRP B210?

            Thanks,
            Trung.

          6. Hi,
            The output:
            Jul 26 09:51:53 pc6600k kernel: [ 1727.138980] usb 1-5: new high-speed USB device number 7 using xhci_hcd
            Jul 26 09:51:53 pc6600k kernel: [ 1727.287270] usb 1-5: New USB device found, idVendor=2500, idProduct=0020
            Jul 26 09:51:53 pc6600k kernel: [ 1727.287275] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            Jul 26 09:51:53 pc6600k kernel: [ 1727.287278] usb 1-5: Product: WestBridge
            Jul 26 09:51:53 pc6600k kernel: [ 1727.287281] usb 1-5: Manufacturer: Cypress
            Jul 26 09:51:53 pc6600k kernel: [ 1727.287284] usb 1-5: SerialNumber: 0000000004BE
            Jul 26 09:51:53 pc6600k mtp-probe: checking bus 1, device 7: “/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5”
            Jul 26 09:51:53 pc6600k mtp-probe: bus: 1, device: 7 was not an MTP device
            Jul 26 09:51:53 pc6600k upowerd[2249]: unhandled action ‘bind’ on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5

            Laurent

          7. Thank Laurent so much for your support.
            I did some test on the board, everything is ok but the issue still happens after one or two minutes.
            I will change to another PC to check if the issue still happens.

Leave a Reply to tuyo Cancel reply

Your email address will not be published. Required fields are marked *