Service-based architecture (SBA) is the design principle of the 5G Core, in which network functions offer services to one another through standardized APIs over a common bus instead of through dedicated point-to-point interfaces. Defined by 3GPP from Release 15 onward, SBA is the control-plane foundation of 5G networks and one of the clearest breaks with the Evolved Packet Core used in 4G.
In SBA, each network function (NF) acts as a service producer, a service consumer or both. The approach borrows from cloud-native software engineering, so operators can deploy, scale and upgrade core functions as independent software components in telecommunications data centers.
How service-based architecture organizes the 5G Core
Service-based architecture organizes the 5G Core control plane as a set of network functions connected to a logical service bus. Every NF exposes a service-based interface (SBI), named with the prefix N followed by the function name, such as Namf for the AMF or Nsmf for the SMF. Any authorized consumer can call these services without a dedicated link to the producer.
The SBI uses HTTP/2 over TCP with TLS, carries payloads encoded in JSON, and describes each API with OpenAPI specifications published by 3GPP. Communication follows two patterns: request-response, where a consumer asks for an action or data, and subscribe-notify, where a consumer registers interest and the producer reports events later.
The following table lists the core network functions that participate in SBA and the services they provide.
| Network function | Service interface | Main role |
|---|---|---|
| AMF | Namf | Registration, connection and mobility management |
| SMF | Nsmf | Session setup and UPF selection |
| NRF | Nnrf | Registration and discovery of network functions |
| AUSF | Nausf | Subscriber authentication |
| UDM | Nudm | Subscription data and credentials |
| PCF | Npcf | Policy and charging rules |
| NSSF | Nnssf | Network slice selection |
| NEF | Nnef | Secure exposure to external applications |
Service discovery and communication models
Service discovery in SBA relies on the Network Repository Function (NRF), which keeps a registry of every active NF instance and its services. When an NF starts, it registers its NF profile with the NRF, including supported services, capacity, location and slice information. A consumer then queries the NRF to find a suitable producer and obtains an OAuth 2.0 access token for the call.
3GPP defines several communication models that differ in where discovery and routing happen. The Service Communication Proxy (SCP), introduced in Release 16, can take over discovery and load balancing on behalf of consumers. The table below compares the main options.
| Model | Discovery performed by | Routing | Typical motivation |
|---|---|---|---|
| Direct without NRF | Static configuration | Consumer to producer | Small lab or test setups |
| Direct with NRF | Consumer via NRF | Consumer to producer | Simple production cores |
| Indirect without delegation | Consumer via NRF | Through SCP | Central traffic control |
| Indirect with delegated discovery | SCP via NRF | Through SCP | Large multivendor cores |
Between operators, the Security Edge Protection Proxy (SEPP) carries SBI traffic across the roaming interface N32, applying application-layer security so that signaling between networks is protected beyond transport encryption.
SBA compared with the reference-point architecture of 4G
SBA replaces the reference-point model of the Evolved Packet Core, in which nodes such as the MME, SGW and PGW communicated over fixed interfaces using protocols like Diameter and GTP-C. Each interface was defined for one specific pair of nodes, so adding a new function meant defining new interfaces. The comparison below shows the main differences.
| Aspect | 4G reference-point design | 5G service-based design |
|---|---|---|
| Interface model | Point-to-point between node pairs | Shared bus with reusable services |
| Signaling protocols | Diameter, GTP-C, S1-AP | HTTP/2 with JSON over SBI |
| Function discovery | Static configuration and DNS | Dynamic registration in NRF |
| Scaling unit | Whole node or appliance | Independent NF instance or microservice |
| Third-party access | Limited, operator specific | Standardized through NEF |
SBA covers the control plane only. User-plane traffic still flows through the UPF over GTP-U, and the radio side still uses N2 between the gNodeB and the AMF, which remain reference-point interfaces using NGAP over SCTP. In 3GPP diagrams, both representations of the 5G Core exist side by side.
Benefits for deployment and operations
The main benefit of service-based architecture is independent lifecycle management of each network function. Operators can run NFs as containers on Kubernetes, scale a busy AMF without touching the UDM, and roll out software updates to one function at a time. This model supports 5G SA deployments, network slicing and private 5G networks with a smaller, tailored set of functions.
- Reuse of services: a new function consumes existing services instead of requiring new interfaces.
- Elastic scaling: NF instances are added or removed according to load and registered automatically.
- Multivendor integration: OpenAPI definitions give vendors a common contract to test against.
- Network exposure: the NEF lets enterprises and application developers request quality of service or location events through controlled APIs.
Challenges, risks and common misconceptions
SBA introduces web-style attack surfaces and operational complexity into the mobile core. HTTP/2 APIs require careful authorization, rate limiting and input validation, and a misconfigured NRF or token policy can expose subscriber data. Interoperability between vendors also remains demanding, because optional parameters and release differences in the OpenAPI specifications are interpreted differently.
The table below lists frequent issues in SBA deployments together with their causes and countermeasures.
| Issue | Cause | Countermeasure |
|---|---|---|
| Signaling storms after restart | Mass reregistration with the NRF | Backoff timers and staged startup |
| Unauthorized API calls | Weak token scope or missing mutual TLS | Strict OAuth 2.0 scopes and mTLS |
| Multivendor call failures | Different 3GPP release levels | Conformance testing and version pinning |
| Higher latency than expected | Too many proxy hops via SCP | Direct routing for time-critical flows |
A common misconception is that SBA automatically means cloud-native. A vendor can implement each NF as a monolithic virtual machine and still comply with SBA. Another misconception is that the user plane also becomes service based, which it does not.
Understanding it simply
Service-based architecture is a way of building the brain of a 5G network from many small specialists that talk to each other in a common language. Instead of fixed private phone lines between particular departments, every specialist publishes what it can do, and any authorized colleague can ask for that help directly.
A central directory keeps track of who offers which service. This makes it easier to add, replace or enlarge one part of the network without rebuilding everything else.
Applied in practice
A regional mobile operator launches a 5G SA network and runs its core on a Kubernetes cluster in two data centers. Each network function registers with a pair of redundant NRFs. On a holiday weekend, registrations from roaming visitors triple, so the orchestration system adds four extra AMF instances within minutes, and each one registers with the NRF and starts receiving traffic.
Later, the operator offers a factory customer a dedicated network slice. Through the NEF, the factory application requests guaranteed quality of service for its robots. The PCF applies the policy and the SMF configures the session. No new interfaces had to be built, because every step reused existing service operations of the 5G Core.