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

# Session Management Controller 3.4.5

In this release of the Session Management Controller (SMC), we updated erGW to the `3.4.5` version, which allowed us to provide the following bug fixes:

- `aaa_sessions_total` metric now reflects session termination
- Rf sessions towards a CDF are no longer marked as `stopped` to prevent stuck sessions
- Incorporate ULI/RAI information in proxy behavior
- Fixed detection of duplicate GTP requests
- Fixed Diameter rate graph

The first two are incorporated from `ergw_aaa` 4.3.1. The `gtplib` library was 
updated to version 3.1.0 to leverage new functionality.

In this release, we also provide a new feature to the SMC chart configuration:

- New configuration options for `aaa.nasreq`, `aaa.gx`, and `aaa.oss`

The following known issues were described for SMC 3.4.5:

- RADIUS Accounting doesn't work without RADIUS Authentication

## Features

### New configuration options for `aaa.nasreq`, `aaa.gx`, and `aaa.oss`

AAA-related Diameter transport options are configured by the **transportOpts** parameter in `aaa.ro`, `aaa.rf`. With this release, you can provide such configuration also for the `gx`, `oss` and `nasreq` objects by specifying values for these parameters:

- `aaa.oss.transportOpts`
- `aaa.gx.transportOpts` (relevant in the standalone mode)
- `aaa.nasreq.transportOpts` (relevant in the standalone mode)

These are all the available configuration options for these objects:

```yaml
aaa:
  oss:
    transportType: tcp # can be sctp
    transportOpts:
      reuseaddr: false
      recbuf: 131072
      sndbuf: 131072
      unordered: false
  gx:
    transportType: tcp
    transportOpts:
      reuseaddr: false
      recbuf: 131072
      sndbuf: 131072
      unordered: false
  nasreq:
    transportType: tcp
    transportOpts:
      reuseaddr: false
      recbuf: 131072
      sndbuf: 131072
      unordered: false
```

## Fixes

### `aaa_sessions_total` metric now reflects session termination

Under some circumstances, an Ro session could be terminated but the session state
was not updated to `stopped`, resulting in wrong figures in metrics. The session state
is now correctly updated.

### Rf sessions towards a CDF are no longer marked as `stopped` to prevent stuck sessions

In the case of CDF connection failures, Rf sessions were marked as `stopped` so charging data
were accumulated in the session but not sent. After some time, they would grow in size and
increase the memory usage until the maximum memory allocation for SMC would be reached.
From this release, sessions are no longer marked as `stopped`, so restoring the connection triggers sending
all pending records to the CDF, eventually freeing memory in SMC.

### Incorporate ULI/RAI information in proxy behavior

ULI/RAI information is now passed on to the proxy API when SMC is configured as a GTP proxy.

### Fixed detection of duplicate GTP requests

Duplicate CSR messages (holding the same sequence number) were not detected and
handled properly. They were treated as new CSRs, which resulted in torn down sessions and
new resource assignments. Duplicates are now detected correctly, so a single answer or
a duplicate of the already provided response is sent instead.

### Fixed Diameter rate graph

SMC Overview Grafana dashboard did not show the AAA messages properly in the graph.
With the fix provided for the SMC Support query, the Diameter requests and answers are now rendered properly.

## Known issues

### RADIUS Accounting doesn't work without RADIUS Authentication

RADIUS Accounting, even if configured with an `acctInterimInterval`, doesn't work properly without
the configured RADIUS Authorization. Start and stop messages are sent, but no interim
messages. Also, the stop message does not report any volume.

A possible workaround is to have a
RADIUS Server in a separate address (using the `standalone` property for both Accounting and
Authorization servers) that always allows connections. This server does not need to include the
`Acct-Interim-Interval` AVP in the response if the `acctInterimInterval` property is configured.
