Signalling: SS7, Diameter and the 5G service interfaces
Every call, attach and data session starts as a conversation between machines. Learn the three languages they speak, what each trusts, and how to read one answer
In the lab you ask the 4G HSS for an authentication vector for an IMSI it has never heard of. What does the answer carry?
A phone is a small part of a mobile network’s conversation. Behind every attach, every call and every text, network machines talk to each other: one asks who the subscriber is, another says where they are, another reserves a circuit or a tunnel. That conversation is signalling. It is separate from the user plane that carries your packets and voice, which you met in what a mobile network is. Keeping them apart means a flood of web traffic cannot starve the messages that set up the next call, and a fault in one does not silence the other.
Signalling has been rebuilt three times, once per era of core network, and a working network runs all three side by side. Each has its own vocabulary, its own transport and its own idea of who can be trusted. You need all three because a subscriber on 2G, one on 4G and one on 5G reach the same subscriber records through different doors, as the 2G to 5G chapter showed in outline.
| Era | Language | Carried over | Format | The job it did first |
|---|---|---|---|---|
| 2G, 3G circuit core | SS7 (Signalling System No. 7): MTP, SCCP, TCAP, MAP, ISUP | Dedicated signalling links, now mostly IP | Binary | Set up calls, find subscribers |
| 4G core | Diameter | TCP or SCTP, port 3868 | Binary AVPs | Subscriber data, policy, charging |
| 5G core | Service-based interfaces (SBI) | HTTP/2 over TCP | JSON | Everything between core functions |
| 5G cell to core | NGAP, with NAS inside | SCTP, port 38412 | ASN.1 binary | Carry the phone’s own messages |
The lab can show you three of these four. It has no SS7, so that part of this chapter comes from the specifications. The Diameter and 5G parts you read from real recordings and a live HSS.
SS7: the original signalling network
SS7 was specified by the ITU’s telephony standards body in the Q.700 series in the 1980s. Its founding idea was out-of-band signalling: the messages that set up a call travel on their own links, apart from the voice circuits. Before that, a call’s control tones went down the same wire as the voice. Separating them let an exchange check whether a number was free before it reserved a circuit, and made it hard for a caller to forge control tones.
An SS7 network has three kinds of node. A signalling point is any node that sends or receives messages, identified by a point code: 14 bits in ITU networks, 24 bits in the North American variant. A signal transfer point (STP) routes messages between points, like a router. A service control point holds a database or service logic that others query. Everything from the home location register (HLR, the 2G and 3G subscriber database) to a prepaid balance server is reached this way.
The protocols are a stack. You can follow it from the wire up.
| Layer | Standard | What it does |
|---|---|---|
| MTP 1 and 2 | ITU-T Q.702, Q.703 | The physical link, typically a 64 kbit/s timeslot, and reliable delivery over it with sequence numbers and retransmission. |
| MTP 3 | Q.704 | Routes messages between signalling points by point code, and reroutes when a link fails. |
| SCCP | Q.711 to Q.714 | Adds routing by global title, a number such as a phone number or one derived from an IMSI, and a subsystem number that names the application at the destination. A message can find the HLR holding a subscriber without the sender knowing the HLR’s point code. |
| TCAP | Q.771 to Q.775 | Transactions: a request, its answer or error, and a dialogue that can span several messages. |
| MAP | 3GPP TS 29.002 | The mobile application: operations between exchanges, location registers and message centres. |
| ISUP | Q.761 to Q.764 | Sets up and clears the voice circuits between exchanges: an initial address message, an address-complete, an answer, a release. |
MAP is the part that matters for subscribers. Its operations have the names you will meet again in Diameter. SendAuthenticationInfo asks the HLR’s authentication centre for challenge vectors. UpdateLocation tells the HLR which visited location register now serves a subscriber, and the HLR replies by sending the subscription with InsertSubscriberData. SendRoutingInfo asks where to send a call. MT-ForwardSM delivers a text. When a Lumora Mobile subscriber on 2G or 3G switches on, these are the messages that run.
SIGTRAN. Dedicated 64 kbit/s links do not scale to the volume of a modern network, so SS7 moved onto IP. A family of adaptation layers, SIGTRAN, carries the upper layers over SCTP: M3UA carries MTP 3’s users (SCCP and ISUP) and is defined in RFC 4666. The messages above are unchanged. SCTP is the transport you will meet again below.
The trust model
SS7 was built for a small club. A few hundred operators, many state-owned, connected through gateways each had physical control over. The design assumes that any node that can send a message is an operator’s node and is behaving. A MAP message says who it is from in a field the sender fills in, and the network does not check it cryptographically. Protection was, and where it exists still is, filtering at the edge: an operator decides which global titles and operations it will accept from outside.
That assumption was reasonable in 1985. It is wrong now, because anyone who rents access to a signalling link can, in effect, be a node. The chapter on network security covers what that has meant in practice. Here you only need the shape of it: SS7 trusts by position in the network, not by proof. Hold that thought as you read the next two sections, because each generation has changed it a little.
Diameter: signalling for the 4G core
When 4G replaced the circuit core with an all-IP one, 3GPP did not keep MAP. It chose Diameter, a general framework for authentication, authorisation and accounting defined by the IETF in RFC 6733. 4G’s interfaces are Diameter applications: S6a between the mobility management entity (MME) and the HSS, Gx between the packet gateway and the policy function, Gy for online charging.
Diameter is peer-to-peer over a transport connection: TCP or SCTP, port 3868. It is binary, not text. Every message has a 20-byte header and then a list of AVPs (attribute-value pairs), each an attribute number, a few flags, a length, and a value. An AVP can hold other AVPs, called grouped, which is how a whole subscription is carried as one tree.
The header
| Field | Meaning |
|---|---|
| Flags R P E T | Request (0 means answer). Proxyable: an agent may forward it. Error: set on protocol-level error answers. T: possibly a retransmission. |
| Command code | The operation: 257 capabilities exchange, 282 disconnect, 316 update location, 318 authentication information. |
| Application id | Which application the message belongs to: 0 for the base protocol, 16777251 for S6a. |
| Hop-by-hop id | Matches an answer to its request on one link. A relay rewrites it. |
| End-to-end id | Matches an answer to its request across the whole path. It does not change. |
The AVP header
Each AVP carries flags V (a vendor id follows), M (mandatory: a receiver that does not understand it must reject the message) and P (protected). 3GPP’s AVPs are vendor-specific, with vendor id 10415, 3GPP’s own. That is why the S6a AVPs in the trace show f=VM-: vendor and mandatory.
Peers, realms and agents
Two Diameter nodes make a peer connection and begin with a Capabilities-Exchange (CER and CEA): each says its identity, its realm (an administrative domain, written like a DNS name) and which applications it supports. Without a successful exchange no other message is accepted. Each message names its sender in Origin-Host and Origin-Realm, and its target in Destination-Realm, with an optional Destination-Host to pick one node. Routing is by realm and application, not by IP address. A connection that has carried no traffic for a while is probed with Device-Watchdog messages (DWR and DWA), whose timer Tw defaults to 30 seconds in RFC 6733, and ended politely with Disconnect-Peer (DPR and DPA).
Between peers stand agents. A relay forwards by realm without changing the content. A proxy may change it, to apply policy. A redirect agent tells the sender where to go. A translation agent converts between protocols. In operator networks you meet them as a Diameter routing agent inside a network and a Diameter edge agent at the border towards other operators. They are why the story at the top of the chapter happened: remove a realm from a routing agent’s table and the request has no next hop.
Two kinds of result
An answer reports its outcome in one of two places, and the difference catches many engineers. Base Diameter has the Result-Code AVP in classes: 1xxx informational, 2xxx success (2001 is DIAMETER_SUCCESS), 3xxx protocol errors, 4xxx transient failures, 5xxx permanent failures. Two 3xxx codes are worth knowing by sight: 3002 DIAMETER_UNABLE_TO_DELIVER and 3003 DIAMETER_REALM_NOT_SERVED, which is what the routing agent in the opening story sent. An application can also define its own failures, and 3GPP does so on S6a. Those travel in a grouped Experimental-Result AVP with a vendor id and an Experimental-Result-Code: 5001 DIAMETER_ERROR_USER_UNKNOWN, 5420 DIAMETER_ERROR_UNKNOWN_EPS_SUBSCRIPTION. The lab’s HSS answers an unknown subscriber this way, with no Result-Code at all. A monitoring rule that counts only Result-Code values above 2999 will never see it. You test that in the break.
S6a in two messages
TS 29.272 defines S6a. Two of its commands do nearly all the work at attach, and they are the 4G form of two MAP operations.
- Authentication-Information-Request (AIR, code 318) asks for vectors, the same question as SendAuthenticationInfo. The answer holds an E-UTRAN-Vector with RAND, XRES, AUTN and KASME, the key from which the 4G session keys are derived. You met the 5G form of this exchange in the SIM.
- Update-Location-Request (ULR, code 316) tells the HSS that this MME now serves the subscriber. The Update-Location-Answer carries a Subscription-Data tree: the MSISDN, the speed limits, the allowed APNs with their quality settings. In MAP this was the separate InsertSubscriberData.
Diameter’s trust model differs from SS7’s in one way. Peers identify themselves in the capabilities exchange, and a node accepts messages only from configured peers. The standard also expects TLS or IPsec on the link. That is protection by connection. It does not stop an operator’s own peer from sending a bad request, and the lab runs without TLS so you can read it.
5G service-based interfaces
The 5G core threw out the point-to-point model. Its functions are services on a shared bus, called the service-based architecture, and they talk HTTP/2 with JSON bodies. A request is a verb and a path. A response has a status code. You can read it with the tools you use on the web, and TS 29.500 sets the rules every function follows. Each function’s API is described in OpenAPI, for example the NRF in TS 29.510.
The lab shows it. At 8.073 s in traces/attach-and-browse.pcapng the AMF sends:
POST /nausf-auth/v1/ue-authentications
{"supiOrSuci":"suci-0-999-70-0000-0-0-0000000001","servingNetworkName":"5G:mnc070.mcc999.3gppnetwork.org"}
The path starts with the name of the service, nausf-auth, a version and a resource. Compare it with the AIR above: the same job (ask the home network to authenticate this subscriber), but readable, and it names the serving network in the request, which binds the answer to that network.
The directory and the proxy
How does the AMF know where the AUSF is? It does not. When a function starts it registers with the NRF (network repository function): its type, its address, the services it offers, and a heartbeat interval, which is 10 seconds in the lab (step 7 shows it). A function that wants a service asks the NRF to discover one. TS 23.501 (annex E) names four ways to combine this. In the lab you see the one called indirect communication with delegated discovery:
- The AMF does not query the NRF itself. It sends its request to the SCP (service communication proxy), with headers saying which kind of function it needs (here the service
nausf-authand the typeAUSF). - The SCP asks the NRF:
GET /nnrf-disc/v1/nf-instances?target-nf-type=AUSF...at 8.079 s. - The NRF answers
200 OKat 8.085 s with a list of matching instances, each with its address, services and capacity. - The SCP picks one and forwards the request to the AUSF at 8.093 s.
So every request in the lab goes sender, SCP, receiver, and appears twice in a capture. scripts/ladder.sh shows it once and marks the receiver with *; --all shows both legs.
Why this design? Instances of a function can be added, moved or removed, and the senders need no reconfiguration. The cost is more hops, and a proxy and a directory that must never fail. In the lab’s trace the registration takes about 0.6 s, from the request at 8.058 s to the accept at 8.659 s, with this chain of requests in the middle of it.
What the lab leaves out
The lab’s SBI is cleartext HTTP (the headers show :scheme: http) on port 7777, an Open5GS choice. A live network protects it: TS 33.501 specifies TLS between functions and OAuth 2.0 access tokens that the NRF issues, so a function can call a service only if the NRF has authorised that pair. Between two operators the traffic passes a SEPP (security edge protection proxy). Roaming is for a later chapter. The trust model has moved from “anyone who is on the link” towards “a function with a token the directory issued”, which is the biggest change in signalling security from SS7.
NGAP and NAS: the cell’s link to the core
Between the cell and the AMF a different protocol runs. NGAP (NG application protocol, TS 38.413) carries the cell’s messages to the core and carries the phone’s own NAS messages inside them. The cell does not read the NAS. The AMF does.
Three details matter when you look at a recording.
- Transport is SCTP, to port 38412. SCTP (RFC 9260) was designed to carry telephone signalling over IP. It keeps message boundaries, so each NGAP message arrives whole. It carries several independent streams in one association, so a lost packet delays only its own stream. It supports multi-homing, several addresses per end for resilience. It checks a cookie in its four-way handshake, which resists a flood of fake connection requests. It sends heartbeats to detect a dead path, which you will see in the trace.
- The encoding is ASN.1, a binary notation in which each message type is described by a formal schema. Unlike JSON it is unreadable without the schema, so you need a decoder such as Wireshark.
- NAS wraps inside NGAP. In the lab’s first message from the phone, the layers are Ethernet, IP, SCTP, NGAP and NAS-5GS. The NAS bytes begin
7e 00 41:7eis the 5G mobility management protocol,00is “plain, not security protected” and41is Registration request.
NGAP has its own failure mode. The cell’s SCTP association to the AMF is its only way in. If it drops and does not recover, every phone on that cell is cut off while the cell radiates normally. The lab shows a version of this: UERANSIM 3.2.6 does not reconnect to a restarted AMF, a quirk the lab README lists.
The same job in three languages
Look at one job across the generations. Every row is the same question put to the same subscriber records.
| Job | SS7 MAP | Diameter S6a | 5G SBI in the lab |
|---|---|---|---|
| Fetch an authentication vector | SendAuthenticationInfo | AIR/AIA, command 318 | POST /nudm-ueau/v1/{suci}/security-information/generate-auth-data, 8.108 s |
| Say where the subscriber now is | UpdateLocation | ULR/ULA, command 316 | PUT /nudm-uecm/v1/{supi}/registrations/amf-3gpp-access, 8.395 s |
| Get the subscription | InsertSubscriberData | Subscription-Data in the ULA | GET /nudm-sdm/v2/{supi}/am-data, 8.441 s |
| Where does the failure show | TCAP error component | Result-Code or Experimental-Result | HTTP status and a problem body |
In scripts/ladder.sh traces/attach-and-browse.pcapng (the default view) the first and third rows appear but the second does not. The AMF’s PUT is hidden: HTTP/2 has no built-in short code for PUT, so the AMF’s connection to the SCP refers to the method through a table built earlier in the connection, before the recording began. tshark cannot rebuild it, shows the AMF’s request with no method (--all prints it as HEADERS[31]), and the default view, which keeps only frames with a method and drops the SCP’s own forwards, leaves it out. The SCP’s forward to the UDM at 8.399 s decodes as PUT. Use --all, or --filter 'http2.headers.path contains "amf-3gpp"', to find it.
Notice what 5G did to the trust model. SS7 trusts position. Diameter trusts a configured peer. The SBI trusts a token. Each step is better than the last, and each leaves the old one running in parallel for as long as 2G, 3G and 4G subscribers remain, which is why the weakest door matters most.
You will start the 4G HSS, play the MME to ask it two questions and one wrong question, then read the same conversations in a recording. After that you read the 5G core’s HTTP and SCTP in the first module’s trace. Work in labs/telecoms. Every step works on any machine with Docker, including one without SCTP. There is no SS7 in the lab, so the SS7 section above is reading, not a step.
1. Start the HSS and give it a subscriber.
docker compose --profile epc up -d mongo hss
sleep 12
scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001
docker compose ps hssprovisioned: 999700000000001, or already provisioned: 999700000000001 if the subscriber exists, which is fine. docker compose ps hss shows the service hss with status Up. The HSS needs about 12 seconds before it accepts connections (its first start can log a MongoDB warning and retry).
2. Ask for an authentication vector (AIR).
scripts/s6a.sh air 999700000000001Three exchanges, each printed as an AVP tree. First the capabilities exchange. The request names Origin-Host: mme.atlas.lab and Auth-Application-Id: 16777251. The answer has Result-Code: 2001 (DIAMETER_SUCCESS), Origin-Host: hss.atlas.lab and three Vendor-Specific-Application-Id groups with application ids 16777216, 16777251 and 16777265: the HSS says it also speaks Cx and SWx. Then the Authentication-Information-Request with User-Name: 999700000000001 and Visited-PLMN-Id: 99f907. That is MCC 999, MNC 70 in the digit-swapped encoding the standard uses. The answer holds:
Authentication-Info
E-UTRAN-Vector
RAND: 41cc387ff3087cbc8e5d4704f68e4299
XRES: d6bd7cdfa751b62a
AUTN: d538a6a181c98000db383d08875ff1c8
KASME: 76076353cb947828d4316a26429df40c0046b244076c5f4a389741b4488c216c
Result-Code: 2001 (DIAMETER_SUCCESS)RAND, XRES, AUTN and KASME are fresh each run, so yours differ. The 8000 in the AUTN’s AMF field is the same value as in ran/ue.yaml. Last, Disconnect-Peer and its answer.
3. Register as the serving MME (ULR).
scripts/s6a.sh ulr 999700000000001The same capabilities exchange, then an Update-Location-Request with RAT-Type: 1004 (E-UTRAN, the 4G radio), and an answer with Result-Code: 2001. The Subscription-Data tree holds MSISDN: 2340000000001, Subscriber-Status: 0, an AMBR of Max-Requested-Bandwidth-UL: 50000000 and Max-Requested-Bandwidth-DL: 100000000 (bits per second), Subscribed-Periodic-RAU-TAU-Timer: 720, and under APN-Configuration the Service-Selection: internet, PDN-Type: 2 (IPv4v6) and QoS-Class-Identifier: 9. Compare it with scripts/subscriber.sh show 999700000000001: the number and the speed limits come from the same record the 5G core reads.
4. Ask about a subscriber that does not exist.
scripts/s6a.sh air 999700000000099
docker compose logs --no-log-prefix hss | tail -2The answer has no Result-Code. It holds:
Experimental-Result
Vendor-Id: 10415
Experimental-Result-Code: 5001 (DIAMETER_ERROR_USER_UNKNOWN)
Origin-Host: hss.atlas.labOrigin-Host tells you which node produced the answer. The HSS log’s last line is [dbi] INFO: [imsi-999700000000099] Cannot find IMSI in DB (../lib/dbi/subscription.c:56), with a timestamp that varies and colour codes if your terminal shows them; the line above it is the MME’s connection. The script’s own Disconnect-Peer still succeeds with 2001: the link is healthy and the question had a bad answer.
5. Read the same exchanges in the recording.
scripts/ladder.sh traces/s6a.pcapng --filter diameterEighteen lines: three exchanges of six messages. Each is Capabilities-Exchange request and answer, then 3GPP-Authentication-Information or 3GPP-Update-Location request and answer, then Disconnect-Peer request and answer. The first starts at 6.615 s, the second at 12.278 s and the third at 17.090 s. The capabilities requests have flags R--- and application Diameter Common Messages(0); the S6a requests have RP-- and application 3GPP S6a/S6d(16777251); the S6a answers have -P-- and the others ----. The authentication answer comes 0.16 s after its request (6.675 s to 6.835 s), the update-location answer 0.035 s after (12.288 s to 12.323 s), and the unknown-subscriber answer 0.012 s after (17.100 s to 17.112 s): the HSS is quick to refuse and slower to make a vector. You will not see a Device-Watchdog: each exchange ends in milliseconds, far inside the 30-second timer. The script also reconnects each time, where a real MME holds one connection open for days.
Then read one answer’s AVPs:
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
tshark -r /t/s6a.pcapng -Y 'frame.number==179' -V | grep -E "AVP: [A-Za-z-]+\([0-9]+\) l="The Update-Location-Answer’s AVPs, nested ones indented: Session-Id, then Subscription-Data(1400) l=392 f=VM- vnd=TGPP containing the MSISDN (MSISDN(701), shown as 320400000000f1, which Wireshark decodes to 2340000000001), AMBR(1435), APN-Configuration-Profile(1429) and the rest, then Origin-Host, Origin-Realm, Result-Code(268) ... DIAMETER_SUCCESS (2001), Auth-Session-State, ULA-Flags and Vendor-Specific-Application-Id. In f=VM-, V is the vendor flag and M the mandatory flag. The MSISDN’s bytes 32 04 00 00 00 00 f1 are the digits swapped in pairs with f as filler: 23 40 00 00 00 00 1. The number 2340000000001 is the lab’s, not a real subscriber’s.
6. Read the 5G conversation: HTTP/2 and the NRF.
scripts/ladder.sh traces/attach-and-browse.pcapng --all | sed -n '/8.058/,/8.245/p'From the Registration request at 8.058 s (NGAP/NAS-5GS, gNB to AMF): AMF -> SCP POST /nausf-auth/v1/ue-authentications (8.073 s); SCP -> NRF GET /nnrf-disc/v1/nf-instances?target-nf-type=AUSF&...&service-names=nausf-auth (8.079 s); NRF -> SCP 200 OK (8.085 s); SCP -> AUSF POST /nausf-auth/v1/ue-authentications (8.093 s); then the AUSF asks the UDM, again through the SCP, with its own NRF lookup for the UDR at 8.137 s; and 201 Created from the AUSF at 8.228 s. The Authentication request reaches the phone at 8.245 s. Every request appears twice, as sent and as forwarded. Without --all each appears once, marked *.
7. Open the NRF’s answer.
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 'frame.number==103' -T fields -e http2.data.data |
python3 -c "import sys,json;print(json.dumps(json.loads(bytes.fromhex(sys.stdin.read().strip().replace(':',''))),indent=1))"A JSON discovery result. Among its fields: "validityPeriod": 30 (the SCP may cache it for 30 s), then one entry in nfInstances with "nfType": "AUSF", "nfStatus": "REGISTERED", "heartBeatTimer": 10, "plmnList" with mcc 999 and mnc 70, "ipv4Addresses": ["10.33.0.11"] and "allowedNfTypes": ["SCP", "AMF"]. In its nfServiceList is one service, "serviceName": "nausf-auth", API version v1, "scheme": "http", endpoint 10.33.0.11 port 7777. Instance ids (7ce0d260-...) differ in every recording and on every start. This is the whole directory entry the SCP used to find the AUSF.
8. Read NGAP and its SCTP transport.
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
tshark -r /t/attach-and-browse.pcapng -Y 'sctp.chunk_type==0' \
-T fields -e frame.time_relative -e ip.src -e sctp.dstport -e sctp.data_payload_proto_id -e ngap.procedureCode | head -6The first line is at 8.058 s from 10.33.0.50 (the cell) to port 38412 with payload protocol 60 (NGAP) and procedure code 15, InitialUEMessage. Next come 8.245 s from the AMF with procedure 4 (DownlinkNASTransport, carrying the Authentication request) and 8.263 s with procedure 46 (UplinkNASTransport, the phone’s answer). Before them, sctp.chunk_type==4 and 5 show the heartbeats and their acknowledgements, at 1.728 s and 7.872 s. Add -V -Y 'frame.number==96' to see the layers, ending with the NAS bytes 7e004179.... The messages are readable only because the lab uses the null cipher, which the README lists as a lab simplification: a live network encrypts them.
Write the display filter that finds every failed answer in traces/s6a.pcapng. First try diameter.Result-Code > 2999 and run it with tshark -r ... -T fields -e frame.number. It finds nothing, because the only failure has no Result-Code. Then try diameter.Result-Code > 2999 || diameter.Experimental-Result-Code > 2999. It finds frame 258, at 17.112 s, with code 5001. Now answer: Lumora Mobile counts failures on its routing agents with the first filter. Which of tonight’s two failures, a missing realm route (3003) and an unknown subscriber (5001), would the count show? Both are real problems; only one is in the count. What would you add?
05:40 at Lumora Mobile. Attach failures on 4G are climbing in one region. The HSS is up and its answer rate is normal. The MMEs log their authentication requests being answered by a routing agent with 3003, DIAMETER_REALM_NOT_SERVED. A change to the routing agent ran overnight. You are Junaid. What do you do first?
- DOC RFC 6733: Diameter Base Protocol V. Fajardo, J. Arkko, J. Loughney, G. Zorn (eds.), 2012
The base protocol behind S6a: the message header, AVP format, capabilities exchange, watchdog, agents and the result-code classes. Read the sections on peer connections and on error handling; skip accounting first time. Read: peer connections, message format, error handling.
- DOC 3GPP TS 29.272: EPS interfaces to the MME and SGSN related to the HSS (S6a and S6d) 3GPP
The standard behind the lab's HSS. The command descriptions for Authentication-Information and Update-Location list every AVP you saw in the trace, and the section on experimental result codes defines 5001. Read: the S6a command descriptions and the result-code section.
- DOC 3GPP TS 29.500: Technical realization of the service-based architecture 3GPP
How every 5G core function uses HTTP/2 and JSON: methods, status codes, error bodies, and the headers that drive indirect communication through the SCP. Read: the clauses on general HTTP rules and on indirect communication.
- DOC 3GPP TS 38.413: NG-RAN; NG Application Protocol (NGAP) 3GPP
Every message the cell and the AMF exchange, including the InitialUEMessage and the NAS-PDU container you found in the trace. The procedure descriptions are readable; skip the ASN.1 in the annex first time. Read: the general procedures and the initial UE message.
- DOC 3GPP TS 29.002: Mobile Application Part (MAP) specification 3GPP
The SS7-era operations this chapter could not run in the lab: UpdateLocation, SendAuthenticationInfo, InsertSubscriberData and the message-delivery operations. Compare their parameters with the S6a AVPs. Read: the location management and authentication procedures.
- DOC ITU-T Q.700: Introduction to CCITT Signalling System No. 7 ITU-T, 1993
The overview of SS7's functional elements and how they relate: signalling points, links, the user and transfer parts. It is short, and the starting point for the rest of the Q.7xx series. Read: the whole recommendation.
- DOC RFC 9260: Stream Control Transmission Protocol R. Stewart, M. Tüxen, K. Nielsen, 2022
The transport under NGAP and SIGTRAN. Read the overview of associations, streams and multi-homing; the abstract notes it was designed to carry telephone signalling over IP. Read: the introduction and the sections on associations and streams.
- BOOK From GSM to LTE-Advanced Pro and 5G Martin Sauter, 2021
A readable account of how the signalling in each generation fits into the network around it. Use it for the picture, and the specifications for the detail. Read: the GSM chapter, where the SS7 stack is introduced, and the 5G core section of the 5G chapter.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.