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

# User Plane Gateway 2.1.0

The new release of User Plane Gateway (UPG) provides the following features and improvements:

- Configuration for Packet Forwarding Control Protocol (PFCP) heartbeats
- Operational logging of Session Management Controller (SMC) associations
- Logging improvements for network instance (NWI) and PFCP actions
- New metrics for the `UPG Overview` Grafana dashboard
- Improvements for the `show upf session` CLI command

The new version of UPG does not include any breaking changes. It is backward compatible with the 2.0.0 version.
UPG Manager uses UPG VPP in version 1.6.0 and FPP Manager in version 1.1.0 as base images.

For this release, the newer kernel (5.15+) and Kubernetes (1.22+) versions are not supported. For more details,
see the [Known issues](#known-issues) section.

To see UPG's key performance indicators (KPIs), go to the [[Performance document](https://docs.cennso.com/components/upg/2.16/performance.md)..

## Features

### Configuration for PFCP heartbeats

Previously, configuration for PFCP heartbeats was hard-coded to run 3 retries and wait for 10 second timeout each time. Now you can configure the timeout and the number of retries by adjusting these Helm chart values:

```
pfcpHeartbeatTimeout: 7
pfcpHeartbeatRetries: 6
```

To verify the current settings, log in to the UPG container and run:

```
# vppctl sh upf heartbeat
```

The console output looks like this:

```
Timeout: 7 Retries: 6
```

### Operational logging of SMC associations

From this release, UPG logs information about SMC associations, which includes information about established, released, lost, and suspicious associations (when heartbeats are resent after the expired heartbeat timers).

See the example of logs for the released and established associations:

```
/usr/bin/vpp[14]: upf: PFCP Association released: node pgw.epc.mnc001.mcc001.3gppnetwork.org, local IP 172.20.0.20, remote IP 172.20.0.10
/usr/bin/vpp[14]: upf: PFCP Association established: node pgw.epc.mnc001.mcc001.3gppnetwork.org, local IP 172.20.0.20, remote IP 172.20.0.10
```

### Logging improvements for NWI and PFCP actions

Since this release, UPG logs every occurrence of adding and deleting a network instance (NWI). Also, every reconfiguration of PFCP settings is logged, which currently includes information about heartbeat settings: timeout and number of retries.

### New metrics for the `UPG Overview` Grafana dashboard

We added the following metrics to the `UPG Overview` Grafana dashboard:

- `UPG Heap Usage` and `UPG Stats Segment Usage` memory utilization added in the **Resource usage** row.
- `UPG Interface Error Overview` table with `interface_is_down` and `no_buffer_gso` fields included in the **UPG Instances Interfaces info** row.
- **Error indicators** row with `No free TX slot` and `ARP Errors` metrics added.
- `NAT Pool Utilization`, `NAT Pool Capacity` and `NAT Pool Overview` panels added in the **NAT Info** row.

## Fixes

### Improvements for the `show upf session` command

The previous version of UPG CLI did not accept hexadecimal characters while filtering. Only decimal characters were accepted, which caused a parsing error each time hexadecimal characters were provided:

```
# vppctl show upf session up seid 0xaf09c364f08e480e
show upf session: parse error `xaf09c364f08e480e'
```

In this release, we provided a fix that allows using hexadecimal characters in filtering by UP SEIDs.

Also, we added `show upf session 0x...flows` that displays the flows related to the given session.
By default, it displays 100 sessions. You can override the session limit by running:

```
show upf session limit {NUMBER_OF_SESSIONS}
```

If you want to display the unlimited number of sessions, use `limit 0`.

## Known issues

### Kernel 5.15 and newer are not supported

UPG 2.1.0 does not work with the newer kernel versions (5.15+), which is related to the constraints of
the new layout for the control groups (cgroups) v2 files. To check if UPG works with your kernel version,
connect to your machine and check if the `/sys/fs/cgroup/cpuset/cpuset.cpus` path
is present. If not, use the newer version of UPG, since the current version will not work.

### Kubernetes 1.22+ is not supported

Since the support for the CustomResourceDefinition (CRD) **apiVersion** of `apiextensions.k8s.io/v1beta1`
was removed from Kubernetes API in release 1.22+, UPG-CRD 2.1.0 does not work on that cluster.
Please use the newer versions of UPG-CRD.

## Migration guide

### 2.0.0 -> 2.1.0

> **CAUTION:** Updating the UPG Helm chart will restart the currently running UPG instance causing all active sessions to be dropped.

Follow these steps to upgrade UPG to version 2.1.0:

1. Install the `upg-crd` Helm chart in version 2.1.0.
1. Remove the `upg-support` Helm chart in version 2.0.0. This also removes the `UPG Overview` Grafana dashboard.
1. Install the `upg-support` Helm chart in version 2.1.0 with the enabled dashboard.
1. Install the `upg` Helm chart in version 2.1.0.
