Mobile data: access point names, bearers and policy control
A phone with full bars and no data is usually a name that does not match. Follow one data session from the subscription, through the policy function, to the four rules the UPF runs
A phone registers on the network, shows full bars and asks for a data session on a data network name that its subscription does not list. What does the lab's core do?
A data session is not “the internet”. It is a connection to one named network, with a speed limit, a treatment class and a meter, all chosen when the session is created. This chapter takes those pieces one at a time: the name, the type, the treatment (QoS), the speed caps, the policy function that decides them, and the four rules the user plane function (UPF) finally runs. You read every one of them in a recorded trace.
The name: APN and DNN
When a phone asks for a data session it names the network it wants. In 4G the name is the APN (access point name). In 5G it is the DNN (data network name). The idea is the same: a short, DNS-style label such as internet that selects a packet data network and, behind it, the gateway, the address pool, the policy and the charging that go with it. An operator typically runs several. One for the internet, one for IMS (the voice system from module 1), and others for services such as a corporate network or a private service. A phone can hold more than one session at once, each with its own name.
The subscription lists the names a subscriber may use. In the lab, scripts/subscriber.sh add creates a record with one session entry named internet; add-ims adds a second named ims. A subscription can also carry a wildcard, which allows any name. The standard describes a wildcard DNN for this purpose. It is convenient and it removes the check, so an operator uses it deliberately.
The check happens early. In traces/wrong-dnn.pcapng the phone’s request names corp. The AMF had already fetched the subscriber’s DNN list from the UDM at 9.575 s; the answer holds one entry, internet. The AMF compares the request with the list and refuses. It never contacts an SMF.
The refusal carries a cause value, a number the phone can act on. Here it is 5GMM cause 91, “DNN not supported or not subscribed in the slice”. The 4G equivalent is ESM cause 27, “missing or unknown APN”. The cause is the standard’s. The message that carries it is the core’s choice: Open5GS 2.7.2 sends a plain 5GMM status message, and another core may wrap the same cause differently. That is the same kind of difference as the “PLMN not allowed” cause you saw in the SIM chapter.
What the phone does next is up to the phone. In the trace it tries once more 15.9 s later and gets the same answer, then the lab switches it off. A real phone typically keeps its radio connection and shows signal while data stays dead. Nothing visible on the handset says that the name is wrong, so customers report “no signal” or “no internet” and the radio team is the first to be called.
The session type, and what stays fixed
Next to the name, the request carries a PDU session type: IPv4, IPv6, IPv4v6 (both), Ethernet or unstructured. The lab phone asks for IPv4 (type: 'IPv4' in ran/ue.yaml). The subscription allows more. The UDM’s answer in the trace lists the default type IPV4V6 and the allowed types IPv4, IPv6 and IPv4v6, and the accept message returns Selected PDU session type: IPv4. The 4G record says the same in its own numbering: the HSS answer you will read in step 7 has PDN-Type: 2, which is IPv4v6.
The request also names an SSC mode (session and service continuity). Mode 1 keeps the phone’s IP address for as long as the session lives, even when the phone moves to another UPF’s area; modes 2 and 3 let the network change the anchor, releasing the old session first or after the new one is up. The lab uses mode 1, the default and the one almost every ordinary data session uses.
What the session carries: QoS flows, 5QI and bearers
A data session does not treat all packets alike. Your video call and a software download should not queue behind each other. The 5G core divides a session into QoS flows, each identified by a QFI (QoS flow identifier). Every flow has a 5QI (5G QoS identifier): a number that points into a standard table in TS 23.501 (clause 5.7.4) of treatment characteristics. The columns that matter:
| Characteristic | What it says |
|---|---|
| Resource type | Guaranteed bit rate (GBR): the network reserves a rate for this flow. Non-GBR: no reservation, the flow shares what is left. |
| Priority level | Which flow is served first when the cell is congested. |
| Packet delay budget | The longest a packet may be delayed between the phone and the UPF. |
| Packet error rate | The share of packets that may be lost for reasons other than congestion. |
Conversational voice is 5QI 1 (GBR). Signalling for IMS is 5QI 5 (non-GBR, high priority). Ordinary internet traffic is typically 5QI 9. This chapter does not quote delay budgets: they differ per row and per release, so read the current table when you need one.
The lab’s session has exactly one flow: QFI 1, 5QI 9. You can see it in three places: in the subscription (5gQosProfile with 5qi: 9), in the policy answer, and in the accept message the phone receives (a “default QoS rule” with a match-all filter and QFI 1). A default QoS flow always exists; extra flows are added only when a rule needs different treatment, for example a voice flow at 5QI 1.
Each flow also has an ARP (allocation and retention priority): who may be dropped to make room when the cell is full, and whether a flow may push others out. The lab’s flow has priority level 8, and neither pre-emption capability nor vulnerability.
In 4G the unit is the bearer. A bearer is a tunnel with one QoS treatment, carried through the cell, the serving gateway and the packet gateway. Each phone has a default bearer for as long as it is on a session and may get dedicated bearers for flows that need other treatment. The treatment is named by a QCI (QoS class identifier), and QCIs 1 to 9 line up with 5QIs 1 to 9. The lab’s 4G subscription data has QoS-Class-Identifier: 9 for internet. In 5G the session has one tunnel and the flows inside it are marked, which is lighter to set up than a bearer for each class. The cell still maps flows to its own radio bearers.
Two speed caps: the session AMBR and the UE AMBR
The speed limit on a plan is an AMBR (aggregate maximum bit rate). It limits the sum of all non-GBR traffic, not one flow. Two levels:
- Session AMBR. The cap for one PDU session, uplink and downlink separately. The UPF enforces it on the data path, and the phone applies it to its own uplink.
- UE AMBR. The cap for all the phone’s sessions together. The cell enforces it on the radio side.
They differ when a phone has two sessions: with a 100 Mbit/s UE AMBR and two sessions each capped at 100 Mbit/s, the phone cannot exceed 100 Mbit/s overall. The subscription record stores both: ambr at the top, and an ambr inside each session.
The lab’s values come out the same in every place that carries them. The record holds downlink 100 and uplink 50 with unit 2 (Mbit/s). The UDM passes sessionAmbr of 100000 Kbps down and 50000 Kbps up to the SMF; the phone’s accept message shows the same; the NGAP message that sets the session up on the cell shows 100,000,000 and 50,000,000 bit/s for both the session and the UE. The 4G HSS answer carries the same numbers twice: in Subscription-Data (the UE AMBR) and inside the APN-Configuration (the APN AMBR, 4G’s name for the session cap), in bit/s.
Watch the units. The record uses a value and a unit code (1 is kbit/s, 2 is Mbit/s). The 5G messages use kbit/s in some places and bit/s in others. The NAS message encodes the downlink cap as 25000 in units of 4 kbit/s. A factor of 1,000 between two systems is the commonest mistake when a plan’s speed is set in a spreadsheet and loaded into a database.
Who decides: the subscription, the PCF and the SMF
The SMF does not invent a session’s rules. It collects them.
- The subscription (the UDR, read through the UDM) gives the allowed names, types, the default 5QI and ARP, and the subscribed session AMBR.
- The SMF sends those to the PCF (policy control function) in a
POST /npcf-smpolicycontrol/v1/sm-policies. This is the interface the standard calls N7. - The PCF, which reads its own policy data from the UDR, answers with session rules (the authorised session AMBR and default QoS) and, where an operator has defined them, PCC rules (policy and charging control rules): per-traffic-type rules that match a flow by its addresses and ports, give it a QoS, gate it open or closed, and tell the charging system how to count it.
- The PCF also registers itself with the BSF, which remembers that this session’s address (10.45.0.2, in the lab) is served by this PCF, so another function can find it later.
In the lab the subscription has pcc_rule: [], so the PCF adds nothing: it returns the subscribed values as authorised ones, authSessAmbr of 50000 Kbps up and 100000 Kbps down and authDefQos with 5qi: 9. A live operator’s PCF is where a bundle lives. “After 2 GB, drop to 1 Mbit/s”, “zero-rate this app” and “block this destination” are all PCC rules and session rules, not radio settings. The first request also gives the PCF a callback address, /nsmf-callback/v1/sm-policy-notify/1, so that the PCF can change the rules while the session is up and the SMF will act on the change. Nothing in the lab sends such an update.
What the UPF is told: PDR, FAR, QER and URR
The UPF knows nothing of subscriptions or policy. It runs rules, sent by the SMF over PFCP (packet forwarding control protocol, N4) in the Session Establishment Request you met in the previous chapter, a 633-byte message in the lab. There are four kinds, and they refer to each other by number.
| Rule | Question it answers | In the lab’s request |
|---|---|---|
| PDR (packet detection rule) | Which packets does this rule apply to? Matches on the source interface, the data network name (internet), the phone’s IP address, a tunnel identifier, a QFI or a packet filter, in order of precedence. |
Four, numbered 1 to 4. |
| FAR (forwarding action rule) | What happens to those packets: forward, drop, buffer, or notify the control plane? Where to send them. | Three. |
| QER (QoS enforcement rule) | May they pass (the gate), and how fast (the maximum bit rate)? | One: gates open, UL MBR 50,000 and DL MBR 100,000 (kbit/s). |
| URR (usage reporting rule) | Count them, and when to tell the SMF. | One: count volume, report at a total of 104,857,600 bytes (100 MiB). |
A PDR does not carry the action. It points at a FAR, QER and URR by id. Read PDR 1: source interface Core, destination the phone’s address 10.45.0.2, so it matches downlink packets. It points to FAR 1, URR 1 and QER 1. FAR 1 says buffer and notify the control plane, because at that moment the UPF has nowhere to send the packet: the cell’s end of the tunnel is not known yet. The Session Modification at 9.228 s, the last message of the setup, rewrites FAR 1 to forward, to the cell at 10.33.0.50. The same two actions serve an idle phone: in traces/morning.pcapng the SMF sets FAR 1 back to buffer and notify at 31.061 s, when the cell releases the phone, and to forward again at 36.086 s, when the phone returns. A downlink packet that arrives in between is held, the SMF is told, and the phone is paged. PDR 2 matches uplink packets arriving from the cell (source interface Access), removes the GTP-U wrapper and points to FAR 2, which forwards to the Core side, the data network, and to QER 1.
PDR 4 shows precedence at work. Its filter is permit out 58 from ff02::2/128 to assigned: protocol 58 is ICMPv6 and ff02::2 is the all-routers address, so it matches an IPv6 phone’s router solicitation, and FAR 3 sends it to the control plane function, where, as far as the trace shows, the SMF can answer it. It has precedence 1, against 255 for the others. A lower number is matched first, so the specific rule wins over the general one. The lab’s phone is IPv4, so this rule never matches.
QER 1 is the speed limit. The two numbers are the session AMBR, in kbit/s, written into the user plane. That is where “100 Mbit/s” becomes real: a packet that would take the downlink over the limit is queued or dropped here.
The URR is the meter, and it is the last place a charging system touches. The UPF counts bytes and reports them to the SMF in a usage report, which charging reads (the Charging chapter comes back to this). Look at which PDRs name URR 1. Only PDR 1 does, and PDR 1 is the one whose source interface is Core: the downlink PDR. PDR 2 (uplink, source interface Access), PDR 3 and PDR 4 do not name a URR. Now read the end of traces/uplink-usage.pcapng. The usage report in the Session Deletion Response at 25.771 s, for URR 1, says 5,177 bytes down and 0 up. Adding up the IP packets inside the GTP-U tunnel in the same trace gives 5,177 bytes down (33 packets), so the downlink count is exact, and 83,590 bytes up (69 packets), none of which was counted. This is an inference, and it is worth stating what supports it. The trace shows that the only PDR that references the URR is the downlink one, and that the report counts downlink exactly and uplink as zero. It does not show the UPF’s code or how it decides which packets to count. The likely cause is that the UPF counts only packets matched by a PDR that names the URR, but the trace alone does not prove it. Either way it is a good reminder that a meter counts what a rule points at.
Where it goes wrong
A name mismatch. You have seen it: registration works, the session is refused with cause 91 (5G) or 27 (4G), and the phone shows signal and no data. The fix is in the phone’s settings or in the subscription, never in the radio. A wildcard in the subscription would hide the mismatch and open every name. A DNN is also a policy door: another name may lead to a different gateway with different speed, charging or an unmetered route, so “allow anything” is not neutral.
A change that waits. Subscription and policy values are copied into a session when it is created. Edit the stored speed limit and the running session keeps the old one, in the SMF, in the QER and in the phone’s ps-list. The new limit appears at the next session: after the phone is switched off, or after the network releases and re-establishes it. Operators that need an immediate effect use the PCF’s update path (the callback address above), not a database edit. The lab does not have that path, which is why step 6 and its break work the way they do.
Units and layers. The same limit appears as 100, 100000, 25000 and 100000000. Keep the unit with the number.
Kolanut Mobile in its launch year is a Tier 1 operator. The NCC’s virtual operator framework (section 4.2) gives a Tier 1 Services Virtual Operator its own brand, sales and distribution and limited control of tariffs, but no switching or intelligent network and no control of numberingas of 2026-11. So Uju designs the bundle, the price and the speed after the allowance, and Lumora’s PCF and charging systems carry them out. Chika, who runs them, configures Kolanut’s rules in a system Kolanut cannot open. The practical consequence for a launch is a checklist that crosses two companies: the name in the subscription, the name on the phone, the session AMBR, the PCC rules for the bundle and the charging key must all be agreed before a customer buys. The MVNO Business course covers the licence and the host agreement; the Charging chapter covers the meter.
You will find the data session’s rules at each place they live: the subscription, the policy answer, the messages the phone and the cell receive, and the UPF’s four rules. You will read the refusal of a wrong name and change a speed limit on a live core. Work in labs/telecoms. Steps 1 and 6 need the live core (see the README for SCTP). Steps 2 to 5 read the recorded traces. Step 7 works without SCTP.
1. The subscription’s session entry (live core).
docker compose up -d
scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001
scripts/subscriber.sh show 999700000000001provisioned: 999700000000001, then the record. Find the top-level ambr (downlink value 100, uplink value 50, both unit 2, which is Mbit/s) and, under slice, one session entry:
session: [
{
name: 'internet',
type: 3,
qos: {
index: 9,
arp: {
priority_level: 8,
pre_emption_capability: 1,
pre_emption_vulnerability: 1
}
},
ambr: {
downlink: { value: 100, unit: 2 },
uplink: { value: 50, unit: 2 }
},
pcc_rule: []
}
]name is the DNN, type: 3 is IPv4v6, index: 9 is the 5QI, and the ambr inside the session is the session AMBR. The empty pcc_rule is why the PCF will add nothing. (Mongo prints the nested values over several lines; the content is as above.)
2. What the core did with it: the UDM’s answer and the PCF’s decision (traces).
R="docker run --rm -v $PWD/traces:/t:ro nicolaka/netshoot:v0.13 tshark -r /t/attach-and-browse.pcapng -d tcp.port==7777,http2"
$R -Y 'json.member == "dnnConfigurations"' -V | grep "Path with value" | grep -E "internet/(pduSessionTypes/defaultSessionType|5gQosProfile/5qi|sessionAmbr)" | sed 's/^ *//' | sort -u
$R -Y 'json.member == "authSessAmbr"' -V | grep "Path with value" | sed 's/^ *//'The first command prints the subscription as the UDM gave it to the SMF (the SBI answer at 8.97 s):
[Path with value: /[]/dnnConfigurations/internet/5gQosProfile/5qi:9]
[Path with value: /[]/dnnConfigurations/internet/pduSessionTypes/defaultSessionType:IPV4V6]
[Path with value: /[]/dnnConfigurations/internet/sessionAmbr/downlink:100000 Kbps]
[Path with value: /[]/dnnConfigurations/internet/sessionAmbr/uplink:50000 Kbps]The second prints the PCF’s answer to the SMF at 9.109 s:
[Path with value: /sessRules/1/authSessAmbr/uplink:50000 Kbps]
[Path with value: /sessRules/1/authSessAmbr/downlink:100000 Kbps]
[Path with value: /sessRules/1/authDefQos/5qi:9]
[Path with value: /sessRules/1/authDefQos/arp/priorityLevel:8]
[Path with value: /sessRules/1/authDefQos/arp/preemptCap:NOT_PREEMPT]
[Path with value: /sessRules/1/authDefQos/arp/preemptVuln:NOT_PREEMPTABLE]
[Path with value: /sessRules/1/authDefQos/priorityLevel:8]
[Path with value: /sessRules/1/sessRuleId:1]
[Path with value: /suppFeat:4000000]The same 100,000 and 50,000 kbit/s from step 1, in a different unit, and the same 5QI. With no PCC rule, the PCF returns the subscription as policy. The record’s 1 for pre-emption became words (NOT_PREEMPT) on the way. The suppFeat is a bit mask of optional features and can be ignored.
3. What the phone and the cell receive (trace).
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.sm.message_type == 0xc2' -V | grep -E "DQR|Session-AMBR for|5QI:|Qos flow identifier|PDU address information|Match-all|DNN:|PDU session type" | sed 's/^ *//' | sort -uThe PDU session establishment accept, sent at 9.172 s (the SMF’s message, carried to the phone by the AMF and the cell at 9.186 s):
.... .001 = PDU session type: IPv4 (1)
...1 .... = DQR: The QoS rule is the default QoS rule
..00 0001 = Qos flow identifier: 1
5QI: 9
DNN: internet
PDU address information: 10.45.0.2
PDU session type - Selected PDU session type
Packet filter component type: Match-all type (1)
Session-AMBR for downlink: 100000 Kbps (25000)
Session-AMBR for uplink: 50000 Kbps (50000)
Unit for Session-AMBR for downlink: value is incremented in multiples of 4 Kbps (2)
Unit for Session-AMBR for uplink: value is incremented in multiples of 1 Kbps (1)(tshark’s order and labels vary a little between versions.) The default QoS rule matches everything and sends it to flow 1. The downlink cap is coded as 25000 units of 4 kbit/s, which is 100000 kbit/s. The same message’s NGAP wrapper, which goes to the cell, carries the caps in bit/s: run the same tshark with -Y 'ngap.procedureCode==29' -V | grep -E "AggregateMaximumBitRate(DL|UL)" to see pDUSessionAggregateMaximumBitRateDL: 100000000bits/s, ...UL: 50000000bits/s, and the same two numbers again as uEAggregateMaximumBitRateDL and UL, the UE AMBR.
4. The four rules the UPF runs (trace).
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
tshark -r /t/attach-and-browse.pcapng -Y 'pfcp.msg_type == 50' -V \
| grep -E "^ +(Create (PDR|FAR|URR|QER)|Precedence :|Source Interface :|Flow Description|UL MBR|DL MBR|Total Volume|URR ID :|FAR ID :|QER ID :)" | sed 's/^ *//'The Session Establishment Request at 9.127 s, reduced to its rules:
Create PDR : [Grouped IE]: PDR ID: 1
Precedence : 255
Source Interface : Core
FAR ID : Dynamic by CP 1
URR ID : Dynamic by CP 1
QER ID : Dynamic by CP 1
Create PDR : [Grouped IE]: PDR ID: 2
Precedence : 255
Source Interface : Access
FAR ID : Dynamic by CP 2
QER ID : Dynamic by CP 1
Create PDR : [Grouped IE]: PDR ID: 3
Precedence : 1000
Source Interface : CP-function
FAR ID : Dynamic by CP 1
QER ID : Dynamic by CP 1
Create PDR : [Grouped IE]: PDR ID: 4
Precedence : 1
Source Interface : Access
Flow Description: permit out 58 from ff02::2/128 to assigned
FAR ID : Dynamic by CP 3followed by the three Create FAR lines, then Create URR with Total Volume: 104857600, then Create QER with UL MBR: 50000 and DL MBR: 100000. The details to find: only PDR 1 lists a URR; PDR 4 has the lowest precedence number, so it is tried first; and the QER’s two numbers are the AMBR from steps 1 to 3 in kbit/s. For the FAR actions run -V without the filter on the message and look at Apply Action: FAR 1 has Buffer and Notify the CP function set, FAR 2 and 3 have Forward. In the Session Modification at 9.228 s (pfcp.msg_type == 52) FAR 1 becomes Forward to 10.33.0.50, the cell. (This tshark labels the tunnel description in that message N19 Indication (256); the TEID and IPv4 address that follow show it is the GTP-U tunnel to the cell.)
5. A name the subscription does not list (trace).
scripts/ladder.sh traces/wrong-dnn.pcapng | sed -n '20,24p'
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
tshark -r /t/wrong-dnn.pcapng -o nas-5gs.null_decipher:TRUE \
-Y 'nas-5gs.sm.message_type == 0xc1 || nas-5gs.mm.message_type == 0x64' -T fields -e frame.time_relative -e nas-5gs.mm.5gmm_cause
docker run --rm -v "$PWD/traces:/t:ro" nicolaka/netshoot:v0.13 \
tshark -r /t/wrong-dnn.pcapng -o nas-5gs.null_decipher:TRUE \
-Y 'nas-5gs.sm.message_type == 0xc1' -V | grep "DNN:"Registration works: Registration accept (with the InitialContextSetupRequest) at 9.752 s, the 18th line of the ladder. Lines 20 to 24 are:
9.966 gNB -> AMF NGAP/NAS-5GS UplinkNASTransport, Registration complete, UplinkNASTransport, UL NAS transport, PDU session establishment request
9.974 AMF -> gNB NGAP/NAS-5GS DownlinkNASTransport, Configuration update command
9.980 AMF -> gNB NGAP/NAS-5GS DownlinkNASTransport, 5GMM status (DNN not supported or not subscribed in the slice)
25.882 gNB -> AMF NGAP/NAS-5GS UplinkNASTransport, UL NAS transport, PDU session establishment request
25.885 AMF -> gNB NGAP/NAS-5GS DownlinkNASTransport, 5GMM status (DNN not supported or not subscribed in the slice)The second command lists the requests at 9.966 s and 25.882 s with an empty cause column, and the two answers at 9.980 s and 25.885 s with cause 91. The third shows DNN: corp on both requests. No line between 9.966 s and 9.980 s is addressed to an SMF: the AMF decided alone, in 14 ms, from the subscription it fetched at registration. Compare that with the 0.31 s of the successful session in the previous chapter, which included the SMF, the PCF, the BSF and the UPF.
6. Change a speed limit on a live core.
docker compose --profile phone up -d ue
sleep 15
docker compose exec ue nr-cli imsi-999700000000001 --exec "ps-list"
docker compose exec -T mongo mongosh --quiet open5gs --eval "const r = db.subscribers.updateOne({imsi: '999700000000001'}, {\$set: {'slice.0.session.0.ambr': {downlink: {value: NumberInt(20), unit: NumberInt(2)}, uplink: {value: NumberInt(10), unit: NumberInt(2)}}}}); print(r.modifiedCount)"
docker compose restart ue
sleep 15
docker compose exec ue nr-cli imsi-999700000000001 --exec "ps-list"The first ps-list, before the change (the address and timestamps vary per run):
PDU Session1:
state: PS-ACTIVE
session-type: IPv4
apn: internet
s-nssai:
sst: 0x01
sd: null
emergency: false
address: 10.45.0.2
ambr: up[50000Kb/s] down[100000Kb/s]
data-pending: falseThe update prints 1, the number of records changed. After the restart the phone registers again and opens a new session:
PDU Session1:
state: PS-ACTIVE
session-type: IPv4
apn: internet
s-nssai:
sst: 0x01
sd: null
emergency: false
address: 10.45.0.3
ambr: up[10000Kb/s] down[20000Kb/s]
data-pending: falseThe new session got the new limit: 20 Mbit/s down, 10 up. It also got a new address, 10.45.0.3 in the recording, because it is a new session. The command changes the session AMBR only, the entry the PCF reads; the top-level ambr (the UE AMBR) stays at 100 and 50. ps-list shows the session value. Nothing was restarted but the phone, so the new value must have come from the subscription at session creation.
7. The same subscription on the 4G side (works without SCTP).
docker compose --profile epc up -d mongo hss
sleep 12
scripts/subscriber.sh add 999700000000001 465B5CE8B199B49FAA5F0A2EE238A6BC E8ED289DEBA952E4283B54E88E6183CA 2340000000001
scripts/s6a.sh ulr 999700000000001If you ran step 1 the subscriber exists and add prints already provisioned: 999700000000001; that is fine. The output below was recorded before any speed change. The script prints the exchange as trees. The one to read is the Update-Location-Answer:
<<< Update-Location-Answer
Subscription-Data
MSISDN: 2340000000001
Access-Restriction-Data: 32
Subscriber-Status: 0
Network-Access-Mode: 0
AMBR
Max-Requested-Bandwidth-UL: 50000000
Max-Requested-Bandwidth-DL: 100000000
Subscribed-Periodic-RAU-TAU-Timer: 720
APN-Configuration-Profile
Context-Identifier: 1
All-APN-Configurations-Included-Indicator: 0
APN-Configuration
Context-Identifier: 1
PDN-Type: 2
Service-Selection: internet
EPS-Subscribed-QoS-Profile
QoS-Class-Identifier: 9
Allocation-Retention-Priority
Priority-Level: 8
Pre-emption-Capability: 1
Pre-emption-Vulnerability: 1
VPLMN-Dynamic-Address-Allowed: 1
AMBR
Max-Requested-Bandwidth-UL: 50000000
Max-Requested-Bandwidth-DL: 100000000(The Session-Id and a few other lines are left out here.) The record is the one you read in step 1, in 4G words: Service-Selection: internet is the APN, PDN-Type: 2 is IPv4v6, QoS-Class-Identifier: 9 is the 5QI 9 of the 5G side, and the two AMBR groups are the UE AMBR and the APN AMBR, in bit/s. One database serves both generations.
Change the limit while the phone is on a session. With the phone from step 6 up, run the updateOne again with NumberInt(5) for the downlink value and NumberInt(2) for the uplink value, wait 15 s, then run ps-list without restarting anything. Predict first: what does ps-list show? The session keeps the values it was created with (up[10000Kb/s] down[20000Kb/s] in the recording of step 6). The database holds the new limit, the UPF’s QER still holds the old, and no function was told to change it. Now restart the phone and read ps-list again: the 5 Mbit/s limit applies from the new session. Then ask what an operator needs so that a limit changed in a customer care tool takes effect at once (a path from the policy function to the SMF, and from the SMF to the UPF as a PFCP Session Modification), and what a customer does in the meantime (switch the phone off and on).
Kolanut Mobile is in its launch year. By 11:00 on the first morning thousands of bundle buyers show full bars and no data. Lumora's trace shows each phone registering and then being refused with cause 91. The subscriptions list `internet`; the settings Kolanut sent to the phones name another data network. Uju must tell the agents and customer care what to do now, and Chika can change either side. What do you do?
- DOC 3GPP TS 23.501: System architecture for the 5G System
The authority for PDU sessions, QoS flows, 5QI, ARP and the AMBRs. The standardised 5QI table is the one to keep open. Skip the sections on non-3GPP access and roaming first time. Read: clause 5.6 (session management), clause 5.7 (QoS model, with table 5.7.4-1 of standardised 5QIs).
- DOC 3GPP TS 23.503: Policy and charging control framework for the 5G System
What PCC rules and session rules contain and how the PCF decides them: the document behind every bundle, speed cap and zero-rated service. Read the rule definitions and the session management policy procedures; skip the sections on application function influence at first. Read: clause 6 (policy and charging control rule), clause 6.2 (policy decisions) and the SM policy association procedures.
- DOC 3GPP TS 29.244: Interface between the Control Plane and the User Plane nodes
PFCP itself. The grouped information elements for the Create PDR, FAR, QER and URR are the ones you read in step 4. Skip the sections on CUPS 4G node types first time. Read: the message list for Session Establishment, then the Create PDR, Create FAR, Create URR and Create QER information elements.
- DOC 3GPP TS 24.501: Non-Access-Stratum protocol for 5G System
The phone-to-core messages and the cause values, including 5GMM cause 91 and what a phone should do after it. Read the PDU session establishment procedure and the cause tables; skip the mobility procedures here. Read: the PDU session establishment procedure and the 5GMM cause table in annex A.
- DOC Open5GS quickstart
The core the lab runs. Read how a subscriber with its session and DNN is added and how it is changed, and note what the quickstart says about restarting functions after a profile change.
- BOOK From GSM to LTE-Advanced Pro and 5G Martin Sauter, 2021
The readable account of APNs, bearers and QCI in 4G, and the 5G core chapter that follows. Read it for the picture before the standards give you the detail. Read: the LTE chapter's sections on bearers, APNs and quality of service, and the 5G core sections.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.