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

# User Plane Gateway 3.1.0

**Release date**: 2026-08-05

User Plane Gateway (UPG) 3.1.0 provides the following features and fixes:

- Added shared NAT pool mode
- Added per-pool TCP MSS clamping
- Added pacing for User Plane-initiated session termination reports
- Added `upf_forwarding_policy_info` metric
- Fixed session disruption when modifying NWIs and interfaces
- Fixed proxy crash

UPG 3.1.0 requires Fast Path Provider (FPP) 3.1.0 installed on the Core Cluster.

## Features

### Added shared NAT pool mode

UPG 3.1.0 adds a `shared` port allocation mode for UPF NAT Pools, selectable per pool with **spec.instances.{NAME}.nat.pools.{POOL}.mode** (the default remains `cgnat`). A `cgnat` pool reserves a fixed port block per User Equipment (UE). A `shared` pool allocates external ports per flow from the pool's whole port range. Subscribers then share the range, and each UE keeps a single external address even though its individual flows can use different external ports. This mode improves address and port utilization for pools serving many subscribers.

You can update the address range (**start** and **end**) of a `shared` pool at runtime. If you remove addresses, UPG terminates the sessions that use them. A `shared` pool also supports **ueFlowsLimit**, which caps the number of concurrent TCP/UDP NAT flows per UE (default `64`, `0` removes the limit).

For details, refer to the [UPF NAT deployment guide](https://docs.cennso.com/components/upg/latest/deployment-guides/upf-nat.md).

### Added per-pool TCP MSS clamping

UPG 3.1.0 lets you configure TCP MSS clamping individually per UPF NAT Pool with **spec.instances.{NAME}.nat.pools.{POOL}.mssClamping**. The value clamps the TCP MSS of that pool's NAT traffic, and `0` disables clamping. Clamping applies to both `cgnat` and `shared` pools, and you can change it at runtime without recreating the pool.

For details, refer to the [UPF NAT deployment guide](https://docs.cennso.com/components/upg/latest/deployment-guides/upf-nat.md).

### Added pacing for User Plane-initiated session termination reports

When you delete a NAT Pool that has many attached sessions, UPG terminates all of them at once. UPG 3.1.0 paces the resulting PFCP session termination reports at a bounded rate. This rate protects the Session Management Function (SMF) from overload, keeps the PFCP association up, and leaves unrelated sessions in place.

### Added upf_forwarding_policy_info metric

UPG 3.1.0 exposes UPF Forwarding Policies configured on a UPG instance as a Prometheus gauge, so their configuration can be observed via metrics rather than CLI inspection.

The example metrics:

```bash
vpp_upf_forwarding_policy_info{ipv4TableID="-1",ipv6TableID="-1",name="test3",natPools="pool-a"} 1
vpp_upf_forwarding_policy_info{ipv4TableID="100",ipv6TableID="-1",name="test1",natPools="none"} 1
```

For more information, visit [metrics docs](https://docs.cennso.com/components/upg/latest/observability/metrics.md).

## Fixes

### Fixed session disruption when modifying NWIs and interfaces

Several NWI operations could previously drop live PFCP sessions and GTP-U endpoints that still used them. These operations include deleting an NWI or an interface within one, changing an NWI's routing table, and renumbering several NWIs at once.

UPG 3.1.0 now keeps these sessions and endpoints running where it is safe to do so. After a deletion, their traffic keeps flowing, while new sessions and CLI lookups see the resource as removed.

When a session must move to a different routing table, UPG migrates it in place. UPG releases the session — and reports the release to the SMF — when the move affects the UE side or is otherwise unsafe.

UPG also no longer triggers a spurious VPP restart when you add a new interface.

### Fixed proxy crash

UPG 3.1.0 fixes a proxy crash. The crash could occur when UPG rejected a passively accepted connection whose flow was already removed or whose session was already closing.

## Known issues

See [Known issues for 3.0.0 release](https://docs.cennso.com/components/upg/latest/releases/3.0.0.md#known-issues).

## Migration guide

> [!NOTE]
> If you want to upgrade UPG from 2.X to 3.0, refer to the [3.0 migration guide](https://docs.cennso.com/components/upg/latest/releases/3.0.0.md#migration-guide).

> [!IMPORTANT]
> If you want to upgrade UPG from 3.0.X to 3.1.0, refer to the [3.0.4 migration guide](https://docs.cennso.com/components/upg/latest/releases/3.0.4.md#30x---304) first.

### 3.0.4 -> 3.1.0

To upgrade from 3.0.4 to 3.1.0, complete the following steps:

1. Install the [UPG Extension](https://docs.cennso.com/components/upg/latest/installation.md) in version 3.1.0.
1. Make sure that FPP Extension on the target Core Cluster is in version 3.1.0.
1. Update the `UPGDeployment` object on the Management Cluster.

The `upg-generic` Composition introduces a new shared NAT pool mode for UPF. To enable it, you must update the **spec.compositionRevisionRef** field on the existing `UPGDeployment` objects.

For instructions on retrieving the required `CompositionRevision`, refer to the [FPP migration guide](https://docs.cennso.com/components/fpp/main/releases/3.0.4.md#check-compositionrevisions). Once obtained, you can apply this value through the Cennso Management Console (CMC) or by executing the following command on the Management Cluster:

```bash
kubectl patch upgdeployments.fpp.cennso.com {UPG_DEPLOYMENT_NAME} -n {UPG_DEPLOYMENT_NAMESPACE} --type=merge -p '{"spec":{"compositionRevisionRef": {"name": "upg-generic-{REVISION}"}, "image":{"repository": "registry.cennso.com/cennso/vpp-worker-upg", "tag":"v3.1.0"}, "version": "3.1.0"}}'
```

> [!CAUTION]
> This step restarts UPG on the Core Cluster.

After UPG restarts, it runs version 3.1.0, and you can configure the shared NAT pool mode.
