Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 42

5G Core SBA & Web Protocols

Recommended resources

Introduction

Welcome back! In our last lesson, we identified the key players in the 5G Standalone core network: the AMF, SMF, UPF, AUSF, and UDM. We established that unlike previous generations, the 5G core is not made of monolithic hardware but is a disaggregated collection of software-based Network Functions (NFs), similar to a microservices architecture.

That naturally leads to the question: if these are all separate services, how do they communicate with each other? This lesson answers that question. Our goal is to explain the Service-Based Architecture (SBA) of the 5G core and its reliance on web protocols. We will explore how 5G traded legacy telecom protocols for the same technologies that power the modern web—HTTP/2 and REST APIs.

This is a pivotal lesson for you. Given your background in web security, you will see how the skills you already possess for analyzing APIs and web applications are now directly applicable to the heart of the 5G mobile network.


From Point-to-Point Wires to a "Network of Services"

Previous cellular generations, including 4G, used a reference point architecture. You can think of this as a blueprint with specific, point-to-point connections between different network components, each using a specialized telecom protocol. This was rigid and made adding new functions complex.

5G introduces the Service-Based Architecture (SBA), a paradigm shift in how the core network is designed.

To understand this shift, let's watch a brief segment from the following video. It contrasts the old reference point architecture with the new SBA.

Advanced: 5G Service Based Architecture (SBA)

This video from 3G4G introduces the fundamental concept of the SBA and contrasts it with the older architecture. It will help you visualize the change in design philosophy.

Please watch from 01:17 to 02:48. Focus on how the video describes the move from a 'reference point representation' to a 'service based architecture' and its terminology, like Network Functions (NFs) and the Service-Based Interface (SBI).

As the video explained, the 5G core is a collection of NFs that expose and consume services from one another over a common Service-Based Interface (SBI). Instead of being hard-wired, NFs can now register their services and discover other services they need, much like modern cloud applications.


The Language of the Web in the 5G Core

The most significant aspect of the SBA is that the SBI doesn't use proprietary telecom protocols. Instead, it's built entirely on the foundation of modern web technologies. This was a deliberate design choice to make the network more flexible, scalable, and compatible with cloud infrastructure.

Let's begin exploring this by reading the introduction to a blog post from P1 Security, a telecom security company.

HTTP/2 in 5G Networks: The New Language of Telecom

This article, 'HTTP/2 in 5G Networks', perfectly frames why the move to web protocols is so transformative for telecom networks. It directly speaks to your background in web security.

Please read the first two sections: 'Introduction: Telecom Meets IT Protocols' and 'Why HTTP/2 in 5G?'. Pay close attention to the argument that the mobile core now 'speaks the same language as web applications'.

As the article highlights, the 5G core is built on an IT-native foundation. The protocol stack for communication between control plane NFs is defined as:

  • Application: RESTful APIs using standard HTTP methods (GET, POST, etc.).
  • Data Format: JavaScript Object Notation (JSON).
  • Transport: HTTP/2.
  • Security: Transport Layer Security (TLS).
  • Network: TCP/IP.

This stack should look very familiar to you. Let's look at a visual representation of how radically the protocol stack has evolved over generations.

Protocol Evolution: Update Location Request (2G to 5G)
This image shows the evolution of the protocol stack for a Location Update Request procedure from 2G to 5G. Notice the clear shift from telecom-specific protocols like SS7 and Diameter to the familiar HTTP/2 and JSON over TCP/IP in 5G.

The SBA in Action: REST APIs Driving the Network

So, what does it mean for the 5G core to be "API-driven"? It means that network procedures are executed by NFs making API calls to each other.

