Project

General

Profile

Open5GS-Traces » History » Version 20

jolly, 01/30/2024 11:20 AM

1 1 jolly
h1. Open5GS-Traces
2
3 16 jolly
p{background:red}. *!This is Work-In-Progress!*
4 5 jolly
5 8 jolly
h2. Setup of this example
6
7
* Ericsson RBS 6402 (eNodeB)
8
* Open5GS (4G network elements)
9
* OsmoHLR with OsmoDia2GSUP (HSS)
10
* OsmoMSC (SMS)
11
12 17 jolly
13 8 jolly
h2. Idle
14 1 jolly
15 10 jolly
When all phones are Idle, one will see the following trace with Wireshark on the link between eNodeB (Ericsson RBS) and MME (Open5GS).
16 1 jolly
17 15 jolly
p{border: solid 1px}. !wireshark_enb_idle.png!
18 8 jolly
19
The eNodeB (IP 10.0.15.117) is connected to MME (IP 10.0.15.1) via SCTP. Also the eNodeB syncs its clock to NTP server (IP 10.0.15.1).
20 19 jolly
21 9 jolly
The network 10.0.15.0/24 is the RAN network in this example.
22
23 17 jolly
24 9 jolly
h2. 4G Attachment
25
26 20 jolly
The phone is turned on and ready to attach to 4G network.
27
28 10 jolly
p{border: solid 1px}. !wireshark_enb_attach.png!
29 16 jolly
30 18 jolly
A 4G phone is attached to the network, using SIM cards that is registered in the HSS. The APN name used is "internet".
31 19 jolly
32 12 jolly
Lets go into detail:
33 17 jolly
34 12 jolly
h3. Attach request
35 1 jolly
36
p{border: solid 1px}. !wireshark_enb_attach_attach_request.png!
37 17 jolly
38 18 jolly
The UE sends an "Attach request". It is the message type of the "NAS-PDU" information element of the "initiatingMessage". The "NAS-PDU" message type is highlighted blue in the picture above.
39 19 jolly
40 17 jolly
Also within the "NAS-PDU" is the "EPS mobile identity". In this case the UE has the mobile country code "999" and the mobile network code "10". The IMSI is not shown. Because the UE was attached before, a TMSI is used. 
41 1 jolly
42
43
h3. ESM information request
44 17 jolly
45 1 jolly
p{border: solid 1px}. !wireshark_enb_attach_ESM_infomation_request.png!
46 14 jolly
47 18 jolly
The MME sends an "ESM information request" to the UE, to request APN name. The "NAS-PDU" message type is highlighted blue in the picture above.
48
 
49
50 1 jolly
h3. ESM information response
51 14 jolly
52 16 jolly
p{border: solid 1px}. !wireshark_enb_attach_ESM_infomation_response.png!
53 18 jolly
54
The UE send an "ESM information response." The UE uses the APN name "internet". The "NAS-PDU" message type is highlighted blue in the picture above.
55 19 jolly
56 18 jolly
This is the default configuration in the example setup. It can be configured in the configuration file for OsmoHLR. (osmo-hlr.cfg)
57
58 14 jolly
59
h3. Attach accept
60
61 16 jolly
p{border: solid 1px}. !wireshark_enb_attach_attach_accept.png!
62 1 jolly
63 20 jolly
The MME sends an "Attach accept" to the UE. The "NAS-PDU" message type is highlighted blue in the picture above.
64
Also within the “NAS-PDU” is an “ESM message container” with an “EPS session management message” to activate the default EPS bearer context. (Highlighted light blue in the picture above.)
65
66
The subsequent “InitialContextSetupResponse” and “UECapabilityInfoIndication” messages are not depicted. The latter message contains capabilities of the UE.
67
68
69 14 jolly
h3. Attach complete
70 16 jolly
71 14 jolly
p{border: solid 1px}. !wireshark_enb_attach_attach_complete.png!
72 1 jolly
73 20 jolly
Finally the UE sends an "Attach complete". The "NAS-PDU" message type is highlighted blue in the picture above.
74
Also within the “NAS-PDU” is an “ESM message container” with an “Activate default EPS bearer context accept”. (Highlighted light blue in the picture above.)
75 1 jolly
76 20 jolly
77
h2. Packet transfer
78
79
p{border: solid 1px}. !wireshark_enb_gtp_1.png!
80
81
The "GPRS Tunneling Protocol" (GTP) is used to tunnel packet traffic of the user plane. between eNodeB and SGW.
82
83
p{border: solid 1px}. !wireshark_enb_gtp_2.png!
84
85
As depicted above, the GTP packet transmitted from the eNodeB (IP 10.0.15.117) to the SGW (IP 10.0.15.3).
86
The carried packet is transmitted from the UE (IP 10.0.6.2) to the destination in the Internet (IP 104.26.15.42)
87
88 1 jolly
h2. 4G Detachment
89 10 jolly
90 20 jolly
The 4G phone is turned off or the airplane mode is turned on. The phone detaches from network.
91 10 jolly
92 16 jolly
p{border: solid 1px}. !wireshark_enb_detach.png!
93 14 jolly
94
Lets go into detail:
95
96
h.3 Detach Reqeust
97 1 jolly
98 14 jolly
p{border: solid 1px}. !wireshark_enb_detach_detach_request.png!
99 20 jolly
100 14 jolly
101
h.3 UE context release
Add picture from clipboard (Maximum size: 48.8 MB)