Project

General

Profile

EPDG implementation plan » History » Version 15

pespin, 01/31/2024 01:24 PM

1 2 laforge
{{>toc}}
2
3 1 laforge
h1. EPDG implementation plan
4 2 laforge
5
h2. The big picture
6
7
Ideally, we want to reuse existing code whenever possible, rather than reinvent the wheel.  Time will tell, if this works out or if we have to rewrite more of it.
8
* StrongSwan charon for handling IKEv2 and managing the IPsec SAs in the kernel IPsec
9
* Erlang DIAMETER application for all the related interfaces
10
* Erlang gtplib for S2b
11
12
This means we will have two major "applications" running:
13
* charon
14
* ePDG (likely in Erlang)
15
16
Between those two we will need some kind of non-standard, custom interface.  For now I've called it "CEAI" for (Charon External AKA Interface)
17
18
h2. Control Plane
19
20
* *red* color indicates elements / interfaces to be implemented.
21
22
{{graphviz_link()
23
digraph G {
24
  rankdir=LR;
25
  subgraph cluster_swan {
26
    label = "StrongSWAN domain";
27
    charon;
28
  }
29
  subgraph cluster_erlang {
30
    label = "Erlang domain";
31
    ePDG [color=red];
32
    AAA [label="3GPP AAA Server", color=red];
33
  }
34
  HSS;
35
  PGW;
36 14 pespin
  PCRF;
37 2 laforge
  UE;
38
39
  charon -> ePDG [label="CEAI", color=red];
40
41
  UE -> charon [label="IKEv2"];
42
  ePDG -> AAA [label="SWm (DIAMETER)", color=red];
43
  AAA -> HSS [label="SWx (DIAMETER)", color=red];
44 14 pespin
  PGW -> AAA [label="S6b (DIAMETER)", color=red];
45 2 laforge
46
  ePDG -> PGW [label="S2b (GTPv2C)", color=red];
47 1 laforge
  ePDG -> PCRF [label="Gxb", color=red, style=dashed];
48
  PGW -> PCRF [label="Gx (DIAMETER)"];
49 14 pespin
50
  {rank=same; PCRF; HSS}
51 2 laforge
}
52
}}
53
54
h2. User Plane
55
56
* *red* color indicates elements / interfaces to be implemented.
57
* *blue* color indicates control-plane elements controlling the user plane
58
59
{{graphviz_link()
60
digraph G {
61
  rankdir=LR;
62
63
  subgraph cluster_swan {
64
    label = "StrongSWAN domain";
65
    { rank=same;
66
      ipsec [label="Linux kernel\nIPsec"];
67
      charon [color=blue];
68
    }
69
    charon -> ipsec [label="netlink", color=blue];
70
  }
71
  subgraph cluster_erlang {
72
    label = "Erlang domain";
73
    { rank=same
74
      gtp [label="Linux kernel\nGTP"];
75
      ePDG [color="blue"];
76
    }
77
    ePDG -> gtp [label="netlink", color=blue];
78
  }
79
  PGW;
80
  UE;
81
82
  UE -> ipsec [label="ESP/UDP"];
83
  ipsec->gtp [label="kernel IP stack"];
84
  gtp -> PGW [label="S2b (GTPv1U)", color=red];
85
}
86
}}
87
88 5 lynxis
89
h2. Authentication
90
91
!ipsec_auth.png!
92
93 3 laforge
h2. 3GPP Interfaces and Procedures
94 2 laforge
95
h3. ePDG
96
97 1 laforge
98 6 lynxis
h4. S2b to PGW (GTPv2C) [TS 29.274]
99 2 laforge
100
h5. Create Session Request / Response
101
102
h5. Delete Session Request / Response
103
104
h5. Modify Bearer Request /  Respone (not needed?)
105
106
h5. Modify Bearere Command (not needed?)
107
108
h5. Bearer Resource Command (not needed?)
109
110
h5. Create Bearer Request / Response
111
112
h5. Update Bearer Request / Response (not needed?)
113
114
115 9 pespin
h4. SWm to AAA (DIAMETER) [3GPP TS 29.273]
116 2 laforge
117
h5. Diameter-EAP-Request (DER) / Diameter-EAP-Response (DEA)
118
119
h5. Diameter-AA-Request (AAR) / Diameter-AA-Response (AAA)
120
121
h5. Session-Termination-Request (STR) / Session-Termination-Answer (STA)
122
123
h5. Re-Auth-Requst (RAR) / Re-Auth-Answer (RAA)
124
125
h5. Abort-Session-Request (ASR) / Abort-Session-Answer (ASA)
126
127 12 pespin
h4. SWu to UE (IKEv2, ESP) [3GPP TS 33.402]
128 2 laforge
129 11 pespin
* Related: https://fabricioapps.blogspot.com/2017/10/untrusted-non-3gpp-ip-access-swu-ikev2.html
130 2 laforge
131
h4. Gxb to PCRF (not needed?)
132
133
134
h3. 3GPP AAA Server
135
136 10 pespin
h4. SWx to HSS (DIAMETER) [3GPP TS 29.273 sec 8,  3GPP TS 23.402 sec 12]
137 2 laforge
138
h5. Push-Profile-Request (PPR) / Push-Profile-Answer (PPA)
139
140
h5. Registration-Termination-Request (RTR) / Registration-Termination-Answer (RTA)
141
142
h5. Multimedia-Auth-Request (MAR) / Multimedia-Auth-Answer (MAA)
143
144 7 pespin
* 3GPP TS 29.273 8.2.2.1
145 8 pespin
* https://www.etsi.org/deliver/etsi_ts/129200_129299/129273/17.06.00_60/ts_129273v170600p.pdf
146 7 pespin
* https://dstest.info/DiaDict/Dictionary/Multimedia-Auth-Request_SWx.html
147
148 2 laforge
h5. Server-Assignment-Request (SAR) / Server-Assignment-Answer (SAA)
149
150 13 pespin
h4. S6b to PGW (DIAMETER) [3GPP TS 29.273 sec 9]
151 2 laforge
152 13 pespin
* https://osmocom.org/issues/6229
153 2 laforge
154
h4. SWm to ePDG (DIAMETER)
155
156 1 laforge
see above.
157 3 laforge
158
159 4 lynxis
h3. custom Interfaces / Procedures
160
161
h4. CEAI
162
163
FIXME
164 15 pespin
165
h3. Related information links
166
167
* https://www.cisco.com/c/en/us/td/docs/wireless/asr_5000/21-23/PGW-Admin/21-23-pgw-admin/21-16-PGW-Admin_chapter_011001.html
Add picture from clipboard (Maximum size: 48.8 MB)