Skip to content
Snippets Groups Projects
Commit 913aff22 authored by Your Name's avatar Your Name
Browse files
parents bff3a146 c58b554d
No related branches found
No related tags found
No related merge requests found
openairinterface5g/openairinterface-conf/fig/oai_core.png

54.6 KiB

...@@ -8,100 +8,79 @@ ...@@ -8,100 +8,79 @@
2. RAM: 8 GB 2. RAM: 8 GB
## 5G Core Installation ## 5G Core Installation
### The following steps can be executed by the file oai_5g_core_install.sh ### General Instruction
1. First step is to download docker, docker-compose, git and network tools. Important: The following steps can be executed by the file oai_5g_core_install.sh
2. Following you need to download wireshark In this task you will install and configure the core in its basic architecture according to the image below:
A. sudo add-apt-repository ppa:wireshark-dev/stable
B. sudo apt update ![ALT](/openairinterface5g/openairinterface-conf/fig/oai_core.png)
C. sudo apt install wireshark
3. Git clone the 5GC Step 1: Install dependencies
A. git clone --branch v1.4.0 https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git sudo apt-get install ca-certificates
B. Configuration of the packet forwarding sudo apt-get install curl
- sudo sysctl net.ipv4.conf.all.forwarding=1 sudo apt-get install gnupg
- sudo iptables -P FORWARD ACCEPT sudo apt-get install lsb-release
4. Pulling the images from Docker Hub
A. docker pull oaisoftwarealliance/oai-amf:v1.4.0 Step 2: Enable packet forwarding
B. docker pull oaisoftwarealliance/oai-nrf:v1.4.0 sudo sysctl net.ipv4.conf.all.forwarding=1
C. docker pull oaisoftwarealliance/oai-smf:v1.4.0 sudo iptables -P FORWARD ACCEPT
D. docker pull oaisoftwarealliance/oai-spgwu-tiny:v1.4.0
E. docker pull oaisoftwarealliance/oai-udr:v1.4.0 Step 3: Install docker and docker-compose
F. docker pull oaisoftwarealliance/oai-udm:v1.4.0 sudo rm /etc/apt/sources.list.d/docker.list*
G. docker pull oaisoftwarealliance/oai-ausf:v1.4.0 sudo mkdir -p /etc/apt/keyrings
H. docker pull oaisoftwarealliance/oai-upf-vpp:v1.4.0 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
I. docker pull oaisoftwarealliance/oai-nssf:v1.4.0 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
J. docker pull oaisoftwarealliance/trf-gen-cn5g:latest sudo chmod a+r /etc/apt/keyrings/docker.gpg
5. Tag docker images sudo apt-get update
A. docker image tag oaisoftwarealliance/oai-amf:v1.4.0 oai-amf:v1.4.0 sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
B. docker image tag oaisoftwarealliance/oai-nrf:v1.4.0 oai-nrf:v1.4.0 sudo curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
C. docker image tag oaisoftwarealliance/oai-smf:v1.4.0 oai-smf:v1.4.0 sudo chmod +x /usr/local/bin/docker-compose
D. docker image tag oaisoftwarealliance/oai-spgwu-tiny:v1.4.0 oai-spgwu-tiny:v1.4.0
E. docker image tag oaisoftwarealliance/oai-udr:v1.4.0 oai-udr:v1.4.0 Step 4: Pull the images from Docker Hub
F. docker image tag oaisoftwarealliance/oai-udm:v1.4.0 oai-udm:v1.4.0 sudo docker pull oaisoftwarealliance/oai-amf:v1.5.0
G. docker image tag oaisoftwarealliance/oai-ausf:v1.4.0 oai-ausf:v1.4.0 sudo docker pull oaisoftwarealliance/oai-nrf:v1.5.0
H. docker image tag oaisoftwarealliance/oai-upf-vpp:v1.4.0 oai-upf-vpp:v1.4.0 sudo docker pull oaisoftwarealliance/oai-smf:v1.5.0
I. docker image tag oaisoftwarealliance/oai-nssf:v1.4.0 oai-nssf:v1.4.0 sudo docker pull oaisoftwarealliance/oai-udr:v1.5.0
J. docker image tag oaisoftwarealliance/trf-gen-cn5g:latest trf-gen-cn5g:latest sudo docker pull oaisoftwarealliance/oai-udm:v1.5.0
6. Synchronizing the tutorials sudo docker pull oaisoftwarealliance/oai-ausf:v1.5.0
A. Change the directory for ~/oai-cn5g-fed/ sudo docker pull oaisoftwarealliance/oai-spgwu-tiny:v1.5.0
B. ./scripts/syncComponents.sh sudo docker pull oaisoftwarealliance/trf-gen-cn5g:latest
C. git submodule deinit --all --force
D. git submodule init
F. git submodule update
7. Configure the bridge before deploying 5GC.
A. docker network create \ --driver=bridge \ --subnet=192.168.70.128/26 \ -o "com.docker.network.bridge.name"="demo-oai" \ demo-oai-public-net
8. Deploy the 5GC
A. Change the directory for ~/oai-cn5g-fed/docker-compose
B. python3 core-network.py --type start-basic --scenario 1
## FlexRIC, gNB and UE Installation Step 5: Tag Docker Images
### The following steps can be executed by the file flexRIC_oai_gNB_install.sh sudo docker image tag oaisoftwarealliance/trf-gen-cn5g:latest trf-gen-cn5g:latest
1. Install the following dependencies sudo docker image tag oaisoftwarealliance/oai-amf:v1.5.0 oai-amf:v1.5.0
A. sudo apt-get install autotools-dev sudo docker image tag oaisoftwarealliance/oai-nrf:v1.5.0 oai-nrf:v1.5.0
B. sudo apt-get install automake sudo docker image tag oaisoftwarealliance/oai-smf:v1.5.0 oai-smf:v1.5.0
C. sudo apt-get install libpcre2-dev sudo docker image tag oaisoftwarealliance/oai-udr:v1.5.0 oai-udr:v1.5.0
D. sudo apt-get install pcre2-utils sudo docker image tag oaisoftwarealliance/oai-udm:v1.5.0 oai-udm:v1.5.0
E. sudo apt-get install bison sudo docker image tag oaisoftwarealliance/oai-ausf:v1.5.0 oai-ausf:v1.5.0
F. sudo apt-get install byacc sudo docker image tag oaisoftwarealliance/oai-spgwu-tiny:v1.5.0 oai-spgwu-tiny:v1.5.0
G. sudo apt install g++
H. sudo apt install libsctp-dev python3.8 cmake-curses-gui libpcre2-dev python3-dev
2. Configure swig
A. git clone https://github.com/swig/swig.git
B. cd path_to_swig
C. ./autogen.sh
D. ./configure --prefix=/usr/
E. sudo make
F. sudo make install
3. Install FlexRIC
A. git clone https://gitlab.eurecom.fr/mosaic5g/flexric.git ~/flexric
B. cd path_to_flexric
C. git checkout v1.0.0
D. mkdir build
E. cd build
F. sudo cmake ..
G. sudo make
H. sudo make install
4. Install dependencies for OpenAirInterface 5G
A. sudo add-apt-repository ppa:ettusresearch/uhd -y
B. sudo apt-get update -y
C. sudo apt-get install libuhd-dev uhd-host -y
D. sudo apt-get install libuhd4.2.0 -y
E. sudo dpkg -i --force-overwrite /var/cache/apt/archives/libuhd4.2.0_4.2.0.1-0ubuntu1~focal1_amd64.deb
5. Download the OpenAirInterface 5G repository
A. git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git oai
6. Change the openairinterface 5G branch for 2022.41
A. cd oai/
B. git checkout 2022.41
7. Apply FlexRIC patch
A. git am <pathtoflexricsrc>/flexric/multiRAT/oai/oai.patch --whitespace=nowarn
8. Download the OAI configuration files (CU/DU, OAI UE, and gNB configuration)
A. sudo wget -O ~/oai/executables/nr-softmodem.c https://projetos.imd.ufrn.br/reginalab/sdran-openairinterface/-/raw/main/OpenAirInterface/OpenAirInterface-Conf/nr-softmodem.c?inline=false
B. sudo wget -O ~/oai/ci-scripts/conf_files/gNB_SA_CU.conf https://projetos.imd.ufrn.br/reginalab/sdran-openairinterface/-/raw/main/OpenAirInterface/OpenAirInterface-Conf/gNB_SA_CU.conf?inline=false
C. sudo wget -O ~/oai/ci-scripts/conf_files/gNB_SA_DU.conf https://projetos.imd.ufrn.br/reginalab/sdran-openairinterface/-/raw/main/OpenAirInterface/OpenAirInterface-Conf/gNB_SA_DU.conf?inline=false
D. sudo wget -O ~/oai/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf https://projetos.imd.ufrn.br/reginalab/sdran-openairinterface/-/raw/main/OpenAirInterface/OpenAirInterface-Conf/ue.conf?inline=false
9. Install the gNB and UE Step 6: Clone OpenAirInterface 5G Core repository
A. source oaienv git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git
B. cd cmake_targets cd oai-cn5g-fed
C. ./build_oai -I -w USRP -i #For OAI first time installation. it will install some dependencies git checkout -f v1.5.0
D. ./build_oai --gNB --nrUE -c -C -w USRP --ninja --build-lib all
## RAN and UE installation (Split and Monolithic mode)
### General Instruction
In this task you will install and configure the gNB of the OAI.
Step 1: Install dependencies
sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get install libuhd-dev uhd-host -y
sudo apt-get install libuhd4.2.0 -y
sudo apt-get install libuhd4.4.0 -y
Step 2: Fix problem in the libuhd
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libuhd4.2.0_4.2.0.1-0ubuntu1~focal1_amd64.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libuhd4.4.0_4.4.0.0-0ubuntu1~focal1_amd64.deb
Step 3: Clone OpenAirInterface 5G RAN and UE repository
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd PATH_TO/openairinterface5g
git checkout develop
Step 4: Run the installation script
source oaienv
cd cmake_targets
sudo ./build_oai -I -w USRP -i
sudo ./build_oai --gNB --nrUE -w USRP
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment