SENIORCHAPTER 24

IoT and machine-to-machine connectivity

A tracker sends a few hundred bytes. A fleet of them sends a signalling storm. Learn the device classes, how they sleep, why they must not wake together, and what a virtual operator can sell

45 MINHOW MOBILE NETWORKS WORKUPDATED 2026-11-13
PREDICT

In the lab, a lone phone registers in 0.6 s. In traces/busy-hour.pcapng twenty phones switch on together and eighteen are accepted. What is the median registration time, and why?

A phone is a person’s device. A person turns it on a few times a day, moves slowly, wants a lot of data and notices when it is slow. A machine is the opposite. It wants to send a few hundred bytes, may be bolted to a wall for ten years, never complains and does exactly what its firmware says, at the same moment as ten thousand identical machines. A mobile network built for the first kind of user has to be told about the second. That is what the IoT features of 3GPP, the standards body behind mobile networks, are for. IoT here means the Internet of Things; machine-to-machine (M2M) means the same idea seen from the connection: no person in the loop.

The device classes

Three radio technologies carry most cellular IoT today, and an operator may run all three on the same network.

Class 3GPP release Channel What it suits What it gives up
NB-IoT (narrowband IoT) 13 180 kHz Meters, sensors and anything fixed that sends small messages rarely, even in a basement Speed, and in the first release handover while connected; no voice
LTE-M (also LTE-MTC, Cat-M1) 13 1.4 MHz Trackers and wearables that move; supports handover and voice over LTE More power and cost than NB-IoT
RedCap (reduced capability NR) 17 up to 20 MHz in frequency range 1 (FR1, the bands below about 7 GHz) Cameras, industrial sensors, wearables that need more than LTE-M Speed and cost against a full 5G phone, which supports 100 MHz

The GSMA, the operators’ association, calls NB-IoT and LTE-M together Mobile IoT and publishes deployment guides for them. RedCap is the 5G family’s answer: a cheaper, simpler 5G device with a narrower channel, fewer antennas and so a lower peak rate. Ericsson’s engineers describe the cuts, among them the narrower bandwidth (20 MHz against 100 MHz for a full device in FR1). A fourth option exists for devices that only need the oldest and widest coverage: ordinary 2G, which is why a fleet bought today may still carry a 2G fallback while operators plan switch-offs. The 2G to 5G chapter showed what a switch-off costs.

What you pick decides what the core must offer. An NB-IoT device needs the operator to have switched NB-IoT on in the radio network, and its subscription must say so. A RedCap device needs a 5G network. A device that sends 300 bytes a day does not need a 100 MHz carrier, but it does need a core that understands how it behaves.

What the lab can and cannot show. The lab’s phone is UERANSIM’s ordinary 5G phone. It is not NB-IoT, LTE-M or RedCap, it has no power saving, and it has no sleep timers at all: UERANSIM does not support PSM or eDRX. So the lab cannot demonstrate sleeping. It can show you what a registration costs, what happens when many arrive together, and what the core says about its own IoT features in its answer to a phone. The rest is from the specifications.

Sleeping for ten years

A battery that must last years cannot afford a radio that listens all day. Two mechanisms let a device sleep. PSM arrived in 3GPP Release 12 and eDRX in Release 13. Both are negotiated, which means the device asks and the network answers with the values it will honour.

PSMsendT3324: still pagedasleep: the network cannot reach itsendone periodic update interval (T3412): hours to dayseDRXlistenlistenlistenlistenone eDRX cycle: seconds to hoursStill registered between listens. A message for the device waits for the next window.

Power saving mode. After the device sends its report, it stays reachable for an active timer, T3324, so the network can page it if something is waiting. When T3324 expires it goes to sleep. It is still registered, but it listens to nothing and the network cannot reach it. It wakes when its own firmware has something to send, or when its periodic update timer, T3412 (the extended form for IoT), runs out and it must tell the network it is alive. The specification lets the extended T3412 reach 35,712,000 s, about 413 days (TS 24.008). Operators set a ceiling far below that, and each decides which values it will accept; ask your host for its list.

Extended DRX. DRX is discontinuous reception: a phone in idle wakes at fixed intervals to check for a page, often every 1.28 or 2.56 s. eDRX stretches the interval. The device stays registered and reachable, but listens only at the start of each long cycle. In the specifications’ largest cycles that is about 44 minutes for LTE-M and about 3 hours for NB-IoT, again with lower operator limits in practice. A message for the device waits for the next window.

The choice between them is a question about the application, not the radio.

PSM eDRX
Battery Best: the radio is off for most of the time Better than idle, worse than PSM
Reachable from the network? Only during T3324 after each report At each listening window
Suits A meter that reports once a day and is never commanded A valve or a lock that must obey within minutes
If you ignore it A command sent to a sleeping device is lost or queued until it wakes A command arrives, late by up to one cycle

In the 5G core the matching ideas are the MICO mode (mobile-initiated connection only: the device is never paged) and extended idle-mode DRX, both in TS 23.501. A 5G core states what it supports to the phone in its Registration accept. You will read the lab core’s answer in step 4: it carries a periodic registration timer and says it does not support the cellular-IoT optimisations. That is truthful for a lab core with ordinary phones, and it is what you would check in a vendor’s core before promising a customer a meter fleet.

Sleep also changes the signalling bill. A fleet of 8,000 devices that must update every 9 minutes (the value the lab core uses) makes 8,000 divided by 540 s, about 14.8 periodic registrations every second, which say nothing. The same fleet on a 24-hour timer makes about 0.09 a second. Longer sleep means fewer messages as well as less battery, which is why the operator and the customer must agree the timers before the SIMs ship.

A fleet is a signalling load

A phone that downloads a web page moves megabytes. A tracker that reports its position moves about 500 bytes and still has to do almost everything a phone does to send them: wake the radio, register, authenticate, set up a data session, send, and let the session go. In the lab’s recording that costs 601 ms for registration and 312 ms for a data session for one phone (attach-and-browse), roughly a dozen messages between the core’s functions for every few hundred bytes. The core’s work scales with the number of wake-ups, not with the number of bytes.

3GPP has two ways to shrink that. Control-plane optimisation sends a small message inside the signalling instead of opening a data session; its flags are the ones the lab core’s Registration accept says it does not support. User-plane optimisation lets the core keep a suspended session’s context so resuming it is cheaper. Both need the radio network, the core and the device to agree, and a virtual operator buys whatever its host has switched on.

Why they wake together

Devices wake together for four ordinary reasons. Firmware timers are set to round figures: the top of the hour, midnight, 06:00. A cell or core outage cuts the whole fleet off, and when service returns every device sees the network at once. A power cut takes out a block of meters and they restart together. A software update, delivered by the same schedule to every unit, reboots them in a wave. The result is not a larger average load but a spike, and a spike is what a core is sized against.

What a spike does

A core finishes registrations at some rate. In the lab, a line fitted to the busy-hour trace says about 25 a second. While more arrive than that, a queue forms. A device whose request is not answered within its timer sends it again, as it must, because it cannot know whether the first was lost. The first copy is still in the queue. The core now does the same work twice for one device, and the queue is longer, so more devices time out. This is congestion collapse: the core is busy and almost nothing useful comes out. The model in the lab shows it happen with a few lines of Python, and shows that making the core twice as fast changes the numbers only a little.

Three defences are in use.

  • Spread the start. Each device adds a random delay to its schedule, so the arrivals are a stream and not a spike. This is the cheapest and the one the customer’s firmware must carry. The GSMA’s TS.34, its IoT device connection efficiency guidelines, asks for this kind of behaviour, among many other rules about how devices should use the network.
  • Back off on failure. After a failed attempt, wait a random time before the next one, with a longer ceiling each time. Without randomness the retries arrive together again.
  • Protect the core. The network can reject new registrations with a congestion cause and tell the device to wait, so the core sheds load it cannot finish. 5GMM cause 22 is congestion. A well-behaved device obeys the wait it is given.

None of these is on the network’s side alone. A virtual operator that sells an IoT fleet is selling a promise about the customer’s firmware as well as the SIM.

Provisioning a fleet

Eight thousand SIMs are not eight thousand phones in a shop. They arrive in boxes, are installed by a contractor, and must be known to the core before they power up, because an unknown identity is rejected (the lab’s busy-hour trace has two such phones, refused with cause 11). In the lab you load a block with scripts/subscriber.sh add-range FIRST COUNT KEY OPC. The IMSI is a country code, a network code and a subscriber number, and a fleet usually gets a contiguous block of the subscriber part, so one range in the database covers the customer and a billing system can find every device by prefix.

Two cautions come with that. The lab gives the whole range one key and one OPc, because it makes a five-device demonstration quick. A real fleet never does. The key is the identity: a block with one shared key means anyone who extracts it from one device can impersonate all the others. The SIM vendor generates a different key for each SIM and delivers them in a protected file, which the home network loads. The SIM chapter taught what the key does. And add-range hides its own errors: run twice, it reports success both times, so a real loader has to check what it wrote.

At scale the loader changes too. One database call for each SIM is fine for five; for 8,000 you load in bulk and check a count at the end. The 4G subscriber record also carries a periodic-update timer per subscriber (the lab’s is 720 s in the S6a answer), so an operator can give an IoT subscription its own value.

eSIM for IoT. A SIM soldered into a device cannot be swapped by hand, and a tracker that crosses borders or changes owner needs a different operator’s profile. The consumer eSIM process, where a person scans a code, does not fit a device with no screen. The GSMA’s SGP.32 specification (with SGP.31 as its architecture) splits the job. A remote manager, the eIM (eSIM IoT Remote Manager), decides which profile the device should hold. An IPA (IoT Profile Assistant) on the device or its module obeys: it fetches the profile from the operator’s server and installs it, enables it or deletes it. Nobody visits the vehicle. The GSMA lists v1.2 as dated 27 June 2024; its index shows a later v1.3 from 2026, so read the current version. For an operator it means a new system to run or to buy, the eIM, and a new commercial question: who owns the eIM, the customer or the operator?

Slices and prices

Slices. The 5G core can carve its network into slices with their own limits. 3GPP’s standard slice types include one for massive IoT (type 3, MIoT, in TS 23.501). The lab’s phone asks for type 1, ordinary broadband, which you can see in the Registration accept (Slice/service type (SST): eMBB (1)). A slice for IoT lets an operator cap a fleet’s share of the core and keep it from crowding out phones. It does not yet make a spike harmless: the slice’s capacity is finite too.

Pricing. The consumer tariff does not fit a machine. The lab’s illustrative tariff is ₦4.00 per MB, rounded up to 10 KB at the end of each session. A tracker that reports 24 times a day, 350 bytes up and 120 down each time, uses 11,280 bytes a day. Rated per session it is billed for 240,000 bytes: ₦0.96 a day, about ₦28.80 a month. The same bytes in one daily session are billed as 20,000 and cost ₦0.08, a twelfth. The tariff’s rounding, not the data, makes the cost. IoT plans therefore charge a fixed sum per SIM a month with a pooled allowance across the fleet, or by the message. Every figure here is illustrative.

Kolanut Mobile and the fleet

A virtual operator can sell IoT, and the pattern is common. The SIM is the product, the network is the host’s, and the customer pays for a managed fleet. What matters is which tier Kolanut Mobile holds.

The NCC’s virtual operator framework (section 4.2) gives a Tier 1 Services Virtual Operator its own brand, sales and distribution, and the ability to host and distribute value-added services, with no switching and no control of numbering; and a Tier 4 Virtual Aggregator or Enabler buys bulk capacity from a licensed network and resells it to several virtual operators, or provides a platform to which they outsource business and operations supportas of 2026-11.

In its launch year Kolanut Mobile is Tier 1. It can sell the logistics company a branded SIM and a monthly plan, and it can sell the customer’s application support. It does not hold the keys, the numbers, the core or the charging, so every promise about timers, congestion handling, slices and the signalling a fleet may cause is a promise Lumora Mobile must back. A Tier 4 enabler would sit one step along: a platform that several virtual operators share, which is where an IoT connectivity-management service often lives. The MVNO Business course covers the licence and the host agreement; the Tier 4 course covers the platform. This chapter gives you the list of questions to put into the agreement.

A rule also applies to the SIMs themselves. The NCC’s Business Rules for the Registration of Communications Subscribers, in their July 2025 amendment, include corporate and IoT or M2M activations as well as individuals; search summaries of the 2022 text say an IoT or M2M registration needs the NIN (national identification number) of the primary telecoms master, but check the current clausesas of 2026-11. Read the current text before you promise a customer how its fleet’s SIMs will be registered and to whom they will be tied. The SIM-swap story in the SIM applies too: a SIM in a pole-mounted device is a number somebody can move.

LAB Wake a fleet together and measure the storm ~50 MIN
YOU NEEDDocker with Compose v2Python 3.9 or laterSCTP in the kernel, for step 7 only (the live core); steps 1 to 6 need only Docker and read traces/ or the databases, and work on any machine, including one without SCTP

You will measure twenty phones registering together, fit a model to them, run it to a signalling storm and the fixes, read what the core says about IoT, load a block of SIMs, price a tracker, and then run five devices from one file. Work in labs/telecoms. Step 5 starts the database alone (mongo); it needs no SCTP. Step 7 needs the live core and the phone.

1. Compare one phone with twenty (any machine with Docker).

scripts/kpi.sh traces/attach-and-browse.pcapng
scripts/kpi.sh traces/busy-hour.pcapng

For the one phone: registrations 1/1, time to accept median 601 ms, data sessions 1/1 at 312 ms. For the busy hour: 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, median 1245 ms, 95th percentile 1435 ms, max 1456 ms; deregistrations: 18; and 2 registration reject: 11 PLMN not allowed. The two rejected phones were not provisioned: an IoT launch with a missing block of SIMs looks exactly like this. The median registration is 3.3 times the lone phone’s, and the data session 4 times.

2. Fit a line to the crowd (any machine with Docker). Save this as fit.py in a folder of your own, outside scripts/. It reuses the reader in scripts/kpi.py, and fits time to accept against rank, so that L is a fixed delay and S is the core’s time for each registration.

#!/usr/bin/env python3
"""Fit: time to accept = L + rank x S, to the registrations in a capture."""
import sys

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

asked, waits = {}, []
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 "0x41" in kinds and phone not in asked:
        asked[phone] = t
    if "0x42" in kinds and phone in asked:
        waits.append(t - asked.pop(phone))

waits.sort()
n = len(waits)
ranks = range(1, n + 1)
mean_r, mean_w = sum(ranks) / n, sum(waits) / n
s = sum((r - mean_r) * (w - mean_w) for r, w in zip(ranks, waits)) / sum((r - mean_r) ** 2 for r in ranks)
l = mean_w - s * mean_r
print(f"{n} registrations accepted")
print(f"first accepted after {waits[0]:.2f} s, last after {waits[-1]:.2f} s")
print(f"fit: L = {l:.2f} s fixed, S = {s * 1000:.0f} ms per registration")
print(f"so the core finishes about {1 / s:.0f} registrations a second")
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/fit.py"
18 registrations accepted
first accepted after 1.44 s, last after 2.45 s
fit: L = 1.60 s fixed, S = 40 ms per registration
so the core finishes about 25 registrations a second

Read it with care. Eighteen points and two numbers is a description, not a measurement of the core. L is 1.6 s although a lone phone takes 0.6 s, so the fixed part is not the same in a crowd; the lab’s functions share one machine and the cell’s link carries sixteen requests in one packet (frame 672). The smallest time, 1.44 s, belongs to the phone that asked last, after the crowd had cleared. The model uses these two numbers because they are honest about what the trace shows.

3. Run the storm (any machine with Python). Save this as storm.py. A queue serves registrations one at a time, at S seconds each, with a fixed delay L before the answer arrives. A device with no answer after TIMEOUT seconds asks again, and the old request still costs S. L and S are the fit from step 2. The timeout and the try limit are illustrative, not a network’s values.

#!/usr/bin/env python3
"""A signalling-storm model: many devices register with one shared core.

One server answers registrations in order. Each takes S seconds of the
server's time, plus a fixed delay L before the answer reaches the device.
A device with no answer after TIMEOUT seconds asks again (the first copy
still waits in the queue and still costs S). After MAX_TRIES requests it
gives up. L and S are fitted to the lab's busy-hour trace; TIMEOUT and
MAX_TRIES are illustrative.
"""
import heapq
import random
import statistics

L = 1.60          # fixed delay, s (fitted)
S = 0.040         # server time per registration, s (fitted)
TIMEOUT = 5.0     # illustrative
MAX_TRIES = 8     # illustrative


