Project

General

Profile

Open5GS-Traces » History » Version 23

jolly, 01/31/2024 09:57 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 23 jolly
!attach.png!
29
30 20 jolly
The phone is turned on and ready to attach to 4G network.
31
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
47
h3. ESM information request
48 17 jolly
49 1 jolly
p{border: solid 1px}. !wireshark_enb_attach_ESM_infomation_request.png!
50 14 jolly
51 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.
52
 
53
54 1 jolly
h3. ESM information response
55 14 jolly
56 16 jolly
p{border: solid 1px}. !wireshark_enb_attach_ESM_infomation_response.png!
57 18 jolly
58
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.
59 19 jolly
60 18 jolly
This is the default configuration in the example setup. It can be configured in the configuration file for OsmoHLR. (osmo-hlr.cfg)
61
62 14 jolly
63
h3. Attach accept
64
65 16 jolly
p{border: solid 1px}. !wireshark_enb_attach_attach_accept.png!
66 1 jolly
67 20 jolly
The MME sends an "Attach accept" to the UE. The "NAS-PDU" message type is highlighted blue in the picture above.
68 21 jolly
69 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.)
70
71
The subsequent “InitialContextSetupResponse” and “UECapabilityInfoIndication” messages are not depicted. The latter message contains capabilities of the UE.
72
73
74 14 jolly
h3. Attach complete
75 16 jolly
76 14 jolly
p{border: solid 1px}. !wireshark_enb_attach_attach_complete.png!
77 1 jolly
78 20 jolly
Finally the UE sends an "Attach complete". The "NAS-PDU" message type is highlighted blue in the picture above.
79
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.)
80 1 jolly
81 20 jolly
82
h2. Packet transfer
83
84
p{border: solid 1px}. !wireshark_enb_gtp_1.png!
85
86
The "GPRS Tunneling Protocol" (GTP) is used to tunnel packet traffic of the user plane. between eNodeB and SGW.
87
88
p{border: solid 1px}. !wireshark_enb_gtp_2.png!
89
90
As depicted above, the GTP packet transmitted from the eNodeB (IP 10.0.15.117) to the SGW (IP 10.0.15.3).
91 21 jolly
92 20 jolly
The carried packet is transmitted from the UE (IP 10.0.6.2) to the destination in the Internet (IP 104.26.15.42)
93
94 21 jolly
95 1 jolly
h2. 4G Detachment
96 23 jolly
97
!detach.png!
98 10 jolly
99 20 jolly
The 4G phone is turned off or the airplane mode is turned on. The phone detaches from network.
100 10 jolly
101 16 jolly
p{border: solid 1px}. !wireshark_enb_detach.png!
102 14 jolly
103
Lets go into detail:
104 1 jolly
105 21 jolly
h.3 Detach Request
106 1 jolly
107
p{border: solid 1px}. !wireshark_enb_detach_detach_request.png!
108 21 jolly
109
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.
110
111
Also within the "NAS-PDU" is the "EPS mobile identity". This is also similar to the "Attach request".
112 20 jolly
113 22 jolly
The subsequent “UEContextReleaseCommand” message (sent from EMM) and “UEContextREleaseComplete” messages (sent from UE) are not depicted.
Add picture from clipboard (Maximum size: 48.8 MB)