oai-5gcn-smf prototype testbed

2023-05-16

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(使用前将#替换为@)

oai-5gcn-smf prototype testbed 的相关文章

  • 替换 Javascript 构造函数的 .prototype 而不是添加它是否存在问题?

    我遇到过另一个开发人员的代码 它执行类似的操作来定义 Javascript 类型 function Ninja Ninja prototype swingSword function return true 当更传统的方式是这样的 func
  • Angular11测试:ReferenceError:ResizeObserver未定义

    I used ResizeObserver在我的组件中并且它工作正常 但是运行ut时出现这样的错误 ReferenceError ResizeObserver is not defined 133 134 gt 135 this resiz
  • 为什么布尔原语不调用原型 toString()?

    假设我有这段代码 Boolean prototype toString function toString return this valueOf 1 0 var object true true false false 1 1 0 0 t
  • 具有不同原型的函数指针向量,我可以构建一个吗?

    我正在为一个名为 virtual machine 的类做一个解析器 我正在尝试为其构建一个函数向量 但是 vm 上的一些函数需要参数 不同数量 类型的参数 我仍然可以将它们放入我的向量中吗功能 因为它们只有 void f 这是代码 clas
  • Jquery 与原型 magento 冲突 - 我怎样才能分开?

    我似乎无法通过我的 Magento 网站将 jQuery 与 Prototype 分开 我已经使用更改的标签等在 JsFiddle 上工作了 但是当我将它添加到我的 magento 站点时 我不断收到未捕获的语法错误 页面位于http ww
  • JavaScript OOP 私有变量 [关闭]

    Closed 这个问题是无关 help closed questions 目前不接受答案 更新 这是对我之前问题的更新 该问题与 StackExchange 的目标有些偏离主题 但对于之前关于这个主题的询问 我有一个后续问题 对象模型 va
  • 获取当前function()作用域的所有变量

    我有问题 我想获取当前的函数范围 我有这个示例代码 我工作正常 function nittle var Pen new Dot Generated dynamical through eval for key in window if wi
  • eval 反序列化后 JavaScript 原型未定义

    尝试反序列化 JSON 数据并更新每个对象的原型并继承公共函数 但是 以下脚本会引发错误 people 0 getFullName 不是函数 反序列化对象的原型在赋值后似乎未定义
  • 如何将光标置于文本区域的开头

    我找到了一些关于如何将光标放在文本末尾的文本区域中的资源 但我无法找到一种简单的方法来使其出现在开头 我正在用一些文本预先填充文本区域 只是想让用户更容易 将对文本区域的引用传递给此 JS 函数 function resetCursor t
  • 覆盖 require.js 中的 setTimeout

    我们在项目中使用 require js 我们需要重写设置超时时间在第 705 行 这是我们需要的代码以某种方式忽略 省略这个 setTimeout 根本 我的意思是运行它 问题是 如果我在更改版本时显式地在开源代码中更改它 代码将丢失 我应
  • JavaScript 中的构造函数和继承

    这是关于 JavaScript 中的 继承 假设我创建一个构造函数 Bird 和另一个名为 Parrot 的构造函数 通过将 Bird 的实例分配给 Parrot 的原型来 继承 Bird 的属性 如以下代码所示 function Bird
  • Google App Engine“搜索”的测试床存根

    我正在尝试使用开发应用程序服务器在 Python 中测试 Google App Engine 的新全文搜索功能 是否有存根search https developers google com appengine docs python se
  • JavaScript:扩展 Array.prototype 有什么危险?

    谷歌 JavaScript 风格指南建议不要延长Array prototype https google github io styleguide jsguide html disallowed features modifying bui
  • 无法使用 String#trim 作为 Array#map 的回调

    由于某种原因我无法使用String prototype trim call作为数组方法的回调 例如map or filter 在这种情况下 两个函数的工作原理相同 function trim string return string tri
  • 如何判断一个对象是否具有给定的原型?

    如何检测给定浏览器是否具有searchParams原型为URL https developer mozilla org en US docs Web API URL searchParams https developer mozilla
  • 通过 SignalR 在 IE 中缺少原型方法

    我遇到了一个问题 即仅在 IE 中并且仅当数组通过 SignalR 时才处理原型方法消失 在本例中为 Array prototype 方法 我写了一个小 愚蠢但简单的概念验证网络应用程序来演示这个问题 代码全部在下面 请注意 当您单击 更新
  • Javascript无限原型链

    我正在使用以下测试代码 function Test Test prototype MyMethod a function b function 为了运行它 我只需这样做 var test new Test console debug tes
  • Magento,翻译验证错误消息

    我已经成功创建了原型验证的新规则 现在我需要翻译错误消息 位置 Javascript 中的字符串 但是 我只能翻译所有消息 我的新自定义消息似乎无法翻译 我该如何改变这个 也许你需要一个jstranslator xml里面的文件etc fo
  • 为什么 foo.hasOwnProperty('__proto__') 等于 false?

    var foo bar 5 Why is foo hasOwnProperty proto 等于false 它不能来自原型链中更高层的任何对象 因为它是特定于这个对象的 EDIT 有些答案说它已开启Object prototype 但我不明
  • JavaScript 原型 - 请澄清

    有人可以帮我理解原型属性吗 我不明白原型属性是函数的属性还是函数内部的属性 假设我们创建以下构造函数 Food 此时 函数 Food 具有 Food prototype 属性 由于 Food 是 Object 的实例 因此这意味着 Obec

随机推荐