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

# User Plane Gateway 2.7.0

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

- Add VPP buffer metrics
- Add new UPG metrics
- Adjust UPG deployment not to use hugepages by default
- IPFix rework
- Fix out-of-volume quota handling
- Add port configuration in the UPG container
- Fix NAT binding tracking

UPG uses Fast Path Provider (FPP) in version 1.3.12 and UPG-VPP in version 1.13.0.

There are no breaking changes in UPG CRD between 2.7.0 and 2.6.0.

## Features

### Add VPP buffer metrics

UPG 2.7.0 exposes new VPP buffer metrics:

- **vpp_buffer_pools_available** - number of VPP buffers that are not used. Example: `vpp_buffer_pools_available{numa="default-numa-0"} 251935`, where **numa** is the name of the NUMA node that provides this metric
- **vpp_buffer_pools_cached** - number of cached VPP buffers. Example: `vpp_buffer_pools_cached{numa="default-numa-0"} 0`
- **vpp_buffer_pools_used** - number of used VPP buffers. Example: `vpp_buffer_pools_used{numa="default-numa-0"} 4097`

Buffers are used for packet processing. You can configure the number of buffers through the **buffersPerNuma** parameter. If all buffers are allocated, the VPP instance cannot forward traffic. The new metrics improve observability and help diagnose issues with performance and resource usage.

The new metrics are available in the **Resource Usage** row in the **UPG Overview** Grafana dashboard.

### Add new UPG metrics

UPG 2.7.0 exposes new UPG metrics:

- **vpp_pfcp_received_incorrect** - number of messages from the Control Plane that were not decoded properly. May include messages other than PFCP. Example: `vpp_pfcp_received_incorrect 0`
- **vpp_pfcp_messages_processed_total** - number of PFCP messages processed and responded to. Contains the `type` label denoting the message type and `direction`. Example: `vpp_pfcp_messages_processed_total{type="session_establishment",direction="rx"} 123`
- **vpp_pfcp_errors_total** - number of PFCP messages processed and responded to with an error status. Contains the `type` label denoting the message type and `direction`. Example: `vpp_pfcp_errors_total{type="session_establishment",direction="rx"} 0`
- **vpp_upf_session_reports_total** - number of generated session reports. Example: `vpp_upf_session_reports_total 123`
- **vpp_upf_ipfix_records_sent_total** - number of IPFIX records sent from the UPF plugin. Example: `vpp_upf_ipfix_records_sent_total 100`
- **vpp_upf_ipfix_messages_sent_total** - number of IPFIX messages with reports sent from the UPF plugin. Example: `vpp_upf_ipfix_messages_sent_total 100`

The new metrics enhance the observability of UPG instances. This also enables the measurement of the UPG performance and the construction of SLIs.

The new metrics are available in the **PFCP - Sessions and Signaling** row in the **UPG Overview** Grafana dashboard.

### IPFix rework

> **CAUTION:** UPG 2.7.0 requires TSR Sink at least in version 2.0.0 as an IPFix receiver. Earlier versions are not supported.

UPG 2.7.0 introduces the following changes in IPFix handling:

- Changed IPFix template names: `dest` -> `FlowUsage`, `default` -> `NatEvent`
- Pre-create IPFix context during session creation, so that IPFix templates can be sent before traffic
- Batching IPFix reports in a single UDP message
- IPFix **sourceIPv4Address** field is always UE address and **destinationIPv4Address** is always from the Data network
- Report traffic usage in both directions (bi-directional) for the initiator and responder

The IPFix template rename is backward compatible. The automatic translation of old names in the chart values and UPGConfig CR is done. Also, the SMF configuration for IPFix sent through PFCP is mapped to the new names.

## Fixes

### Fix out-of-volume quota handling

Up until now, the UE could use more volume than granted in Volume-Quota if PFCP Session Modification Request came in fast succession.

UPG 2.7.0 fixes this issue by better tracking the moment of exceeding Volume-Quota. This way, the UE does not consume more traffic than allowed.

### Add port configuration in the UPG container

The port configuration was missing in the UPG container so the monitoring stack was not able to retrieve the name of the container that exposed metrics. Also, it is a good practice to list ports that are exposed by the container.

UPG Helm chart in version 2.7.0 fixes this issue.

### Fix NAT binding tracking

In some cases, the tracking of NAT bindings got lost. This resulted in zero values in the **external NAT port** IPFIX information element.

UPG 2.7.0 fixes this issue by proper NAT binding tracking.

## Known issues

### Number of Rx/Tx queues and buffer/queue size can't be modified in the CNI-less feature

Due to the implications of implementing the VPP interface, the current implementation of the CNI-less feature does not allow you to modify the following parameters in the VPPInterface object:

- **spec.memif.bufferSize**
- **spec.memif.ringSize**
- **spec.memif.numRxQueues**
- **spec.memif.numTxQueues**

>**CAUTION:** If you want to change one of the parameters above, remove and recreate VPPInterface with a new configuration. This action results in restarting UPG.

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

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

## Migration guide

### 2.6.0 -> 2.7.0

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

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

> **CAUTION:** Using the CNI-less feature with UPG 2.7.0 requires FPP in version 2.2.0 or higher installed on the Kubernetes cluster.

UPG 2.7.0 introduces a rename of IPFix templates:

- `dest` to `FlowUsage`
- `default` to `NatEvent`

It is used in the UPG Helm chart in the following places:

- **instances.{NAME}.nat.pools.{NAME}.networking.ipfixPolicy**
- **instances.{NAME}.networking.sgi.ipfixPolicy**

UPG 2.7.0 automatically remaps old values to new ones. No action is needed.

> **CAUTION:** UPG 2.7.0 requires TSR Sink at least in version 2.0.0 as an IPFix receiver. Earlier versions are not supported.

Follow these steps to upgrade UPG to version 2.7.0:

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