SENIORCHAPTER 20

Quality of service: the measures and how they are taken

A network that is up can still be failing the people on it. Learn which figures say so, why the average hides it, and what a virtual operator must ask its host for

45 MINHOW MOBILE NETWORKS WORKUPDATED 2026-11-13
PREDICT

One phone registers on the lab's 5G core in about 0.6 s (601 ms in the attach-and-browse trace). Twenty phones switch on together and eighteen of them are provisioned. What is the median time to Registration accept?

A mobile network is working when its parts are up. It is good when the people using it get what they came for. The first can be read from a dashboard of green lights. The second needs measures: counts of things that went right and wrong, and times for how long they took. This chapter is about those measures, where they come from, and how they mislead.

Three questions every measure answers

The International Telecommunication Union (ITU) defined quality of service in Recommendation E.800 as the collective effect of service performance that determines a user’s degree of satisfaction. The European Telecommunications Standards Institute (ETSI) turned it into a working model in its specification TS 102 250: a user must be able to reach the service, keep it, and have it be good. Those give three families of measure.

Family The question Examples in a mobile network
Accessibility Could the user get the service? Registration success rate, data session set-up success rate, call set-up success rate, time to set up
Retainability Did it stay up once the user had it? Dropped-call rate, share of data sessions released abnormally
Integrity How good was it while it lasted? Throughput, delay, jitter, packet loss, speech quality

The order matters. A subscriber who cannot register never reaches a session, and a session that never opened has no throughput. So accessibility is measured first, retainability only on what was accessed, and integrity only on what was retained. Each stage hides the one before it: a network can show a fine data speed on the few sessions that opened while most subscribers fail to open one.

The KPIs in the lab’s 5G core

A key performance indicator (KPI) is a measure a network operator or regulator has agreed to track. 3GPP defines many for the 5G core in TS 28.554, including a registration success rate (successful registration procedures divided by attempts) and a PDU session establishment success rate. Your lab reads the same ideas from a recording. scripts/kpi.sh follows each phone’s messages and prints these figures:

KPI What the script counts Lab output you will see
Registration success Registration accept divided by Registration request registrations: 18/20 = 90.0% accepted
Time to register From the phone’s Registration request to the network’s Registration accept median 1982 ms, 95th percentile 2319 ms
Session set-up success PDU session establishment accept divided by establishment request data sessions: 18/18 = 100.0% accepted
Time to set up a session From establishment request to accept median 1245 ms
Failure causes The cause code in each reject, named registration reject: 11 PLMN not allowed

Two rules in the script decide what a number means, and every real KPI has equivalent rules. A request repeated before its answer counts as one attempt, because a phone’s retry timer would otherwise inflate the denominator. A request after a refusal counts as a new attempt. Change either rule and the success rate changes with nothing in the network having changed. When an operator and a regulator disagree about a figure, the usual cause is a different counting rule, not different data. Ask for the definition before the number.

The lab has no radio measurement, so it cannot show the radio-side accessibility measures, which count the cell’s own set-up of a radio connection, nor the integrity measures of a long transfer. It shows the core’s view, which is where Kolanut’s host would take its registration and session figures.

Percentiles, not averages

Look at the lab’s busy hour. Eighteen registrations completed, with these times in milliseconds, sorted:

1443 1684 1851 1856 1872 1895 1920 1941 1975 1990 1992 1996 2015 2060 2162 2281 2319 2448
1,4001,6001,8002,0002,2002,400time to Registration accept, ms (one dot per phone)illustrative target 2,000 msmedian 1,98295th, kpi.sh 2,319max 2,448

The mean is 1,983 ms and the median 1,982 ms. They agree because this set has no extreme value. Now add one registration that took 30 seconds, because a phone’s first attempt was lost and a timer fired. The median moves from 1,982 ms to 1,990 ms. The mean jumps to about 3,458 ms. Reporting a mean would make one slow phone look like a network that is 75% slower, and would hide how many other phones were slow. Reporting only the median would hide the 30 s phone completely. A pair serves best: a median for the typical user and a high percentile (95th or 99th) for the slow tail. The Google site reliability engineering book makes the same case for software latency, and it applies unchanged here.

A percentile is a position in the sorted list. “95th percentile of 2,319 ms” says 95% of the registrations finished within 2,319 ms. There is more than one honest way to compute it, and the lab shows two. kpi.sh picks the value at position round(0.95 × (n − 1)) counting from zero, which for 18 values is the 17th, 2,319 ms. The nearest-rank method picks the smallest value with at least 95% of the values at or below it: the 18th, which is 2,448 ms. With 18 samples the two differ by 129 ms. With 18,000 samples they agree to within a few milliseconds. The lesson is to write the method beside the figure and to be wary of a percentile on a small sample. It is also why a “95th percentile” over twenty attempts is a weak number: one value decides it.