def run(starts, backoff=False, tries=MAX_TRIES, seed=1):
    """starts: when each device first asks. Returns the results as a dict."""
    rng = random.Random(seed)
    events = [(t, d, 1) for d, t in enumerate(starts)]   # (time, device, try)
    heapq.heapify(events)
    free_at = 0.0             # when the server is next free
    done = {}                 # device -> when its answer arrives
    served = 0
    while events:
        t, d, k = heapq.heappop(events)
        free_at = max(t, free_at) + S
        served += 1                        # every copy costs S, wanted or not
        answer = free_at + L
        if d in done:
            continue
        if answer - t <= TIMEOUT:
            done[d] = answer
        elif k < tries:
            wait = TIMEOUT
            if backoff:                    # random wait, the ceiling doubles each try
                wait += rng.uniform(0, min(300, TIMEOUT * 2 ** k))
            heapq.heappush(events, (t + wait, d, k + 1))
    waits = sorted(done[d] - starts[d] for d in done)
    pick = lambda q: waits[int(q * (len(waits) - 1))] if waits else float("nan")
    return {"devices": len(starts), "accepted": len(done), "served": served,
            "median": statistics.median(waits) if waits else float("nan"),
            "p95": pick(0.95), "last": max(done.values(), default=float("nan"))}


def show(label, r):
    print(f"{label:<32}{r['accepted']:>5}/{r['devices']:<5}{r['served']:>8}"
          f"{r['median']:>9.1f}{r['p95']:>8.1f}{r['last']:>8.1f}")


if __name__ == "__main__":
    print(f"{'scenario':<32}{'accepted':>11}{'handled':>8}{'median':>9}{'p95':>8}{'last':>8}")
    print(f"{'':<32}{'':>11}{'':>8}{'(s)':>9}{'(s)':>8}{'(s)':>8}")
    for n in (20, 200, 2000):
        show(f"{n} at once", run([0.0] * n))
    show("2000 at once, 8 tries, back-off", run([0.0] * 2000, backoff=True))
    show("2000 at once, 20 tries, back-off", run([0.0] * 2000, backoff=True, tries=20))
    rng = random.Random(7)
    for w in (60, 300):
        show(f"2000 spread over {w} s", run([rng.uniform(0, w) for _ in range(2000)]))
python3 storm.py
scenario                           accepted handled   median     p95    last
                                                         (s)     (s)     (s)
20 at once                         20/20         20      2.0     2.4     2.4
200 at once                       200/200       558     14.5    23.5    23.9
2000 at once                       84/2000    15412      3.3     4.8     5.0
2000 at once, 8 tries, back-off   483/2000    15412    644.4   763.5   851.6
2000 at once, 20 tries, back-off 2000/2000    19105    771.4   924.2   986.8
2000 spread over 60 s              278/2000    14054      3.7     4.8    12.7
2000 spread over 300 s           2000/2000     2000      1.6     1.7   301.2

The model reproduces the lab at twenty phones: median 2.0 s, 95th percentile 2.4 s and last 2.4 s, against the recorded 1.98, 2.32 and 2.45 (the extrapolation beyond twenty is the model’s, not a measurement). Then read down. At 200 at once everyone gets in, but the core handles 558 requests for 200 devices, and the median is 14.5 s. At 2,000 at once only 84 are accepted: the median of 3.3 s is a median of the survivors, so the percentile looks healthy while 96% of the fleet is locked out. Randomised back-off with enough tries lets all 2,000 in, after a median of 771 s: a recovery, not a cure. The 60-second spread fails because 2,000 over 60 s is 33 a second, above the 25 the core can finish. The 300-second spread is 6.7 a second and costs nothing: every device is accepted in 1.6 s and the last at 301 s. The fix is the arrival rate. Your figures match to the digit, because the random seeds are fixed.

4. Read what the core says about IoT (any machine with Docker).

docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
  tshark -r /t/attach-and-browse.pcapng -o nas-5gs.null_decipher:TRUE -Y 'frame.number==366' -V 2>/dev/null \
  | grep -E "CIoT|T3512|GPRS Timer:|SST"

