Service-based architecture

Also known as: SBA

On this page 7

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 functionService interfaceMain role
AMFNamfRegistration, connection and mobility management
SMFNsmfSession setup and UPF selection
NRFNnrfRegistration and discovery of network functions
AUSFNausfSubscriber authentication
UDMNudmSubscription data and credentials
PCFNpcfPolicy and charging rules
NSSFNnssfNetwork slice selection
NEFNnefSecure exposure to external applications
Key 5G Core network functions in SBA

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.

ModelDiscovery performed byRoutingTypical motivation
Direct without NRFStatic configurationConsumer to producerSmall lab or test setups
Direct with NRFConsumer via NRFConsumer to producerSimple production cores
Indirect without delegationConsumer via NRFThrough SCPCentral traffic control
Indirect with delegated discoverySCP via NRFThrough SCPLarge multivendor cores
SBA communication models

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.

Aspect4G reference-point design5G service-based design
Interface modelPoint-to-point between node pairsShared bus with reusable services
Signaling protocolsDiameter, GTP-C, S1-APHTTP/2 with JSON over SBI
Function discoveryStatic configuration and DNSDynamic registration in NRF
Scaling unitWhole node or applianceIndependent NF instance or microservice
Third-party accessLimited, operator specificStandardized through NEF
Reference-point and service-based designs

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.

IssueCauseCountermeasure
Signaling storms after restartMass reregistration with the NRFBackoff timers and staged startup
Unauthorized API callsWeak token scope or missing mutual TLSStrict OAuth 2.0 scopes and mTLS
Multivendor call failuresDifferent 3GPP release levelsConformance testing and version pinning
Higher latency than expectedToo many proxy hops via SCPDirect routing for time-critical flows
Common SBA issues and countermeasures

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.