When an LTE UE first attaches to a cell, the MME sets up a default PDN connection toward the SGW and PGW. That part of the attach procedure in 3GPP TS 23.401 §5.3.2 is carried on the S11 interface as GTPv2-C: a Create Session Request/Response, then a Modify Bearer Request/Response once the eNodeB has an S1-U address. A later detach is a Delete Session Request/Response on the same tunnel.

This article walks through that sequence in a small capture: one subscriber, six packets, S11 only. The file was generated with the Web Community edition of Mobile Core (scenario gtpv2-lifecycle), so you can reproduce it in the browser and open the same packets in Wireshark. The companion article 5G Registration Call Flow, Step by Step does the same for a 5G SA registration on N2/N1.

Try it yourself in the browser Download the PCAP Download the PCAPNG Download the Sessions JSON

What is in the file, and what is not

The PCAP contains only S11: GTPv2-C over UDP port 2123, between the MME (192.0.2.10) and the SGW (192.0.2.20). In this file the PGW is collocated with the SGW at the same address; the S5/S8 PGW F-TEIDs appear as information elements, not as a separate packet path. The eNB user-plane address 192.0.2.30 appears only inside Modify Bearer Request.

There are no S1-MME frames and no NAS: no S1 Setup, no Attach Request, no authentication, no Security Mode Command, and no Attach Accept or Complete. Mobile Core 1.19.5 does not include a built-in S1AP/NAS attach scenario. Diameter S6a and GTP-U G-PDUs are also absent. The generator writes a compact S11 trace and fills IMSI, PAA, F-TEIDs and ULI itself.

The same Community catalog has a teaching lab, attach-detach (“LTE attach and detach on S11”), that uses this same generator. Its built-in sessions are two UEs with MCC 001 / MNC 01. This article uses one subscriber and the web-default MCC 123 / MNC 450 so the identifiers line up with the 5G registration file.

Generate the same capture in the browser

These steps match the public page at packetbuilder.net/mobile-core-web/ (Web Community 1.19.5, up to 100 subscribers). There is no “Create 4G demo sessions” button that emits S11 F-TEIDs, so the exact 6-packet file starts from the published sessions JSON.

  1. Open the page and wait until the core shows as ready.
  2. Open the Session Scenarios tab.
  3. Use Open file next to Subscriber / session JSON and choose the published 4g-attach-sessions.json (IMSI 123450100000001, MCC 123, MNC 450, S11 F-TEIDs, eNB 192.0.2.30).
  4. Select scenario gtpv2-lifecycle (“LTE S11/S5 GTPv2-C Create Session / Modify Bearer / Delete Session per session”). This scenario has no extra options on the page.
  5. Click Generate and download the PCAP. You should get 6 packets.

The same commands are:

gtpcore run-scenario -scenario gtpv2-lifecycle -input 4g-attach-sessions.json -output 4g-attach.pcap -overwrite

Two related one-click paths on the same page produce the same message types but not this file. The Labs entry LTE attach and detach on S11 generates 12 packets for two UEs with MCC 001 / MNC 01. Subscribers → Generate PCAP (1 subscriber, protocol gtpv2, RAT LTE, no GTP-U) followed by gtpv2-lifecycle keeps MCC 123 / MNC 450 but uses S5/S8 F-TEIDs, so Modify Bearer does not carry an S1-U eNodeB address.

The call flow

The diagram follows the captured order. Solid arrows are the six S11 GTPv2-C messages. The UE and eNB lifelines are drawn for orientation: this PCAP has no Uu and no S1-MME frames. Frame numbers f1–f6 match the packet list. Create Session happens during attach; Modify Bearer is the later step that installs the eNB S1-U F-TEID; Delete Session is the detach that gtpv2-lifecycle always appends.

Sequence diagram of an LTE attach on S11: UE, eNB 192.0.2.30, MME 192.0.2.10, collocated SGW/PGW 192.0.2.20. Six S11 frames run from Create Session Request to Delete Session Response; Uu and S1-MME are marked as not in the file.

Wireshark-style packet list of the six-frame LTE S11 attach capture, from Create Session Request to Delete Session Response.

Message list

No. Time (s) Direction GTPv2 message Header TEID
10.000MME → SGWCreate Session Request (32)0x00000000
20.001SGW → MMECreate Session Response (33)0x00100000
30.002MME → SGWModify Bearer Request (34)0x00200000
40.003SGW → MMEModify Bearer Response (35)0x00100000
50.004MME → SGWDelete Session Request (36)0x00200000
60.005SGW → MMEDelete Session Response (37)0x00100000

