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.

Verification

To verify if UPG deployment works correctly, CLI commands and metrics are exposed. These commands should be executed in the UPG pod running in the Core Cluster.

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

All interfaces need to be in READY=true state. Otherwise, check events and status from the failing interface, use command:

bash

You can also check the VPP Operator logs, to see if there are any errors reported.

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.

The 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 a 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 in the Core Cluster. 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 the 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 pools configuration:

bash

Output example:

bash

List the NAT bindings in use for the pool. Make sure you run this command only when there are a few sessions on UPG; otherwise, it produces a lot of output.

bash

Output example:

bash

Verify the NAT flows existance. Commands output limited to 1000 entries.

bash

Output example:

bash

Verify NAT-specific metrics. For more information, read CG-NAT metrics documentation.

Check ADF

It is possible to interact with ADF through CLI. It is restricted to debug purposes only, as it interferes with UPG managers controlling the resources.

The possible commands are:

  • adf create application name <app_name> [proxy]
  • adf delete application name <app_name>
  • adf create version app <name>
  • adf create rule app <name> [l7 regex <regex> | ipfilter <ipfilter>]
  • adf version commit app <name>
  • show adf apps
  • show adf versions app <name>
  • show adf version app <name> [ver <ver_id>, active, uncommited]

To facilitate runtime reconfiguration, an application versioning system was introduced. It works by storing a set of rules in a version object that may be uncommitted, active, or active + latest. When creating a new application version, you must provide all rules you want it to have. Rules from previous versions are not carried over automatically. Switching to a new version (adf version commit) is an atomic event. All new flows and those that are reclassified use the latest version and all its rules from that point in time.

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

API-trace commands

UPG can have API-trace enabled. In production deployments, the API-trace feature should be disabled. This paragraph explains how to check the API-trace status, how to release the used memory, and how to enable API-trace. Besides this config option, VPP Operator has VPP API logging in the central place. To see it, configure trace log level in VPP Operator.

To check how much memory API-trace uses, execute the following CLI commands in the UPG pod:

bash

Sample output:

text

To free up the used memory, run:

bash

To enable API-trace in the runtime, use the following command:

bash

To enable API-trace using UPGDeployment object, set spec.vpp.traceAPICalls to true (by default false).

You can check if API-trace is enabled by looking at /run/vpp/startup.conf. If there is an api-trace section, API-trace is enabled by default. You can disable it through CLI after each UPG restart.

Check VPP load

FPP 1.3.7 exposes new VPP metrics:

  • vpp_sys_vector_rate - the average length of a packet vector, which translates to the number of packets processed by the VPP graph node per call
  • vpp_sys_loops_per_second - the number of VPP worker loop cycles per second (reported as all 0 for UPG 2.4.X and earlier, which uses VPP 22.02)

These metrics help you diagnose if UPG is overloaded. Also, the rising vector rate value with a dropping number of loops per second is a symptom of VPP being overloaded.

Note

vpp_sys_loops_per_second is unavailable in UPG 2.4.X and earlier because of VPP 22.02 usage, please use UPG 2.5.0 or newer.

To get the values on UPG 2.4.X and earlier, execute the vppctl sh run command into the pod. Sample output under the traffic:

text

An overload results in the following statistics:

text

The vector rate is low when there is low traffic. The value of loops/sec is high when VPP is performing well. After traffic increases, the vector rate goes up. The symptom of UPG being overloaded is a low number of loops per second when the vector rate is high.