> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.10/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.10.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), like Travelping's UPG, via the PFCP protocol.

SMC can integrate towards external systems like an Online Charging System (OCS)
using the Diameter-Credit-Control and the Diameter Gy applications, Policy and
Charging Control (PCF) functions using the Diameter-Gx application, Charging Data
Functions (CDF) for offline charging using the Diameter Accounting application,
as well as to customer AAA systems via Diameter/RADIUS NASREQ integration.

![SMC interfaces](https://docs.cennso.com/api/assets/components/smc/3.10/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
