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.17, an older release. The newest release is 3.2. Read this page in 3.2

Session related operations

This section describes how to debug session-related aspects in UPG:

Check Sessions Status

The number of sessions handled per UPG instance is exposed with 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 known session SEID, filtering may be used:

bash

And to display flows related to 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).

To get the SEID, show upf flows command can be used (it does not crash UPG even on high load).

In CP F-SEID for each session, the IP address of SMC is visible.

text

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

  • F-SEID stands for Fully Qualified SEID, SEID being the Session Identifier
  • PDR stands for Packet Detection Rule
  • PDI stands for Packet Detection Information
  • FAR stands for Forwarding Action Rule
  • URR stands for Usage Reporting Rule

Interpreting the session configuration based on the example above:

  1. PDR is the rule against which the incoming packets are matched. It refers to the interface on which the packets arrive
    1. SGi-LAN/SGI for the WAN side of the UPG - PDR 1
    2. Access/EPC for the "mobile network" side of the UPG - PDR 2
  2. Each PDR includes a forwarding rule (FAR), so that traffic on the inbound interface is forwarded to the specified destination
    1. PDR 1 forwards the traffic according to FAR 1 - from SGi to EPC
    2. PDR 2 forwards the traffic according to FAR 2 - from EPC to SGi

Following output shows session info when TDF mode is enabled:

text

Check Flows Info

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

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

bash

Caution

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

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

Example output of show upf flows:

bash