Session Handling
For updates of the PGW or other critical components, the impact should be reduced by having as little sessions as possible on the PGW. To achieve this, requests for new sessions can be rejected. When devices detach, the number of sessions will decrease. In addition, sessions can be actively terminated.
Both actions are triggered via API. To access the API, use a port-forward, e.g.:
Reject New Contexts/Sessions
Check the internal state to accept new sessions via API:
Change the internal state to accept new sessions:
Drain Sessions
Drain existing sessions:
Drain existing sessions in a loop:
Using the ergw Erlang API without a specific type refers to contexts of all types. The following commands delete both GTP-initiated and TDF (PFCP-initiated) contexts:
Get TDF Sessions
FEATURE STATE: alpha
Obtain contexts per type from an Erlang shell:
Using the ergw Erlang API without a specific type refers to contexts of all types. The following commands delete both GTP-initiated and TDF (PFCP-initiated) contexts:
Drain TDF Sessions
FEATURE STATE: alpha
Drain sessions per type from an Erlang shell:
Caution
The following script can be used at an Erlang shell to manually remove TDF contexts in previous releases. Incorrect usage may result in session termination without AAA termination and may cause a node reboot.
Split is provided due to the limitations of lists:split/2.