> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.12/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/smc/3.12.md).

# Session Management Controller

The Session Management Controller (SMC) is a Cennso Network Function (CNF)
for session management. SMC is a cloud-native network function deployable on
a Kubernetes environment. It controls user sessions on user plane functions
(UPF) through the PFCP protocol.

SMC can integrate towards external systems like an Online Charging System (OCS)
using the Diameter Credit-Control Application (DCCA), Charging Data Functions (CDF) for offline charging using the Diameter Accounting application, customer AAA systems through Diameter Network Access Server Application (NASREQ) and RADIUS integration, as well as Policy and Charging Rule Control (PCRF) functions over the Diameter Gx interface. Following the Control and User Plane Separation (CUPS) architecture, Travelping provides a Packet Gateway (implemented by SMC) and a User Plane Function (implemented by UPG) that jointly behave as a Policy and Charging Enforcement Function (PCEF). SMC acts as PCEF when interfacing PCRF.

- For offline charging, the Rf reference point supports interaction between a Charging Trigger Function (CTF) and a Charging Data Function (CDF).

- For online charging, the Ro reference point supports interaction between a Charging Trigger Function (CTF) and an Online Charging Function (OCF). DCCA is the application used on Gy/Ro interface. The Gy reference point is functionally equivalent to Ro, and hence is replaced by Ro within the common charging architecture.

- The Gx interface is located between the Policy and Charging Enforcement Function (PCEF) and the Policy and Charging Rules Function (PCRF). It is used to provision and remove PCC rules in the PCEF according to PCRF instructions, as well as to transmit traffic plane events from PCEF to PCRF. This can be used for charging control, policy control, or both, by applying AVPs relevant to the application.

![SMC interfaces](https://docs.cennso.com/api/assets/components/smc/3.12/assets/ProductPortfolioSMC.svg "SMC interfaces")

SMC can be configured to fulfill the following roles:

- 2G and 3G GGSN - 3GPP TS 23.060
- 4G PGW-C - 3GPP TS 23.214, 3GPP TS 23.401
- 4G TDF-C - 3GPP TS 23.214, 3GPP TS 23.203

The distinguishing features of SMC are:

* GTPv1, GTPv2 connectivity to SGW/SGSN
* PFCP connectivity for connecting to user plane functions
* Diameter connections toward OCS, CDF and PCRF nodes
* Preconfigured rules for policy and charging
* AVP filters for Ro and RADIUS interfaces
* Preconfigured answers for offline OCS nodes (OCS-Free)
* Limited Npcf connectivity allowing per-IMSI forwarding policies
* Support for both IPv4 and IPv6 bearers
* IP assignment for UEs
* Rate limitation for incoming GTP and outgoing Diameter interfaces
* HTTP OAM API
  * Check node status
  * Drain GTP contexts
  * Allow/reject establishing new GTP sessions
* External SBI Network Function Selection (NF-Sel) API for UPF selection

# SMC components

## Session Management Controller

SMC consists of the main component - `erGW`. `erGW` is a 3GPP GGSN and PDN-GW implemented in Erlang. It strives to eventually
support all the functionality as defined by [3GPP TS 23.002](https://www.3gpp.org/dynareport/23002.htm) Section 4.1.3.1 for
the GGSN and Section 4.1.4.2.2 for the PDN-GW.

`erGW AAA` is included in the `erGW` project and provides an abstraction for AAA (Authentication, Authorization and Accounting),
supporting RADIUS and DIAMETER protocols.

## Deployment method

SMC provides a Helm chart for installation. There are two charts available:

- SMC Support - installs Prometheus Service Monitor for gathering metrics and Grafana SMC Overview dashboard for observability
- SMC - the main chart that deploys the SMC
