Changes between Version 14 and Version 15 of Tutorials/g0WmLTE/Tutorial4-OAI


Ignore:
Timestamp:
Mar 5, 2015, 3:54:35 PM (10 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/g0WmLTE/Tutorial4-OAI

    v14 v15  
    55This tutorial also assumes basic familiarity with [http://en.wikipedia.org/wiki/LTE_%28telecommunication%29 LTE standard]. It uses [http://www.openairinterface.org/ OpenAirInterface] open source software implementation of LTE basestation (eNodeB or eNB) and modem (user equipment or UE) developed at [http://www.eurecom.fr/en Eurecom]. The tutorial given here is based on the [https://twiki.eurecom.fr/twiki/bin/view/OpenAirInterface/OpenAirLXRT OAI_real-time_LTEsoftmodem] tutorial.
    66
    7 The image used for this experiment is oai-rel_0.1-full.ndz. Image uses Ubunutu 14.04 and has low-latency 3.17 kernel install and UHD drivers needed for B210/X310 USRPs on as well as the !OpenAirInteface source code installed in /root/rel_0.1_26.10.2014
     7The image used for this experiment is oai-trunk-full.ndz. Image uses Ubunutu 14.04 and has low-latency 3.17 kernel install and UHD drivers needed for B210/X310 USRPs (UHD 3.8.2)) as well as the !OpenAirInteface source code installed in /root/trunk (svn tag 668).
     8
     9In this tutorial we will use nodes with b310 and have the basestation on node9-1 and modem on node6-20.
    810
    911=== Prepare the nodes ===
    1012
    11  1. Load the image with the !OpenAirInterface code on the nodes that have USRP B210 attached. After imaging the nodes are '''turned off automatically'''.
    12  [[CollapsibleStart(omf load -t inventory:topo:B210 -i oai-rel_0.1-full.ndz)]] [[Include(Documentation/Short/LoadImage)]][[CollapsibleEnd]]
     13 1. Load the image with the !OpenAirInterface code on the nodes that have USRP B210 attached. After imaging the nodes are '''turned off automatically'''. [[CollapsibleStart(omf load -t inventory:topo:B210 -i oai-rel_0.1-full.ndz)]] [[Include(Documentation/Short/LoadImage)]][[CollapsibleEnd]]
    1314 1. Turn ON the nodes that successfully imaged (give them some time and check their status with '''omf stat''' before proceeding). [[CollapsibleStart(omf tell -a on -t system:topo:imaged)]][[Include(Documentation/Short/TellOn)]][[CollapsibleEnd]]
    1415
    1516=== Execute the experiment ===
    1617
    17 Primary objective is to establish the LTE connection between the UE and eNB. node6-20 = eNB node19-18 = UE...
    18 1. In oai.conf file, 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".
     18Primary 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.
     191. In oai.conf file, 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):
     20{{{
     21    ////////// MME parameters:
     22    mme_ip_address      = ( { ipv4       = "10.10.0.100";
     23                              ipv6       = "10:10:0::100";
     24                              active     = "no";
     25                              preference = "ipv4";
     26                            }
     27                          );
     28
     29    NETWORK_INTERFACES :
     30    {
     31        ENB_INTERFACE_NAME_FOR_S1_MME            = "eth1";
     32        ENB_IPV4_ADDRESS_FOR_S1_MME              = "10.10.9.1/24";
     33
     34        ENB_INTERFACE_NAME_FOR_S1U               = "eth1";
     35        ENB_IPV4_ADDRESS_FOR_S1U                 = "10.10.9.1/24";
     36        ENB_PORT_FOR_S1U                         = 2152; # Spec 2152
     37    };
     38}}}
    1939
    20401. Execute commands as
    2141
    22  || On the eNB node (node6-20) || On the UE node (node19-18)  ||    ||
    23  ||  lte-softmodem -Ooai.conf   || lte-softmodem -U -Ooai.conf || with MME support (in oai.conf, MME parameter should be: active = "yes") ||
    24  ||  lte-softmodem-nomme -Ooai.conf || lte-softmodem-nomme -U -Ooai.conf || with no MME support (in oai.conf, MME parameter should be: active = "no") ||
     42 || || On the eNB node (node9-1) || On the UE node (node6-20)  ||
     43 || w/o MME ||  lte-softmodem -Ooai.conf -V  || lte-softmodem -U -V -Ooai.conf ||
     44 || w MME ||  lte-softmodem-nomme -Ooai.conf || lte-softmodem-nomme -U -Ooai.conf ||
    2545
    2646
     
    2949[[CollapsibleStart(The output on both consoles should look something like this:)]]
    3050{{{
    31 root@node19-18:~# lte-softmodem -Ooai.conf
    32 linux; GNU C++ version 4.8.2; Boost_105400; UHD_003.008.000-release
    33 
    34 # /dev/cpu_dma_latency set to 0us
    35 num component carrier 1
    36 
    37 ----------------------------------------------------------------------
    38  ENB CONFIG FILE CONTENT LOADED (TBC):
    39 ----------------------------------------------------------------------
    40 ENB CONFIG for instance 0:
    41 
    42         eNB name:               eNB_Eurecom_LTEBox:
    43         eNB ID:                 3584:
    44         Cell type:              CELL_MACRO_ENB:
    45         TAC:                    1:
    46         MCC:                    208:
    47         MNC:                    92:
    48         eutra band for CC 0:            7:
    49         downlink freq for CC 0:         2680000000:
    50         uplink freq for CC 0:           -120000000:
    51 
    52         Cell ID for CC 0:       0:
    53         N_RB_DL for CC 0:       25:
    54         rach_numberOfRA_Preambles for CC 0:     15:
    55         rach_preamblesGroupAConfig for CC 0:    0:
    56         rach_powerRampingStep for CC 0: 2:
    57         rach_preambleInitialReceivedTargetPower for CC 0:       6:
    58         rach_preambleTransMax for CC 0: 6:
    59         rach_raResponseWindowSize for CC 0:     7:
    60         rach_macContentionResolutionTimer for CC 0:     5:
    61         rach_maxHARQ_Msg3Tx for CC 0:   4:
    62         bcch_modificationPeriodCoeff for CC 0:  0:
    63         pcch_defaultPagingCycle for CC 0:       2:
    64         pcch_nB for CC 0:       2:
    65         prach_root for CC 0:    0:
    66         prach_config_index for CC 0:    0:
    67         prach_high_speed for CC 0:      0:
    68         prach_zero_correlation for CC 0:        1:
    69         prach_freq_offset for CC 0:     2:
    70         pdsch_referenceSignalPower for CC 0:    -26:
    71         pdsch_p_b for CC 0:     0:
    72         pusch_n_SB for CC 0:    1:
    73         pusch_hoppingMode for CC 0:     0:
    74         pusch_hoppingOffset for CC 0:   0:
    75         pusch_enable64QAM for CC 0:     0:
    76         pusch_groupHoppingEnabled for CC 0:     1:
    77         pusch_groupAssignment for CC 0: 0:
    78         pusch_sequenceHoppingEnabled for CC 0:  0:
    79         pusch_nDMRS1 for CC 0:  1:
    80         pucch_delta_shift for CC 0:     0:
    81         pucch_nRB_CQI for CC 0: 1:
    82         pucch_nCS_AN for CC 0:  0:
    83         pucch_n1_AN for CC 0:   32:
    84         srs_enable for CC 0:    0:
    85         pusch_p0_Nominal for CC 0:      -108:
    86         pucch_p0_Nominal for CC 0:      -108:
    87         pusch_alpha for CC 0:   7:
    88         pucch_deltaF_Format1 for CC 0:  2:
    89         pucch_deltaF_Format1b for CC 0: 1:
    90         pucch_deltaF_Format2 for CC 0:  1:
    91         pucch_deltaF_Format2a for CC 0: 1:
    92         pucch_deltaF_Format2b for CC 0: 1:
    93         msg3_delta_Preamble for CC 0:   6:
    94         ul_CyclicPrefixLength for CC 0: 0:
    95         ue_TimersAndConstants_t300 for CC 0:    5:
    96         ue_TimersAndConstants_t301 for CC 0:    5:
    97         ue_TimersAndConstants_t310 for CC 0:    5:
    98         ue_TimersAndConstants_n310 for CC 0:    7:
    99         ue_TimersAndConstants_t311 for CC 0:    3:
    100         ue_TimersAndConstants_n311 for CC 0:    0:
    101 
    102         Global log level:       info
    103         HW log level:           info
    104         PHY log level:          info
    105         MAC log level:          info
    106         RLC log level:          info
    107         PDCP log level:         info
    108         RRC log level:          info
    109 
    110 --------------------------------------------------------
    111 Downlink frequency/ uplink offset of CC_id 0 set to 2680000000/-120000000
    112 log init done
    113 configuring for eNB
    114 reported resolution = 1 ns
    115 [PHY][I][INIT] OFDM size             : 512
    116 [PHY][I][INIT] FRAME_LENGTH_SAMPLES  : 153600
    117 [PHY][I][INIT] NUMBER_OF_SYMBOLS_PER_FRAME  : 140
    118 [PHY][I][INIT] Initializing FFT engine using 512 point fft (9, 0x342f6500)
    119 [PHY][I][INIT] twiddle_fft= 0x35087940, twiddle_ifft=0x3508f940, twiddle_fft_tim
    120 es4=0x35097940,twiddle_ifft_times4=0x3509f940
    121 [PHY][I][eNB 0] Initializing DL_FRAME_PARMS : N_RB_DL 25, PHICH Resource 1, PHIC
    122 H Duration 0
    123 [PHY][I]init eNB: Nid_cell 0
    124 [PHY][I]init eNB: frame_type 0,tdd_config 3
    125 [PHY][I]init eNB: number of ue max 16 number of enb max 7 number of harq pid max
    126  8
    127 HW: Configuring card 0
    128 -- Operating over USB 3.
    129 -- Initialize CODEC control...
    130 -- Initialize Radio control...
    131 -- Performing register loopback test... pass
    132 -- Performing register loopback test... pass
    133 -- Performing CODEC loopback test... pass
    134 -- Performing CODEC loopback test... pass
    135 -- Asking for clock rate 32.000000 MHz
    136 -- Actually got clock rate 32.000000 MHz
    137 -- Performing timer loopback test... pass
    138 -- Performing timer loopback test... pass
    139 -- Asking for clock rate 30.720000 MHz
    140 -- Actually got clock rate 30.720000 MHz
    141 -- Performing timer loopback test... pass
    142 -- Performing timer loopback test... pass
    143 -- Successfully tuned to 2680.000000 MHz
    144 --
    145 -- Successfully tuned to 2560.000000 MHz
    146 --
    147 
    148 Actual TX sample rate: 7.680000MSps...
    149 Actual RX sample rate: 7.680000MSps...
    150 Actual TX frequency: 2.680000GHz...
    151 Actual RX frequency: 2.560000GHz...
    152 Actual TX gain: 89.750000...
    153 Actual RX gain: 62.000000...
    154 Actual TX bandwidth: 56.000000M...
    155 Actual RX bandwidth: 56.000000M...
    156 Actual TX antenna: TX/RX...
    157 Actual RX antenna: RX2...
    158 Device timestamp: 0.000445...
    159 [MAC][I][l2_init] [MAIN] MAC_INIT_GLOBAL_PARAM IN...
    160 [MAC][I][mac_init_global_param] [MAIN] CALLING RLC_MODULE_INIT...
    161 [MAC][I][mac_init_global_param] [MAIN] RLC_MODULE_INIT OK, malloc16 for mac_rlc_
    162 xface...
    163 [MAC][I][mac_init_global_param] [MAIN] malloc16 OK, mac_rlc_xface @ 0x37870b60
    164 [MAC][I][mac_init_global_param] [MAIN] RLC interface setup and init
    165 [PDCP][I]PDCP layer has been initialized
    166 [MAC][I][mac_init_global_param] [MAIN] Init Global Param Done
    167 [MAC][I][l2_init] [MAIN] init eNB MAC functions 
    168 [MAC][I][l2_init] [MAIN] init UE MAC functions
    169 [MAC][I][l2_init] [MAIN] PHY Frame configuration
    170 [MAC][I][mac_top_init] [MAIN] Init function start:Nb_UE_INST=0
    171 [MAC][I][mac_top_init] [MAIN] Init function start:Nb_eNB_INST=1
    172 [MAC][I][mac_top_init] [MAIN] calling RRC
    173 [RRC][I][eNB] handover active state is 0
    174 [MAC][I][mac_top_init] [MAIN][INIT] Init function finished
    175 [MAC][I][mrbch_phy_sync_failure] [eNB 0] Frame 0: PHY Sync failure
    176 [SCTP][I][sctp_eNB_task] Starting SCTP layer
    177 [S1AP][I][s1ap_eNB_task] Starting S1AP layer
    178 [UDP][I][udp_enb_init] Initializing UDP task interface
    179 [UDP][I][udp_enb_init] Initializing UDP task interface: DONE
    180 [GTPV1U][I][gtpv1u_eNB_init] Initializing GTPU stack 0x12d8e60
    181 ITTI tasks created
    182 [OTG][I][init_all_otg] init done: init_all_otg
    183 [OTG][I][init_seeds] set taus seed to 0 done
    184 [OTG][I][init_predef_traffic] OTG_CONFIG BCBR, src = 0, dst = 0, dist type for s
    185 ize = 5
    186 [OTG][I][init_predef_traffic] OTG_CONFIG BCBR, src = 0, dst = 1, dist type for s
    187 ize = 5
    188 [OTG][I][init_predef_traffic] OTG_CONFIG BCBR, src = 1, dst = 0, dist type for s
    189 ize = 5
    190 [OTG][I][init_predef_traffic] OTG_CONFIG BCBR, src = 1, dst = 1, dist type for s
    191 ize = 5
    192 setup_eNB_buffers: frame_parms = 0x7f7a335d78e0
    193 rxdata[0] @ 0x378d7a00 (0x378d7a00)
    194 txdata[0] @ 0x37922a10
    195 Setting eNB buffer to all-RX
    196 [UDP][I][udp_eNB_create_socket] Initializing UDP for local address 10.10.19.18 w
    197 ith port 2152
    198 [UDP][I][udp_eNB_create_socket] Inserting new descriptor for task 11, sd 43
    199 [UDP][I][udp_eNB_create_socket] Initializing UDP for local address 10.10.19.18 w
    200 ith port 2152: DONE
    201 Waiting for eNB application to be ready
    202 [RRC][I][eNB 0] Received RRC_CONFIGURATION_REQy .   
    203 [S1AP][I][s1ap_eNB_handle_register_eNB] Registered new eNB[0] and macro eNB id 3
    204 584
    20551[RRC][I][eNB 0] Init (UE State = RRC_IDLE)...
    20652[RRC][I][eNB 0] Checking release
     
    21460[MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.enable64QAM = 0
    21561[MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.groupHoppingEnabled = 1
    216 [MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.groupAssignmentPUSCH =
    217 0
    218 [MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.sequenceHoppingEnabled
    219 = 0
     62[MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.groupAssignmentPUSCH = 0
     63[MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.sequenceHoppingEnabled = 0
    22064[MAC][I][rrc_mac_config_req] [CONFIG]pusch_config_common.cyclicShift  = 1
    22165[RRC][I][eNB 0] OPENAIR RRC IN....
    222 [SCTP][I][sctp_handle_new_association_req] Setsockopt SOL_SOCKET socket bound to
    223  : eth1
    224 [SCTP][I][sctp_handle_new_association_req] Converted ipv4 address 10.10.0.100 to
    225  network type
    226 [SCTP][I][sctp_handle_new_association_req] connectx assoc_id  2 in progress...,
    227 used 1 addresses
    228 [SCTP][I][sctp_handle_new_association_req] Inserted new descriptor for sd 44 in
    229 list, nb elements 1, assoc_id 2
    230 [SCTP][I][sctp_eNB_flush_sockets] Found data for descriptor 44
    231 [SCTP][I][sctp_eNB_read_from_socket] Received notification for sd 44, type 32769
     66[SCTP][I][sctp_handle_new_association_req] Setsockopt SOL_SOCKET socket bound to : eth1
     67[SCTP][I][sctp_handle_new_association_req] Converted ipv4 address 10.10.0.100 to network type
     68[SCTP][I][sctp_handle_new_association_req] connectx assoc_id  1 in progress..., used 1 addresses
     69[SCTP][I][sctp_handle_new_association_req] Inserted new descriptor for sd 56 in list, nb elements 1, assoc_id 1
     70[SCTP][I][sctp_eNB_flush_sockets] Found data for descriptor 56
     71[SCTP][I][sctp_eNB_read_from_socket] Received notification for sd 56, type 32769
    23272[SCTP][I][sctp_eNB_read_from_socket] Client association changed: 0
    23373[SCTP][I][sctp_get_peeraddresses] ----------------------
     
    23777[SCTP][I][sctp_get_sockinfo] ----------------------
    23878[SCTP][I][sctp_get_sockinfo] SCTP Status:
    239 [SCTP][I][sctp_get_sockinfo] assoc id .....: 2
    240 [SCTP][I][sctp_get_sockinfo] state ........: 4
     79[SCTP][I][sctp_get_sockinfo] assoc id .....: 1
     80[SCTP][I][sctp_get_sockinfo] state ........: 3
    24181[SCTP][I][sctp_get_sockinfo] instrms ......: 8
    24282[SCTP][I][sctp_get_sockinfo] outstrms .....: 64
     
    25292[SCTP][I][sctp_get_sockinfo]     mtu ......: 1500
    25393[SCTP][I][sctp_get_sockinfo] ----------------------
    254 [SCTP][I][sctp_eNB_read_from_socket] Comm up notified for sd 44, assigned assoc_
    255 id 2
     94[SCTP][I][sctp_eNB_read_from_socket] Comm up notified for sd 56, assigned assoc_id 1
     95[S1AP][I][s1ap_eNB_generate_s1_setup_request] 3584 -> 00e000
     96[SCTP][I][sctp_send_data] Successfully sent 53 bytes on stream 0 for assoc_id 1
     97[SCTP][I][sctp_eNB_flush_sockets] Found data for descriptor 56
     98[SCTP][I][sctp_eNB_read_from_socket] Received notification for sd 56, type 32777
     99[SCTP][I][sctp_eNB_flush_sockets] Found data for descriptor 56
     100[SCTP][I][sctp_eNB_read_from_socket] [1][56] Msg of length 27 received from port 36412, on stream 0, PPID 18
     101[S1AP][I][s1ap_decode_s1ap_s1setupresponseies] Decoding message S1ap_S1SetupResponseIEs (/root/trunk/targets/RT/USER/objs/openair-cn/S1AP/s1ap_decoder.c:3544)
     102[ENB_APP][I][eNB_app_task] [eNB 0] Received S1AP_REGISTER_ENB_CNF: associated MME 1
     103Waiting for eNB application to be ready
     104[HW][I][SCHED] eNB TX thread 0 started on CPU 5
     105[HW][I][SCHED][eNB] eNB RX thread 0 started on CPU 0
     106[HW][I][SCHED] eNB TX thread 1 started on CPU 0
     107[HW][I][SCHED][eNB] eNB RX thread 1 started on CPU 5
     108[HW][I][SCHED] eNB TX thread 2 started on CPU 2
     109[HW][I][SCHED][eNB] eNB RX thread 2 started on CPU 0
     110[HW][I][SCHED] eNB TX thread 3 started on CPU 5
     111[HW][I][SCHED][eNB] eNB RX thread 3 started on CPU 5
     112[HW][I][SCHED] eNB TX thread 4 started on CPU 4
     113[HW][I][SCHED][eNB] eNB RX thread 4 started on CPU 1
     114[HW][I][SCHED] eNB TX thread 5 started on CPU 4
     115[HW][I][SCHED][eNB] eNB RX thread 5 started on CPU 4
     116[HW][I][SCHED] eNB TX thread 6 started on CPU 0
     117[HW][I][SCHED][eNB] eNB RX thread 6 started on CPU 1
     118[HW][I][SCHED] eNB TX thread 7 started on CPU 1
     119[HW][I][SCHED][eNB] eNB RX thread 7 started on CPU 0
     120[HW][I][SCHED] eNB TX thread 8 started on CPU 1
     121[HW][I][SCHED][eNB] eNB RX thread 8 started on CPU 0
     122[HW][I][SCHED] eNB TX thread 9 started on CPU 0
     123[HW][I][SCHED][eNB] eNB RX thread 9 started on CPU 1
     124Creating main eNB_thread
     125[SCHED][eNB] Started eNB main thread on CPU 4
     126eNB_thread: mlockall in ...
     127eNB_thread: mlockall out ...
     128waiting for sync (eNB_thread)
     129TYPE <CTRL-C> TO TERMINATE
     130Entering ITTI signals handler
     131
    256132}}}
    257133[[CollapsibleEnd]]