D~DIDI~DIDIDI!!!!

0%

OAI

一些简写

FDD Frequency Division Duplexing 频分双工
TDD Time Division Duplexing 时分双工
SISO Single-input single-output 单一输入单一输出
MIMO Multi-input Multi-output 多输入多输出
PDSCH Physical Downlink Shared Channel 物理下行共享信道
PUSCH Physical Uplink Shared Channel 物理上行共享信道
PCFICH Physical Control Format Indicator Channel 物理控制格式指示信道
PDCCH Physical Downlink Control Channel 物理下行控制信道
DCI Downlink Control Indicator 下行控制指示灯
NAS 非接入层

OpenAirInterface(OAI),又称OpenAirInterface5g,是欧洲EURECOM组织发起并维护的一个开源SDR LTE项目。

OAI根据3GPP的标准,完全实现了LTE协议的核心网(EPC),基站(eNB)和用户(UE)三部分,目前已经支持Release 10的功能,并且在持续更新。

官方网站:OpenAirInterface – 5G software alliance for democratising wireless innovation

官方git库:https://gitlab.eurecom.fr/oai/openairinterface5g

( US 2 0 )  Front  eNodeB  【 ho  ethl  DB  一 n 【 n21

EPC  eNB  51 -A p  scTP  Ethernet  st-u  GTPv1.U  Diame ter  scTP  Ethernet  ss,'S8  GTPv2-C  UDP  Ethernet  APP  UDP/TCP  App  UDP/TCP  Ethernet

eNB

img

OAI安装运行步骤(snap简单安装方式,all-in-one)

SI-MME  MME  127.0.1.10/24  S6a  (hostname)  HSS  127.0.1.30/24  LTE  eNodeB  127.0.1.30/24  127-0-1.10/24 •  SI-U  127.o.1i.1/8  Sli  127.0.11.2/8 OAI SPGW  Serving  PDN  Gateway Gateway  : (iface)  SGi  Internet

EPC部分

需要修改hosts并重新安装证书

证书生成脚本需要epc script文件夹下,对应证书生成到配置文件夹下

./check_hss_s6a_certificate /var/snap/oai-cn/28/ hss.openair4G.eur

./check_mme_s6a_certificate /var/snap/oai-cn/28/ openair-cn.openair4G.eur

来自 https://www.shangmayuan.com/a/dcc39fb9a24645e7a4192d3c.html

需要安装好lamp环境以及phpmyadmin

  1. 安装OAI-CN

# Install OAI-CN as a snap:
sudo snap install oai-cn –channel=edge –devmode

# Check the installation:
sudo oai-cn.help

  1. HSS配置与启动
    1. 初始化HSS : sudo oai-cn.hss-init
    2. 获取配置文件位置 : sudo oai-cn.hss-conf-get

-<130: >- sudo oai-cn.hss-conf-get  /var/snap/oai - cn/28/hss. conf

  1. 编辑配置文件

vim /var/snap/oai-cn/28/hss_fd.conf

Identity = “hss.openair4G.eur”; #修改识别名称

*sudo vim /var/snap/oai-cn/28/hss.conf #这里主要修改mysql*配置

HSS .  Y  man  MYSQL server -

  1. sudo oai-cn.hss-init #初始化数据库,会根据hss.conf生产对应的数据库
  2. sudo oai-cn.hss 运行hss
  3. MME配置与启动
    1. 初始化MME : sudo oai-cn.mme-init
    2. 加载mme配置文件路径 : sudo oai-cn.mme-conf-get

-'workspace/hj c/test > sudo oai-cn.mme-conf-get  /var/snap/oai - cn/28/mme . conf

  1. 修改配置文件

vim /var/snap/oai-cn/28/mme_fd.conf

Uncomment if the framework cannot resolv it.  Identity =

ConnectPeer= “hss.openair4G.eur” { ConnectTo = “127.0.0.1”; No_SCTP ; No_IPv6; Prefer_TCP; No_TLS; port = 3868; realm = “openair4G.eur”;};

sudo vim /var/snap/oai-cn/28/mme.conf #这里需要修改一些网络配置,还有hostname,

这里需要注意的是,NETWORK_INTERFACES中

S1: eNB & EPC

S11: S-GW & MME

S6A  S6A CONF  HSS  HOSTNAME  -

计算机生成了可选文字: NETWORKINTERFACES #MMEbindedinterfaceforS1.C0rS1.MMEcommunication (Sl MMEINTERFACENAMEFORS1MME MMEIPV4ADDRESSFORS1MME

  1. 启动 sudo oai-cn.mme
  2. SPGW
    1. 初始化: sudo oai-cn.spgw-init
    2. 查找配置文件

skygo-sdr  — » sudo oai-cn. spgw-conf-get  /var/snap/oai- cn/28/ spgw. conf

  1. 修改配置 vim /var/snap/oai-cn/28/spgw.conf
    • SGW_IPV4_ADDRESS_FOR_S11 to 127.0.11.2/8
    • SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP to 127.0.1.10/24
    • PGW_INTERFACE_NAME_FOR_SGI: the interface to the Internet
    • DEFAULT_DNS_IPV4_ADDRESS: your DNS

s-GW :  NETWORK INTERFACES :  # S-GW binded interface for Sll communication (GTPV2-C) ,  SGW  SGW REMOTE CONTROLLER  SGW REMOTE CONTROLLER  if none selecte  SGW INTERFACE NAME FOR Sll  SGW IPV4 ADDRÉSS FOR sil  =

NETWORK  INTERFACES .  # P-GW binded interface for S5 or S8 communication, not implem  PGW  PGW

# DNS address communicated to UEs  DEFAULT DNS IPV4 ADDRESS  =

  1. 运行: sudo oai-cn.spgw

eNB部分

  1. 安装OAI-RAN

sudo snap install oai-ran –channel=edge –devmode

Sudo oai-ran.help

  1. 查找需要的配置文件

sudo oai-ran. enb-conf-get  /var/snap/oai - ran/39/enb. band7. tml. 50PRB. us rpb210. conf

  1. 编辑配置,需要根据SDR设备进行选择
    • Edit plmn_list
    • Edit mme_ip_address
    • Edit NETWORK_INTERFACES
    • Lower max_rxgain
    • Set parallel_config to PARALLEL_SINGLE_THREAD
    • Disable FLEXRAN_ENABLED (no)
    • Possibly lower downlink_frequency
    • Recommended: N_RB_DL to 25

tracking area code  plmn list  = ( { mcc  tr s preference  = 208; mnc = 95;

////////// WE parameters:  mme ip address  = ( { ipv4  =

NETWORK  INTERFACES :  ENB  INTERFACE NAME FOR Sl WE  ENB  IPV4 ADDRESS FOR Sl WE  ENB  INTERFACE NAME FOR SIU  ADDRÉSS  FOR SIU  ENB  IPV4  ENB  PORT  FOR SIU  ENB  IPV4 ADDRESS  FOR X2C  ENB  PORT  FOR X2C  1

RUS = (  local rf  nb rx  att tx  att rx  bands  -

HREAD STRUCT = (  #three config for level Of parallelism

NETWORK CONTROLLER :  FLEXRAN  FLEXRAN  FLEXRAN  FLEXRAN  FLEXRAN  FLEXRAN  ENABLED  —

  1. 运行

sudo oai-ran.enb

出现问题,EPC部分能够正常运行,eNB出现错误

出现问题,EPC部分能够正常运行,eNB出现错误

ENB使用编译安装

clone官方项目编译

Cd进 /home/skygo/workspace/hjc/openairinterface5g/cmake_targets/lte_build_oai/build

sudo -E ./lte-softmodem -O ~/workspace/hjc/openairinterface5g/targets/PROJECTS/GENERIC-LTE-EPC/CONF

/enb.band7.tm1.50PRB.usrpb210.conf -d

eNB侧运行

sudo ./targets/bin/lte-softmodem-nos1.Rel8 -O ./targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf -d 2>&1

  同样的,大家需要理解每个参数的实际含义,根据自己的需求更改。同时注意看enb.band7.tm1.usrpb210.conf配置文件里面的配置。eNB需要和UE配置相同才能成功连上。当然,这种模式下你不需要在配置文件里面配置各种IP了。

UE侧运行

sudo ./targets/bin/lte-softmodem-nos1.Rel8-U -g 5 -C 2660000000 –ue-txgain 85 –ue-rxgain 90 –ue-scan-carrier -r25 -d 2>&1