|
|
# An example of SMF Configuration
|
|
|
|
|
|
## Interfaces
|
|
|
|
|
|
```
|
|
|
INTERFACES :
|
|
|
{
|
|
|
N4 :
|
|
|
{
|
|
|
# SMF binded interface for N4 communication (UPF)
|
|
|
INTERFACE_NAME = "eno1:sn4"; # STRING, interface name
|
|
|
IPV4_ADDRESS = "read"; # STRING, CIDR or "read" to let app read interface configured IP address
|
|
|
};
|
|
|
|
|
|
SBI :
|
|
|
{
|
|
|
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
|
|
|
INTERFACE_NAME = "eno1:smf"; # STRING, interface name
|
|
|
IPV4_ADDRESS = "read";
|
|
|
PORT = 80 #Normally we don't need this (default port 80)
|
|
|
};
|
|
|
};
|
|
|
|
|
|
```
|
|
|
|
|
|
## UE Address Pool
|
|
|
|
|
|
```
|
|
|
# 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 SPGW
|
|
|
# Normally no more than 96 pools allowed, but for non OVS GTP solution, only one pool allowed (TODO).
|
|
|
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 = "192.169.0.2 - 192.169.255.253";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
|
|
|
{RANGE = "192.170.0.2 - 192.170.255.253";}, # STRING, IPv4 RANGE IP_start - IP_end, YOUR NETWORK CONFIG HERE.
|
|
|
{RANGE = "192.171.0.2 - 192.171.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.
|
|
|
{PREFIX = "4001:1:2::/64";} # STRING, IPv6 prefix, YOUR NETWORK CONFIG HERE.
|
|
|
);
|
|
|
};
|
|
|
|
|
|
```
|
|
|
|
|
|
## DNN Configuration
|
|
|
|
|
|
```
|
|
|
DNN_LIST = (
|
|
|
# IPV4_POOL, IPV6_POOL are index in IPV4_LIST, IPV6_LIST, PDN_TYPE choice in {IPv4, IPv6, IPv4v6}
|
|
|
{DNN_NI = "default"; PDN_TYPE = "IPv4"; IPV4_POOL = 0; IPV6_POOL = -1},
|
|
|
{DNN_NI = "carrier.com"; PDN_TYPE = "IPv4"; IPV4_POOL = 1; IPV6_POOL = -1},
|
|
|
{DNN_NI = "apn2"; PDN_TYPE = "IPv4"; IPV4_POOL = 2; IPV6_POOL = -1},
|
|
|
{DNN_NI = "apn3"; PDN_TYPE = "IPv4"; IPV4_POOL = 3; IPV6_POOL = -1},
|
|
|
{DNN_NI = "apn4"; PDN_TYPE = "IPv4"; IPV4_POOL = 4; IPV6_POOL = -1}
|
|
|
);
|
|
|
|
|
|
# DNS address communicated to UEs
|
|
|
DEFAULT_DNS_IPV4_ADDRESS = "8.8.8.8"; # YOUR NETWORK CONFIG HERE
|
|
|
DEFAULT_DNS_SEC_IPV4_ADDRESS = "4.4.4.4"; # YOUR NETWORK CONFIG HERE
|
|
|
DEFAULT_DNS_IPV6_ADDRESS = "2001:4860:4860::8888"; # FFU
|
|
|
DEFAULT_DNS_SEC_IPV6_ADDRESS = "2001:4860:4860::8844";
|
|
|
```
|
|
|
|
|
|
## Other NFs
|
|
|
|
|
|
```
|
|
|
AMF :
|
|
|
{
|
|
|
IPV4_ADDRESS="172.16.1.102";
|
|
|
PORT = 80;
|
|
|
};
|
|
|
UDM :
|
|
|
{
|
|
|
IPV4_ADDRESS="172.16.1.103";
|
|
|
PORT = 80;
|
|
|
};
|
|
|
|
|
|
UPF_LIST = (
|
|
|
{IPV4_ADDRESS="172.16.2.102" ;}
|
|
|
);
|
|
|
|
|
|
```
|
|
|
|
|
|
## Local Subscription Data
|
|
|
|
|
|
```
|
|
|
LOCAL_CONFIGURATION :
|
|
|
{
|
|
|
USE_LOCAL_CONFIGURATION = "yes";
|
|
|
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 = 222; NSSAI_SD = "123", DNN = "carrier.com", 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"}
|
|
|
);
|
|
|
};
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
## Other options
|
|
|
|
|
|
```
|
|
|
INSTANCE = 1; # 0 is the default
|
|
|
PID_DIRECTORY = "/var/run"; # /var/run is the default
|
|
|
...
|
|
|
# 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
|
|
|
FORCE_PUSH_PROTOCOL_CONFIGURATION_OPTIONS = "no"; # STRING, {"yes", "no"}.
|
|
|
```
|
|
|
|
|
|
**An example for SMF configuration file could be found in [smf.conf](smf.conf)**
|
|
|
|