For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Enable NWI strict routing table separation

What it solves

Without strict routing, User Plane Gateway (UPG) uses a shared Rx/Tx table for User Equipment (UE) traffic on the Network Instance (NWI). UE traffic then shares the table that UPG uses for its own core network forwarding, which causes the following undesirable effects:

  • All addresses in the NWI routing table are reachable from the UE side. This can be a security risk. For example, UE can reach the core NWI address of UPG itself.
  • UE-to-UE traffic is forwarded locally inside UPG, but in some deployments, UE-to-UE traffic must leave the UPG node and be terminated upstream.

Strict routing gives you full control of UE traffic transmission and improves isolation by using a separate Tx table.

How strict routing works

When strictRouting is enabled for an NWI, routes defined in the networking.{INTERFACE}.ipv{4|6}.routes section are installed in a separate Tx table instead of the shared Rx/Tx table.

As a result of this option:

  • An automatically created Rx table is attached to the interface and used only for session matching and core network communication. The Rx table contains routes to directly-connected neighbors derived from the configured addresses, plus per-session routes pointing to the UPG plugin.
  • UPG uses the Tx table for transmitting session traffic via the NWI. The Tx table contains only the routes from the routes section.

Ensure that the routes section covers every destination UE traffic needs to reach. Any destination not covered by the routes section is unreachable from the UE sessions.

Configuration

Strict routing is opt-in. Enable it per interface when you need the table separation.

To enable strict routing table separation, set the spec.instances.{NAME}.networking.{INTERFACE}.ipv{4|6}.strictRouting field in the UPGDeployment resource on the Management Cluster for each NWI where you want strict routing enabled. See the example:

yaml

Verification

First, check that separate RoutingTable resourcesBroken link are created. To list them, use:

bash

You should see two RoutingTable resources for the NWI. The Rx table resource name has a -rx suffix. The other resource is the Tx table holding your configured routes.

To verify that the strict routing table separation is enabled, check if ip4/6-table-id is different from tx-ip4/6-table-id using the following VPP CLI command on the target Core Cluster:

bash

See the output example:

console

Here, 200 is the Rx table and 250 is the Tx table.

Interaction with GTP-U

Strict routing has limited value on GPRS Tunneling Protocol User Plane (GTP-U) NWIs because the GTP-U tunnel already isolates UE traffic. This feature is disabled in the UPG chart for GRX and SGI interfaces in GTP-U mode.

Interaction with NAT

When strict routing is used with basic NAT, the Tx table is used for the egress FIB lookup. NAT translation then runs as an output feature on the SGi interface. Strict routing is not implemented for CG-NAT or UPF NAT in the UPG extension because both NAT types already perform a post-NAT transmit lookup.