Spacing is 1 ms. tshark 4.4 reports no expert warnings on this file.

Step by step

1. Create Session Request (frame 1)

The first request is sent with header TEID 0. The MME does not yet know the SGW’s S11 TEID, so the header cannot name it; the Sender F-TEID for Control Plane carries the MME’s own TEID instead (TS 29.274 §5.5.2). That sender F-TEID is S11 MME GTP-C, TEID 0x00100000, IPv4 192.0.2.10. A second F-TEID gives the PGW S5/S8 control address with TEID 0, which is the initial-attach rule in the same specification.

The request identifies the UE as IMSI 123450100000001, MSISDN 222000000000001 and IMEI 356938030000013. RAT Type is E-UTRAN. The APN is internet, PDN type IPv4, EBI 5 and QCI 9. Serving Network and User Location (TAI TAC 100, ECGI ECI 1000) use MCC 123 / MNC 450, encoded as 21 03 54 (the TS 24.008 layout also used by NAS). Wireshark shows MNC 450 in every one of those fields.

The PAA IE in this request already carries 10.10.0.1. The generator fills the UE address it already knows; a live MME often sends 0.0.0.0 here for dynamic allocation. The address the network assigns is still read from the response.

Wireshark-style decode of frame 1: GTPv2 Create Session Request with header TEID 0, IMSI 123450100000001, Serving Network and ULI MCC 123 / MNC 450, S11 MME F-TEID 0x00100000, and PGW S5/S8 F-TEID with TEID 0 highlighted.

2. Create Session Response (frame 2)

The SGW answers with Cause Request accepted (16) and its S11 SGW F-TEID, TEID 0x00200000, IPv4 192.0.2.20. The PAA IE is IPv4 10.10.0.1: that is the UE’s address for this PDN connection. The created bearer context (EBI 5) includes the S1-U SGW F-TEID, TEID 0x00400000, which the eNB will use later as the uplink GTP-U endpoint, and a collocated S5/S8 PGW user-plane F-TEID at the same address and TEID.

Wireshark-style decode of frame 2: GTPv2 Create Session Response with Cause Request accepted, PAA IPv4 10.10.0.1, S11 SGW F-TEID 0x00200000, and S1-U SGW F-TEID 0x00400000 highlighted.

3–4. Modify Bearer Request and Response (frames 3–4)

After the radio side of attach (Initial Context Setup and Attach Accept, which are not in this file) the MME has an S1-U eNodeB address and sends Modify Bearer Request. The bearer context carries EBI 5 and the S1-U eNodeB F-TEID: interface type 0, TEID 0x00300000, IPv4 192.0.2.30. The SGW accepts the request and repeats its S1-U SGW F-TEID 0x00400000. From this point the default bearer has both ends of the S1-U tunnel. This capture does not include G-PDUs on that tunnel.

5–6. Delete Session Request and Response (frames 5–6)

gtpv2-lifecycle always tears the PDN connection down after Modify Bearer, so the file ends with a detach on S11. Delete Session Request uses Linked EPS Bearer ID (LBI) 5 and the same TAI/ECGI as the create (MCC 123, MNC 450, TAC 100, ECI 1000). The SGW answers with Cause 16. There is no further signalling in the file.

Wireshark display filters

A useful starting filter for this capture:

gtpv2

Narrower filters:

gtpv2.message_type == 32    /* Create Session Request */
gtpv2.message_type == 33    /* Create Session Response */
gtpv2.message_type == 34    /* Modify Bearer Request */
gtpv2.message_type == 36    /* Delete Session Request */
gtpv2.teid == 0             /* first request, header TEID 0 */
gtpv2.ie_type == 79         /* PAA (UE IP address) */
udp.port == 2123

References

  • 3GPP TS 23.401, §5.3.2 Attach procedure (S11 Create Session during attach, Modify Bearer after the eNB S1-U address is known, Delete Session at detach).
  • 3GPP TS 29.274, GTPv2-C: §5.5.2 (header TEID 0); §7.2.1–§7.2.2 Create Session; §7.2.7–§7.2.8 Modify Bearer; §7.2.9.1–§7.2.10.1 Delete Session; §8.14 PAA; §8.22 F-TEID.
  • 3GPP TS 24.008, §10.5.1.3, PLMN encoding used by Serving Network and ULI in this file.
  • Companion walk-through: 5G Registration Call Flow, Step by Step.

Related

Companion walk-through: 5G Registration Call Flow, Step by Step — a one-subscriber 5G SA registration on N2/N1 you can also generate in the browser.

Try it yourself in the browser Download the PCAP Download the PCAPNG Download the Sessions JSON