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

# User Plane Gateway 2.5.0

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

- Update VPP to 22.10
- Add metrics: `vpp_upf_timers_missed` and `vpp_sys_loops_per_second`
- Docs: add `upg` and `upg-support` helm chart docs to docs/installation
- Remove trailing zeros from the NAT pool name in metrics
- Fix random PFCP association loss
- Fix memory leak

UPG uses Fast Path Provider (FPP) in version `1.3.9` and UPG-VPP in version `1.11.0`.

There are no breaking changes in UPG CRD between 2.4.0 and 2.5.0.

## Features

### Update VPP to 22.10

UPG 2.5.0 uses the new version of VPP - 22.10. It is the same version that is used by FPP 2.X.

### Add metrics: `vpp_upf_timers_missed` and `vpp_sys_loops_per_second`

New metrics exposed by UPG:
- `vpp_upf_timers_missed` - number of timers missed for more than five seconds, helps to diagnose if UPG reporting in Usage Reports Request or PFCP Association events includes proper timestamps and timings. This metrics is exposed by UPG-VPP `1.11.0`.

- `vpp_sys_loops_per_second` - number of VPP worker loop cycles per second. This metric helps you diagnose if UPG is overloaded. It is exposed by FPP `1.3.8`. See the [corresponding documentation](https://docs.cennso.com/components/upg/3.2/troubleshooting/verification.md#check-vpp-load) for metric interpretation.

The `vpp_sys_loops_per_second` metric is available on the UPG Overview Grafana dashboard, in the **Vector processing** row. The `vpp_upf_timers_missed` metric is located in the **Error indicators** row.

## Fixes

### Remove trailing zeros from the NAT pool names

Up until now, UPG was publishing NAT metrics with trailing zeros in the name label, for example:

```
# TYPE vpp_nat_pool_block_size gauge
vpp_nat_pool_block_size{name="pool-de\0\0\0\0",network_instance="dn0"} 64
```

The above zeros were seen when fetching the metrics manually. The Prometheus scraper and Grafana Dashboard were not impacted by these trailing zeros.

UPG 2.5.0 fixes this situation and now the NAT pool name in a metric label is trimmed from the trailing zeros.

### Fix random PFCP association loss

UPG 2.5.0 fixes the issues of dropping the PFCP association by keeping the flows in a doubly linked list. This helps reduce the load when a single session has many flows that are expiring. This reduces the overload. UPG does not crash and handles properly the PFCP association events.

This fix is provided by UPG-VPP release `1.11.0`.

### Fix memory leak

UPG 2.5.0 disables by default VPP API trace. This option is removed to eliminate memory leaks, as API traces use more memory by design. It can be activated for debugging purposes by setting `vpp.traceAPICalls: true` in the UPG Helm chart `values.yaml` file.

This fix is provided by FPP `1.3.9`.

## Known issues

### Crash with GRE tunnels

In some cases, naming GRE tunnels like `^gre[0-9]+$` results in a crash. To avoid this issue, make sure to name them differently.

## Migration guide

### 2.4.X -> 2.5.0

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

> **CAUTION:** UPG 2.5.0 requires FPP CRD in version 1.3.4 or higher installed on the Kubernetes cluster.

Follow these steps to upgrade UPG to version 2.5.0:

1. Install the `upg-crd` Helm chart in version 2.5.0.
1. Ensure that the FPP CRD in version 1.3.4 or higher is installed on the Kubernetes cluster.
1. Remove the `upg-support` Helm chart in version 2.4.X. This also removes the `UPG Overview` Grafana dashboard.
1. Install the `upg-support` Helm chart in version 2.5.0 with the enabled dashboard.
1. Remove the `upg` Helm chart in version 2.4.X.
1. Install the `upg` Helm chart in version 2.5.0.
