WORKINGCHAPTER 14

Numbers and identifiers: MSISDN, IMSI, ICCID, IMEI and the network code

A subscriber carries six identifiers, each answering a different question and kept by a different party. Learn which is which, and why mixing them up breaks activation, billing and security

45 MINHOW MOBILE NETWORKS WORKUPDATED 2026-11-13
PREDICT

A trader buys a new handset, moves her SIM card into it and keeps her number. Which identifier does the network see change?

A mobile network needs to answer several different questions about a subscriber, and no single number answers them all. Which subscription is this, so the network can authenticate it and know what it paid for? Which number do people dial to reach it? Which card was sold at the stall? Which handset is in the customer’s hand? Which phone is that, right now, among the thousands in a tracking area? Which network, and which cell? This chapter takes each in turn, shows it on the wire in the lab’s recorded traces, and ends with who is allowed to hand out numbers: a virtual operator does not, and the reason shapes what Kolanut Mobile can promise a customer.

Six identifiers, six questions

Identifier The question it answers Shape Who assigns it Where it lives
MSISDN (Mobile Station International Subscriber Directory Number) Which number do people dial? An E.164 number: country code, then the national number, at most 15 digits The operator, from number blocks it holds The subscriber database, against the IMSI
IMSI (International Mobile Subscriber Identity), in 5G the SUPI Which subscription is this? MCC + MNC + MSIN, at most 15 digits The operator The SIM and the subscriber database
ICCID (Integrated Circuit Card Identifier) Which physical card (or eSIM profile) is this? Up to 20 digits, starting 89, ending in a check digit The card’s issuer Printed on the card; the operator’s SIM stock records
IMEI (International Mobile Equipment Identity), IMEISV, in 5G the PEI Which handset is this? 15 digits (16 for the IMEISV) The device maker, from blocks the GSMA allocates The handset
GUTI (Globally Unique Temporary Identity), 5G-TMSI Which phone is this, right now? A network name plus a 32-bit number the AMF chooses The core network (the AMF, Access and Mobility Management Function, in 5G) The phone and the AMF
PLMN id, TAC, NR cell id Which network, and where? MCC + MNC; a tracking area code; a 36-bit cell id The operator The cell’s broadcast and the core’s configuration
HandsetIMEI, IMEISVthe device, not the owner5G-GUTI (a copy)given by the AMFSIM cardIMSIK and OPc (never sent)ICCIDon the plastic, not sent in registrationThe networkIMSI + K + OPc + MSISDNone record (UDR)5G-GUTI, 5G-TMSIkept by the AMFEquipment register (EIR)not in the lab

Read the table across and notice that the phone number is the only one a person ever sees. Everything else is plumbing. The rest of the chapter is why the plumbing has to be kept apart.

The number people dial: MSISDN and E.164

What goes wrong first: treating the phone number as the subscriber. It is a label. The same person can have two numbers on two SIMs; one number can move to a new SIM (the swap in The SIM); a number can leave for another operator altogether. If a billing system, a customer record or a fraud rule uses the MSISDN as the key for “who is this”, each of those events breaks it.

The MSISDN is a telephone number in the format of ITU-T E.164, the international numbering plan: a country code, then a national number, and never more than 15 digits in all. Nigeria’s country code is 234. A Nigerian mobile number is written +234 followed by ten digits; dialled at home you replace the +234 with a 0 and the other ten are the same. The 0 is a national trunk prefix, not part of the number, which is why the network stores 234... and never 0....

The lab’s subscriber has MSISDN 2340000000001: country code 234, then 0000000001. A real Nigerian number never has a 0 straight after 234, so no lab number can belong to anyone. In 5G, the network calls this number the GPSI (Generic Public Subscription Identifier), written msisdn-2340000000001 in the core’s messages. You will find it in the lab.

Who owns the numbers? In Nigeria the NCC publishes the national numbering plan, which lists the blocks of numbers it has assigned to each licensed operatoras of 2026-11. An operator can give a subscriber only a number from a block it has been assigned. A subscriber’s number tells you which block it came from. It does not reliably tell you which network serves it today, because of number portability, the subject of a later chapter in this course.

