Networking
SMC configuration includes basic networking settings. It is possible to configure the IP addresses for the following networks:
- Access network (
grx) - Control network (
sx) - Interface used to connect to AAA-related instances (
oss) - RADIUS interface (
radius) - Ro interface (
ro) - specialized settings to connect to Online Charging System - Gx interface (
gx) - specialized settings to connect to policy exchange from PCRF
Network init container
SMC chart uses an init container to configure the pod networking. The SMC chart generates network configuration based
on networking section values.
If SMC cannot start and errors out after the init container, the SMC network configuration may be broken. To check why it is happening, init container logs can be seen:
Access network
The access network is used for GTP-C or TDF-C. To utilize FPP-based networking, Network Attachment Definition (NAD)
should be created outside of the SMC chart, and referenced in annotations, together with disabling vxlanController:
NAD grx-fpp will be used to create VPP's TAP interface, and the interface name will be grx. To configure the IP,
use the following example:
It is possible to configure multiple IPs for the access network interface, for example:
When using multiple IPs from the same network, routes added to the same interface should not overlap - do not declare the same routes twice.
There can be multiple access network interfaces, together with multiple NADs usage example:
Control network
The Control network is used for PFCP communication and to connect with UPG. The overlay networking used should be
configured via pod annotations, together with disabling vxlanController:
The control network configuration uses FPP based network in a form of Network Attachment Definition sx-fpp
created outside of the SMC chart. The interface name inside the SMC pod is sxb. It uses the VPP's TAP interface
driver, which provides fast packet processing inside VPP, and exposes a kernel-based interface inside the pod.
Example control network with UPG connectivity configuration:
This will configure the networking.sx.ipv4.addr IP with netmask to sxb (which is an interface name from the pod's
network annotation). SMC will try to reach UPG using the SX interface and IP address defined in
upg.instances.{upg-name}.networking.sx.ipv4.addr.
Manual configuration
SMC chart exposes the possibility to configure interfaces in a form of a bash script. To do this manual configuration,
set networking.manual to true, initScript.enabled to true and provide config script in initScript.script value.
Control network configuration (SX) is required even when manual network configuration.
Example: