Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two UEs, Two AMFs and One intelligent gNB added #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,36 @@
Vagrant.configure("2") do |config|
config.vm.synced_folder "configurations", "/home/vagrant/configurations"
config.vm.synced_folder "shared", "/home/vagrant/shared"
config.vm.box_check_update = true
config.vm.synced_folder ".", "/vagrant", disabled: false
config.vagrant.plugins = ["vagrant-proxyconf"]

if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "" # http://proxy61.iitd.ac.in:3128/
config.proxy.https = "" # http://proxy61.iitd.ac.in:3128/
config.proxy.http = "http://10.10.78.62:3128"
config.proxy.https = "http://10.10.78.62:3128"
config.proxy.no_proxy = "localhost,127.0.0.1"
end

config.vm.define "core_nw" do |core_nw|
core_nw.vm.network "private_network", type:"dhcp", name:"vboxnet0"

core_nw.vm.box = "core-nw"
# You can dynamically request IP allocation from DCHP with:
# core_nw.vm.network "private_network", type:"dhcp", name:"vboxnet0"
# You can alternatively fix the IPs for the boxes with:
core_nw.vm.network "private_network", ip:"192.168.56.3"
core_nw.vm.network "private_network", ip:"192.168.57.3"
# You can do simple port forwarding with:
core_nw.vm.network "forwarded_port", guest: 9999, host: 8888

core_nw.vm.provider :virtualbox do |vb|
vb.name = "core_nw"
vb.memory = 1024
vb.cpus = 1
# Use the following to do packet capture automatically when the machine is booted.
# vb.customize ["modifyvm", :id, "--nictrace1", "on", "--nictracefile1", "pcaps/nictrace1.pcap"]
# vb.customize ["modifyvm", :id, "--nictrace2", "on", "--nictracefile2", "pcaps/nictrace2.pcap"]
# Use the following to reduce the effectiveness of CPU
# vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
vb.check_guest_additions = false
end

core_nw.trigger.after :up,:reload do |trigger|
Expand All @@ -29,13 +42,20 @@ Vagrant.configure("2") do |config|
end

config.vm.define "ran_ue_nw" do |ran_ue_nw|

ran_ue_nw.vm.box = "ran-ue-nw"
ran_ue_nw.vm.network "private_network", type:"dhcp", name:"vboxnet0"
# You can dynamically request IP allocation from DCHP with:
# ran_ue_nw.vm.network "private_network", type:"dhcp", name:"vboxnet0"
# You can alternatively fix the IPs for the boxes with:
ran_ue_nw.vm.network "private_network", ip:"192.168.56.4"
ran_ue_nw.vm.network "private_network", ip:"192.168.57.4"

ran_ue_nw.vm.provider :virtualbox do |vb|
vb.name = "ran_ue_nw"
vb.memory = 1024
vb.cpus = 1
vb.check_guest_additions = false
end

end
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
logger:
file: /home/vagrant/shared/log/amf.log
# level: info # fatal|error|warn|info(default)|debug|trace
level: info # fatal|error|warn|info(default)|debug|trace

global:
max:
Expand All @@ -19,18 +19,17 @@ amf:
- uri: http://127.0.0.200:7777
ngap:
server:
- address: 192.168.56.100
# - address: 127.0.0.5
- address: 192.168.56.3
port: 9001
metrics:
server:
- address: 192.168.56.100
port: 9091
- address: 192.168.56.3
guami:
- plmn_id:
mcc: 999
mnc: 70
amf_id:
region: 2
region: 1
set: 1
tai:
- plmn_id:
Expand All @@ -49,7 +48,7 @@ amf:
network_name:
full: Open5GS
short: Next
amf_name: open5gs-amf0
amf_name: open5gs-amf1
time:
# t3502:
# value: 720 # 12 minutes * 60 = 720 seconds
Expand Down Expand Up @@ -236,4 +235,4 @@ amf:
# mnc: 70
#
# o Relative Capacity
# relative_capacity: 100
# relative_capacity: 100
236 changes: 236 additions & 0 deletions configurations/basic-configuration/open5gs/amf2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
logger:
file: /home/vagrant/shared/log/amf2.log
level: info # fatal|error|warn|info(default)|debug|trace

global:
max:
ue: 1024 # The number of UE can be increased depending on memory size.
# peer: 64

amf:
sbi:
server:
- address: 127.0.0.6
port: 7777
client:
# nrf:
# - uri: http://127.0.0.10:7777
scp:
- uri: http://127.0.0.200:7777
ngap:
server:
- address: 192.168.57.3
port: 9002
metrics:
server:
- address: 192.168.57.3
guami:
- plmn_id:
mcc: 999
mnc: 70
amf_id:
region: 2
set: 2
tai:
- plmn_id:
mcc: 999
mnc: 70
tac: 1
plmn_support:
- plmn_id:
mcc: 999
mnc: 70
s_nssai:
- sst: 2
security:
integrity_order : [ NIA2, NIA1, NIA0 ]
ciphering_order : [ NEA0, NEA1, NEA2 ]
network_name:
full: Open5GS
short: Next
amf_name: open5gs-amf2
time:
t3512:
value: 540 # 9 minutes * 60 = 540 seconds

################################################################################
# SBI Server
################################################################################
# o Override SBI address to be advertised to NRF
# sbi:
# server:
# - dev:eth0
# advertise: open5gs-amf.svc.local
#
# sbi:
# server:
# - address: localhost
# advertise:
# - 127.0.0.99
# - ::1
#
################################################################################
# SBI Client
################################################################################
# o Direct communication with NRF interaction
# sbi:
# client:
# nrf:
# - uri: http://127.0.0.10:7777
#
# o Indirect communication with delegated discovery
# sbi:
# client:
# scp:
# - uri: http://127.0.0.200:7777
#
# o Indirect communication without delegated discovery
# sbi:
# client:
# nrf:
# - uri: http://127.0.0.10:7777
# scp:
# - uri: http://127.0.0.200:7777
# discovery:
# delegated: no
#
################################################################################
# HTTPS scheme with TLS
################################################################################
# o Set as default if not individually set
# default:
# tls:
# server:
# scheme: https
# private_key: /home/vagrant/open5gs/install/etc/open5gs/tls/amf.key
# cert: /home/vagrant/open5gs/install/etc/open5gs/tls/amf.crt
# client:
# scheme: https
# cacert: /home/vagrant/open5gs/install/etc/open5gs/tls/ca.crt
# sbi:
# server:
# - address: amf.localdomain
# client:
# nrf:
# - uri: https://nrf.localdomain
#
# o Add client TLS verification
# default:
# tls:
# server:
# scheme: https
# private_key: /home/vagrant/open5gs/install/etc/open5gs/tls/amf.key
# cert: /home/vagrant/open5gs/install/etc/open5gs/tls/amf.crt
# verify_client: true
# verify_client_cacert: /home/vagrant/open5gs/install/etc/open5gs/tls/ca.crt
# client:
# scheme: https
# cacert: /home/vagrant/open5gs/install/etc/open5gs/tls/ca.crt
# client_private_key: /home/vagrant/open5gs/install/etc/open5gs/tls/amf.key
# client_cert: /home/vagrant/open5gs/install/etc/open5gs/tls/amf.crt
# sbi:
# server:
# - address: amf.localdomain
# client:
# nrf:
# - uri: https://nrf.localdomain
#
################################################################################
# NGAP Server
################################################################################
# o Listen on address available in `eth0` interface
# ngap:
# server:
# - dev: eth0
#
################################################################################
# 3GPP Specification
################################################################################
# o GUAMI
# guami:
# - plmn_id:
# mcc: 999
# mnc: 70
# amf_id:
# region: 2
# set: 1
# pointer: 4
# - plmn_id:
# mcc: 001
# mnc: 01
# amf_id:
# region: 5
# set: 2
#
# o TAI
# tai:
# - plmn_id:
# mcc: 001
# mnc: 01
# tac: [1, 3, 5]
# tai:
# - plmn_id:
# mcc: 002
# mnc: 02
# tac: [6-10, 15-18]
# tai:
# - plmn_id:
# mcc: 003
# mnc: 03
# tac: 20
# - plmn_id:
# mcc: 004
# mnc: 04
# tac: 21
# tai:
# - plmn_id:
# mcc: 005
# mnc: 05
# tac: [22, 28]
# - plmn_id:
# mcc: 006
# mnc: 06
# tac: [30-32, 34, 36-38, 40-42, 44, 46, 48]
# - plmn_id:
# mcc: 007
# mnc: 07
# tac: 50
# - plmn_id:
# mcc: 008
# mnc: 08
# tac: 60
# - plmn_id:
# mcc: 009
# mnc: 09
# tac: [70, 80]
#
# o PLMN Support
# plmn_support:
# - plmn_id:
# mcc: 999
# mnc: 70
# s_nssai:
# - sst: 1
# sd: 010000
# - plmn_id:
# mcc: 999
# mnc: 70
# s_nssai:
# - sst: 1
#
# o Access Control
# access_control:
# - default_reject_cause: 13
# - plmn_id:
# reject_cause: 15
# mcc: 001
# mnc: 01
# - plmn_id:
# mcc: 002
# mnc: 02
# - plmn_id:
# mcc: 999
# mnc: 70
#
# o Relative Capacity
# relative_capacity: 100
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ for nf in "${nfs[@]}"; do
done

echo ""
echo -e "$running_count NFs are running!"
echo -e "$running_count unique NFs are running!"
3 changes: 3 additions & 0 deletions configurations/basic-configuration/open5gs/del_all_logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

sudo rm -rf *.log
File renamed without changes.
2 changes: 1 addition & 1 deletion configurations/basic-configuration/open5gs/nrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ nrf:
# client_cert: /home/vagrant/open5gs/install/etc/open5gs/tls/nrf.crt
# sbi:
# server:
# - address: nrf.localdomain
# - address: nrf.localdomain
2 changes: 1 addition & 1 deletion configurations/basic-configuration/open5gs/pcf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pcf:
- uri: http://127.0.0.200:7777
metrics:
server:
- address: 192.168.56.100
- address: 192.168.56.3
port: 9093

################################################################################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
open5gs-upfd -c upf.yaml &
open5gs-nrfd -c nrf.yaml &
open5gs-scpd -c scp.yaml &
open5gs-scpd -c smf.yaml &
open5gs-upfd -c upf.yaml &
open5gs-ausfd -c ausf.yaml &
open5gs-nssfd -c nssf.yaml &
open5gs-pcfd -c pcf.yaml &
open5gs-bsfd -c bsf.yaml &
open5gs-udmd -c udm.yaml &
open5gs-udrd -c udr.yaml &
open5gs-amfd -c amf.yaml &

# Retry SMF
open5gs-smfd -c smf.yaml &

open5gs-amfd -c amf1.yaml &
open5gs-amfd -c amf2.yaml &
Loading