Success rates have the same trap in a different place. A rate averaged over many cells is weighted by attempts. Take three cells in a region (illustrative): two with 40,000 attempts each at 99.5% and 99.4% success, and the market town’s cell with 2,000 attempts at 82%. The region’s rate is 81,200 successes in 82,000 attempts, 99.0%. The town cell fails nearly one attempt in five and moves the region’s figure by half a point. The cure is not a cleverer average. It is a smaller unit of reporting (per cell, per hour) and a busy-hour view, because the failures cluster where and when the load is.

The Nigerian Communications Commission (NCC) issued its Quality of Service Regulations in July 2024 and Quality of Service Business Rules in August 2024. The Business Rules set key performance indicator targets for the mobile networks, including call set-up success, dropped calls and congestion. One legal summary reports a call set-up success rate above 98% for 3G circuit-switched and packet-switched services. Press and law-firm summaries disagree on the fines and on which areas fall in which priority group, and I could not confirm the dropped-call figuresas of 2026-11. Summaries describe compliance as judged by reporting area, with three priority groups of area that need different shares of the targets met (one summary gives 100%, 80% and 70%), so the unit of reporting is part of the rule, as the example above shows it must be. The NCC measures compliance from operators’ reports, its own drive tests, consumer surveys and data from its network operating centres. Read the current text of the Regulations and the Business Rules for any figure you will rely on: this chapter rests on search summaries, not on the full text, and the NCC has said it will review the Business Rules.

Where the numbers come from

No single source gives a true picture. Each sees the network from a different place and is wrong in its own way.

Source How it is taken What it sees well How it misleads
Network counters The network’s own functions count events, such as registration attempts and successes, per cell and per fifteen minutes Every subscriber, all day, cheaply Counts what the network knows. A phone that never reached the network is not an attempt. Definitions vary between vendors
Signalling probes and captures A tap on the links records every message, as your lab capture does Exact times, causes, and the order of events; the same evidence for a fault Heavy to store; sees signalling, not what the user felt
Drive and walk tests A vehicle or a person carries phones that run scripted tests, in the ETSI TS 102 250 style, along a route Controlled, repeatable, and covers indoor and outdoor places if you walk in Samples a few routes and hours. Expensive. A route is not the market
Crowdsourced tests Apps on real subscribers’ phones run tests and report position Many places and indoor use, with no vehicle Users choose when to test, so the sample is biased, and a test server’s distance or a phone’s age moves the result. ITU-T E.812 names this bias
Customer complaints Calls, messages and social posts The failures the other four missed, in the customer’s words Biased towards the loud and the connected. Arrives after the harm

A regulator uses all of them for this reason. A counter says the average is fine, a drive test finds the road with no signal, a crowd test finds the district with slow evenings, and a complaint says which of them matters. When they disagree, the disagreement is information. Counters that say 99% while a crowd test says the evening is slow point at the reporting unit: the network is averaging away the busy hour.

Counting causes, not only failures

The lab’s busy hour has two refused registrations out of twenty. Is that a 10% failure rate? The cause is 11, “PLMN not allowed”. The trace’s two phones belong to subscribers the network has never provisioned, so the network was right to refuse them. A quality KPI that counts them as failures is measuring the operator’s provisioning, or a test set-up’s mistake, rather than the network’s quality. Real KPIs therefore exclude or classify some causes. That is legitimate only when the rule is public and fixed beforehand. If it is chosen after seeing the numbers, it is how a poor figure is made to look good. In the lab, show both: 18/20 = 90.0% with every attempt counted, and 18/18 = 100% with the two unprovisioned phones excluded, and write which one you would give a regulator and why.

Cause codes are also how you tell who owns a failure. In 5G, the numbers come from 3GPP’s session management and mobility management specifications (TS 24.501): cause 38 is “network failure”, cause 62 “no network slices available”, cause 91 “DNN not supported or not subscribed in the slice”. The first is the network’s fault; the third is often a subscription or phone setting. A KPI split by cause turns “the network is bad” into “who should look at this”.

A registered phone with no data

Accessibility is a chain, and a KPI at one link says nothing about the next. The lab’s fault-1.pcapng is a recording where the phone registers and then asks for a data session. kpi.sh gives:

