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:
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:
And to display flows related to selected session:
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.
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:
- PDR is the rule against which the incoming packets are matched. It refers to the interface on which the packets arrive
- SGi-LAN/SGI for the WAN side of the UPG - PDR 1
- Access/EPC for the "mobile network" side of the UPG - PDR 2
- Each PDR includes a forwarding rule (FAR), so that traffic on the inbound interface is forwarded to the specified destination
- PDR 1 forwards the traffic according to FAR 1 - from SGi to EPC
- PDR 2 forwards the traffic according to FAR 2 - from EPC to SGi
Following output shows session info when TDF mode is enabled:
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:
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: