How to run Oaisim with virtual MME in same machine

Source: Internet
Author: User

How to run Oaisim with virtual MME in same machine (example_oaisim_enb_ue_mme_virtual)

Since I don ' t have much knowledge on EPC and MME, just follow the example file (Example_oaisim_enb_ue_mme_virtual.txt) to Make a test? The example file has such a configuration,according to Lionel gauthier.this example shows what to generate and launch ENB, 1 UE (NAS still not virtualized in UE) in virtualised mode, MME_GW, HSS executables on the same host?

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

1. Configuration
    • Freediameter 1.2.0 (not 1.1.5, 1.1.6,...) have to is installed and patched (done by Check_install_oai_software () calling in Stall_freediameter_from_source () in script build_helper)

    • Config File:
/etc/hosts must contain the 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 ubuntu.openair4G.eur Ubuntu

If you run "Build_oai–i" as it was, and input the "Ubuntu" as the name (I don ' t know who's?), you can edit the/etc/host s file like me.

2. Building HSS2.1 You can build HSS like this, some key words has to be changed.

[email protected]: ~/simulator/openair4g_trunk/trunk/cmake_targets tools/build_hss-c--connect-to-mme Ubuntu.openair4g.eur-t-T--realm openair4g.eur

2.2 Then the Configure the HSS:

In oai_db (easier for newbies to access HSS database through Http://127.0.0.1/phpmyadmin)

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

(Idmmeidentity, Mmehost, Mmerealm)

In table PDN, enter the record allowing a IMSI to connect to a APN

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

Some errors, when you type http://127.0.0.1/phpmyadmin, 404!!!!! (http://blog.csdn.net/junning_wu/article/details/46490767),

Then you should run sudo ln-s/usr/share/phpmyadmin//var/www/html/ and when you login the phpMyAdmin,

(pic ....)

Then you can config your own MME,

(pic ....)

and add your IMEI & SIM card

(pic ....)

Also, you have the Configure file hss.conf like this:

(pic ....)

Or you may have some errors.

2.3 Run HSS

[email protected]: ~/simulator/openair4g_trunk/trunk/cmake_targets sudo tools/run_hss-g

Now you can see in the terminal, the "state_closed". It is because the MME was still not running.

(pic ....)

3. Building the mme-gw3.1 Build MME

[email protected]: ~/simulator/openair4g_trunk/trunk/cmake_targets/build_epc-c-d-t-T--s6a-server

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

3.2 Configure MME

You can follow the example file, Since my knowledge on EPC is poor, I just leave it alone. (later I has some problems about Tun2 interface and ping)

Configuring the MME-GW:

You can configure in file openair4g/trunk/cmake_targets/tools/epc.local.enb.conf.in the following parameters:

MCC/MNC of your network

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

Integrity algorithms, ciphering algorithms

Please note this DNS addresses is hardcoded in source code (TODO in list).

3.3 Run MME

Running the MME-GW:

[email protected]: ~/simulator/openair4g_trunk/trunk/cmake_targets sudo./run_epc-l-g-k

At first, you still has the "state_closed",.

(pic ....)

Later, when HSS and MME is attached, you'll see the OPEN state.

(pic ....)

4. ENB and UE4.1 Build ENB

Just Run the Bash file, if you want to initiate SCOPE, you can do it as you want.

[email protected]: ~/simulator/openair4g_trunk/trunk/cmake_targets/build_oai--oaisim

4.2 Config ENB

Configure file, enb.band7.generic.oaisim.local_mme.conf, or you can leave it as it is.

Maybe I should the MME parameters, but like I already said, my knowledge are so poor. ~~~~

(pic ....)

4.3 Run ENB

Now??? Suppose you have already run the HSS and MME, and they is all waiting the ENB & UE. You can run ENB.

[email protected]: ~/simulator/openair4g_trunk/trunk/cmake_targets sudo tools/run_enb_ue_virt_s1-m/tmp-k/ Tmp/enb_ue_virt_s1_itti.log

If you are initiated the soft scope, you'll see some transactions between the ENB and UE.

(pic ....)

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

And some message echange between MME and HSS.

(pic ....)

And if you run Ifcong with a new terminal, you'll find there has a tun2 & Lo interface,

(pic ....)

Can ping tun2 (though I don t know what it mean????)

END

This page is just a begining, Next I'll learn some materials about EPC & MME, and I still expect someone Bout the topology about the default configuration files. I think this would help lots the people like me.


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

How to run Oaisim with virtual MME in same machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.