registrations:               1/1 = 100.0% accepted, 0 rejected
  time to accept:            median 633 ms, 95th percentile 633 ms, max 633 ms
data sessions:               0/27 = 0.0% accepted, 27 rejected
failures by cause:
    27  session reject: 38 network failure

A dashboard that counted only registrations would show 100% and a fast 633 ms. The subscriber has no data. The phone asks again roughly every second and is refused every time, 27 attempts in all. This is a failure to set up a session, so it belongs to accessibility, not retainability. A retainability failure would be a session that was up and then dropped. The lab cannot show that, because its recordings end sessions only by switching the phone off or letting the cell release it to idle. The lesson is the same. You need a KPI for each stage, and the stage that is missing from the dashboard is the one that fails. Why the core refused is the puzzle of the module’s project. Here you only need the symptom, and how to measure it.

What a virtual operator can measure, and what it must ask for

In its launch year Kolanut Mobile has 250,000 subscribers on SIMs Lumora provides, and the radio network, the core and the counters are all Lumora’s. What can Kolanut see for itself?

  • At the customer’s end. Scripted tests on a few test SIMs (a few SIMs kept for the purpose), the complaints its customer-care team logs, its own recharge and balance systems, and its SMS centre’s delivery reports. These show what Kolanut’s customers feel and cannot say why.
  • Nothing about cells or the core, unless Lumora sends it. Radio counters per cell, the core’s registration and session figures, and dropped-session counts are Lumora’s data.

So the host agreement and the working relationship must settle what arrives. Ask for: the registration and session KPIs and the radio accessibility and retainability figures cut to Kolanut’s own subscriber range (Lumora can do this because it issued the SIMs); the busy-hour view per cell for the cells where Kolanut’s traders are; how often the report arrives; the definitions and counting rules; and a way to query a single complaint (an IMSI, a time) against the signalling record. Without the cut by subscriber range the report describes Lumora’s whole base, and a Kolanut problem is lost in the average.

The NCC’s virtual operator framework (section 4.2) describes a Tier 3 Core Facilities Virtual Operator as owning core network elements such as the MME and the packet gateway, and relying on its host for radio accessas of 2026-11. So a Tier 3 operator owns part of the chain it would be measured on and a Tier 1 or Tier 2 operator owns none of the core. Which quality obligations fall on a virtual operator, and which on its host, is set by the licence and the wholesale agreement, which the MVNO Business course teaches; this chapter does not state it. The engineering point holds at every tier. A customer who is let down blames the brand on the SIM, whoever owns the failing part.

LAB Measure one phone, twenty phones and a broken network ~40 MIN
YOU NEEDDocker with Compose v2Python 3.9 or later (step 3 runs it inside the helper container)No live core and no SCTP are needed: every step reads recordings in traces/ and works on any machine with Docker

You will read the KPI summary of three recordings, compute two of its numbers by hand from the ladder, compute percentiles with a script you write, and read a case where registration works and data does not. Work in labs/telecoms. The times are seconds from the start of each recording.

1. Summarise one phone, a morning and twenty phones.

for t in attach-and-browse morning busy-hour; do
  echo "## $t"; scripts/kpi.sh traces/$t.pcapng
done

Three summaries. attach-and-browse: one signalling connection, registrations: 1/1 = 100.0% accepted, median 601 ms, data sessions: 1/1, median 312 ms, one deregistration. morning: two signalling connections (the phone went idle and came back, which takes a new one), registrations: 1/1, median 849 ms, data sessions: 1/1, median 362 ms, and service requests (from idle): 1/1 = 100.0% accepted. busy-hour:

signalling connections:      20 (a phone that goes idle and comes back gets a new one)
registrations:               18/20 = 90.0% accepted, 2 rejected
  time to accept:            median 1982 ms, 95th percentile 2319 ms, max 2448 ms
data sessions:               18/18 = 100.0% accepted, 0 rejected
  time to accept:            median 1245 ms, 95th percentile 1435 ms, max 1456 ms
deregistrations:             18
failures by cause:
     2  registration reject: 11 PLMN not allowed

One phone registers in 0.6 to 0.85 s. Twenty at once give a median of 1.98 s, more than three times slower, because the lab’s functions and its one signalling link are shared. The simulated phones all start together, which a real evening seldom does, but a busy hour and a power cut’s restart can come close.

2. Compute a time and a success rate by hand from the ladder.

scripts/ladder.sh traces/morning.pcapng --filter 'nas-5gs.mm.message_type==0x41 || nas-5gs.mm.message_type==0x42 || nas-5gs.sm.message_type==0xc1 || nas-5gs.sm.message_type==0xc2'

