Reference · Access control
AAA security in 5G networks: what the AAA protocol actually does
AAA security is three questions asked in order, at the moment a session is admitted: who is this, what may they do, and what did they use.
1Definition
What authentication authorization and accounting actually covers
The initials stand for authentication authorization and accounting, and the order is not decorative: each step depends on the one before it. There is no useful sense in which a network can decide what a party is permitted to do before it has established who that party is, and no way to attribute usage to an account that was never identified.
| Authentication | Establishing that a party is who it claims to be, to a stated level of assurance. It answers one question and no others. |
|---|---|
| Authorization | Deciding what that party may do once identified: which services, which resources, under which conditions and for how long. |
| Accounting | Recording what was actually used. It supports billing, but its security value is that it produces evidence after the fact. |
AAA security is the discipline of getting all three right together, and the failures that matter are usually failures of the seam rather than of any single step. A correct authentication feeding a stale authorization decision admits the right party to the wrong thing. Sound decisions with no accounting behind them leave nothing to examine when a question is asked six months later.
2Protocols
The AAA protocol family, from RADIUS to Diameter
The functional description is older than any of the protocols that implement it. RADIUS arrived first and became ubiquitous because it was simple: a client asks a server whether to admit a user, the server answers, and accounting records follow separately. Its constraints followed from the same simplicity: unreliable transport, a small attribute space, a strictly client-server shape with no way for a server to initiate anything.
Diameter was written to address those limits directly, with reliable transport, capability negotiation, peer relationships in both directions and room to define new attributes without exhausting the space. In mobile networks it became the signalling protocol between the core and the subscriber database, and an AAA protocol question in a 4G context is usually a Diameter question.
Both are still deployed, so any real network runs an AAA protocol translation somewhere. That translation is where AAA security tends to be weakest, because a boundary between two protocols is a boundary between two sets of assumptions about what an attribute means.
3In 5G
AAA security in 5G networks and the service-based core
The 5G core is built as a set of network functions that call one another over web protocols instead of point-to-point signalling links. Authentication is concentrated in a dedicated function that works with the subscriber data store to run the procedure and derive the keys the rest of the session depends on. Authorization becomes a question about which function may invoke which service, mediated through tokens instead of assumed from topology, and usage reporting flows to a charging function built for the purpose.
The change is more than a relabelling of authentication authorization and accounting. In earlier generations a great deal was implied by position: a message arriving on a particular interface came from a particular kind of node, because nothing else could reach that interface. In 5G networks any function can in principle address any other, so what was once implied has to be stated and checked, and AAA security stops being a perimeter property.
4Identity
Where AAA authentication meets subscriber identity
AAA authentication in a mobile network has an unusual property: the credential is not a secret the subscriber knows but a key held on a card, and the subscriber never handles it. This makes the procedure strong against the failures that dominate password systems, and it moves the whole risk onto identity handling, which is where the enabler work concentrated.
The same credential is used well outside the cellular link. Operator-run WiFi services authenticate against the card instead of a password, which is convenient, and which is why an identity exposure in that exchange is a mobile network problem and not a WiFi one. AAA authentication is the mechanism that ties the two together, and it explains why the identity concealment introduced in 5G matters beyond the radio interface.
DRecords
Specifications in this archive that bear on it
The enabler work touching authentication, authorization and accounting sits in two clusters: what one function may ask another to do, and what an operator may change on the management plane.
| Cluster | Specification | Concern | Pages |
|---|---|---|---|
| T3.1 | Fine-grained authorization | Authorization decisions between network functions | 29 |
| T3.1 | IoT group AKA | Group authentication for constrained devices | 13 |
| T3.5 | Access control | Access control at management interfaces | 12 |
| T3.5 | Compliance | Checking configuration against policy | 16 |
QQuestions
Questions and answers
Is AAA a single protocol?
No. It is a functional description that several protocols implement. Treating it as one protocol is the commonest source of confusion, because a deployment usually runs more than one and translates between them at the boundary.
What replaced RADIUS?
Diameter was designed as its successor and addressed its known limits: reliable transport, better failover, larger attribute space, peer-to-peer instead of strictly client-server. It did not replace RADIUS so much as join it: RADIUS remains widespread in enterprise and access-network deployments, and both are still in service.
Does 5G still use Diameter?
Inside a service-based core the interfaces are web protocols, not Diameter. Diameter persists at the edges, particularly where a 5G network interworks with 4G or exchanges signalling with a roaming partner. A network that serves subscribers on both generations runs both, which is a security consideration in itself.
Why does accounting belong in a security discussion?
Because it is the only one of the three that produces a record. Authentication and authorization make decisions in the moment and leave nothing behind unless something logs them. Accounting data is what makes it possible to establish afterwards what a session actually did, which is what an investigation needs and what a dispute turns on.