In brief
The 5G core network (5G Core) is built like a system of services: network functions such as AMF, SMF, or UDM talk over HTTP/2 and APIs described in 3GPP specifications. For an IT team this means testing similar to that of distributed systems: interface compliance, load when many devices register, behavior when an instance fails, upgrades without downtime, and correctness of the data passed to billing and OSS systems.
How the 5G core differs from earlier networks
In earlier generations, the core network consisted mainly of specialized nodes connected by telecom protocols. In 5G, the 3GPP organization described the core as a service-based architecture (Service-Based Architecture). Each network function exposes services, and the others call them over HTTP/2 with data in JSON. 3GPP also publishes the interfaces of these services in OpenAPI format.
A few functions an IT team meets most often:
| Function | Role in brief |
|---|---|
| AMF | device registration and management of its access and mobility |
| SMF | setting up data transmission sessions |
| UPF | forwarding user traffic |
| UDM and AUSF | subscriber data and authentication |
| PCF | policy rules, for example for quality of service |
| NRF | function registry: who is available and at what address |
| NSSF | selection of a network slice |
| NEF | exposing selected network capabilities to external applications |
| CHF | charging for usage |
These functions increasingly run as containers on the operator's cloud platform, so topics familiar from Kubernetes come in: scaling, upgrades, networking between pods.
Interface and compliance testing
Since network functions communicate through APIs, the first layer of testing is contract compliance. The 3GPP specifications define resources, fields, and error codes, but vendors differ in the details: handling of optional fields, specification versions (successive 3GPP releases, so-called Releases), and the reaction to unknown attributes.
What to check:
- Message validation against the OpenAPI definition for the specification version the vendor declares.
- Interoperability between vendors. When the AMF comes from one supplier and the SMF from another, tests at the interface detect differences in interpretation before a customer sees them.
- Error paths: registration rejection, a missing subscriber profile, response timeouts.
- Interfaces exposed externally through the NEF: authentication, call limits, and permissions of partner applications.
The approach is similar to contract testing in ordinary systems, which we describe in the article API contract testing.
Load and signaling storms
The network has to withstand not only heavy data traffic but also sudden waves of signaling. Typical situations are power returning after an outage, when thousands of devices register at once, a concert or a match in a single area, or the launch of a new phone, when customers activate services in the same hour.
In 5G network performance testing, it is worth measuring:
- the number of registrations and session setups per second at which latency starts to grow,
- percentiles of function response times, not averages (see Percentiles instead of the average),
- behavior under overload: whether the function rejects the excess requests in a controlled way or stops responding to everyone,
- scaling time: how long it takes to start a new instance and when it begins accepting traffic.
The same pattern applies to IT systems alongside the network. An example of testing service activation at a smartphone launch is described in the scenario Performance testing of a service activation system.
Failures, upgrades, and network slices
Network functions in containers are upgraded more often than the old hardware nodes, so tests have to cover change, not just steady state.
- Instance failure. We shut down a pod with the SMF function during a test and check whether active sessions survived and new ones go to healthy instances.
- Rolling upgrade. A new version of the function is rolled out gradually; we measure whether the number of rejected requests grows in the meantime.
- Function registry (NRF). We check what happens when the registry returns an outdated list or does not respond for a moment.
- Network slices. For each slice, for example for business customers or IoT devices, we check isolation: overloading one must not degrade quality in another.
Test environment and subscriber data
The 5G core is tested in a lab where simulators stand in for phones and base stations. A simulator can generate thousands of virtual devices with different profiles: postpaid, prepaid card, IoT device, roaming customer. Thanks to this, load and regression tests need neither radio hardware nor real SIM cards.
Subscriber data in the UDM is a separate topic. Tests need profiles that cover all offers and their exceptions, but these cannot be copies of real customers' data. It is best to generate them with a script from the product catalog, so that after every offer change the test environment has an up-to-date set of profiles. We describe the rules for preparing such data in the article Test data and GDPR.
Network data for billing and OSS
The 5G network does not end at the core. The CHF function passes usage data to the settlement systems, and events and counters go to OSS, which uses them to detect faults and calculate quality. An error in this data will not stop calls, but it will produce a wrong invoice or a false alarm.
That is why end-to-end tests cover the whole path: a session in the network, a usage record, charge calculation, and a line item on the invoice. We describe the details of rating in the article Telecom billing, and the processing of event streams in the article Real-time network events.
With many vendors and frequent releases, such a test suite can only be maintained as automation in a CI/CD pipeline. An example of a shared automation platform for an operator is described in the scenario TestFactory. Test automation and performance testing are part of the work of B2Bnetwork engineers (What we do).
Questions and answers
Do you need real radio hardware to test the 5G core?
Not for most software testing. Simulators of devices and base stations generate registrations and sessions directly into the core functions, which lets you test logic, interfaces, and load in the lab. Radio hardware and real phones are needed for acceptance testing and field quality checks, but not for daily regression.
Who writes the standards for 5G networks?
The technical specifications for mobile networks, including 5G, are prepared by 3GPP, a partnership of standards organizations from various regions of the world, among them Europe's ETSI. The specifications come out in successive releases (Releases), and the first stage of 5G was described by Release 15. The equipment vendor declares which release a given interface complies with.
How does testing the 5G core differ from testing ordinary microservices?
The techniques are similar: API contracts, load tests, fault injection. The differences are in the protocols and the requirements. Some interfaces still use telecom protocols, availability requirements are very high, and the functions often come from several vendors, so interoperability testing carries more weight than in a system written by one team.
Does network slicing change how you test?
Yes, because each network slice has its own quality parameters and often its own customers. Besides testing that the slice works, you have to check isolation, meaning that overload or failure in one slice does not degrade the others, and the correctness of usage data assigned to each slice.