PFCP Session Establishment is where the SMF (or SGW-C / PGW-C) tells the user-plane node who the session is for, and which user-plane F-TEIDs to use. Two details are easy to get almost right and still be wrong. The first is User ID (TS 29.244, IE type 141): it may be omitted, or present towards one UPF and missing towards the other in an I-UPF plus PSA setup. The second is an access F-TEID that is reused after the previous session has already been deleted. That is legal reuse, not a live collision, and it should not glue the new session to the old GTP session.
This article is about generating those cases and reading them back with Mobile Core 1.19.2–1.19.4. An earlier article covers the association and Session Establishment handshake itself. Keep any live exchange on an authorized, isolated lab network. Never point these tools at a production or third-party system.
The cases you can inject
The edge-cases scenario (Tools > Scenario from sessions, or gtpcore run-scenario) accepts a comma-separated edge_cases list, or all. The PFCP-related toggles added in 1.19.2 are:
pfcp-no-user-id— Session Establishment Request without the User ID IE (no IMSI, IMEI or MSISDN in that IE).n4-user-id-asymmetric— a second N4 session of the same UE towards an I-UPF, next to the PSA; only one of the two legs carries User ID.up-fteid-reuse— the access F-TEID of the previous, already deleted session is reused. The CP F-SEIDs stay unique, which is what distinguishes this fromfseid-collision.chid-shared— two Create PDRs with CH=1 and the same CHID; the response returns one shared F-TEID in both Created PDRs.
A related but different toggle, ch-choose, sends an F-TEID with the CH/CHID choose flags and lets the UPF's response carry the assigned F-TEID. You do not need all of them at once:
gtpcore run-scenario -scenario edge-cases -input s.json -output n4edge.pcap -set edge_cases=pfcp-no-user-id,n4-user-id-asymmetric,up-fteid-reuse
gtpcore sessions -input n4edge.pcap
gtpcore ie-query -input n4edge.pcap -ie-type 141 -protocol pfcp -message-type 50 -absent
Message type 50 is PFCP Session Establishment Request. IE type 141 is User ID. -absent lists the sessions whose establishment did not carry that IE. Counts cover the whole capture; only the session list is paged. In the GUI the same query is Tools > GTP Sessions > IE search. From an assistant, call ie_query with absent=true, or ask scenario_catalog with search=CHID or a User ID term to see the toggle, the 3GPP clause and the expected check.
What the session tracker should show
Since 1.19.4 the tracker decodes PFCP User ID and reports it without inventing a value when the IE is missing:
sessions_listhaspfcp_user_id; the GUI adds a PFCP User ID column;session_detailshasuser_id;- when Session Establishment Request has no User ID, the value is
none (no User ID IE).
That makes the asymmetric I-UPF / PSA case visible as two N4 legs of the same UE with different User ID values, rather than as a silent gap.
For a reused access F-TEID of a deleted PFCP session, the tracker records an up_fteid_reuse event and shows the state "UP F-TEID reused" in GTP Sessions. It no longer links that F-TEID back to the old GTP session. This is not teid_collision: a collision is an F-TEID announced again while another live session still owns it. It is also not fseid-collision, which is a second PFCP session on a CP F-SEID that is still live.
Shared CHIDs show up in F-TEID allocation as fteid_alloc=shared (and as shared on the fteid_alloc filter of sessions_list). The allocation method on each PDR or Traffic Endpoint is one of: fixed (CH=0), choose (CH=1), choose with a CHID, or shared.
A practical workflow
- Start from an LTE-style session JSON that has an IMSI and S11 GTP-C F-TEIDs (required for
edge-cases). - Generate a narrow list first, for example
pfcp-no-user-id,n4-user-id-asymmetric, then a second file withup-fteid-reuseandchid-sharedif you want those paths isolated. - Run
ie-queryfor IE 141, with and without-absent, and open GTP Sessions to compare the PFCP User ID column with the query. - On the reuse file, confirm an
up_fteid_reuseevent and that the new session is not merged into the deleted one. - On the shared-CHID file, filter
fteid_alloc=sharedand read thefteid_allocationsentries: requested CHOOSE, one assigned F-TEID,shared_withnaming the other PDR.
Community Edition can generate these captures from the GUI or the CLI (100 subscribers/sessions per job) and can analyse the first 100 sessions in detail. The MCP writing tool generate_scenario itself needs the Full Edition and a confirmation step; the reading tools ie_query, sessions_list, session_details and violations are available in Community. GTP Sessions is not in the browser UI, so a PCAP made in the web edition should be downloaded and opened on the desktop.
Editions
Mobile Core Generator has a Community Edition, free for non-commercial evaluation, learning and compact lab scenarios (up to 100 subscribers/sessions, with send-to-network capped at 1000 packets/s). The Full Edition is a one-time $89 license. It removes those limits and adds response matching (probe) and a conformance suite with HTML/JSON reports. The current release is 1.19.4. It runs on Windows 10/11 64-bit, and a Linux build is available upon request. Session tracking in Community reports the first 100 sessions in detail.
Explore Mobile Core Generator →
FAQ
Is a missing User ID a protocol error?
Not necessarily. The point of pfcp-no-user-id and n4-user-id-asymmetric is to make the presence or absence visible, so you can see what your UPF, probe or analyser does with each shape. The tracker reports none (no User ID IE) rather than treating silence as a decoded identity.
Why is reuse not reported as a collision?
Because the previous session is already deleted. Reusing its access F-TEID is a different event (up_fteid_reuse) from announcing an F-TEID that a live session still owns (teid_collision).
What about a Modify Bearer Response with no Bearer Context?
That is a separate edge case, mbr-missing-conditional-ie: the response leaves out the conditional S1-U SGW F-TEID on S11, or the Charging ID on S5/S8. Use ie_query on the Modify Bearer Response to see the gap. It is not a User ID or F-TEID-reuse finding.
Can I search an existing capture, not a generated one?
Yes. gtpcore sessions, GTP Sessions and ie-query work on any capture that contains the relevant PFCP or GTPv2-C messages, not only on files Mobile Core produced.