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 Session Management Controller 3.10, an older release. The newest release is 3.17. Go to 3.17

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.:

text

Reject New Contexts/Sessions

Check the internal state to accept new sessions via API:

text

Change the internal state to accept new sessions:

text

Drain Sessions

Drain existing sessions:

text

Drain existing sessions in a loop:

text

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:

erlang

Get TDF Sessions

FEATURE STATE: alpha

Obtain contexts per type from an Erlang shell:

erlang

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:

erlang

Drain TDF Sessions

FEATURE STATE: alpha

Drain sessions per type from an Erlang shell:

erlang

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.

erlang