wiki:Tutorials/g0WmLTE/Tutorial4-OAI

Version 28 (modified by msherman, 9 years ago) ( diff )

OpenAirInterface LTE

Prerequisites

This tutorial series assumes you have an ORBIT account, have scheduled a session on the ORBIT testbed, are familiar with SSH'ing into the testbed itself, and are familiar with the basics of running ORBIT experiments. If you have not done these things yet, you may wish to do so before taking a look at this slightly more advanced experiment. If you are unfamiliar with or are entirely new to ORBIT, you may wish to start here.

This tutorial also assumes basic familiarity with LTE standard. It uses OpenAirInterface open source software implementation of LTE basestation (eNodeB or eNB) and modem (user equipment or UE) developed at Eurecom. The tutorial given here is based on the OAI_real-time_LTEsoftmodem tutorial.

The image used for this experiment is oai-trunk-head.ndz. Image uses Ubunutu 14.04 and has low-latency 3.19 kernel install and UHD drivers needed for B210/X310 USRPs (UHD 3.8.2)). This image was derived from vanilla image ubuntu-14-04-64bit-3.19-lowlatency.ndz (that was created based on OpenAir instructions) from ubutbu-14-04-64bit.ndz (baseline.ndz). In addition to installation steps in OpenAir documentation, once low latency kernel was installed, drivers for Broadcom and Netgear devices had to be manually re-installed.

Two images were created based on git cloning instructions and compiling instructions:

  • oai-master.ndz - master branch clone from git in /root
  • oai-develop.ndz - develop branch clone from git in /root

The openair-cn (EPC) was installed with default passwords of oai and default choice of "N" for optional packages (freeDiameter, asn1c pach and xtables_addons_oai). xtables_addons_oai was pulled out of git but not installed.

Update for oai-develop.ndz: The openair-cn (EPC) was installed with default passwords of oai and default choice of "Y" for optional packages (freeDiameter, asn1c pach and xtables_addons_oai). xtables_addons_oai was pulled out of git and installed.


Quickstart Option

We have an image available, named oai-dev.ndz. It has all the necessary driver and software pre-installed, and two scripts available to immediately boot up the eNB and UE. This quickstart assumes use of Sandbox1, nodes 1-1, and 1-2.

  1. To proceed, after having a reservation, load the following image.
    • omf load -t node1-1,node1-2 -i oai-dev.ndz
    • The nodes will automatically turn off when imaging is completed.
  2. Turn the nodes on.
    • omf tell -a on -t node1-1,node1-2
  3. Open a terminal to each node. You must enable X11 Forwarding to see the GUI and statistics screens.
    1. You will need at lease one terminal per node, for the statistics screens. Even more if you want to run additional commands. For details, refer to the Remote Graphical Access section.
  4. On the first node, execute script ./CompandRuneNB
  5. On the second node, execute script ./CompandRunUE
  6. For subsequent runs, execute ./runeNB or ./runUE instead, to avoid recompiling.
  7. These scripts will create interface oai0 and assign an address.
    1. Use ifconfig or ip a to see the address assigned.
    2. By default the eNB has address 10.0.1.1, and the UE has addresss 10.0.1.9, but you should double check.
  8. You should be able to ping from one node to the other on these addresses.
    1. From UE, ping 10.0.1.1 or to see live statistics mtr 10.0.1.1
  9. For throughput testing
    1. On the eNB, execute iperf -s
    2. On the UE, execute iperf -c 10.0.1.1

The code was compiled with USRP support i.e. with:

cd trunk/targets/bin; build_oai.bash -l ENB -c -w USRP

More details on various build options are available on OpenAirInterface build page.

In this tutorial we will use nodes with USRP b310 and have the basestation on node9-1 and modem on node6-20.

Prepare the nodes

  1. Load the image with the OpenAirInterface code on the nodes that have USRP B210 attached. After imaging the nodes are turned off automatically.
  2. Turn ON the nodes that successfully imaged (give them some time and check their status with omf stat before proceeding).

Execute the experiment

Primary objective is to establish the LTE connection between the UE and eNB. In order to that we need to prepare configuration files on two nodes: node9-1 and node6-20.

  1. ssh into nodes: Open the two ssh sessions from the console to the two nodes
No image "node9-1.png" attached to Tutorials/g0WmLTE/Tutorial4-OAI No image "node6-20.png" attached to Tutorials/g0WmLTE/Tutorial4-OAI
  1. Prepare configuration files: Make sure to have correct parameters in oai.conf file in roots home directory on the node (/root) as follows:
    1. Operating frequency band parameters:
      1. E-UTRA band
      2. Corresponding duplex mode (e.g. FDD/TDD),
      3. Downlink frequency [Hz], uplink frequency offset [Hz] (which is given in reference to the downlink frequency).
      4. LTE bandwidth: N_RB_DL = {6,15,25,50,75,100} corresponding to bandwidth = {1.4,3,5,10,15,20} MHz For example:
            ////////// Physical parameters:
            component_carriers = (
                                 {
                                   frame_type                                         = "FDD";
                                   eutra_band                                         = 7;
                                   downlink_frequency                                 = 2660000000L;
                                   uplink_frequency_offset                            = -120000000;
                                   N_RB_DL                                            = 25; #N_RB_DL choice: 6,15,25,50,75,100
                                 }
                                 );
        
        In this example, LTE operates in E-UTRA band 7 which allows the FDD mode. LTE operates at 5 MHz bandwidth around downlink and uplink center frequencies which are at 2660 MHz and 2540 MHz, respectively.

Parameters in oai.conf can be varied as long as they are within predefined set of values which can be found in file ~/rel_0.1_26.10.2014/openair2/ENB_APP/enb_config.c or ~/trunk/openair2/ENB_APP/enb_config.c

  1. Make sure to have correct IP address configuration for parameters "ENB_IPV4_ADDRESS_FOR_S1_MME" and "ENB_IPV4_ADDRESS_FOR_S1U" to match node numbers. For example, for nodeX-Y, these IP address parameters become as "10.10.X.Y/16". So for our basestation node the relevant sections in the oai.conf file in /root directory on the nodes we should look like (we don't want MME support and have to adjust the ip addresses to match what we have on the control interface of the node):
        ////////// MME parameters:
        mme_ip_address      = ( { ipv4       = "10.10.0.100";
                                  ipv6       = "10:10:0::100";
                                  active     = "no";
                                  preference = "ipv4";
                                }
                              );
    
        NETWORK_INTERFACES : 
        {
            ENB_INTERFACE_NAME_FOR_S1_MME            = "eth1";
            ENB_IPV4_ADDRESS_FOR_S1_MME              = "10.10.9.1/24";
    
            ENB_INTERFACE_NAME_FOR_S1U               = "eth1";
            ENB_IPV4_ADDRESS_FOR_S1U                 = "10.10.9.1/24";
            ENB_PORT_FOR_S1U                         = 2152; # Spec 2152
        };
    
  1. Run the lte-softmodem: Depending on whether you want to run it with or without mme, execute lte-softmodem on corresponding nodes:
On the eNB node (node9-1) On the UE node (node6-20)
w/o MME lte-softmodem-nomme -Ooai.conf -V lte-softmodem -U -Ooai.conf -C 2660000000 -V
w MME lte-softmodem -Ooai.conf -V lte-softmodem -U -Ooai.conf -C 2660000000 -V

If the above commands are executed with the "-d" flag and if X11 forwarding is enabled for the current ssh session, the signal tracer will pop out as shown in Figure 1 (not that this requires relatively high bandwidth).

No image "Scope.png" attached to Tutorials/g0WmLTE/Tutorial4-OAI

The command line parameters of lte-softmodem

Relevant (i.e. for USRP command line parameters for the lte-softmodem command are:

  • -O file: eNB configuration file (this is the preferred way to pass basic parameters and there are several examples in $OPENAIR_TARGETS/PROJECTS/GENERIC-LTE_EPC/CONF/
  • -g LEVEL: set the level of debug for the log generation (-g7 is quite high and useful to trace bugs in the procedures/protocols, -g9 even dumps packets at all levels of the protocol stack)
  • -d: enables xforms signal tracer
  • -U: start as UE (default: eNB)
  • -C freq: set carrier frequency to f0 for all chains (extension to independent frequencies trivial)
  • -V: enables the VCD debugging tool (this is a temporal event tracer, which is useful for real-time debugging using GTKWave)
  • -K file: ITTI logfile. ITTI is an intertask tracing utility which helps debugging with an EPC. It can traces all exchanges between RRC↔S1AP, RRC↔PDCP, PDCP↔S1
  • -S: do not exit for the missing slots, instead increment the counter.
  • —debug-ue-prach: only send prach but do not connect
  • —no-L2-connect: only runs rx, does not send prach

More details on running lte-softmodem are available on OpenAirInterface real-time LTE softmodem page.

Note: See TracWiki for help on using the wiki.