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.

Session related operations

This section describes how to debug session-related aspects in UPG. These commands should be executed in the UPG pod running in the Core Cluster.

Check Sessions Status

The number of sessions handled per UPG instance is exposed with the metric vpp_upf_total_sessions.

To display detailed PFCP session information, run inside the UPG pod:

bash

Caution

Note that the output can be very large and may affect the UPG operation, or cause it to stop. By default result is limited to 100 entries.

To print more than 100 entries in session output, use show upf session limit N where N set to 0 means no limit.

For a description of the known session SEID, filtering may be used:

bash

And to display flows related to the selected session:

bash

This filters by UP (User Plane) SEID (at the moment, the CP and UPG SEIDs are the same, but later that may change).

In the first line, the peer is visible; this is the IP address of SMC.

text

A bit of explanation regarding the abbreviations used in the output:

  • SEID being the Session Identifier
  • PDR stands for Packet Detection Rule
  • FAR stands for Forwarding Action Rule
  • URR stands for Usage Reporting Rule

Interpreting the session configuration based on the example above:

  1. The session has 2 endpoints: a. Endpoint[0] represents the upload direction from User Equipment.
    1. It uses epc NWI for the "mobile network" side of the UPG.
    2. The User Equipment IP is 10.25.83.236.
    3. This connection has Tunnel Endpoint ID (teid) and UPG's Access IP (198.18.0.20).
    4. The linked PDR is PDR#2,
      1. Defines that FAR#2 should be applied to this traffic.
      2. URRs URR1 and URR2 are used b. Endpoint[1] represents the download direction to the User Equipment.
    5. It uses sgi NWI for the WAN side of the UPG.
    6. The User Equipment IP is 10.25.83.236.
    7. The linked PDR is PDR#1,
      1. Defines that FAR#1 should be applied to this traffic.
      2. URRs URR1 and URR2 are used
  2. So the defined packet forwardings are:
    1. The UE traffic from epc NWI should be forwarded to sgi NWI
    2. The WAN traffic from the sgi NWI should be forwarded to UE using epc NWI

The following output shows session info when TDF mode is enabled:

text

Check Flows Info

The number of flows handled per UPG instance is exposed with metric vpp_upf_flow_count.

Starting from UPG 3, not all UPG sessions have flows created. The flows are created in cases when:

  • NAT is used
  • IPFix is defined
  • There are more than 16 ACLs defined for forwarded traffic

To see details of the flows initiated by the UEs, use the command:

bash

Caution

The output can be very large, and in some cases, this may affect the UPG operation. By default, 100 entries are listed.

To print more than 100 entries in the flows output, use show upf flow limit N, where N set to 0 means no limit.

Example output of show upf flows:

bash