Seven lines. The Registration request at 8.935 (gNB to AMF), a copy of it inside Security mode complete at 9.474, the Registration accept at 9.784, then at 9.996 the Registration complete carrying the PDU session establishment request, the same request forwarded by the AMF at 10.015, and the accept at 10.340 (SMF to the SCP) and 10.358 (AMF to the cell). Registration time: 9.784 − 8.935 = 0.849 s, which is kpi.sh’s 849 ms. Session time: 10.358 − 9.996 = 0.362 s, which is its 362 ms. Success rate: one accept for one request, 1/1. The security-mode line is the phone repeating its request after authentication and does not start a second attempt: kpi.sh counts one request per phone until it is answered.

3. Write the percentile script and run it. Save this as qos_by_hand.py in a folder of your own, outside scripts/. It borrows the reader in scripts/kpi.py, which already unpacks the many messages the lab bundles into one packet, and does the arithmetic in the open.

#!/usr/bin/env python3
"""Registration success rate and time percentiles, computed in the open."""
import math
import statistics
import sys

sys.path.insert(0, "/scripts")          # where kpi.sh mounts scripts/
import kpi

REQ, ACC, REJ = "0x41", "0x42", "0x44"


def nearest_rank(sorted_values, p):
    """The smallest value with at least p per cent of the values at or below it."""
    k = math.ceil(p / 100 * len(sorted_values))
    return sorted_values[max(k, 1) - 1]


started, times, rejected = {}, [], 0
for t, phone, fields in kpi.messages(sys.stdin):
    kinds = list(dict.fromkeys(v for f, v in fields if f == "nas-5gs.mm.message_type"))
    if REQ in kinds and phone not in started:
        started[phone] = t
    if ACC in kinds and phone in started:
        times.append(t - started.pop(phone))
    if REJ in kinds and phone in started:
        started.pop(phone)
        rejected += 1

tried = len(times) + rejected
times.sort()
print(f"tried {tried}, accepted {len(times)}, rejected {rejected}: "
      f"success rate {100 * len(times) / tried:.1f}%")
print("times (ms):", " ".join(f"{x * 1000:.0f}" for x in times))
print(f"mean            {statistics.mean(times) * 1000:7.0f} ms")
print(f"median          {statistics.median(times) * 1000:7.0f} ms")
print(f"95th (nearest)  {nearest_rank(times, 95) * 1000:7.0f} ms")
print(f"maximum         {times[-1] * 1000:7.0f} ms")
slow = sum(1 for x in times if x > 2.0)
print(f"slower than 2.0 s (an illustrative target): {slow} of {len(times)}")

Run it on the busy hour, with the folder of your own mounted as /q:

docker run --rm -v "$PWD/traces:/in:ro" -v "$PWD/scripts:/scripts:ro" -v "$HOME/mywork:/q:ro" nicolaka/netshoot:v0.13 sh -c \
  "tshark -r /in/busy-hour.pcapng -o nas-5gs.null_decipher:TRUE -Y 'nas-5gs && ngap' -T json 2>/dev/null | python3 /q/qos_by_hand.py"
tried 20, accepted 18, rejected 2: success rate 90.0%
times (ms): 1443 1684 1851 1856 1872 1895 1920 1941 1975 1990 1992 1996 2015 2060 2162 2281 2319 2448
mean               1983 ms
median             1982 ms
95th (nearest)     2448 ms
maximum            2448 ms
slower than 2.0 s (an illustrative target): 6 of 18

The success rate, the median and the 18 times agree with kpi.sh. The 95th percentile does not: 2,448 ms here and 2,319 ms from kpi.sh, the two methods the chapter described, on 18 samples. Six of 18 phones, a third, were slower than an illustrative 2 s target, although the median sits at 1,982 ms, a hair under it. A median target alone would have passed this busy hour. Run the same command on attach-and-browse.pcapng and you get one sample: every percentile equals it. A percentile of one phone is meaningless, so you need the crowd to measure the tail.

4. Decide whether the two rejections count.

scripts/ladder.sh traces/busy-hour.pcapng --filter 'nas-5gs.mm.message_type==0x44'

Two lines, both AMF -> gNB ... DownlinkNASTransport, Registration reject (PLMN not allowed), at 9.283 and 11.664. The AMF refused each because no subscriber record exists for the phone (the lab’s Open5GS core chooses cause 11 for this; other cores answer differently). Count them and the success rate is 18/20 = 90.0%. Exclude the two phones that were never provisioned and it is 18/18 = 100%. Write down which you would report to a regulator, what rule you would publish beforehand, and who would want the other figure.

