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.

You are reading User Plane Gateway 2.2, an older release. The newest release is 3.2. Read this page in 3.2

Verification

To verify if UPG deployment works correctly, CLI commands and metrics are exposed.

UPG provides VPP CLI commands to check on running instance

Common steps to check if UPG works correctly:

Check VPP Interfaces

UPG after startup should create VPP interfaces, to check existing ones, exec into UPG pod and execute:

bash

Output example:

bash

To see what interfaces should be created for UPG instance, Kubernetes API can be checked:

bash

Output example:

bash

The first 3 VPPInterface objects are created inside the FPP switch pod, the other ones should be present on the UPG instance.

Check UPG Association

UPF expose show upf association command to is if UPG is connected to SMF CNF, exec to UPG pod and run:

bash

Output example

bash

The output should be not empty.

Corresponding metric exposed by UPG is vpp_upf_total_associations.

New association or lost connectivity to SMF events are logged and can be checked in UPG pod logs, for example:

text

If there is no SMF associated, please check ping to SMF, to verify if there is network connection. Also, SMF configuration should be checked, to see if UPG discovery is properly defined.

Check VPP Logs

VPP logs can be checked to look for any errors. To check VPP logs, run this command inside the UPG pod:

bash

Check NWI

To see, what Network Instances are configured, run show upf nwi in UPG pod:

bash

Output example:

bash

NWIs are also exposed as VPP interfaces, reported in vpp_interface_bytes metrics, Prometheus query:

text

The source of NWI configuration is the UPGConfig Custom Resource object, to see what it includes, execute:

bash

Output example:

bash

The NWI configuration is included in the object spec, for example:

yaml

Check PFCP

UPG exposes Packet Forwarding Control Protocol (PFCP) server running on port 8805. PFCP communication is initiated from SMF, using UDP datagrams.

The PFCP server status can be verified using this command in the UPG pod:

bash

Output example:

bash

The non-empty output describes the PFCP server IP address exposed by UPG.

PFCP heartbeat settings from UPGConfig spec can be verified on UPG pod:

bash

Output example:

bash

To verify PFCP communication, check the PFCP connectivity section.

Check TDF

Show TDF mode uplink tables when TDF mode is used:

bash

Output example:

bash

Check CG-NAT

Show CG-NAT configuration:

bash

Output example:

bash

Check NAT binding can be helpful when there are very few sessions on UPG, when there is a high load this command will create a lot of output:

bash

Output example:

bash

Check NAT settings

If UPG is deployed in TDF mode, NAT stats are exposed as metrics:

  • vpp_nat_pool_info - reports NAT pool created per UPG instance, and which NWI it is connected to
  • vpp_nat_pool_capacity - shows how many NAT pool is available
  • vpp_nat_pool_utilization - reports current NAT pool utilization

Check VPP errors

UPG provides the following error metrics:

  • vpp_interface_errors - multiple errors are reported, for example, if an interface is down or packet drops happen with memif or DPDK interface
  • vpp_interface_no_tx_slots - shows issues with packet processing or system overload
  • vpp_arp_sent - if many ARP requests are sent, it may indicate the wrong cluster configuration in terms of IP reachability
  • vpp_arp_hw_addr_not_match_l2_frame - arp-reply arrived on the interface but it's not corresponding local HW address
  • vpp_node_vectors{name="drop"} - shows that packets are dropped on specific VPP instance

Check memory

To assess how much memory is left on the UPG pod, run main heap stats:

bash

Output example:

bash

Heap stats are also exposed in these UPG metrics:

  • vpp_main_heap_total_bytes
  • vpp_main_heap_used_bytes
  • vpp_main_heap_free_bytes