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] HSS S6a message flow

Important

This feature is experimental. The new behavior is disabled by default to preserve backward compatibility with the previous versions of TPOSS. The HSS is a separate function that uses its own Diameter service. It excludes SBI, CDMP and Diameter. TPOSS serves one of the four per deployment and refuses to start with more than one enabled.

TPOSS can act as a 4G Home Subscriber Server (HSS) and Authentication Centre (AuC) over the Diameter S6a interface defined in 3GPP TS 29.272Opens in a new tab. A MME uses the Diameter S6a protocol to authenticate a subscriber and to fetch the 4G mobile subscription data it needs to establish a default bearer.

The authentication procedures are executed based on the following incoming Diameter S6a messages:

  • Authentication-Information (AIR)
  • Update-Location (ULR)
  • Purge-UE (PUR)

TPOSS also sends Cancel-Location (CLR) requests to an MME to inform it that a subscriber it was serving has moved elsewhere. For more information, see Cancel-Location.

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

Authentication and location update

When a device attaches to the mobile network, the MME authenticates the subscriber and fetches the subscription data it needs to establish a default bearer. It sends two S6a requests for the same attach:

  1. The Authentication-Information-Request (AIR) asks TPOSS for the authentication vectors that the MME challenges the device with.
  2. The Update-Location-Request (ULR) reports that this MME now serves the subscriber and asks for the subscription data.

The following diagram describes this flow:

Purge-UE

When an MME deletes the mobility-management context for a detached subscriber, it sends a Purge-UE-Request (PUR):

A purge takes effect only when it comes from the MME the subscriber is registered with. TPOSS compares the Origin-Host of the request with the MME recorded by the last Update-Location and acts based on these values as described in the table below:

The Freeze M-TMSI flag tells the MME to hold that temporary identity back from immediate reuse, so the same identity is still available if the subscriber comes back.

The subscriber is kept in the database on a successful Purge-UE-Request. A purged subscriber has a serving MME on record but is known to be unreachable through it. The next successful Update-Location clears the purged mark, whether the subscriber returns to the same MME or attaches to a different one.

Cancel-Location

When a subscriber attaches to a different MME, the MME that was serving it still can hold a mobility management context for that subscriber. To clean it up, TPOSS sends a Cancel-Location-Request (CLR):

Whether a Cancel-Location is sent depends on which MME sent the Update-Location, and on what TPOSS already had on record for that subscriber:

Important

A Cancel-Location is not retried. A request that cannot be delivered leaves the previous MME holding its mobility-management context until that node's own timers expire.