Chapter 6 - Configure OAI

In the following section, we are going to show you how to configure the ENB, EPC, and HSS. We are using the below network topology to demonstrate how to configure OAI. Notice that the HSS in the below figure is outside the core network. In this tutorial, we build HSS along with EPC and you do not have to setup the interface between HSS and EPC.

Configure ENB

The available configurations are under {oai_dir}/targets/PROJECTS/GENERIC-LTE-EPC/CONF/

We use “enb.band7.tm1.usrpb210.conf” as example. (FDD Band 7)

  1. Modified the MNC configuration
    tracking_area_code  =  "1";
    mobile_country_code =  "466"; 
    mobile_network_code =  "68";
    
    466 for Taiwan and 68 for our service (example)
  2. Modfied your network configuration

    ////////// MME parameters:
    mme_ip_address      = ( { ipv4       = "192.168.1.2";
                           ipv6       = "192:168:30::17"; ## leave default for no ipv6
    ……
     NETWORK_INTERFACES : {
         ENB_INTERFACE_NAME_FOR_S1_MME            = "eth0";
         ENB_IPV4_ADDRESS_FOR_S1_MME              = "192.168.1.3/24";
    
         ENB_INTERFACE_NAME_FOR_S1U               = "eth0";
         ENB_IPV4_ADDRESS_FOR_S1U                 = "192.168.1.3/24";
         ENB_PORT_FOR_S1U                         = 2152; # Spec 2152
     };
    

Configure EPC

The EPC configured file is under /usr/local/etc/oai/epc.conf Make sure the interfaces of MME and S-GW are connected with ENB.

  1. Modified MNC value in GUMMEI
    TAI_LIST = ( 
              {MCC="466" ; MNC="68";  TAC = "1"; }    # YOUR PLMN CONFIG HERE
         );
    
  2. Add network configuration in MME (MME is responsible for connecting ENB via S1)
    NETWORK_INTERFACES : 
     {
         MME_INTERFACE_NAME_FOR_S1_MME         = "eth0";                
         MME_IPV4_ADDRESS_FOR_S1_MME           = "192.168.1.2/24";           
         MME_INTERFACE_NAME_FOR_S11_MME        = "none";
         MME_IPV4_ADDRESS_FOR_S11_MME          = "0.0.0.0/24";
     };
    
  3. Add network configuration in S-GW (SGW is responsible for data transmission with ENB) In this case we use the same interface
    SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP    = "eth0";         
    SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP      = "192.168.1.2/24";         
    SGW_IPV4_PORT_FOR_S1U_S12_S4_UP         = 2152;
    
  4. Add public IP in P-GW
    PGW_INTERFACE_NAME_FOR_SGI     = "eth2";  
    PGW_IPV4_ADDRESS_FOR_SGI        = "140.114.XX.XX/24"; #Your Public IP
    
  5. Specify the DNS server in P-GW
    DEFAULT_DNS_IPV4_ADDRESS     = "8.8.8.8";  # your DNS address 
    DEFAULT_DNS_SEC_IPV4_ADDRESS = "8.8.4.4";
    

Configure HSS

You need to add user date and MME information in the MySQL database . Login into phpmyadmin via browser.(optional) (Default: http://127.0.0.1/phpmyadmin)

  • Table : APN

APN can be replaced by yourself.

  • Table : mmeidentity

In this table, you need to configure the same FQDN(hostname.realm) of your EPC machine In this example, mmehost is cran-cn.oai.nmsl and mmerealm is oai.nmsl

SIM card configuration (For commercial UE) :

If you are using commercial equipment for testing, you need to setup the following configuration. If you are using OAI UE, you can skip the following instructions. Following setup is depending on our SIM card:

ICCID: 89886500000745809013
IMSI: 466680000000001
KI: 8BAF473F2F8FD09487CCCBD7097C6862 
OP: 11111111111111111111111111111111
  • Table : PGW

Add new entry with your P-GW interface setting (IP address)

  • PDN Table:

In this table, you need to configure the users_imsi , apn , pgw_id. “APN” should be matched with the one in apn table. Pgw_id should be consistent with your pgw set up (pgw table). Other values can be remained the same.

  • Users Table:

You need to configure the imsi , mmeidentity_idmmeidentity, key (ki). Mmeidentity_idmmeidentity shoud be match your configuration on mmeidentity table. Other values can be remained the same.

  • Using UNHEX founction while inseting the key value*