The subscription: IMSI, SUPI and the network code

The IMSI is what the network authenticates and bills. It has three parts, defined by ITU-T E.212:

  • MCC (Mobile Country Code), 3 digits. Nigeria’s is 621. The lab uses 999, the code ITU-T E.212 reserves for internal use in private networks.
  • MNC (Mobile Network Code), 2 or 3 digits. It names the operator within the country. The lab uses 70.
  • MSIN (Mobile Subscription Identification Number), the rest. The operator hands these out.

The whole IMSI is at most 15 digits (3GPP TS 23.003). The lab’s is 999700000000001: MCC 999, MNC 70, MSIN 0000000001, which is 3 + 2 + 10 = 15 digits. An IMSI does not say where the MNC ends: MNCs are two digits in some countries and three in others, so a field on the SIM tells the phone how long the MNC is. Nigeria’s are two digits.

MCC and MNC together are the PLMN id (Public Land Mobile Network identity): the name of one operator’s network. Roaming, network selection and the choice of which network’s home database to ask all start with it. The ITU’s list of mobile network codes (the annex to its Operational Bulletin 1280, position of 15 November 2023) shows Nigeria under MCC 621 with five MNCs: 20, 30, 40, 50 and 60as of 2026-11. The list is only as current as the national administrations’ reports to the ITU, so treat it as a starting point, not a register.

In 5G the permanent identity is called the SUPI (Subscription Permanent Identifier), and for an IMSI-based subscription it is written imsi-999700000000001. The phone does not send it. It sends the SUCI, the same identity with the MSIN concealed, as The SIM explained. The home network’s UDM (Unified Data Management, the function that holds subscriber data) reverses the concealment. Inside the core the SUPI is the key for everything about a subscriber: you will see imsi-999700000000001 in almost every request in the lab’s trace.

The card: ICCID

What goes wrong first: a number that looks like a serial number is compared as text, and one side is missing a digit. That was the Why.

The ICCID names the physical card, or for an eSIM the profile downloaded to the phone. It follows ITU-T E.118, which gives charge cards a numbering plan and starts every telecom card number with 89, the industry code for telecommunications, then the country code of the issuer, then digits that identify the issuer and the individual card, ending with a check digit. It is at most 20 digits. Cards commonly print 19 or 20.

The check digit is calculated by the Luhn algorithm, the same checksum that sits on bank cards. Working from the right of the number without its check digit, double every second digit starting with the rightmost, subtract 9 from any result above 9, add everything up, and the check digit is whatever makes the total a multiple of 10. It detects any single mistyped digit and most swaps of two neighbouring digits. It is not security. Anyone can calculate it.

The ICCID is for logistics. It is the key in the operator’s SIM stock records: which batch the card came from, which IMSI and K are loaded in it, who bought it, whether it is activated. When an agent sells a card, activation links an ICCID to an MSISDN and a customer. That is why the phone never sends it during registration (the lab’s traces have none) and why the lab’s phone has no ICCID at all: only the logistics system needs it. Kolanut Mobile at Tier 1 has no say in which batch file Lumora loads, but it has to hold exactly the ICCIDs of the cards its agents carry.

The handset: IMEI, IMEISV and PEI

What goes wrong first: a phone is stolen and the thief puts in another SIM. Blocking the SIM does nothing, because the thief has not kept it. The network needs an identifier for the device.

The IMEI is 15 digits, specified in 3GPP TS 23.003 and allocated under GSMA TS.06:

Part Digits Meaning
TAC (Type Allocation Code; not the tracking area code, which shares the abbreviation) 8 The device model. The GSMA allocates blocks of TACs to makers. The first two digits identify the body that approved it.
SNR (serial number) 6 One unit of that model
CD (check digit) 1 Luhn check over the first 14 digits

A dual-SIM phone has two IMEIs, one per slot. On most phones, dialling *#06# shows them.

The IMEISV (IMEI and Software Version) is 16 digits: the same TAC and serial number, then a 2-digit software version number (SVN) in place of the check digit. It is the identifier the lab’s 5G core asks for. In 5G the whole concept is called the PEI (Permanent Equipment Identifier), and it takes the form of an IMEI or an IMEISV: the core’s messages carry imeisv-4370816125816151.

