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.

RADIUS message flow

TPOSS creates and manages network sessions over RADIUS. A packet gateway sends the RADIUS requests that attach a device to the mobile network, keep its session alive, and detach it again.

A network session must exist before a service session can be created for the same subscriber. For more information about service sessions, read the Diameter, SBI, and CDMP documents.

For more information about TPOSS AAA architecture and how to configure the RADIUS interface, read:

Network session flows

When a user attaches to the mobile network, the packet gateway (PGW) initiates the creation of a network session in TPOSS. This is done by sending a RADIUS Access-Request message for the newly attached device.

Upon receiving the request, TPOSS processes it as follows:

  1. TPOSS identifies the subscriber and authenticates the device using subscriber credentials and configuration stored in the User Data Repository (UDR).
  2. Based on the subscriber profile, access parameters, and applicable policies, TPOSS authorizes (or not) the network access request.
  3. As part of the authorization process, TPOSS allocates network resources for the session, including assignment of a Framed-IP-AddressOpens in a new tab, which uniquely identifies the device within the data network.

The following diagram represents this flow:

If a network session is created successfully, TPOSS returns the RADIUS Access-AcceptOpens in a new tab response. If TPOSS failed to create a network session, it returns the RADIUS Access-RejectOpens in a new tab response.

Every RADIUS Access-Reject response contains at least one RADIUS Reply-MessageOpens in a new tab AVP. Each Reply-Message describes a reason why a request was rejected. For more information about the reasons why the subscriber's authentication was rejected, read the RADIUS error codes document. In addition, TPOSS provides the radiusServTotalAccessRejects metric that contains the label reason to determine the reason for rejection. For more information, read the RADIUS server metrics document.

To maintain an active network session, the packet gateway must send periodic RADIUS interim requests to TPOSS. Otherwise, a network session can be terminated as idle:

After the user detaches from the mobile network, TPOSS must terminate the network session. To terminate a network session, the packet gateway sends a RADIUS Accounting-Stop request, after which TPOSS notifies SMF/TDF if there is an associated service session and deletes the network session from the database: