> 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.16.0.md).

# User Plane Gateway 2.16.0

**Release date**: 2025-02-21

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

- Added NATS integration
- Support for MEMCAP updated stream metadata
- Prometheus ServiceMonitor relabelings and metricRelabelings
- Added poll sleep for VPP

UPG uses Fast Path Provider (FPP) in version 1.3.21 and UPG-VPP in version 1.22.0.

There are no breaking changes in UPG CRD between 2.16.0 and 2.15.0.

## Features

### Added NATS integration

UPG can fetch configuration using the NATS Key-Value store. As the first option, the MEMCAP plugin can be configured using NATS. You can create or delete streams using binAPI and targets defined in NATS.

This is equivalent to CLI configuration `vppctl set interface memcap {INTERFACE} target {TARGET}`. The CLI can be used in parallel to the binAPI calls.

UPG watches for key `com.cennso.memcap.v1alpha1.trafficstream.name.*.cluster.{CLUSTER}.>`, where **CLUSTER** is taken from the configuration or NATS server connection info.

To enable NATS Key-Value watcher, use the following configuration in UPG Helm chart:

```yaml
natsConfig:
  enabled: true
  nats:
    # bucketName: "test-bucket"
    # clusterName: "test-cluster"
    url: nats://cdm-local.cennso-system:4222
```

### Support for MEMCAP updated stream metadata

UPG 2.16.0 includes the MEMCAP plugin that extends the range of stream metadata available for NATS integration.

The stream labels can be configured using **envs** in the UPG chart, each name should be capitalised and start with the `MEMCAP_` prefix:

```yaml
envs:
- name: MEMCAP_APN
  value: test.cennso.com
- name: MEMCAP_LANE
  value: lane-b
```

### Prometheus ServiceMonitor relabelings and metricRelabelings

New parameters **prometheus.servicemonitor.relabelings** and **prometheus.servicemonitor.metricRelabelings** were added to the [UPG Support chart](https://docs.cennso.com/components/upg/2.17/installation/support-chart-configuration.generated.md).
- **prometheus.servicemonitor.relabelings** allows you to modify or filter the discovered targets during service discovery. You can use it to rename labels, drop unnecessary targets, or add custom labels to organise and filter targets more effectively.
- **prometheus.servicemonitor.metricRelabelings** enables customisation of metrics after scraping. You can filter out the unwanted metrics, rename labels or metrics, and add extra labels to make metrics easier to identify and analyse.

These options give you more control over Prometheus monitoring and help customise the metrics collection for your needs.

### Added poll sleep for VPP

When running VPP in local test environments or on CI for non-performance-related test cases, it’s often handy to run it with poll sleep to prevent VPP from consuming 100% CPU and lessening the resource requirements.

To enable interrupt mode, use the UPG helm chart configuration:

```yaml
vpp:
  pollSleepUs: 1000
```

## Known issues

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

As a result 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.

### Using BGP table 200 leaves leftovers in the VPP routing table

When configuring BGP support with the same table as SGI (**200**), the UE IPs are left over in the VPP routing table. Sample entry:

```
10.24.144.244/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:80 buckets:1 uRPF:181 to:[6:504]]
    [0] [@0]: dpo-drop ip4
```

It does not influence traffic forwarding for the created UPF sessions but increases the number of entries in the SGI VPP routing table.

>**NOTE:** It is recommended to use **bgp.table** different than 200.

## Migration guide

This section describes in detail how to perform the UPG upgrade from version 2.15.0 to 2.16.0.

>**CAUTION:** Updating the UPG Helm chart restarts the currently running UPG instance, causing all active sessions to be dropped. Moreover, UPG 2.16.0 requires the following component versions:
>
>- FPP CRD in version 2.4.0 or higher installed on the Kubernetes cluster
>- TSR Sink in version 2.0.0 or higher as an IPFix receiver
>
> To use the CNI-less feature, you need FPP in version 2.2.0 or higher installed on the Kubernetes cluster.

Follow these steps to upgrade UPG to version 2.16.0:

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