Deployment Scenario
Repository Of SMF
git clone https://gitlab.eurecom.fr/oai/oai-cn5g-smf.git
SMF -> build & run
cd oai-cn5g-smf
git checkout develop
cd build/scripts
./build_smf -I -f
./build_smf -c -V -b Debug -j
./smf_conf.sh
sudo smf -c /usr/local/etc/oai/smf.conf -o
UDM -> build & run
cd oai-cn5g-smf
git reset --hard fb47b34e
cd src/test/udm
mkdir build
cmake ..
make -j4
./udm-api-server
UPF -> build & run
cd oai-cn5g-smf
git reset --hard fb47b34e
cd build/scripts
./build_spgwu -I -f
./build_spgwu -c -V -b Debug -j
./spgwu_conf.sh
sudo spgwu -c /usr/local/etc/oai/spgw_u.conf -o
AMF -> build & run
cd oai-cn5g-smf
git checkout develop
cd src/test/amf
mkdir build
cd build
cmake ..
make -j4
./amf-api-server
AMF http client
git clone http://forwards@gitlab.opensource5G.org:8888/forwards/HttpClient.git
cd HttpClient
git checkout go-http-client
git reset --hard a4a9a0832b99f8ac228654cae5c03a352e995fa6
cd smf/client
./main -server "http://127.0.0.1:8080/nsmf-pdusession/v1/sm-contexts" -txtfile "/home/smf/oai-cn5g-smf/sm_encode_establishment_request.txt"
test results
Annex: Go-client-with-libnas
(1) download repository
git clone http://forwards@gitlab.opensource5G.org:8888/forwards/HttpClient.git
cd HttpClient
git checkout go-http-client-with-libnas
(2) install golang
wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
sudo tar -zxvf go1.12.4.linux-amd64.tar.gz -C /opt
(3) environment setting
sudo vim /etc/profile
export GOROOT=/opt/go
export GOPATH=/home/ubuntu/HttpClient (ubuntu change to your username, mine is /home/smf/HttpClient)
export GOPROXY=https://goproxy.io
export GOARCH=amd64
export GOOS=linux
export GOTOOLS=$GOROOT/pkg/tool
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
alias go="/opt/go/bin/go"
source /etc/profile
(4) check go version
go version
(5) link libnaslib.so to /usr/lib
sudo ln -s ~/HttpClient/src/HttpClient/libnas/lib/libnaslib.so /usr/lib
(6) compile libnas to libnaslib.so
cd ~/HttpClient/src/HttpClient/libnas
make
(7) compile the whole go-http-client
go build ~/HttpClient/src/HttpClient/main.go
(8) location to modify nas message
vim ~/HttpClient/src/HttpClient/libnas/src/nas/test/nas_sm_encode_to_json.c
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)