5. Read a network where only the first stage works.

scripts/kpi.sh traces/fault-1.pcapng
scripts/ladder.sh traces/fault-1.pcapng --filter 'nas-5gs.mm.message_type==0x41 || nas-5gs.mm.message_type==0x42 || nas-5gs.sm.message_type==0xc1 || nas-5gs.sm.message_type==0xc3' | head -8

kpi.sh: registrations: 1/1 = 100.0% accepted, median 633 ms, then data sessions: 0/27 = 0.0% accepted, 27 rejected and 27 session reject: 38 network failure. The ladder shows the Registration request at 7.011 and the accept at 7.644 (633 ms), then at 7.849 the phone’s first PDU session establishment request, forwarded by the AMF at 7.866, and the SMF’s PDU session establishment reject (Network failure) at 8.090, with the AMF passing it to the phone at 8.106. The next request is at 9.155, about a second later, and the next at 10.254. A registration-only KPI reports success. Which KPI would have paged Lumora’s operations centre, and at what threshold? Work out why the refusal comes from the SMF and what that tells you about where to look; the project chapter picks this up.

Break the average. Append one 30-second registration to the data: in qos_by_hand.py, after times.sort(), add times.append(30.0); times.sort(), and rerun step 3. The mean moves from 1,983 ms to about 3,458 ms, the median from 1,982 ms to 1,990 ms, the maximum to 30,000 ms, and the nearest-rank 95th percentile to 30,000 ms (with 19 values, 95% of them is 18.05, so the rank rounds up to the 19th, the 30 s one; work out why one value now decides the 95th percentile). Then answer: Lumora’s quality pack reports the mean registration time per region per day. Which of these three kinds of day would it show as unusual: a day when every phone is 10% slower, a day when one phone in a thousand takes 30 s, and a day when 6 phones in 18 miss the target by a little? Which of the three would the traders notice? What would you add to the pack?

DECIDE

Ifedayo at Kolanut Mobile has Lumora's monthly pack in hand: region-wide data session success 99.0% and an average set-up of 1.1 s, both illustrative. Traders in one market town say data fails after seven in the evening. The host agreement lets Kolanut ask for more reports but Lumora's team is small. Terver at Lumora offers to send whatever Ifedayo asks for. What does Ifedayo ask for first?

READING
  1. DOC
    NCC: Quality of Service (QoS) Business Rules, 2024 Nigerian Communications Commission, 2024

    The regulator's own KPI tables, definitions and reporting rules for the networks you will report on. Read the parameter definitions and how compliance is judged by area before you read anything written about it. Read: the KPI tables and the compliance rules.

  2. DOC
    ITU-T E.800: Definitions of terms related to quality of service ITU-T

    The source of the accessibility, retainability and integrity vocabulary, and the line between network performance and quality of service as a user feels it. Read the definitions; skip the annexes first time. Read: the definitions of service accessibility, retainability and integrity.

  3. DOC
    ETSI TS 102 250-2: QoS aspects for popular services in mobile networks, definitions and computation of parameters ETSI, 2016

    How a drive test defines each parameter and how it is computed, so two testers get the same figure (this is edition 2.5.1; ETSI has issued later ones). Use it to see why counting rules are the real content of a KPI. Read: the layered model and the service-independent parameters.

  4. DOC
    3GPP TS 28.554: 5G end to end Key Performance Indicators 3GPP

    3GPP's definitions of the registration and session success rates that kpi.sh approximates from a recording. Read the accessibility KPIs, then compare their counting with the script's rules. The clause numbers change between releases. Read: the accessibility KPIs for registration and PDU session establishment.

  5. DOC
    ITU-T E.812: Crowdsourcing approach for the assessment of end-to-end QoS in fixed and mobile broadband networks ITU-T, 2020

    How crowdsourced measurement should be designed and where its bias comes from. Read the sections on sampling and test servers before you quote a crowd figure. Read: the sampling and methodology clauses.

  6. BOOK
    Google SRE book, chapter 6: Monitoring Distributed Systems Rob Ewaschuk (ed. Betsy Beyer et al.), 2016

    The clearest short argument for percentiles over means and for separating the latency of failures from the latency of successes. It is about software services, and it applies to signalling set-up times unchanged. Read: the section on the four golden signals and on worrying about your tail.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Network security: signalling attacks, SIM swap and fraud →