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.

[Experimental] CDMP message flow

Important

This feature is experimental and can only be used with Session Management Controller (SMC) that supports CDMP. The new behavior is disabled by default to preserve backward compatibility with the previous versions of TPOSS. SBI, Diameter, and HSS must be disabled if CDMP is enabled. You can disable them using the sbi.enabled, scg.diameter.enabled, and hss.enabled configuration options.

TPOSS supports CDMP APIs to establish service sessions, manage them, and perform charging operations. The procedures are similar to Diameter NASREQ, Gx, and Gy requests described in the Diameter message flow document, but CDMP Nnas, Npcf, and Nchf API calls over Cennso Data Mesh (CDM) are used instead.

CDMP messages are similar to the messages based on SBI, but Cennso Data Mesh is used as a transport layer instead of HTTP2. TPOSS supports the following CDMP APIs:

This document describes the request flow only based on the TPOSS AAA CDMP interface. For more details about the TPOSS AAA architecture and how to configure this interface, read the following documents:

Tip

TPOSS can create a service session only after the related network session exists for the given subscriber. For more information about the network sessions creation and management, read the Network session flows guide.

Creation of service sessions

The process of creating a service session is similar to the Diameter or SBI flows, but uses CDMP API calls instead. It consists of the following stages:

  1. The initial session is created based on the CDMP Nnas Authorization request.
  2. After the initial service session is created, TPOSS allocates PCC rules based on the CDMP Npcf Create message.
  3. After PCC rules are set for the service session, the available quota is allocated based on the CDMP Nchf Create message.
  4. TPOSS handles the CDMP Nnas Accounting-Start request to apply a NAT binding.

The following diagram describes this flow:

Charging procedures

After a service session is fully established, the user can start to consume services. The resources (like Internet traffic) that the user consumed must be periodically charged. Since both network and service sessions are established for the newly attached device, TPOSS waits for periodical charging reports sent through CDMP Nchf Update messages.

The following diagram describes this flow:

In addition to the usual reporting of used resources from SMF to TPOSS, TPOSS may trigger a change of charging rules when certain events appear. Such events are:

  • A valid balance provisioned for the active user which does not have one
  • A balance was deleted for the active user

In this case, TPOSS may send outgoing CDMP requests towards SMF. The request type depends on the event which triggered the message and the current state of the user's session. If the user's balance was deleted, but there is another valid balance which can be used, TPOSS sends a CDMP Nchf RAR message to SMF to notify it that the current balance is not valid anymore, and the session switches to another quota. For all other events, TPOSS sends a CDMP Npcf RAR message to notify SMF about the change in the charging rules.

The following diagram describes this flow:

Note

If the SMF response indicates any failure on these requests or there is no response at all, TPOSS terminates the service session.

Service sessions termination

As soon as the device is detached, TPOSS receives a RADIUS Accounting-Stop request from a packet gateway as described in the Network session flows document. During a network session termination process, TPOSS notifies SMF using the CDMP Nchf ASR message to trigger a service session termination. After the CDMP message is sent, TPOSS waits to receive CDMP Npcf release and Nchf release requests from SMF to terminate the service session.

The following diagram describes this flow:

Note

If the SMF response for ASR messages indicates any failure or there is no response at all, TPOSS terminates the service session.