The architecture is designed around two main roles:

  • NF Service Producer: An NF that exposes an API to offer a specific capability (e.g., the UDM offers a service to provide subscriber data).
  • NF Service Consumer: An NF that calls an API to use a capability from another NF (e.g., the AMF consumes the UDM's service to get authentication data).

The image below shows the SBA, where each NF can be both a producer and a consumer, interacting via the common SBI. A special NF, the Network Repository Function (NRF), acts as a service registry or "phone book," allowing NFs to discover the addresses and capabilities of other NFs.

SBI and REST in 5GC
This diagram illustrates the 5G Service-Based Architecture. The control plane functions (AMF, SMF, UDM, etc.) communicate with each other over the Service-Based Interface (SBI) using RESTful APIs.

To understand the specifics of how REST principles are applied, let's consult a more technical resource.

5G Core RESTful APIs

The Devopedia article '5G Core RESTful APIs' provides an excellent, structured breakdown of how REST is implemented in the 5G SBA.

Read the two sections under the 'Discussion' heading: 'Could you give an overview of 5G Core NFs?' (focus on the paragraph describing the SBA web technologies) 'Which are the REST principles adopted by 5G SBA?' This will give you a precise understanding of the API model used.

Let's tie this together with a simple example. Imagine a UE is attaching to the network:

  1. The AMF (consumer) needs to authenticate the user. It needs authentication vectors from the UDM.
  2. The AMF queries the NRF to find the API endpoint for the UDM's authentication service.
  3. The AMF then sends an HTTP POST request to the UDM's API endpoint (e.g., /nudm-ueau/v1/{supi}/authentication-data/generate-av). The body of the request is a JSON object containing information about the request.
  4. The UDM (producer) processes the request, generates the authentication vector, and sends it back in a 200 OK response with a JSON payload.

This entire interaction, which is at the heart of network security, is a standard REST API call.


A New Attack Surface: Web Security Meets Telecom

The adoption of web protocols is not just an architectural detail; it fundamentally changes the security landscape of the mobile network. The good news for you is that it brings the core network's security model into your area of expertise. The bad news for operators is that their networks are now exposed to a class of vulnerabilities they have historically not had to consider.

Let's return to the P1 Security article to explore these security implications.

HTTP/2 in 5G Networks: The New Language of Telecom

This final reading connects the SBA's architecture directly to your goal of understanding telecom hacking. It outlines the new threat landscape created by using web protocols.

Please read the section titled 'Security Challenges of HTTP/2 in 5G'. As you read, think about how you would test for these vulnerabilities in a standard web application.

The threats described—API vulnerabilities, HTTP/2-specific exploits, TLS misconfigurations—are all concepts from the world of web and application security. An attacker with a foothold in the core network could potentially:

  • Exploit a broken access control vulnerability in the UDM's API to access subscriber data for any user.
  • Launch a Denial-of-Service attack against the AMF by abusing HTTP/2 stream multiplexing.
  • Manipulate session parameters by sending malicious, but syntactically valid, JSON objects to the SMF.

Understanding the SBA and its reliance on HTTP/2 and REST is therefore the first step to identifying and exploiting these modern 5G vulnerabilities.


Conclusion

In this lesson, we've unpacked the revolutionary design of the 5G core network. You've learned that the communication backbone of 5G is no longer built on proprietary, obscure telecom protocols, but on the very same web technologies that you work with every day.

Key Takeaways:

  • The Service-Based Architecture (SBA) is a flexible, microservices-like design where Network Functions (NFs) act as service producers and consumers.
  • NFs communicate over the Service-Based Interface (SBI), which uses a standard web technology stack: RESTful APIs over HTTP/2 with JSON payloads.
  • This shift from point-to-point protocols to an API-driven architecture enables greater flexibility, scalability, and integration with cloud environments.
  • Crucially, this change introduces a new attack surface, making the 5G core vulnerable to traditional web and API security threats, bridging the gap between your cybersecurity expertise and the world of telecom.

Preview of the Next Lesson:

Now that we understand how the NFs communicate, we can dive into one of the most critical security procedures that uses this architecture. In the next lesson, we will examine the 5G-AKA authentication process and the role of SUCI in enhancing subscriber privacy. You will see exactly how the AMF, AUSF, and UDM use these REST APIs to verify a subscriber's identity and establish a secure connection.