Frame 366 is the Registration accept at 8.659 s. Five lines of interest: User plane CIoT 5GS optimization (5G-UP CIoT): Not supported, IP header compression for control plane CIoT 5GS optimization (5G-IPHC-CP CIoT): Not supported, Control plane CIoT 5GS optimization (5G-CP CIoT): Not supported, GPRS Timer 3 - T3512 value with GPRS Timer: 9 min, and the allowed slice Slice/service type (SST): eMBB (1). The core offers none of the cellular-IoT savings, tells the phone to report every 9 minutes, and serves only the broadband slice: right for the lab, and the list of things to ask a host before an IoT deal. There is no extended timer and no eDRX value in the message, because UERANSIM does not ask for them.

For the 4G side, with the HSS from the epc profile running (docker compose --profile epc up -d mongo hss, then scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001 if it does not yet exist), run:

scripts/s6a.sh ulr 999700000000001 | grep -E "Periodic|MSISDN"
    MSISDN: 2340000000001
    Subscribed-Periodic-RAU-TAU-Timer: 720

720 seconds is 12 minutes, the periodic update the HSS tells the MME to give this subscriber. It is a per-subscriber setting: an IoT subscription can carry a much longer one. The lab’s value is the lab’s own.

5. Load a block of SIMs (any machine with Docker). Only the database is needed.

docker compose up -d mongo
sleep 5
scripts/subscriber.sh add-range 999700000000301 5 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA
scripts/subscriber.sh list
scripts/subscriber.sh add-range 999700000000301 5 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA

The first and third commands both print provisioned 5 from 999700000000301. The list shows 999700000000001 2340000000001 and then 999700000000301 to 999700000000305 with no number after them, because add-range stores no MSISDN. The third command ran against a block that already existed, and still said it provisioned five: the script discards each add’s error, so its message is a statement of what it tried and not of what it wrote. A real loader reads the count back. scripts/subscriber.sh show 999700000000303 prints the same k and opc as the others: the one-key block you were warned about. If you do not go on to step 7, remove the five with for i in 1 2 3 4 5; do scripts/subscriber.sh remove 99970000000030$i; done, which prints removed: 1 five times.

6. Price a tracker (any machine with Python).

(echo seid,uplink_bytes,downlink_bytes; for i in $(seq 1 24); do echo $i,350,120; done) | python3 charging/prepaid.py rate | tail -2
(echo seid,uplink_bytes,downlink_bytes; echo 1,8400,2880) | python3 charging/prepaid.py rate | tail -2

The first prints a total of ₦0.96: 24 sessions, each rated at 10,000 bytes. The second, one session carrying the same 11,280 bytes, rates at 20,000 bytes and prints ₦0.08. The first line of each reads tariff ₦4.00 per MB, rounded up to 10 KB. Add --round-kb 1 to the first command and the total becomes ₦0.24: the rounding unit sets the bill. The tariff is the lab’s, an illustration; no operator’s IoT price is implied.

7. Run five devices from one file (needs the live core). Provision the block from step 5, then give UERANSIM one file and ask for five devices. The -n flag counts the IMSI upwards.

docker compose up -d
sed 's/imsi-999700000000001/imsi-999700000000301/' ran/ue.yaml > ran/ue-iot.yaml
docker compose --profile phone run -d --name atlas-iot ue nr-ue -c /etc/atlas/ue-iot.yaml -n 5
sleep 20
docker exec atlas-iot nr-cli -d
docker logs atlas-iot 2>&1 | grep -E "TUN interface"
docker compose exec gnb nr-cli UERANSIM-gnb-999-70-1 --exec ue-count
docker exec atlas-iot curl -s --interface uesimtun3 http://10.34.0.80/

Recorded on 2026-11-13. nr-cli -d lists imsi-999700000000301 to imsi-999700000000305. Each device announces its own tunnel:

[2026-11-13 21:12:18.222] [999700000000301|app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.45.0.3] is up.
[2026-11-13 21:12:18.575] [999700000000302|app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun1, 10.45.0.2] is up.
[2026-11-13 21:12:18.974] [999700000000303|app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun2, 10.45.0.5] is up.
[2026-11-13 21:12:19.448] [999700000000304|app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun3, 10.45.0.4] is up.
[2026-11-13 21:12:19.810] [999700000000305|app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun4, 10.45.0.6] is up.

ue-count prints 5, and the curl through uesimtun3 prints Hello from the data network. Your packets came through the UPF. The five sessions finished 1.6 s apart in all, in the order 301, 302, 303, 304, 305. The addresses 10.45.0.2 to 10.45.0.6 went out in the order the sessions completed, so device 302 got .2 and 301 got .3. You cannot read a device’s address from its IMSI. Timestamps and addresses differ on your run. The first tunnel and the last came up 1.6 s apart: even five devices that start together queue behind one another. To clean up, docker rm -f atlas-iot and rm ran/ue-iot.yaml; removing the container does not tell the network, so each session stays open until the device registers again.

Double the core’s speed and try the 2,000-device spike again. Run:

python3 -c "
import storm
storm.S = 0.020
r = storm.run([0.0] * 2000)
print(r['accepted'], r['served'])"

It prints 169 14817. A core twice as fast accepts 169 of the 2,000, not 2,000: the queue of 2,000 takes 40 s to clear, the devices give up at 5 s, and the core spends its time on copies nobody is waiting for. Now set S back to 0.040 and TIMEOUT to 60.0, so each device waits a minute before it asks again, and run the same call with print(r['accepted'], r['served'], round(r['median'], 1), round(r['last'], 1)). It prints 2000 2540 41.6 103.2: all 2,000 are accepted, after 2,540 requests instead of 15,412, but the median wait is 41.6 s and the last device waits 103 s. Patience removed the retries and not the queue. A device’s timers are the device’s choice within what the standards allow, so the contract is where you control them. Then answer: Kolanut Mobile’s contract with the logistics company must say something about arrival. Write the one sentence about start times and back-off that you would ask Lumora Mobile to approve.

DECIDE

Kolanut Mobile, in its launch year, is pitching 8,000 vehicle trackers to a logistics company. The firmware wakes every tracker at the top of the hour. The SIMs, the core and the charging are Lumora Mobile's. Timi has a signed term sheet with the customer. Aondona at Lumora says an hourly spike of 8,000 simultaneous registrations is a risk to its core. The customer's release is two weeks away. What do you do?

READING
  1. DOC
    GSMA TS.34: IoT Device Connection Efficiency Guidelines GSMA

    The operators' own rules for devices that behave well: how and when to attach, retry and use timers and power saving. It is the document to cite in a contract clause about start times. Read the sections on mobility and session management and on timers; skip the annexes first time.

  2. DOC
    GSMA SGP.32: eSIM IoT Technical Specification (v1.2) GSMA, 2024

    The standard for changing a device's operator profile without a visit: the eIM, the IPA and the interface between them. Read the architecture and the eIM-to-IPA sections; the cryptographic detail is for implementers. Read: the architecture overview and the eIM and IPA interface clauses.

  3. DOC
    3GPP TS 23.682: Architecture enhancements to facilitate communications with packet data networks and applications 3GPP

    The 4G machine-type communication architecture, including how a device that sleeps is reached and how an application is told that it has woken. Read the overview and the monitoring and delivery sections. Read: the architecture and the device-triggering and monitoring clauses.

  4. DOC
    3GPP TS 23.501: System architecture for the 5G System (5GS) 3GPP

    The source for the 5G pieces named here: MICO mode, extended idle-mode DRX and the standard slice types, including the one for massive IoT. Use it as a reference; search for the term you need. Read: the clauses on MICO mode, DRX and standardised slice and service types.

  5. DOC
    3GPP Low Power Wide Area Technologies: GSMA White Paper GSMA, 2016

    A readable comparison of NB-IoT, LTE-M and EC-GSM-IoT as they were first standardised: what each is for and what it gives up. Read the technology comparison; it is from 2016, so treat deployment claims as history.

  6. POST
    What is reduced capability (RedCap) NR and what will it achieve? Ericsson, 2021

    An engineer's account of what RedCap removes from a 5G device and why, including the cut in bandwidth. Read it for the reasoning behind the class; its rate figures are examples, so use the specifications for numbers.

  7. DOC
    NCC: License Framework for the Establishment of Mobile Virtual Network Operators in Nigeria Nigerian Communications Commission

    The primary source for what a Tier 1 and a Tier 4 virtual operator may do. Read section 4.2 for the tiers; the fee table and procedures belong to the MVNO Business course.

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: Project: diagnose five faults from signalling traces →