Commit a990d436 authored by Luhan Wang's avatar Luhan Wang

Initial commit

parents
MYSQL_ROOT_PASSWORD=123456
MYSQL_ROOT_HOST=%
MYSQL_DIR=./docker-mysql
/docker-mysql
version: '3.3'
services:
stateless-mysql:
image: mysql/mysql-server:5.7
container_name: stateless-mysql
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=OPENXG
volumes:
- ./docker-mysql:/var/lib/mysql
- ./etc/config:/etc/mysql/conf.d
- ./etc/init:/docker-entrypoint-initdb.d/
networks:
openxg:
ipv4_address: 10.244.1.7
stateless-udm:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:udm-cmcc-v2
container_name: stateless-udm
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/opt/5gc/udm/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/udm/libs/ /opt/5gc/udm/udm -c /etc/openxg/udm.conf -o > /var/log/udm.log
#/opt/5gc/ausf/ausf -c /etc/openxg/ausf.conf -o > /var/log/ausf.log
networks:
openxg:
ipv4_address: 10.244.1.15
stateless-udr:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:udr-cmcc-v2
container_name: stateless-udr
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
depends_on:
- stateless-mysql
command:
- /bin/bash
- -c
- |
/opt/5gc/udr/udr -c /etc/openxg/udr.conf -o > /var/log/udr.log
#/opt/5gc/ausf/ausf -c /etc/openxg/ausf.conf -o > /var/log/ausf.log
networks:
openxg:
ipv4_address: 10.244.1.17
stateless-ausf:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:ausf-cmcc-v2
container_name: stateless-ausf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/opt/5gc/ausf/ausf -c /etc/openxg/ausf.conf -o > /var/log/ausf.log
#/amf/build/amf/build/amf -c /etc/openxg/amf.conf -o > /var/amf.log
#/amf/build/amf/build/amf -c /etc/amf.conf -o > /var/amf.log
networks:
openxg:
ipv4_address: 10.244.1.14
stateless-amf:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:amf-cmcc-v2
container_name: stateless-amf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
depends_on:
- stateless-udsf
command:
- /bin/bash
- -c
- |
/amf/build/amf/build/amf -c /etc/openxg/amf.conf -o > /var/log/amf.log
#/amf/build/amf/build/amf -c /etc/amf.conf -o > /var/amf.log
networks:
openxg:
ipv4_address: 10.244.1.12
stateless-smf:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:smf-cmcc-v2
container_name: stateless-smf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-amf
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/oai-cn5g-smf/build/smf/build/smf -c /etc/openxg/smf.conf -o > /var/smf.log
#/amf/build/amf/build/amf -c /etc/amf.conf -o > /var/amf.log
networks:
openxg:
ipv4_address: 10.244.2.13
stateless-spgw:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:spgwu-cmcc-v2
container_name: stateless-spgwu
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-smf
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/openxg-spgwu-tiny/build/spgw_u/build/spgwu -c /etc/openxg/spgwu.conf -o > /var/log/spgwu.log
#/amf/build/amf/build/amf -c /etc/amf.conf -o > /var/amf.log
networks:
openxg:
ipv4_address: 10.244.2.18
# stateless-rise:
# image: openxg-rise:1.0
# container_name: stateless-rise
# restart: always
# logging:
# driver: "json-file"
# options:
# max-size: "1m"
# depends_on:
# - stateless-amf
# volumes:
# - ./etc:/etc/openxg/
# command:
# - /bin/bash
# - -c
# - |
# /gnb-sbi-plugin/build/PLUGIN/plugin -c /etc/openxg/plugin.conf -o > /var/log/rise.log
# #/amf/build/amf/build/amf -c /etc/amf.conf -o > /var/amf.log
# networks:
# openxg:
# ipv4_address: 10.244.1.20
stateless-udsf:
image: registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:udsf-cmcc-v2
container_name: stateless-udsf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/udsf/build/UDSF/udsf -c /etc/openxg/udsf.conf -o > /var/log/udsf.log
#/amf/build/amf/build/amf -c /etc/amf.conf -o > /var/amf.log
networks:
openxg:
ipv4_address: 10.244.1.16
networks:
openxg:
external: true
name: openxg-stateless
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
AMF =
{
INSTANCE_ID = 10; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default
AMF_NAME = "OAI-AMF";
RELATIVE_CAPACITY = 30;
# Display statistics about whole system (in seconds)
STATISTICS_TIMER_INTERVAL = 20; # YOUR CONFIG HERE
AMF_ID_REGION = 1000;
CORE_CONFIGURATION:
{
EMERGENCY_SUPPORT = "false";
};
GUAMI:
{
MCC = "460"; MNC = "11"; RegionID = "128"; AMFSetID = "1"; AMFPointer = "1" # YOUR GUAMI CONFIG HERE
}
SERVED_GUAMI_LIST = (
{MCC = "460"; MNC = "11"; RegionID = "128"; AMFSetID = "1"; AMFPointer = "0"} #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
#{MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "1"} #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
);
PLMN_SUPPORT_LIST = (
{
MCC = "460"; MNC = "11"; TAC = 100; # YOUR PLMN CONFIG HERE
SLICE_SUPPORT_LIST = (
{SST = "1"; SD = "none"} # YOUR NSSAI CONFIG HERE
# {SST = "1"; SD = "12"} # YOUR NSSAI CONFIG HERE
)
}
);
INTERFACES:
{
# AMF binded interface for N1/N2 interface (NGAP)
NGAP_AMF:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 9999; # YOUR NETWORK CONFIG HERE
PPID = 60; # YOUR NETWORK CONFIG HERE
};
# AMF binded interface for Nausf interface
NAUSF:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "10.244.1.14";
PORT = 8383; # YOUR NETWORK CONFIG HERE
};
NUDSF:
{
IPV4_ADDRESS = "10.244.1.16";
PORT = 7123; # YOUR NETWORK CONFIG HERE
};
RISE:
{
IPV4_ADDRESS = "10.103.238.210";
PORT = 8282; # YOUR NETWORK CONFIG HERE
};
NRF :
{
IPV4_ADDRESS = "10.103.239.54"; # YOUR NRF CONFIG HERE
PORT = 80; # YOUR NRF CONFIG HERE (default: 80)
API_VERSION = "v1"; # YOUR NRF API VERSION FOR SBI CONFIG HERE
};
SUPPORT_FEATURES:
{
# STRING, {"yes", "no"},
NF_REGISTRATION = "yes"; # Set to yes if AMF resgisters to an NRF
SMF_SELECTION = "no"; # Set to yes to enable SMF discovery and selection
EXTERNAL_AUSF = "yes"; # Set to yes if AMF works with an external AUSF
EXTERNAL_UDM = "no"; # Set to yes if AMF works with an external UDM
};
# AMF binded interface for N11
N11:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8282; # YOUR NETWORK CONFIG HERE
SMF_INSTANCES_POOL = (
{SMF_INSTANCE_ID = 1; IPV4_ADDRESS = "10.244.2.13"; PORT = "8889"; VERSION = "v2"; SELECTED = "true"}, # YOUR SMF CONFIG HERE
{SMF_INSTANCE_ID = 2; IPV4_ADDRESS = "192.168.122.2"; PORT = "80"; VERSION = "v1"; SELECTED = "false"} # YOUR SMF CONFIG HERE
);
};
};
AUTHENTICATION:
{
## MySQL mandatory options
MYSQL_server = "10.244.1.3"; # MySQL Server address
MYSQL_user = "root"; # Database server login
MYSQL_pass = "123456"; # Database server password
MYSQL_db = "test"; # Your database name
## OP
OPERATOR_key = "63bfa50ee6523365ff14c1f45f88737d"; # OP key matching your database
RANDOM = "true";
};
NAS:
{
ORDERED_SUPPORTED_INTEGRITY_ALGORITHM_LIST = [ "NIA1" , "NIA1" , "NIA1" ];
ORDERED_SUPPORTED_CIPHERING_ALGORITHM_LIST = [ "NEA0" , "NEA1" , "NEA2" ];
};
};
MODULES =
{
NGAP_MESSAGE = (
{MSG_NAME = "NGSetupRequest"; ProcedureCode = 21; TypeOfMessage = "initialMessage"}
);
};
## amf configuration file
AUSF =
{
INSTANCE_ID = 10; #10
PID_DIRECTORY = "/var/run";
######################################################################## NG SETUP RESPONSE IEs ############################################################
AUSF_NAME = "bupt-ausf";
# GUAMI:{MCC = "110"; MNC = "11"; RegionID = "128"; AMFSetID = "4"; AMFPointer = "1"}
# SERVED_GUAMI_LIST = (
# {MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "0"}, #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
# {MCC = "110"; MNC = "11"; RegionID = "10"; AMFSetID = "1"; AMFPointer = "1"} #48bits <MCC><MNC><RegionID><AMFSetID><AMFPointer>
# );
# RELATIVE_CAPACITY = 30;
# PLMN_SUPPORT_LIST = (
# {MCC = "110"; MNC = "11"; TAC = 100;
# SLICE_SUPPORT_LIST = (
# {SST = "1"; SD = "none"},
# {SST = "1"; SD = "12"}
# )
# }
# );
##################################################################### clause 9.2.6.2, 3gpp ts38.413 ####################################################
#STATISTICS_TIMER_INTERVAL = 20; #second
INTERFACES:{
SBI_AUSF:{
INTERFACE_NAME = "eth0"; #interface for providing ausf service
IPV4_ADDRESS = "read"; #"192.168.61.141/24"; #address for intercafe (cidr)
PORT = 8383; #ausf service port
PPID = 60;
};
NUDM:{
INTERFACE_NAME = "eth0"; #interface for providing udm service
IPV4_ADDRESS = "10.244.1.15/24"; #address for intercafe (cidr)
PORT = 8181; #udm service port
#PPID = 60;
};
NAMF:{
INTERFACE_NAME = "eth0"; #interface for request for amf service
IPV4_ADDRESS = "10.244.1.12/24"; #amf address (cidr)
PORT = 8383; #amf port
};
# NUDR:{
# INTERFACE_NAME = "ens33"; #interface for request for udr service
# IPV4_ADDRESS = "192.168.21.133/24"; #udr address (cidr)
# PORT = 8080; #udr port
# VERSION = "v2";
# };
};
# CORE_CONFIGURATION:{
# EMERGENCY_SUPPORT = "false";
# };
# AUTHENTICATION:{
# MYSQL_server = "127.0.0.1";
# MYSQL_user = "bupt"; # Database server login
# MYSQL_pass = "linux"; # Database server password
# MYSQL_db = "OAI_DB";
# OPERATOR_key = "1006020f0a478bf6b699f15c062e42b3"; # op
# RANDOM = "true";
# };
};
[mysqld]
character-set-server=utf8mb4
default-time-zone='+8:00'
innodb_rollback_on_timeout='ON'
max_connections=500
innodb_lock_wait_timeout=500
CREATE USER 'root'@'%' IDENTIFIED BY '123456';
GRANT All privileges ON *.* TO 'root'@'%';
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5ubuntu0.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: 2021-09-26 14:25:11
-- 服务器版本: 5.7.35-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `witcomm`
--
create database if not exists amfdata;
-- drop database if exists OPENXG;
-- CREATE DATABASE OPENXG;
create datebase if not exists OPENXG;
USE OPENXG;
-- --------------------------------------------------------
--
-- 表的结构 `AuthenticationStatus`
--
CREATE TABLE `AuthenticationStatus` (
`ueid` varchar(20) NOT NULL,
`nfInstanceId` varchar(50) NOT NULL,
`success` tinyint(1) NOT NULL,
`timeStamp` varchar(50) NOT NULL,
`authType` varchar(25) NOT NULL,
`servingNetworkName` varchar(50) NOT NULL,
`authRemovalInd` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `AuthenticationStatus`
--
INSERT INTO `AuthenticationStatus` (`ueid`, `nfInstanceId`, `success`, `timeStamp`, `authType`, `servingNetworkName`, `authRemovalInd`) VALUES
('110110123456789', '400346f4-087e-40b1-a4cd-00566953999d', 1, '2021-07-22T10:14:07Z', '5G_AKA', '5G:mnc011.mcc110.3gppnetwork.org', 0),
('460110123456789', '400346f4-087e-40b1-a4cd-00566953999d', 1, '2021-08-03T07:43:27Z', '5G_AKA', '5G:mnc099.mcc460.3gppnetwork.org', 0),
('460111123456789', '400346f4-087e-40b1-a4cd-00566953999d', 1, '2021-07-22T08:27:50Z', '5G_AKA', '5G:mnc011.mcc460.3gppnetwork.org', 0),
('460990123456789', '400346f4-087e-40b1-a4cd-00566953999d', 1, '2021-08-03T10:12:37Z', '5G_AKA', '5G:mnc099.mcc460.3gppnetwork.org', 0),
('466110123456789', '400346f4-087e-40b1-a4cd-00566953999d', 1, '2021-09-24T03:53:00Z', '5G_AKA', '5G:mnc011.mcc466.3gppnetwork.org', 0),
('466111123456789', '400346f4-087e-40b1-a4cd-00566953999d', 1, '2021-09-24T02:21:55Z', '5G_AKA', '5G:mnc011.mcc466.3gppnetwork.org', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `AuthenticationStatus`
--
ALTER TABLE `AuthenticationStatus`
ADD PRIMARY KEY (`ueid`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- --------------------------------------------------------
--
-- 表的结构 `AuthenticationSubscription`
--
CREATE TABLE `AuthenticationSubscription` (
`ueid` varchar(20) NOT NULL,
`authenticationMethod` varchar(25) NOT NULL,
`encPermanentKey` varchar(50) DEFAULT NULL,
`protectionParameterId` varchar(50) DEFAULT NULL,
`sequenceNumber` json DEFAULT NULL,
`authenticationManagementField` varchar(50) DEFAULT NULL,
`algorithmId` varchar(50) DEFAULT NULL,
`encOpcKey` varchar(50) DEFAULT NULL,
`encTopcKey` varchar(50) DEFAULT NULL,
`vectorGenerationInHss` tinyint(1) DEFAULT NULL,
`n5gcAuthMethod` varchar(15) DEFAULT NULL,
`rgAuthenticationInd` tinyint(1) DEFAULT NULL,
`supi` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `AuthenticationSubscription`
--
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('001010123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"0000000017a0\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '001010123456789'),
('1010123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"00000017909c\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '1010123456789'),
('110110123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"0000000017a0\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '110110123456789'),
('460110123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"000000005a41\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '460110123456789'),
('460111123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"000000001960\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '460111123456789'),
('460990123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"00000016af07\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '460990123456789'),
('460991123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"000000001780\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '460991123456789'),
('466110123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"000000001fc0\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '466110123456789'),
('466111123456789', '5G_AKA', '00112233445566778899aabbccddeeff', NULL, '{\"sqn\": \"00000017b6fd\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '9001', 'milenage', '000102030405060708090a0b0c0d0e0f', 'Opc', NULL, NULL, NULL, '466111123456789');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `AuthenticationSubscription`
--
ALTER TABLE `AuthenticationSubscription`
ADD PRIMARY KEY (`ueid`);
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
FLUSH PRIVILEGES;
## udsf configuration file
PLUGIN =
{
INTERFACES:
{
# PLUGIN binded interface for Nudsf interface
NGAP:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 38412; # YOUR NETWORK CONFIG HERE
PPID = 60; # YOUR NETWORK CONFIG HERE
};
SBI:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8282; # YOUR NETWORK CONFIG HERE
};
NRF:
{
INTERFACE_NAME = "NRF"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "10.244.1.12";#amf地址
PORT = 8282; # YOUR NETWORK CONFIG HERE
};
};
};
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
SMF =
{
INSTANCE = 10; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default
INTERFACES :
{
N4 :
{
# SMF binded interface for N4 communication (UPF)
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8805;
};
SBI :
{
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8889; # YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT = 8890; # YOUR NETWORK CONFIG HERE
API_VERSION = "v2"; # YOUR SMF API VERSION CONFIG HERE
};
};
# Pool of UE assigned IP addresses
# Do not make IP pools overlap
# first IPv4 address X.Y.Z.1 is reserved for GTP network device on UPF
IP_ADDRESS_POOL :
{
IPV4_LIST = (
{RANGE = "192.169.0.200 - 192.169.0.253";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{RANGE = "192.169.0.3 - 192.169.255.253";} # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
);
IPV6_LIST = (
{PREFIX = "2001:1:2::/64";}, # STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
{PREFIX = "3001:1:2::/64";} # STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
);
};
DNN_LIST = (
# IPV4_POOL, IPV6_POOL are index in IPV4_LIST, IPV6_LIST, PDU_SESSION_TYPE choice in {IPv4, IPv6, IPv4v6}
{DNN_NI = "IMS"; PDU_SESSION_TYPE = "IPv4v6"; IPV4_POOL = 0; IPV6_POOL = 0},
{DNN_NI = "internet"; PDU_SESSION_TYPE = "IPv4"; IPV4_POOL = 1; IPV6_POOL = -1},
{DNN_NI = "ctnet"; PDU_SESSION_TYPE = "IPv4v6"; IPV4_POOL = 1; IPV6_POOL = 1}
);
# DNS address communicated to UEs
DEFAULT_DNS_IPV4_ADDRESS = "114.114.114.114"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_SEC_IPV4_ADDRESS = "114.114.114.114"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_IPV6_ADDRESS = "2001:4860:4860::8888"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_SEC_IPV6_ADDRESS = "2001:4860:4860::8844"; # YOUR DNS CONFIG HERE
SUPPORT_FEATURES:
{
# STRING, {"yes", "no"},
REGISTER_NRF = "no"; # Set to yes if SMF resgisters to an NRF
DISCOVER_UPF = "no"; # Set to yes to enable UPF discovery and selection
FORCE_PUSH_PROTOCOL_CONFIGURATION_OPTIONS = "no"; # Non standard feature, normally should be set to "no",
# but you may need to set to yes for UE that do not explicitly request a PDN address through NAS signalling
USE_LOCAL_SUBSCRIPTION_INFO = "yes"; # Set to yes if SMF uses local subscription information instead of from an UDM
}
AMF :
{
IPV4_ADDRESS = "10.244.1.12"; # YOUR AMF CONFIG HERE
PORT = 8282; # YOUR AMF CONFIG HERE (default: 80)
API_VERSION = "v2"; # YOUR AMF API VERSION FOR SBI CONFIG HERE
};
UDM :
{
IPV4_ADDRESS = "10.244.1.15"; # YOUR UDM CONFIG HERE
PORT = 8181; # YOUR UDM CONFIG HERE (default: 80)
API_VERSION = "v2"; # YOUR UDM API VERSION FOR SBI CONFIG HERE
};
NRF :
{
IPV4_ADDRESS = "10.103.239.54"; # YOUR NRF CONFIG HERE
PORT = 80; # YOUR NRF CONFIG HERE (default: 80)
API_VERSION = "v1"; # YOUR NRF API VERSION FOR SBI CONFIG HERE
};
UPF_LIST = (
{IPV4_ADDRESS = "10.103.239.55";} # YOUR UPF CONFIG HERE
);
LOCAL_CONFIGURATION :
{
USE_LOCAL_CONFIGURATION = "yes";
SESSION_MANAGEMENT_SUBSCRIPTION_LIST = (
{ NSSAI_SST = 1, NSSAI_SD = "0", DNN = "IMS", DEFAULT_SESSION_TYPE = "IPV4V6", DEFAULT_SSC_MODE = 1,
QOS_PROFILE_5QI = 5, QOS_PROFILE_PRIORITY_LEVEL = 1, QOS_PROFILE_ARP_PRIORITY_LEVEL = 1, QOS_PROFILE_ARP_PREEMPTCAP = "NOT_PREEMPT",
QOS_PROFILE_ARP_PREEMPTVULN = "NOT_PREEMPTABLE", SESSION_AMBR_UL = "20Mbps", SESSION_AMBR_DL = "22Mbps"},
{ NSSAI_SST = 1, NSSAI_SD = "0", DNN = "ctnet", DEFAULT_SESSION_TYPE = "IPV4V6", DEFAULT_SSC_MODE = 1,
QOS_PROFILE_5QI = 9, QOS_PROFILE_PRIORITY_LEVEL = 1, QOS_PROFILE_ARP_PRIORITY_LEVEL = 1, QOS_PROFILE_ARP_PREEMPTCAP = "NOT_PREEMPT",
QOS_PROFILE_ARP_PREEMPTVULN = "NOT_PREEMPTABLE", SESSION_AMBR_UL = "100Mbps", SESSION_AMBR_DL = "110Mbps"},
{ NSSAI_SST = 1; NSSAI_SD = "0", DNN = "internet", DEFAULT_SESSION_TYPE = "IPV4", DEFAULT_SSC_MODE = 1,
QOS_PROFILE_5QI = 9, QOS_PROFILE_PRIORITY_LEVEL = 1, QOS_PROFILE_ARP_PRIORITY_LEVEL = 1, QOS_PROFILE_ARP_PREEMPTCAP = "NOT_PREEMPT",
QOS_PROFILE_ARP_PREEMPTVULN = "NOT_PREEMPTABLE", SESSION_AMBR_UL = "100Mbps", SESSION_AMBR_DL = "110Mbps"}
);
};
};
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this file
# except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
SPGW-U =
{
INSTANCE = 10; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default
#ITTI_TASKS :
#{
#ITTI_TIMER_SCHED_PARAMS :
#{
#CPU_ID = 1;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 85;
#};
#S1U_SCHED_PARAMS :
#{
#CPU_ID = 1;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 84;
#};
#SX_SCHED_PARAMS :
#{
#CPU_ID = 1;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 84;
#};
#ASYNC_CMD_SCHED_PARAMS :
#{
#CPU_ID = 1;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 84;
#};
#};
INTERFACES :
{
S1U_S12_S4_UP :
{
# S-GW binded interface for S1-U communication (GTPV1-U) can be ethernet interface, virtual ethernet interface, we don't advise wireless interfaces
INTERFACE_NAME = "eth0"; # STRING, interface name, YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read"; # STRING, CIDR or "read to let app read interface configured IP address
#PORT = 2152; # Default is 2152
#SCHED_PARAMS :
#{
#CPU_ID = 2;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 98;
#};
};
SX :
{
# S/P-GW binded interface for SX communication
INTERFACE_NAME = "eth0"; # STRING, interface name
IPV4_ADDRESS = "read"; # STRING, CIDR or "read" to let app read interface configured IP address
#PORT = 8805; # Default is 8805
#SCHED_PARAMS :
#{
#CPU_ID = 1;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 95;
#};
};
SGI :
{
# No config to set, the software will set the SGi interface to the interface used for the default route.
INTERFACE_NAME = "eth0"; # STRING, interface name or "default_gateway"
IPV4_ADDRESS = "read"; # STRING, CIDR or "read" to let app read interface configured IP address
#SCHED_PARAMS :
#{
#CPU_ID = 3;
#SCHED_POLICY = "SCHED_FIFO"; # Values in { SCHED_OTHER, SCHED_IDLE, SCHED_BATCH, SCHED_FIFO, SCHED_RR }
#SCHED_PRIORITY = 98;
#};
};
};
PDN_NETWORK_LIST = (
{NETWORK_IPV4 = "192.169.0.0/24"; SNAT = "yes";} # SNAT Values in {yes, no}
);
SPGW-C_LIST = (
{IPV4_ADDRESS="10.244.2.13" ;}
);
NRF :
{
IPV4_ADDRESS = "192.168.2.1"; # YOUR NRF CONFIG HERE
PORT = 80; # YOUR NRF CONFIG HERE (default: 80)
API_VERSION = "v2"; # YOUR NRF API VERSION FOR SBI CONFIG HERE
};
UPF_INFO = (
{ NSSAI_SST = 1, NSSAI_SD = "0", DNN = "default"},
{ NSSAI_SST = 1; NSSAI_SD = "0", DNN = "internet"}
);
SUPPORT_FEATURES:
{
# STRING, {"yes", "no"},
REGISTER_NRF = "no"; # Set to yes if UPF resgisters to an NRF
}
};
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang,Fengjiao He,Hongxin Wang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udm configuration file
UDM =
{
INSTANCE_ID = 10;
PID_DIRECTORY = "/var/run";
UDM_NAME = "bupt-udm";
INTERFACES:{
SBI_UDM:{
INTERFACE_NAME = "eth0"; #interface for providing udm service
IPV4_ADDRESS = "read"; #address for intercafe (cidr)
PORT = 8181; #udm service port
PPID = 60;
};
NUDR:{
INTERFACE_NAME = "eth0"; #interface for request for udr service
IPV4_ADDRESS = "10.244.1.17/24"; #udr address (cidr)
PORT = 8081; #udr port
VERSION = "v2";
};
};
};
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file
UDR =
{
INSTANCE_ID = 0; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default
API_VERSION = "v2"; # v2 is the default
NF_REGISTRATION = "no"
INTERFACES:
{
# UDR binded interface for Nudr interface
SBI:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8081; # YOUR NETWORK CONFIG HERE
};
NNRF:
{
INTERFACE_NAME = "eth0";
IPV4_ADDRESS = "192.168.83.129/24";
PORT = 80;
API_VERSION = "v1";
};
};
MYSQL:
{
## MySQL mandatory options
MYSQL_SERVER = "10.244.1.7"; # MySQL Server address
MYSQL_USER = "root"; # Database server login
MYSQL_PASS = "123456"; # Database server password
MYSQL_DB = "OPENXG"; # Your database name
# MYSQL_PORT = "@MYSQL_PORT@"; # MySQL Server port, 0 is the default
};
};
## udsf configuration file
UDSF =
{
INSTANCE_ID = 10; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default
INTERFACES:
{
# UDSF binded interface for Nudsf interface
SBI:
{
INTERFACE_NAME = "eth0"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 7123; # YOUR NETWORK CONFIG HERE
};
};
MYSQL:
{
## MySQL mandatory options
MYSQL_SERVER = "10.244.1.7"; # MySQL Server address
MYSQL_USER = "root"; # Database server login
MYSQL_PASS = "123456"; # Database server password
MYSQL_DB = "amfdata"; # Your database name
# MYSQL_PORT = 3306 # MySQL Server port
};
};
#!/bin/bash
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:amf-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:smf-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:ausf-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:udm-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:udr-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:spgwu-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:udsf-cmcc-v2
sudo docker pull registry.cn-hangzhou.aliyuncs.com/bupt_liuyu/cmmm_k8s_network_function:mysql-v3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment