Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
7e25db85
Commit
7e25db85
authored
Mar 30, 2022
by
chen2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置
parent
e5b6c43c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
310 additions
and
37 deletions
+310
-37
build/scripts/build_smf
build/scripts/build_smf
+8
-0
etc/smf.conf
etc/smf.conf
+44
-37
etc/smf.template
etc/smf.template
+129
-0
etc/smf_docker.conf
etc/smf_docker.conf
+129
-0
No files found.
build/scripts/build_smf
View file @
7e25db85
...
...
@@ -201,6 +201,14 @@ function main()
compilations smf smf
$OPENAIRCN_DIR
/build/smf/build/smf
$verbose
ret
=
$?
;
[[
$ret
-ne
0
]]
&&
return
$ret
if
[
!
-d
/etc/5gc/config
]
;
then
$SUDO
mkdir
-p
/etc/5gc/config
fi
$SUDO
cp
-v
$OPENAIRCN_DIR
/etc/smf.conf /etc/5gc/config/
$SUDO
cp
-v
$OPENAIRCN_DIR
/etc/smf_docker.conf /etc/5gc/config/
# For daemon should not be group writable
$SUDO
chmod
755
$OPENAIRCN_DIR
/build/smf/build/smf
$SUDO
cp
-upv
$OPENAIRCN_DIR
/build/smf/build/smf
$INSTALL_DIR
&&
$SUDO
chmod
755
$INSTALL_DIR
/smf
&&
echo_success
"smf installed"
...
...
etc/smf.conf
100644 → 100755
View file @
7e25db85
...
...
@@ -21,26 +21,27 @@
SMF
=
{
INSTANCE
=
@
INSTANCE
@
;
# 0 is the default
PID_DIRECTORY
=
"
@PID_DIRECTORY@
"
;
# /var/run is the default
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
=
"@SMF_INTERFACE_NAME_FOR_N4@"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"read"
;
INTERFACE_NAME
=
"lo"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"127.0.0.2/24"
;
PORT
=
8805
;
};
SBI
:
{
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
INTERFACE_NAME
=
"
@SMF_INTERFACE_NAME_FOR_SBI@
"
;
# YOUR NETWORK CONFIG HERE
INTERFACE_NAME
=
"
ens32
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"read"
;
PORT
=
@
SMF_INTERFACE_PORT_FOR_SBI
@
;
# YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT
=
@
SMF_INTERFACE_HTTP2_PORT_FOR_SBI
@
;
# YOUR NETWORK CONFIG HERE
API_VERSION
=
"
@SMF_API_VERSION@
"
;
# YOUR SMF API VERSION CONFIG HERE
PORT
=
8889
;
# YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT
=
8890
;
# YOUR NETWORK CONFIG HERE
API_VERSION
=
"
v2
"
;
# YOUR SMF API VERSION CONFIG HERE
};
};
...
...
@@ -52,36 +53,36 @@ SMF =
IP_ADDRESS_POOL
:
{
IPV4_LIST
= (
{
RANGE
=
"1
2.1.1.2 - 12.1.1.128
"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"1
2.1.1.129 - 12.1.1.224
"
;}
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"10.10.10.2 - 10.10.10.253"
;}
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"1
92.169.0.200 - 192.169.0.253
"
;},
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{
RANGE
=
"1
92.169.0.3 - 192.169.255.253
"
;}
# STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
#
{RANGE = "10.10.10.2 - 10.10.10.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.
{
PREFIX
=
"4001:1:2::/64"
;}
# STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
#
{PREFIX = "4001: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
=
"
default"
;
PDU_SESSION_TYPE
=
"IPv4"
;
IPV4_POOL
=
0
;
IPV6_POOL
= -
1
},
{
DNN_NI
=
"
carrier.com
"
;
PDU_SESSION_TYPE
=
"IPv4"
;
IPV4_POOL
=
1
;
IPV6_POOL
= -
1
},
{
DNN_NI
=
"
oai"
;
PDU_SESSION_TYPE
=
"IPv4"
;
IPV4_POOL
=
2
;
IPV6_POOL
= -
1
}
{
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
=
"
@DEFAULT_DNS_IPV4_ADDRESS@
"
;
# YOUR DNS CONFIG HERE
DEFAULT_DNS_SEC_IPV4_ADDRESS
=
"
@DEFAULT_DNS_SEC_IPV4_ADDRESS@
"
;
# YOUR DNS CONFIG HERE
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
=
"
@REGISTER_NRF@
"
;
# Set to yes if SMF resgisters to an NRF
DISCOVER_UPF
=
"
@DISCOVER_UPF@
"
;
# Set to yes to enable UPF discovery and selection
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
...
...
@@ -89,39 +90,45 @@ SMF =
AMF
:
{
IPV4_ADDRESS
=
"
@AMF_IPV4_ADDRESS@
"
;
# YOUR AMF CONFIG HERE
PORT
=
@
AMF_PORT
@
;
# YOUR AMF CONFIG HERE (default: 80)
API_VERSION
=
"
@AMF_API_VERSION@
"
;
# YOUR AMF API VERSION FOR SBI CONFIG HERE
IPV4_ADDRESS
=
"
192.168.199.186
"
;
# 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
=
"
@UDM_IPV4_ADDRESS@
"
;
# YOUR UDM CONFIG HERE
PORT
=
@
UDM_PORT
@
;
# YOUR UDM CONFIG HERE (default: 80)
API_VERSION
=
"
@UDM_API_VERSION@
"
;
# YOUR UDM API VERSION FOR SBI CONFIG HERE
IPV4_ADDRESS
=
"
192.168.2.35
"
;
# 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
=
"
@NRF_IPV4_ADDRESS@
"
;
# YOUR NRF CONFIG HERE
PORT
=
@
NRF_PORT
@
;
# YOUR NRF CONFIG HERE (default: 80)
API_VERSION
=
"
@NRF_API_VERSION@
"
;
# YOUR NRF API VERSION FOR SBI CONFIG HERE
IPV4_ADDRESS
=
"
192.168.12.100
"
;
# 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
=
"
@UPF_IPV4_ADDRESS@
"
;}
# YOUR UPF CONFIG HERE
{
IPV4_ADDRESS
=
"
127.0.0.3
"
;}
# YOUR UPF CONFIG HERE
);
LOCAL_CONFIGURATION
:
{
SESSION_MANAGEMENT_SUBSCRIPTION_LIST
= (
{
NSSAI_SST
=
222
,
NSSAI_SD
=
"123"
,
DNN
=
"default"
,
DEFAULT_SESSION_TYPE
=
"IPV4"
,
DEFAULT_SSC_MODE
=
1
,
QOS_PROFILE_5QI
=
6
,
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
=
111
;
NSSAI_SD
=
"124"
,
DNN
=
"oai"
,
DEFAULT_SESSION_TYPE
=
"IPV4"
,
DEFAULT_SSC_MODE
=
1
,
QOS_PROFILE_5QI
=
7
,
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
=
"10Mbps"
,
SESSION_AMBR_DL
=
"11Mbps"
}
# SESSION_MANAGEMENT_SUBSCRIPTION_LIST = (
# { NSSAI_SST = 222, NSSAI_SD = "123", DNN = "default", DEFAULT_SESSION_TYPE = "IPV4", DEFAULT_SSC_MODE = 1,
# QOS_PROFILE_5QI = 6, 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 = 111; NSSAI_SD = "124", DNN = "oai", DEFAULT_SESSION_TYPE = "IPV4", DEFAULT_SSC_MODE = 1,
# QOS_PROFILE_5QI = 7, 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 = "10Mbps", SESSION_AMBR_DL = "11Mbps"}
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"
}
);
};
...
...
etc/smf.template
0 → 100755
View file @
7e25db85
################################################################################
# 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 = @INSTANCE@; # 0 is the default
PID_DIRECTORY = "@PID_DIRECTORY@"; # /var/run is the default
INTERFACES :
{
N4 :
{
# SMF binded interface for N4 communication (UPF)
INTERFACE_NAME = "@SMF_INTERFACE_NAME_FOR_N4@"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
};
SBI :
{
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
INTERFACE_NAME = "@SMF_INTERFACE_NAME_FOR_SBI@"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = @SMF_INTERFACE_PORT_FOR_SBI@; # YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT = @SMF_INTERFACE_HTTP2_PORT_FOR_SBI@; # YOUR NETWORK CONFIG HERE
API_VERSION = "@SMF_API_VERSION@"; # 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 = "12.1.1.2 - 12.1.1.128";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{RANGE = "12.1.1.129 - 12.1.1.224";} # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
{RANGE = "10.10.10.2 - 10.10.10.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.
{PREFIX = "4001: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 = "default"; PDU_SESSION_TYPE = "IPv4"; IPV4_POOL = 0; IPV6_POOL = -1},
{DNN_NI = "carrier.com"; PDU_SESSION_TYPE = "IPv4"; IPV4_POOL = 1; IPV6_POOL = -1},
{DNN_NI = "oai"; PDU_SESSION_TYPE = "IPv4"; IPV4_POOL = 2; IPV6_POOL = -1}
);
# DNS address communicated to UEs
DEFAULT_DNS_IPV4_ADDRESS = "@DEFAULT_DNS_IPV4_ADDRESS@"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_SEC_IPV4_ADDRESS = "@DEFAULT_DNS_SEC_IPV4_ADDRESS@"; # 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 = "@REGISTER_NRF@"; # Set to yes if SMF resgisters to an NRF
DISCOVER_UPF = "@DISCOVER_UPF@"; # 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 = "@AMF_IPV4_ADDRESS@"; # YOUR AMF CONFIG HERE
PORT = @AMF_PORT@; # YOUR AMF CONFIG HERE (default: 80)
API_VERSION = "@AMF_API_VERSION@"; # YOUR AMF API VERSION FOR SBI CONFIG HERE
};
UDM :
{
IPV4_ADDRESS = "@UDM_IPV4_ADDRESS@"; # YOUR UDM CONFIG HERE
PORT = @UDM_PORT@; # YOUR UDM CONFIG HERE (default: 80)
API_VERSION = "@UDM_API_VERSION@"; # YOUR UDM API VERSION FOR SBI CONFIG HERE
};
NRF :
{
IPV4_ADDRESS = "@NRF_IPV4_ADDRESS@"; # YOUR NRF CONFIG HERE
PORT = @NRF_PORT@; # YOUR NRF CONFIG HERE (default: 80)
API_VERSION = "@NRF_API_VERSION@"; # YOUR NRF API VERSION FOR SBI CONFIG HERE
};
UPF_LIST = (
{IPV4_ADDRESS = "@UPF_IPV4_ADDRESS@" ;} # YOUR UPF CONFIG HERE
);
LOCAL_CONFIGURATION :
{
SESSION_MANAGEMENT_SUBSCRIPTION_LIST = (
{ NSSAI_SST = 222, NSSAI_SD = "123", DNN = "default", DEFAULT_SESSION_TYPE = "IPV4", DEFAULT_SSC_MODE = 1,
QOS_PROFILE_5QI = 6, 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 = 111; NSSAI_SD = "124", DNN = "oai", DEFAULT_SESSION_TYPE = "IPV4", DEFAULT_SSC_MODE = 1,
QOS_PROFILE_5QI = 7, 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 = "10Mbps", SESSION_AMBR_DL = "11Mbps"}
);
};
};
etc/smf_docker.conf
0 → 100755
View file @
7e25db85
################################################################################
# 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"
;
};
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
=
"ctnet"
;
PDU_SESSION_TYPE
=
"IPv4v6"
;
IPV4_POOL
=
1
;
IPV6_POOL
=
1
},
{
DNN_NI
=
"internet"
;
PDU_SESSION_TYPE
=
"IPv4"
;
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
=
"172.11.200.14"
;
# 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
=
"172.11.200.12"
;
# 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
=
"192.168.12.100"
;
# 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
=
"192.168.2.40"
;}
# 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
=
"1000Mbps"
,
SESSION_AMBR_DL
=
"1100Mbps"
},
{
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"
}
);
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment