Tags:
create new tag
, view all tags

How to run oaisim with virtual MME on same machine

Please use the DOCS/EPC_User_Guide.pdf (from openair-cn repository, https://gitlab.eurecom.fr/oai/openair-cn.git) for OAI EPC Documentation.

So I will put my own debug logs and some suggestions about the simulation,

We have recently moved from SVN to Gitlab, please use the updated instructions from the link below for downloading the latest code.

The download instructions for the repository are located here, https://twiki.eurecom.fr/twiki/bin/view/OpenAirInterface/GetSources

The build instructions for both the repositories are located here , https://twiki.eurecom.fr/twiki/bin/view/OpenAirInterface/AutoBuild

1. Configuration

  • Config File:
/etc/hosts must contain the fqdn of the MME and HSS (same since both run on the same host):

(assuming the realm is openair4G.eur)

127.0.0.1 localhost

127.0.1.1 calisson.openair4G.eur calisson

2. Building HSS

2.1 configure the HSS:

The HSS database is automatically installed if openair-CN build instructions are followed, https://twiki.eurecom.fr/twiki/bin/view/OpenAirInterface/AutoBuild

In oai_db (easier for newbies to access HSS database through http://127.0.0.1/phpmyadmin) Login: root, Password: Linux

In table mmeidentity, enter the record corresponding to your MME:

(idmmeidentity, mmehost, mmerealm)

In table pdn, enter the record allowing an IMSI to connect to an APN

In table users, enter the record corresponding to your USIM card.

phpmyadmin_main_page.png

then you can config your own MME,

phpmyadmin_mme_identity.png

and add your IMEI & SIM card. Make sure mmeidentity in ALL sim cards is 2 (which is what corresponds to mmeidentity of calisson.openair4G.eur)

phpmyadmin_users.png

Also, you have to change the configure file hss.conf like this:

004.jpg

Or you may have some errors.

2.2 You can build HSS like this,

wujn@ubuntu:~/Simulator/openair-cn/cmake_targets tools/build_hss -c -l

2.3 Run HSS

wujn@ubuntu:~/Simulator/openair-cn/SCRIPTS/run_hss -g

Now you can see in the terminal, the “STATE_CLOSED”. It is because the MME is still not running.

005.jpg

3. Building the MME-GW

3.1 Configure MME

Configuring the MME-GW:

You can configure in file openair-cn/BUILD/EPC/epc.local.enb.conf.in the following parameters:

See openair-cn/DOCS/EPC_User_Guide.pdf for EPC Documentation

MCC/MNC of your network


TAI_LIST = (
{MCC="208" ; MNC="10"; TAC = "1"; } # YOUR PLMN CONFIG HERE
);

SGI interface (outgoing interface of the S/P-GW)

NETWORK_INTERFACES :

{

PGW_INTERFACE_NAME_FOR_S5_S8 = "none"; # DO NOT CHANGE

PGW_IPV4_ADDRESS_FOR_S5_S8 = "0.0.0.0/24"; # DO NOT CHANGE


PGW_INTERFACE_NAME_FOR_SGI = "eth1"; # YOUR NETWORK CONFIG HERE (ETHERNET INTERFACE CONNECTED TO INTERNET)

PGW_IPV4_ADDRESS_FOR_SGI = "192.168.12.82/24"; # YOUR NETWORK CONFIG HERE (IP ADDRESS OF CALISSON)

PGW_MASQUERADE_SGI = "yes"; # YOUR NETWORK CONFIG HERE

};

Integrity algorithms, Ciphering algorithms

Please note that DNS addresses are hardcoded in source code (TODO in list).

The example config file of working setup is https://twiki.eurecom.fr/twiki/pub/OpenAirInterface/HowtorunoaisimwithvirtualMMEonsamemachine/epc.local.enb.conf.in

3.2 Build MME

wujn@ubuntu:~/openair-cn/SCRIPTS/build_epc -c -l

If you have installed all the required libs, there will have no errors.

3.3 Run MME

Running the MME-GW:

wujn@ubuntu:~/openair-cn/SCRIPTS/run_epc -l -g

At first, you still have the “STATE_CLOSED”,.

006.jpg

Later, when HSS and MME are attached, you will see OPEN state.

007.jpg

4. eNB and UE

4.1 Build eNB

Just run the bash file, if you want to initiate SCOPE, you can do it as you want.

wujn@ubuntu:~/openairinterface5g/cmake_targets/build_oai --oaisim

wujn@ubuntu:~/openairinterface5g/cmake_targets/build_oai --UE

4.2 Config eNB

Please change the following parameters in configuration file, enb.band7.generic.oaisim.local_mme.conf,

You only need to modify the following parameters to match the EPC configuration above.

tracking_area_code = "1";

mobile_country_code = "208";

mobile_network_code = "10";

The example config file of working setup is https://twiki.eurecom.fr/twiki/pub/OpenAirInterface/HowtorunoaisimwithvirtualMMEonsamemachine/enb.band7.generic.oaisim.local_mme.conf

4.3 Run eNB

Now´╝Œsuppose you have already run the HSS and MME, and They are all waiting the eNB & UE. You can run eNB like this.

wujn@ubuntu:~/openairinterface5g/cmake_targets/tools sudo -E ./run_enb_ue_virt_s1

if you have initiated the soft scope, you will see some transactions between the eNB and UE..

009.jpg

And in the EPC terminal , you can find 1 UE has attached.

010.jpg

And some message echange between MME and HSS.

011.jpg

And if you run ifcong in a new terminal , you will find there has a tun2 & lo interface,

012.jpg

The example working output from oaisim if eNB/UE is successfully connected is https://twiki.eurecom.fr/twiki/pub/OpenAirInterface/HowtorunoaisimwithvirtualMMEonsamemachine/oaisim_with_s1_working.log.

END

This page is just a begining , Next I will learn some materials about EPC & MME, and I still expect someone may help about the Topology about the default configuration files. I think THIS will help lots of people LIKE me.

If this page needs improvement, please contact openair_tech (AT) eurecom (DOT) fr requesting for access to twiki so you can update this web page.

-- JunningWu - 29 Jun 2015

Topic attachments
I Attachment Action Size Date Who Comment
JPEGjpg 001.jpg manage 141.5 K 08 Oct 2015 - 08:05 JunningWu  
JPEGjpg 002.jpg manage 155.8 K 08 Oct 2015 - 08:10 JunningWu  
JPEGjpg 003.jpg manage 192.3 K 08 Oct 2015 - 08:10 JunningWu  
JPEGjpg 004.jpg manage 14.1 K 08 Oct 2015 - 08:10 JunningWu  
JPEGjpg 005.jpg manage 204.4 K 08 Oct 2015 - 08:10 JunningWu  
JPEGjpg 006.jpg manage 146.2 K 08 Oct 2015 - 08:10 JunningWu  
JPEGjpg 007.jpg manage 149.0 K 08 Oct 2015 - 08:11 JunningWu  
JPEGjpg 008.jpg manage 37.8 K 08 Oct 2015 - 08:11 JunningWu  
JPEGjpg 009.jpg manage 317.3 K 08 Oct 2015 - 08:11 JunningWu  
JPEGjpg 010.jpg manage 315.7 K 08 Oct 2015 - 08:11 JunningWu  
JPEGjpg 011.jpg manage 404.3 K 08 Oct 2015 - 08:11 JunningWu  
JPEGjpg 012.jpg manage 316.6 K 08 Oct 2015 - 08:11 JunningWu  
Unknown file formatconf enb.band7.generic.oaisim.local_mme.conf manage 7.1 K 18 Nov 2015 - 12:18 RohitGupta eNB configuration file for oasim running on same machine as eNB
Unknown file formatin epc.local.enb.conf.in manage 5.8 K 18 Nov 2015 - 12:19 RohitGupta EPC configuration file to run EPC/HSS/oaisim on same computer
Unknown file formatlog oaisim_with_s1_working.log manage 87.5 K 18 Nov 2015 - 12:19 RohitGupta oaisim log output if eNB/UE is attached successfully
PNGpng phpmyadmin_main_page.png manage 249.3 K 18 Nov 2015 - 12:39 RohitGupta  
PNGpng phpmyadmin_mme_identity.png manage 226.3 K 18 Nov 2015 - 12:29 RohitGupta  
PNGpng phpmyadmin_users.png manage 615.7 K 18 Nov 2015 - 12:29 RohitGupta  
Unknown file formatdocx run_EPCHSSeNB_v1.docx manage 3235.8 K 07 Oct 2015 - 12:58 RohitGupta Tutorial for running oaisim with EPC
Topic revision: r8 - 18 Nov 2015 - RohitGupta
 
Copyright 2004-2010 Institut Eurecom & all contributing authors.