Project

General

Profile

Open5GS-Traces » History » Version 26

jolly, 02/01/2024 10:28 AM

1 1 jolly
h1. Open5GS-Traces
2
3 23 jolly
{{>toc}}
4
5 16 jolly
p{background:red}. *!This is Work-In-Progress!*
6 5 jolly
7 8 jolly
h2. Setup of this example
8
9
* Ericsson RBS 6402 (eNodeB)
10
* Open5GS (4G network elements)
11
* OsmoHLR with OsmoDia2GSUP (HSS)
12
* OsmoMSC (SMS)
13
14 17 jolly
15 8 jolly
h2. Idle
16 1 jolly
17 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).
18 1 jolly
19 15 jolly
p{border: solid 1px}. !wireshark_enb_idle.png!
20 8 jolly
21
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).
22 19 jolly
23 9 jolly
The network 10.0.15.0/24 is the RAN network in this example.
24
25 17 jolly
26 9 jolly
h2. 4G Attachment
27
28 26 jolly
!en_attach.png!
29 23 jolly
30 25 jolly
The phone is turned on and ready to attach to 4G network. The filter of Wireshark is set to "s1ap", so that only packages between eNodeB and MME are shown.
31 20 jolly
32 10 jolly
p{border: solid 1px}. !wireshark_enb_attach.png!
33 16 jolly
34 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".
35 19 jolly
36 12 jolly
Lets go into detail:
37 17 jolly
38 12 jolly
h3. Attach request
39 1 jolly
40
p{border: solid 1px}. !wireshark_enb_attach_attach_request.png!
41 17 jolly
42 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.
43 19 jolly
44 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. 
45 1 jolly
46 24 jolly
If the mobile station was not registered to the MME, the MME will request identity and authentication and send "Attach Request" again after enabling encryption
47 1 jolly
48
49 24 jolly
h3. "Identity request" and "Identity response"
50
51
p{border: solid 1px}. !wireshark_enb_attach_identity_request.png!
52
53
p{border: solid 1px}. !wireshark_enb_attach_identity_response.png!
54
55
56
h3. "Authentication request" and "Authentication response"
57
58
p{border: solid 1px}. !wireshark_enb_attach_authentication_request.png!
59
60
p{border: solid 1px}. !wireshark_enb_attach_authentication_response.png!
61
62
The subsequent “Security mode command” and “Security mode complete” messages are not depicted. The latter message is sent after encryption between UE and eNodeB is enabled. The message also carries the Attach request again.
63
64
65
h3. "ESM information request" and "ESM information response"
66
67 18 jolly
p{border: solid 1px}. !wireshark_enb_attach_ESM_infomation_request.png!
68 1 jolly
69 16 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.
70 18 jolly
 
71
p{border: solid 1px}. !wireshark_enb_attach_ESM_infomation_response.png!
72 19 jolly
73 1 jolly
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.
74 18 jolly
75
This is the default configuration in the example setup. It can be configured in the configuration file for OsmoHLR. (osmo-hlr.cfg)
76 14 jolly
77
78 24 jolly
h3. "Attach accept"
79 16 jolly
80 1 jolly
p{border: solid 1px}. !wireshark_enb_attach_attach_accept.png!
81 20 jolly
82 21 jolly
The MME sends an "Attach accept" to the UE. The "NAS-PDU" message type is highlighted blue in the picture above.
83 1 jolly
84 20 jolly
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.)
85
86
The subsequent “InitialContextSetupResponse” and “UECapabilityInfoIndication” messages are not depicted. The latter message contains capabilities of the UE.
87
88
89 24 jolly
h3. "Attach complete"
90 16 jolly
91 14 jolly
p{border: solid 1px}. !wireshark_enb_attach_attach_complete.png!
92 1 jolly
93 20 jolly
Finally the UE sends an "Attach complete". The "NAS-PDU" message type is highlighted blue in the picture above.
94
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.)
95 1 jolly
96 20 jolly
97
h2. Packet transfer
98
99
p{border: solid 1px}. !wireshark_enb_gtp_1.png!
100
101
The "GPRS Tunneling Protocol" (GTP) is used to tunnel packet traffic of the user plane. between eNodeB and SGW.
102
103
p{border: solid 1px}. !wireshark_enb_gtp_2.png!
104
105 21 jolly
As depicted above, the GTP packet transmitted from the eNodeB (IP 10.0.15.117) to the SGW (IP 10.0.15.3).
106 20 jolly
107
The carried packet is transmitted from the UE (IP 10.0.6.2) to the destination in the Internet (IP 104.26.15.42)
108 21 jolly
109 1 jolly
110 23 jolly
h2. 4G Detachment
111
112 26 jolly
!enb_detach.png!
113 1 jolly
114 20 jolly
The 4G phone is turned off or the airplane mode is turned on. The phone detaches from network.
115 10 jolly
116 16 jolly
p{border: solid 1px}. !wireshark_enb_detach.png!
117 14 jolly
118 1 jolly
Lets go into detail:
119 14 jolly
120 26 jolly
121 25 jolly
h3. "Detach Request"
122 1 jolly
123
p{border: solid 1px}. !wireshark_enb_detach_detach_request.png!
124 21 jolly
125
Similar to the "Attach request", described above, the UE sends an "Detach 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.
126
127
Also within the "NAS-PDU" is the "EPS mobile identity". This is also similar to the "Attach request".
128 1 jolly
129
The subsequent “UEContextReleaseCommand” message (sent from EMM) and “UEContextREleaseComplete” messages (sent from UE) are not depicted.
130 26 jolly
131
132
h2. Attachment inside EPC
133
134
!epc_attach.png!
135
136
After authentication is done and after receiving ESM information (e.g. APN), a session is created between network elements inside the Envolved Packet Code (EPC).
137
138
!wireshark_epc_attach.png!
139
140
h3. MME -> SGWc
141
142
As depicted in the Wireshark picture above, the MME sends "Create Session Request" towards the control plane of the SGW. The GPRS tunneling protocol (GTP) is used. The request is depicted at frame number 254, the response at frame number 266.
143
144
h3. SGWc -> SGWu
145
146
After receiving the "Create Session Request" from the MME, the control plane of the SGW sends a "PFCP Session Establishment Request" to the user plane of the SGW. The packet forwarding control protocol (PFCP) is used. The request is depicted at frame number 255, the response at frame number 257.
147
148
h3. SGWc -> PGWc
149
150
The control plane of the SGW also sends a "Create Session Request" to the control plane of the PGW. The GPRS tunneling protocol (GTP) is used here again. The request is depicted at frame number 258, the response at frame number 263.
151
152
h3. PGWc -> PCRF
153
154
The control plane of the PGW sends a "Credit-Control Request" to the PCRF. The Diameter protocol is used. The request is depicted at frame number 259, the answer at frame number 260.
155
156
h3. PGWc -> PGWu
157
158
After receiving the "Credit-Control Answer" from the PCRF, the control plane of the PGW sends a "PFCP Session Establishment Request" to the user plane of the PGW. The packet forwarding control protocol (PFCP) is used here again. The request is depicted at frame number 261, the response at frame number 262.
159
160
h3. SGWc -> SGWu
161
162
After receiving the "Create Session Response" from the control plane of the PGW, the control plane of the SGW sends a "PFCP Session Modification Request" to the user plane of the SGW. The packet forwarding control protocol (PFCP) is used here again. The request is depicted at frame number 264, the response at frame number 265.
Add picture from clipboard (Maximum size: 48.8 MB)