> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.15/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.15/releases/3.13.0.md).

# Session Management Controller 3.13.0

**Release date:** 2024-08-08

This release of Session Management Controller (SMC) introduces the following features, improvements, and bugfixes:

- Introduction of the GTP Proxy use case
- Document SMC use case configuration
- Store SMC configuration in the YAML format
- Hardened network setup
- Improvements of the SMC logging
- Upgraded nettools container
- Removal of the VXLAN controller support
- Deprecation of the `.networking.{oss,sx,grx,rf,ro,gx,radius}` sections

## Features

### Introduction of the GTP Proxy use case

Starting with the 3.13 release, SMC supports the GTP Proxy use case. It allows you to manage and control GTP traffic between different nodes, and to provide network modifications of selected GTP information elements. To learn more, read the [GTP Proxy documentation](https://docs.cennso.com/components/smc/3.15/use-cases/gtpproxy.md).

### Document SMC use case configuration

In this release, we improved the documentation of the supported SMC use cases with configuration examples and architecture. Read these documents to learn more about SMC use cases:
- [Packet Gateway](https://docs.cennso.com/components/smc/3.15/use-cases/pgw.md)
- [Traffic Detection Function](https://docs.cennso.com/components/smc/3.15/use-cases/tdf.md)
- [GTP Proxy](https://docs.cennso.com/components/smc/3.15/use-cases/gtpproxy.md)

### Store SMC configuration in the YAML format

The SMC configuration is now rendered in the YAML format instead of JSON. YAML is more compact and more readable, especially in the case of debugging.

### Hardened network setup

Additional rules and settings are now added to the network setup to harden the networking:
- GTP and Sx interfaces are now isolated within VRFs. This prevents access from GTP networks to other networks and accidental leaks of GTP and Sx traffic into signalling or pod networks.
- The container's ARP settings enforce a strong host model. In addition, nft rules ensure that IP addresses are bound to specific interfaces. This helps to ensure that in multi-homed, multi-path setups, the intended paths are used.

### Improvements of the SMC logging

This release introduces more structured and granular logging in SMC. With the new log format, SMC also provides an event ID, which allows you to filter log messages for a particular event. For more information, read the [Structured logging](https://docs.cennso.com/components/smc/3.15/config/structured-logging.md) document. 

## Fixes

### Upgraded nettools container

The nettools container is now upgraded to v1.13.0, replacing the old iptables with the nftables-backed version.
The network init script now uses nft directly, instead of relying on iptables translation. This results in more concise nft rules.

## Deprecations and removals

### Removal of the VXLAN controller support

Release 3.13 removed the VXLAN controller support. Change the existing configuration to use [NetworkAttachmentDefinitions (NADs)](https://docs.cennso.com/components/smc/3.15/config/networking.md#access-network) instead.

### Deprecation of the `.networking.{oss,sx,grx,rf,ro,gx,radius}` sections

With release 3.13, the `.networking.{oss,sx,grx,rf,ro,gx,radius}` sections are marked as deprecated and are replaced by `.networking.interfaces` and `.networking.services`. The deprecated sections will be removed after 2024-11-01.

## Migration guide

### Network configuration section changes

The `.networking.{oss,sx,grx,rf,ro,gx,radius}` sections are now replaced by `.networking.interfaces` and `.networking.services`.

The upgraded network initialization offers better isolation between networks, but it requires Kubernetes workers to support VRF.

Major Linux distributions provide VRF support as modules that must be loaded at runtime. These modules might not be installed by the default Cennso baseline verification.

For Ubuntu, the VRF module is included in the `linux-modules-extra-$(uname -r)` package. Standard cloud or virtual machine images might not have this package installed. Add the necessary packages to your Kubernetes workers before upgrading.

This script converts simple configurations from the previous SMC versions:

```bash
#!/bin/sh

yq -i \
   '
    with(.networking; select( .oss ) |
       .interfaces += {.oss.interface: {"vrf": "cp", "endpoints": {"oss": {"ipv4": .oss.ipv4}}}} ) |
    with(.networking; select( .grx ) |
       .interfaces += {.grx.interface: {"vrf": "epc", "endpoints": {"grx": {"ipv4": .grx.ipv4}}}} ) |
    with(.networking; select( .sx ) |
       .interfaces += {.sx.interface: {"vrf": "cp", "endpoints": {"sx": {"ipv4": .sx.ipv4}}}} ) |
    with(.networking; select( .rf ) |
       .interfaces += {.rf.interface: {"vrf": "cp", "endpoints": {"rf": {"ipv4": .rf.ipv4}}}} ) |
    with(.networking; select( .ro ) |
       .interfaces += {.ro.interface: {"vrf": "cp", "endpoints": {"ro": {"ipv4": .ro.ipv4}}}} ) |
    with(.networking; select( .gx ) |
       .interfaces += {.gx.interface: {"vrf": "cp", "endpoints": {"gx": {"ipv4": .gx.ipv4}}}} ) |
    with(.networking; select( .radius ) |
       .interfaces += {.radius.interface: {"vrf": "cp", "endpoints": {"radius": {"ipv4": .radius.ipv4}}}} ) |
    with(.networking; select( .grx ) |
       .services += {"grx": {"endpoint": "\(.grx.interface).grx", "type": "grx", "networkInstance": "epc", "direction": "access"}}) |
    with(.networking; select( .sx ) |
       .services += {"sx": {"endpoint": "\(.sx.interface).sx", "type": "sx", "networkInstance": "cp"}}) |

    with(.networking; del(.oss, .grx, .sx, .rf, .ro, .gx, .radius))
   ' \
    $1
```

To convert your configurations, copy the script to a file `convert-legacy-networking.sh` and run it with the following command:

```sh
convert-legacy-networking.sh values.yaml
```

The result is a modified `values.yaml` file. See the comparison between an old configuration and the configuration after conversion:

- Old configuration: 

   ```yaml
   labels:
   apn: travelping.apn

   networking:
   grx:
      interface: grx0
      ipv4:
         addr: "192.168.4.68/28"
         routes:
         - to: 192.168.4.65
   sx:
      interface: sx2
      ipv4:
         addr: "172.21.15.204/28"
   ```

- Modified configuration: 

   ```yaml
   labels:
   apn: travelping.apn
   networking:
   interfaces:
      grx0:
         vrf: epc
         endpoints:
         grx:
            ipv4:
               addr: "192.168.4.68/28"
               routes:
               - to: 192.168.4.65
      sx2:
         vrf: cp
         endpoints:
         sx:
            ipv4:
               addr: "172.21.15.204/28"
   services:
      grx:
         endpoint: grx0.grx
         type: grx
         direction: access
         networkInstance: epc
      sx:
         endpoint: sx2.sx
         type: sx
         networkInstance: cp
   ```

Configurations with multiple GRX IPs or multiple GRX interfaces must be converted manually.
Check the resulting `values.yaml` and adjust the `vrf` settings for the interfaces as needed.
