> 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/releases/3.12.0.md).

# Session Management Controller 3.12.0

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

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

- Enable additional, non-standard AVPs in NASREQ requests
- Unify GTP IP metric labels
- Reduce noise in AAA-related logs
- Handle race condition during session setup

> **CAUTION** This release provides changes to the `ip` and `remote` GTP metric labels. The systems that use these labels will no longer find them and, as a result, will stop working appropriately. Read the release notes carefully before upgrading and follow the [migration guide](#migration-guide) for more details on mitigating the impact.

## Features

### Enable additional, non-standard AVPs in NASREQ requests

SMC can now send non-standard AVPs in NASREQ requests like `3GPP-IMEISV`. To prevent NASREQ servers from rejecting them, you can enable or disable them using the `aaa.nasreq.additionalAVPs` property.
## Improvements

### Unify GTP IP metric labels

Previously, GTP metrics used the `ip` and `remote` labels for the GTP peer, which could be confusing. Starting from this release, a different label called `peer_address` is used instead in all the following GTP metrics:

- `gtp_path_rtt_milliseconds`
- `gtp_path_messages_processed_total`
- `gtp_path_messages_duplicates_total`
- `gtp_path_messages_retransmits_total`
- `gtp_path_messages_timeouts_total`
- `gtp_path_contexts_total`

If your systems rely on the `ip` or `remote` labels, follow the [migration guide](#migration-guide) for a smooth transition to the `peer_address` label.

See the example of the old metrics measurement:

```
gtp_path_rtt_milliseconds_bucket{apn="test-smc.example.net",app="smc",cnf="smc",le="+Inf",ip="192.168.1.22",pod="smc-5d58d79db8-z5865",type="echo_request",version="v2"}
```

See the metrics measurement with new labels:

```
gtp_path_rtt_milliseconds_bucket{apn="test-smc.example.net",app="smc",cnf="smc",le="+Inf",peer_address="192.168.1.22",pod="smc-5d58d79db8-z5865",type="echo_request",version="v2"}
```

### Reduce noise in AAA-related logs

Previously, the AAA processes reported normal process exit signals at the error log level, flooding the logs with irrelevant information. This behaviour is fixed and only abnormal exits are now reported.

## Fixes

### Handle race condition during session setup

Previously, concurrent requests from the same IMSI/IMEI were not handled correctly, leading to a leak of PFCP sessions. This behaviour is now fixed.

## Migration guide

### Unify GTP IP metric labels

If you use Prometheus `ServiceMonitor` included in the SMC Support chart, both new and deprecated metric labels will be supported by using the [metric relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs) mechanism.

If you do not use this `ServiceMonitor` and your systems consume unmodified SMC metrics, the deprecated metric labels will no longer be visible and the systems will stop working appropriately. In this case, you must update the old labels yourself. See this example of a manual metrics relabeling:

```yaml
    - action: replace
      sourceLabels: [__name__, peer_address]
      regex: "(?:gtp_path_rtt_milliseconds_[a-z]*|gtp_path_contexts_total);(.*)"
      targetLabel: ip
      replacement: "$1"
```
