How to run oaisim with virtual MME on same machine

How to run oaisim with virtual MME on same machine

(example_oaisim_enb_ue_mme_virtual)

Since I don’t have much knowledge about EPC and MME, just follow the example file(example_oaisim_enb_ue_mme_virtual.txt)to make a test?The example file has such an configuration,according to Lionel Gauthier.This example shows how 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 will put my own debug logs and some suggestions about the simulation,

1. Configuration

  • freediameter 1.2.0 (not 1.1.5, 1.1.6,...) has to be installed and patched (done by check_install_oai_software() calling install_freediameter_from_source() in script build_helper)
  • 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 ubuntu.openair4G.eur ubuntu

If you run “build_oai –I” as it is, and input the “ubuntu” as the name( I don’t know who’s ?) , you can edit the /etc/hosts file like me.

2. Building HSS

2.1 You can build HSS like this, some key words have 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 you have to 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 an IMSI to connect to an APN

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

You may ( or may not) have 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/ ,when you login the phpmyadmin,

(pic....)

then you can config your own MME,

(pic....)

and add your IMEI & SIM card

(pic....)

Also, you have to change 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 is still not running.

(pic....)

3. Building the MME-GW

3.1 Build MME

[email protected]:~/Simulator/OpenAir4G_trunk/trunk/cmake_targets
./build_epc -c -d -t -T --s6a-server

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

3.2 Configure MME

You can follow the example file, Since my knowledge about EPC is poor, I just leave it alone.( later I have 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 that DNS addresses are 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 have the “STATE_CLOSED”,.

(pic....)

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

(pic....)

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.

[email protected]:~/Simulator/OpenAir4G_trunk/trunk/cmake_targets
./build_oai --oaisim

4.2 Config eNB

Please change the configure file, enb.band7.generic.oaisim.local_mme.conf, or you can leave it as it is.

Maybe I should change the MME parameters, But like I already said, my knowledge is so poor. ~~~~

(pic....)

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.

[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 have initiated the soft scope, you will see some transactions between the eNB and UE..

(pic....)

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

And some message echange between MME and HSS.

(pic....)

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

(pic....)

You can ping tun2(though I don’t know what it mean????)

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.

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-26 16:03:35

How to run oaisim with virtual MME on same machine的相关文章

Understanding and Managing SMTP Virtual Servers

Simple Mail Transfer Protocol (SMTP) Service Overview The Simple Mail Transfer Protocol (SMTP) service, a primary service included as part of IIS, performs the key functions and has the characteristics listed below: SMTP can be used to forward mail f

C#继承中abstract、virtual、override和new

abstract 详细参考:https://msdn.microsoft.com/zh-cn/library/sf985hc5.aspx abstract 修饰符指示所修饰的内容缺少实现或未完全实现. abstract 修饰符可用于类.方法.属性.索引器和事件. 在类声明中使用 abstract 修饰符以指示某个类只能是其他类的基类. 标记为抽象或包含在抽象类中的成员必须通过从抽象类派生的类来实现. 抽象类具有以下特性: - 抽象类不能实例化. - 抽象类可以包含抽象方法和抽象访问器. - 不能

virtual box安装oracle_rac_10g

1           搭建环境 1.1      虚拟机操作系统 主机名 操作系统 处理器 内存 rac1 Enterprise-R5-U5-Server-x86_64-dvd(64 位) 1 1024 MB rac2 Enterprise-R5-U5-Server-x86_64-dvd(64 位) 1 1024 MB 1.2      磁盘规划 操作系统上的磁盘 虚拟机磁盘 大小(G) 描述 localdisk.vmdk /dev/sda 20 系统区 disk1.vmdk /dev/sdb

How to Run Your Own Git Server

参考: https://www.linux.com/learn/how-run-your-own-git-server Install Git on your server In this tutorial we are considering a use-case where we have a remote server and a local server and we will work between these machines. For the sake of simplicity

轻易解决VMware 虚拟机中被提示“请不要在虚拟机中运行此程序“

决 VMware 虚拟机 中被提示 "请不要在虚拟机中运行此程序"或者"Themida Sorry, this application cannot run under a Virtual Machine"方法 自己发现问题,解决问题后,觉得应该分享给大家.用记事本打开 VMX 文件 类似 Windows XP Professional.vmx ,在文本末尾加入一行 monitor_control.restrict_backdoor = TRUE 保存文件 现在启动

阿里云搭建VPN

目标: 主机A有外网权限.内网权限: 主机B只有内网权限. 希望在主机A上能搭VPN,作为跳板机器,在本地主机能够直接访问主机B. 尝试1: 在主机A上搭pptpd. 尝试了两天,搜索无数,无论如何访问不了主机B.怀疑阿里云做了限制,检查Mac和IP是否相符 尝试2: 在主机B上搭建OpenVPN.搞定! 参见:http://docs.linuxtone.org/ebooks/VPN/openvpn%E9%9B%86%E5%90%88.pdf 写的相当详细 在Mac上配客户端的过程: 1.安装T

lighttpd与fastcgi+cgilua

安装 lighttpd安装 http://www.lighttpd.net/ http://redmine.lighttpd.net/projects/lighttpd/wiki 1. 先执行 ./configure --prefix=/usr/local/lighttpd 缺少pcre库处理方法: http://stackoverflow.com/questions/2263404/what-package-i-should-install-for-pcre-devel apt-cache s

initramfs对应的init脚本文件,解压后可见

#!/bin/sh [ -d /dev ] || mkdir -m 0755 /dev [ -d /root ] || mkdir -m 0700 /root [ -d /sys ] || mkdir /sys [ -d /proc ] || mkdir /proc [ -d /tmp ] || mkdir /tmp mkdir -p /var/lock mount -t sysfs -o nodev,noexec,nosuid sysfs /sys mount -t proc -o nodev

设计模式学习——工厂模式(Factory Pattern)

1.有一个工厂,专门生产不同品牌的汽车.当有人需要从此工厂提货的时候,只需要告诉他,要什么品牌的,就可以了,并不关心这些车是怎么生产出来的. 2.以上方式,如果增加品牌的时候,也要修改工厂,有点麻烦.于是,把工厂也抽象了. 1的类图与实现: 首先,是通用的车 1 /// 2 /// @file Car.h 3 /// @author marrs([email protected]) 4 /// @date 2017-08-12 20:10:31 5 /// 6 7 #ifndef __CAR_H