Why does the IMEISV leave the check digit out? The check digit is for people typing numbers, not for machines. 3GPP TS 23.003 says the check digit is not sent to the network (a handset sends zero in its place), so the network never relies on it. Your own system should recompute it when a person types an IMEI in, for instance a customer reporting a stolen phone, and reject a typo before it blocks the wrong handset.

The network uses the IMEI through an EIR (Equipment Identity Register), a database of handsets with lists such as “blocked” and “allowed”. The NCC virtual operator framework lets a Tier 2 operator own and operate any of its own EIR, HLR, AuC and HSSas of 2026-11. The lab has no EIR. Its AMF asks the phone for the IMEISV and records it, and nothing checks it. You will see in the lab that the phone’s two equipment identifiers disagree with each other, and that the phone is registered anyway.

Temporary identifiers: the GUTI

What goes wrong first: an identifier that never changes is a tracking tag. If a phone announced its IMSI on every paging call and every request for service, anyone with a radio receiver near a station could log who passes. 2G, 3G and 4G did send the IMSI at first attach. 5G conceals it with the SUCI, but there is another job to do: the network needs a short, cheap name for a phone it already knows.

After a successful registration the AMF gives the phone a 5G-GUTI (5G Globally Unique Temporary Identity). It has two parts:

  • The GUAMI (Globally Unique AMF Identifier): the PLMN id, an 8-bit AMF Region ID, a 10-bit AMF Set ID and a 6-bit AMF Pointer. These say which AMF holds the phone’s context.
  • The 5G-TMSI (Temporary Mobile Subscriber Identity): 32 bits that the AMF picks for this phone.

Idle phones are called by the 5G-S-TMSI, a short form with only the AMF Set ID, the AMF Pointer and the 5G-TMSI (48 bits in all), used in paging and in a Service request. The phone’s first registration carries a SUCI. After that it normally presents its GUTI, and the AMF can allocate a new one at later procedures, so the temporary name does not stay still. In 4G the same ideas are the GUTI built from an MME group and code, and the M-TMSI.

The lab shows it in the trace morning: the Registration accept gives the phone 5G-TMSI 0xc000058d, and about 26 seconds later, when the cell has put the phone to idle and it comes back, its Service request names itself with the same 5G-S-TMSI and no SUCI at all.

How an identifier looks on the wire

Both the lab’s 5G and 4G traces use a number format called TBCD (Telephony Binary Coded Decimal). Each digit takes 4 bits, so a byte holds two digits, and the low half is the first digit. If the digit count is odd, the last high half holds the filler f. So 2340000000001, 13 digits, becomes seven bytes: 32 04 00 00 00 00 f1. The 4G Diameter message that returns the subscription carries those bytes in its MSISDN field.

The PLMN id uses the same swapped order, three bytes, with a filler when the MNC has two digits. For MCC 999, MNC 70 the bytes are 99 f9 07. Read them as nibbles: first byte, low half 9 and high half 9 (MCC digits 1 and 2); second byte, low half 9 (MCC digit 3) and high half f (the missing third MNC digit); third byte, low half 7 and high half 0 (MNC digits 1 and 2: 70). Nigeria’s 621 with MNC 30 would be 26 f1 03. You will decode both in the lab.

What a virtual operator does about numbers

What goes wrong first: a virtual operator advertises “your own network code” or “a number that follows you” and finds out it has no say. The identifiers come from ranges that the regulator assigns to licensed operators, and a virtual operator holds none.

The NCC framework (section 4.2) gives a Tier 1 Services Virtual Operator no control of numbering; a Tier 2 Simple Facilities Virtual Operator relies on its host’s number ranges; only a Tier 3 Core Facilities Virtual Operator may own a mobile network codeas of 2026-11. Applied here:

  • Kolanut Mobile in its launch year (Tier 1) sells SIMs whose IMSI, MSISDN and ICCID all come from Lumora Mobile’s blocks. Its subscriber records say 621 and Lumora’s MNC. Its customers’ numbers come from Lumora’s ranges, so interconnect carriers and other networks see Lumora’s number blocks.
  • At Tier 2, Kolanut would issue its own SIMs and run its own subscriber databases and EIR, yet the numbers would still be Lumora’s. Whose MNC is on the SIM then matters: if it is Lumora’s, the host must route the signalling for Kolanut’s subscribers to Kolanut’s database. The MVNO Business course owns how that is agreed and what it costs.
  • Only at Tier 3 does an operator own a network code of its own, and with it the identifiers that sit under it.

The consequence is what Kolanut can promise. It can sell a brand, a SIM and a number. It cannot promise a network code of its own before Tier 3, and the number it sells is drawn from Lumora’s block.

LAB Find every identifier in a recorded registration ~45 MIN
YOU NEEDDocker with Compose v2Python 3.9 or laterThe traces/ folder of labs/telecoms (every step except 8 and 9 works on any machine)Step 8: Docker, but no SCTP needed (the 4G HSS uses TCP)Step 9: the live core, which needs SCTP in the kernel

You will find each identifier from the table in recorded traffic, compute a check digit by hand, and decode two values that the wire stores in swapped-nibble form. Work in labs/telecoms. Steps 1 to 7 read files in traces/ and need no running core. Step 8 uses the 4G HSS, which runs without SCTP. Step 9 needs the live 5G core.

1. The SIM’s side: what the phone is configured with.

grep -E "supi|mcc|mnc|imei" ran/ue.yaml

The first comment line (it contains the word supi), then supi: 'imsi-999700000000001', mcc: '999', mnc: '70', imei: '356938035643803' and imeiSv: '4370816125816151'. Split the supi yourself: MCC 999, MNC 70, MSIN 0000000001. Now look at the last two lines. The IMEI starts 35693803 and the IMEISV 43708161. A real handset’s IMEISV is its IMEI with the check digit swapped for a software version, so these two would start the same. They do not. Hold that thought for step 2.

2. Calculate the IMEI’s check digit. Create identifiers.py:

# Checks for the identifiers chapter. Standard library only.
#   python3 identifiers.py luhn DIGITS     check digit for DIGITS (no check digit yet)
#   python3 identifiers.py valid DIGITS    is the last digit a correct Luhn check digit?
#   python3 identifiers.py tbcd HEX        decode swapped-nibble digits (an MSISDN)
#   python3 identifiers.py plmn HEX        decode a 3-byte PLMN id into MCC and MNC
import sys

def luhn_digit(body):
    total = 0
    for i, ch in enumerate(reversed(body)):   # the rightmost digit of the body is doubled
        n = int(ch) * (2 if i % 2 == 0 else 1)
        total += n - 9 if n > 9 else n
    return (10 - total % 10) % 10

def tbcd(hexstr):
    out = ""
    for b in bytes.fromhex(hexstr):
        for nib in (b & 0x0F, b >> 4):        # low half first
            if nib != 0x0F:                   # 0xF is filler
                out += str(nib)
    return out

cmd, arg = sys.argv[1], sys.argv[2]
if cmd == "luhn":
    print(arg + str(luhn_digit(arg)), "<- with check digit", luhn_digit(arg))
elif cmd == "valid":
    d = luhn_digit(arg[:-1])
    print("check digit should be", d, "and is", arg[-1], "->", "VALID" if str(d) == arg[-1] else "INVALID")
elif cmd == "tbcd":
    print(tbcd(arg))
elif cmd == "plmn":
    b = bytes.fromhex(arg)
    mcc = f"{b[0] & 15}{b[0] >> 4}{b[1] & 15}"
    mnc3 = b[1] >> 4
    mnc = f"{b[2] & 15}{b[2] >> 4}" + ("" if mnc3 == 15 else str(mnc3))
    print("MCC", mcc, "MNC", mnc)
python3 identifiers.py luhn 35693803564380
python3 identifiers.py valid 356938035643803
356938035643809 <- with check digit 9
check digit should be 9 and is 3 -> INVALID

The first 14 digits of the lab’s IMEI need the check digit 9, and the file has 3. The lab’s IMEI fails its own check, so it cannot belong to a real handset. Nothing in the lab notices, because there is no EIR and the 5G core asks for the IMEISV, which has no check digit. By hand, from the right, doubling the first digit and every second one after it (and taking 9 off any result above 9), the 14 digits become 0, 8, 6, 4, 3, 5, 6, 0, 7, 3, 9, 6, 1, 3. They add up to 61, and 9 takes the total to 70.

3. The SUCI and the PLMN in the Registration request.

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 'nas-5gs.mm.message_type == 0x41 && frame.time_relative < 8.1' -V \
  | grep -E "Type of identity|Mobile .* Code|Routing|Protection|Home network|MSIN" | sed 's/^ *//'
.... .001 = Type of identity: SUCI (1)
Mobile Country Code (MCC): Private network (999)
Mobile Network Code (MNC): Unknown (70)
Routing indicator: 0000
.... 0000 = Protection scheme Id: NULL scheme (0)
Home network public key identifier: 0
MSIN: 0000000001
Mobile Country Code (MCC): Private network (999)
Mobile Network Code (MNC): Unknown (70)
Mobile Country Code (MCC): Private network (999)
Mobile Network Code (MNC): Unknown (70)

The Registration request at 8.058 s. The first seven lines are the SUCI of The SIM: the IMSI split into MCC, MNC and MSIN, readable because the lab uses the null scheme. The last two pairs of lines are the PLMN id again, in the NGAP wrapper around the message: once in the cell’s identity and once in the tracking area (99f907 in both). Wireshark knows 999 as “Private network” and does not know the test network 70, hence Unknown (70).

4. The IMEISV, asked for and given.

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 'nas-5gs.mm.message_type == 0x5d || nas-5gs.mm.message_type == 0x5e' -V \
  | grep -E "Message type|IMEISV" | sed 's/^ *//'
Message type: Security mode command (0x5d)
IMEISV request
.... .001 = IMEISV request: IMEISV requested (1)
Message type: Security mode complete (0x5e)
.... .101 = Type of identity: IMEISV (5)
IMEISV: 4370816125816151
Message type: Registration request (0x41)

The AMF asks for the IMEISV in the Security mode command (8.370 s, the ladder.sh line you saw in the previous chapters). The phone gives it in the Security mode complete (8.386 s). The IMEISV is not in the first Registration request: the standard keeps the equipment identity out of messages sent before the NAS security context exists. The third line is the phone sending its original Registration request again inside the Security mode complete, now protected. Split the IMEISV: TAC 43708161, serial 258161, software version 51. It does not match the IMEI in step 1. That is a UERANSIM default, not something a real handset does (the lab’s quirk, taught and not hidden).

5. The 5G-GUTI and then the 5G-S-TMSI.

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 'nas-5gs.mm.message_type == 0x42' -V \
  | grep -E "5G-GUTI|AMF Region|AMF Set|AMF Pointer|5G-TMSI" | sed 's/^ *//'
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
  tshark -r /t/morning.pcapng -o nas-5gs.null_decipher:TRUE \
  -Y 'nas-5gs.mm.message_type == 0x4c' -V \
  | grep -E "Type of identity|AMF Set|AMF Pointer|5G-TMSI" | sed 's/^ *//' | head -4
5GS mobile identity - 5G-GUTI
.... .010 = Type of identity: 5G-GUTI (2)
AMF Region ID: 2
0000 0000 01.. .... = AMF Set ID: 1
..00 0000 = AMF Pointer: 0
5G-TMSI: 3221227472 (0xc00007d0)
.... .100 = Type of identity: 5G-S-TMSI (4)
0000 0000 01.. .... = AMF Set ID: 1
..00 0000 = AMF Pointer: 0
5G-TMSI: 3221226893 (0xc000058d)

First the Registration accept in attach-and-browse (8.659 s): the MCC and MNC are in the message too, AMF Region 2, Set 1, Pointer 0, and a 5G-TMSI of 0xc00007d0. The AMF’s own configuration, core/amf.yaml, says the same under guami: region 2, set 1. The 5G-TMSI is different in every recording: the AMF picks it. Then the Service request in morning (36.027 s): the phone no longer says who it is with a SUCI. It says “AMF set 1, pointer 0, TMSI 0xc000058d”, which is the value the Registration accept gave it in that recording (9.784 s).

6. Every identifier in one message. The AMF passes what it knows about the phone to the SMF when the data session starts. That message carries most of the table.

docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
  tshark -r /t/attach-and-browse.pcapng -d tcp.port==7777,http2 \
  -Y 'json.value.string contains "imeisv-" && frame.time_relative > 8.89 && frame.time_relative < 8.9' -V \
  | grep -E "String value: (imsi|imeisv|msisdn|020040|000001|000000010)" | sed 's/^ *//'
String value: imsi-999700000000001
String value: imeisv-4370816125816151
String value: msisdn-2340000000001
String value: 020040
String value: 000001
String value: 000000010

This is the AMF’s request to the SMF at 8.898 s (the line AMF -> SMF* POST /nsmf-pdusession/v1/sm-contexts in the ladder). In order, these are its supi, pei and gpsi fields: the subscription, the handset and the phone number. Then the amfId inside guami (020040: region 02, then set 1 and pointer 0 packed into the next 16 bits), the tac (tracking area code 1) and the nrCellId (000000010, hexadecimal 0x10 or 16: gnb.yaml sets nci: '0x000000010' with a 32-bit gNB id, so gNB 1, cell 0). Everything in the table except the ICCID, and the 5G-TMSI itself, sits in this one request.

7. The MSISDN as the 4G side stores it.

docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
  tshark -r /t/s6a.pcapng -Y 'diameter.cmd.code == 316' \
  -T fields -e frame.number -e frame.time_relative -e diameter.flags.request \
  -e diameter.User-Name -e diameter.Visited-PLMN-Id -e diameter.MSISDN
python3 identifiers.py tbcd 320400000000f1
python3 identifiers.py plmn 99f907
python3 identifiers.py plmn 26f103
171	12.288228550	True	999700000000001	99f907	
179	12.322879080	False			320400000000f1
2340000000001
MCC 999 MNC 70
MCC 621 MNC 30

Code 316 is Update-Location. The request (12.288 s) names the subscriber in User-Name, the IMSI, and says which network the MME serves in Visited-PLMN-Id: 99f907, as in step 3. The answer (12.323 s) carries the MSISDN in swapped-nibble form, 320400000000f1; your script turns it back into 2340000000001, the same number as subscriber.sh show. In the 4G exchange the MSISDN comes from the HSS. In the 5G one it came as the gpsi. The third plmn line is a made-up Nigerian PLMN (621 and 30) for you to see a three-digit MCC and a two-digit MNC with the filler f in the middle byte.

8. The same exchange, run for yourself (HSS only; no SCTP needed).

docker compose --profile epc up -d mongo hss
sleep 12
scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001
scripts/subscriber.sh list
scripts/s6a.sh ulr 999700000000001 | grep -E "User-Name|Visited-PLMN-Id|MSISDN"

If the subscriber already exists, subscriber.sh add prints already provisioned: 999700000000001; that is fine. list prints one line per subscriber, IMSI then MSISDN, for example 999700000000001 2340000000001. The s6a.sh output has three lines, the script printing the MSISDN already decoded:

  User-Name: 999700000000001
  Visited-PLMN-Id: 99f907
    MSISDN: 2340000000001

The database stores the IMSI as the key and the MSISDN as a field against it. Ask for an IMSI that does not exist (scripts/s6a.sh air 999700000000099) and the HSS answers 5001, as in the trace: it looks up by IMSI, never by number.

9. The phone’s own view (live core).

docker compose up -d
docker compose --profile phone up -d ue
sleep 30
docker compose exec ue nr-cli imsi-999700000000001 --exec "info"
docker compose exec gnb nr-cli UERANSIM-gnb-999-70-1 --exec "info"
docker compose exec ue nr-cli imsi-999700000000001 --exec "status" | grep -A5 stored-guti

From a recorded run (the 5G-TMSI differs every run). info:

supi: imsi-999700000000001
hplmn: 999/70
imei: 356938035643803
imeisv: 4370816125816151

(then ecall-only and the uac lines), and status:

stored-guti: 
 plmn: 999/70
 amf-region-id: 0x02
 amf-set-id: 1
 amf-pointer: 0
 tmsi: 0xc00004f1

The permanent identities (SUPI, IMEI, IMEISV) are the same on every run, because they are in ran/ue.yaml. The GUTI is the AMF’s gift and is different each time you register: the trace in step 5 shows 0xc00007d0 and this run 0xc00004f1. The cell’s info (the same run’s recording of it starts name: UERANSIM-gnb-999-70-1, then nci: 16, plmn: 999/70, tac: 1) gives the cell id as 16, the 0x10 of step 6.

Take the ICCID from the Why and check both versions of it. A made-up 20-digit ICCID is 89234000000000001239 and the 19-digit string the agents’ app stored is 8923400000000000123. Run python3 identifiers.py valid 89234000000000001239 and then the same with the 19-digit string. The first prints check digit should be 9 and is 9 -> VALID. The second prints check digit should be 6 and is 3 -> INVALID, because the program treats the 3 at the end of the short string as a check digit and it is not one. Write the rule that stops it happening to Kolanut: what the activation system stores, what it compares, and where the check digit is verified and then stripped. Then answer the question the lab leaves open: the lab’s IMEI fails its Luhn check and the phone still registers. Which party would have to refuse it, and does Kolanut Mobile at Tier 1 own that party?

DECIDE

Kolanut Mobile in its launch year is planning a campaign: 'Choose your number'. A trader asks Anayo whether she can have a number of her own choosing, one ending in her birth year, and whether Kolanut can give her Kolanut's own network code on the SIM so her number is 'Kolanut's'. Kolanut is Tier 1 on Lumora Mobile's network. What should Anayo say?

READING
  1. DOC
    ITU-T E.164: The international public telecommunication numbering plan

    The authority for the MSISDN: country codes, the 15-digit limit and how a number is structured. Read the scope and the definitions; skip the annexes on special services first time. Read: scope, definitions and the structure of a geographic number.

  2. DOC
    ITU-T E.212: The international identification plan for public networks and subscriptions

    Where the IMSI, the MCC and the MNC are defined, and how country codes and network codes are assigned. The part on the 999 code the lab uses is short and worth reading. Read: the identification structure and the assignment of MCCs and MNCs.

  3. DOC
    ITU: Annex to Operational Bulletin 1280 (mobile network codes)

    The list of every country's MNC assignments, including Nigeria under MCC 621, as the ITU held them in November 2023. Look up a country you know to see how few codes there are.

  4. DOC
    ITU-T E.118: Numbering resources for cards to identify accounts for charging telecommunication services

    The numbering plan behind the ICCID: the 89 prefix, the issuer identifier and the check digit. Read how the number is built; skip the application procedures for issuers.

  5. DOC
    3GPP TS 23.003: Numbering, addressing and identification

    One place that defines the IMSI, the IMEI and IMEISV, the GUTI and 5G-GUTI, and the PEI, SUPI and SUCI formats. Read the sections on those identifiers and skip the ones on DNS names and service numbers first time. Read: the clauses on the IMSI, the IMEI, the GUTI and the 5G-GUTI.

  6. DOC
    3GPP TS 29.272: S6a and S6d interfaces (Diameter)

    Defines the MSISDN and Visited-PLMN-Id fields you decoded in the lab, and the whole of the exchange between the MME and the HSS. Read the messages and the AVP tables; skip the error handling on first reading. Read: the Update-Location and Authentication-Information messages and the AVP tables.

  7. DOC
    GSMA TS.06: IMEI Allocation and Approval Process

    How TACs are allocated, how an IMEI is built, and the check-digit rule. Read the structure and programming rules. Skip the approval process unless you will certify a device.

  8. DOC
    NCC: National Numbering Plan

    The regulator's page for Nigerian numbering. It tells you who runs the plan and where the documents are. The details that matter for a virtual operator come from the framework you met earlier, not from here.

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: Charging: prepaid, postpaid and real-time rating →