Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 1 | [[gsup]] |
| 2 | == GPRS Subscriber Update Protocol |
| 3 | |
| 4 | === General |
| 5 | |
| 6 | This chapter describes the remote protocol that is used by the SGSN to update |
| 7 | and manage the local subscriber list. The protocol and the messages are |
| 8 | designed after the corresponding MAP messages (see 3GPP TS 09.02) with the |
| 9 | following differences: |
| 10 | |
| 11 | * The encoding uses TLV structures instead of ASN.1 encodings |
| 12 | * Segmentation is not used |
| 13 | |
| 14 | For more information, see the specification of the Gr interface (3GPP TS 03.60). |
| 15 | |
| 16 | === Connection |
| 17 | |
| 18 | The protocol expects that a reliable, ordered, packet boundaries preserving |
| 19 | connection is used (e.g. IPA over TCP). The remote peer is either a service |
| 20 | that understands the protocol natively or a wrapper service that maps the |
| 21 | messages to/from real MAP messages that can be used to directly communicate |
| 22 | with an HLR. |
| 23 | |
| 24 | === Using IPA |
| 25 | |
| 26 | By default, the following identifiers should be used: |
| 27 | |
| 28 | * IPA Stream ID: 0xEE (OSMO) |
| 29 | * IPA OSMO protocol extension: 0x05 |
| 30 | |
| 31 | For more information about the IPA multiplex, please see the 'OsmoBTS |
Jonathan Brielmaier | 5530c91 | 2016-05-25 15:01:11 +0200 | [diff] [blame] | 32 | Abis/IP Specification'. |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 33 | |
| 34 | === Procedures |
| 35 | |
| 36 | ==== Authentication management |
| 37 | |
| 38 | The SGSN sends a SEND_AUTHENTICATION_INFO_REQ message containing the MS's IMSI |
Jonathan Brielmaier | 5530c91 | 2016-05-25 15:01:11 +0200 | [diff] [blame] | 39 | to the peer. On errors, especially if authentication info is not available for |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 40 | that IMSI, the peer returns a SEND_AUTHENTICATION_INFO_ERR message. Otherwise |
| 41 | the peer returns a SEND_AUTHENTICATION_INFO_RES message. If this message |
| 42 | contains at least one authentication tuple, the SGSN replaces all tuples that |
| 43 | are assigned to the subscriber. If the message doesn't contain any tuple the |
| 44 | SGSN may reject the Attach Request. (see 3GPP TS 09.02, 25.5.6) |
| 45 | |
| 46 | ==== Location Updating |
| 47 | |
| 48 | The SGSN sends a UPDATE_LOCATION_REQ to the peer. If the request is denied by |
| 49 | the network, the peer returns an UPDATE_LOCATION_ERR message to the SGSN. |
| 50 | Otherwise the peer returns an UPDATE_LOCATION_RES message containing all |
| 51 | information fields that shall be inserted into the subscriber record. If |
| 52 | the 'PDP info complete' information element is set in the message, the SGSN |
| 53 | clears existing PDP information fields in the subscriber record first. |
| 54 | (see 3GPP TS 09.02, 19.1.1.8) |
| 55 | |
| 56 | ... |
| 57 | |
| 58 | === Message Format |
| 59 | |
| 60 | ==== General |
| 61 | |
| 62 | Every message is based on the following message format |
| 63 | |
| 64 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 65 | |=== |
| 66 | |IEI|IE|Type|Presence|Format|Length |
| 67 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 68 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 69 | |=== |
| 70 | |
| 71 | If a numeric range is indicated in the 'presence' column, multiple information |
| 72 | elements with the same tag may be used in sequence. The information elements |
| 73 | shall be sent in the given order. Nevertheless after the generic part the |
| 74 | receiver shall be able to received them in any order. Unknown IE shall be |
| 75 | ignored. |
| 76 | |
| 77 | ==== Send Authentication Info Request |
| 78 | |
| 79 | Direction: SGSN -> Network peer |
| 80 | |
| 81 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 82 | |=== |
| 83 | |IEI|IE|Type|Presence|Format|Length |
| 84 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 85 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 86 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
| 87 | |26|AUTS|<<gsup-ie-auts>>|C|TLV|18 |
| 88 | |20|RAND|<<gsup-ie-rand>>|C|TLV|18 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 89 | |=== |
| 90 | |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 91 | The conditional 'AUTS' and 'RAND' IEs are both present in case the SIM |
| 92 | (via UE) requests an UMTS AKA re-synchronization procedure. Eiter |
| 93 | both optional IEs are present, or none of them. |
| 94 | |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 95 | ==== Send Authentication Info Error |
| 96 | |
| 97 | Direction: Network peer -> SGSN |
| 98 | |
| 99 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 100 | |=== |
| 101 | |IEI|IE|Type|Presence|Format|Length |
| 102 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 103 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 104 | |02|Cause|<<gsup-ie-cause>>|M|TLV|3 |
| 105 | |=== |
| 106 | |
| 107 | ==== Send Authentication Info Response |
| 108 | |
| 109 | Direction: Network peer -> SGSN |
| 110 | |
| 111 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 112 | |=== |
| 113 | |IEI|IE|Type|Presence|Format|Length |
| 114 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 115 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 116 | |03|Auth Tuple|<<gsup-ie-authtuple>>|0-5|TLV|36 |
| 117 | |=== |
| 118 | |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 119 | ==== Authentication Failure Report |
| 120 | |
| 121 | Direction: SGSN -> Network peer |
| 122 | |
| 123 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 124 | |=== |
| 125 | |IEI|IE|Type|Presence|Format|Length |
| 126 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 127 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 128 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
| 129 | |=== |
| 130 | |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 131 | ==== Update Location Request |
| 132 | |
| 133 | Direction: SGSN -> Network peer |
| 134 | |
| 135 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 136 | |=== |
| 137 | |IEI|IE|Type|Presence|Format|Length |
| 138 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 139 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 140 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 141 | |=== |
| 142 | |
| 143 | ==== Update Location Error |
| 144 | |
| 145 | Direction: Network peer -> SGSN |
| 146 | |
| 147 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 148 | |=== |
| 149 | |IEI|IE|Type|Presence|Format|Length |
| 150 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 151 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 152 | |02|Cause|<<gsup-ie-cause>>|M|TLV|3 |
| 153 | |=== |
| 154 | |
| 155 | ==== Update Location Result |
| 156 | |
| 157 | Direction: Network peer -> SGSN |
| 158 | |
| 159 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 160 | |=== |
| 161 | |IEI|IE|Type|Presence|Format|Length |
| 162 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 163 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 164 | |08|MSISDN|<<gsup-ie-msisdn>>|O|TLV|0-9 |
| 165 | |09|HLR Number|<<gsup-ie-hlr>>|O|TLV|0-9 |
| 166 | |04|PDP info complete|<<gsup-ie-empty>>|O|TLV|2 |
| 167 | |05|PDP info|<<gsup-ie-pdpinfo>>|1-10|TLV| |
| 168 | |=== |
| 169 | |
| 170 | If the PDP info complete IE is present, the old PDP info list shall be cleared. |
| 171 | |
| 172 | ==== Location Cancellation Request |
| 173 | |
| 174 | Direction: Network peer -> SGSN |
| 175 | |
| 176 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 177 | |=== |
| 178 | |IEI|IE|Type|Presence|Format|Length |
| 179 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 180 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 181 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 182 | |06|Cancellation type|<<gsup-ie-canctype>>|O|TLV|3 |
| 183 | |=== |
| 184 | |
| 185 | ==== Location Cancellation Result |
| 186 | |
| 187 | Direction: SGSN -> Network peer |
| 188 | |
| 189 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 190 | |=== |
| 191 | |IEI|IE|Type|Presence|Format|Length |
| 192 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 193 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 194 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 195 | |=== |
| 196 | |
| 197 | ==== Purge MS Request |
| 198 | |
| 199 | Direction: SGSN -> Network peer |
| 200 | |
| 201 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 202 | |=== |
| 203 | |IEI|IE|Type|Presence|Format|Length |
| 204 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 205 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 206 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 207 | |09|HLR Number|<<gsup-ie-hlr>>|M|TLV|0-9 |
| 208 | |=== |
| 209 | |
| 210 | ==== Purge MS Error |
| 211 | |
| 212 | Direction: Network peer -> SGSN |
| 213 | |
| 214 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 215 | |=== |
| 216 | |IEI|IE|Type|Presence|Format|Length |
| 217 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 218 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 219 | |02|Cause|<<gsup-ie-cause>>|M|TLV|3 |
| 220 | |=== |
| 221 | |
| 222 | ==== Purge MS Result |
| 223 | |
| 224 | Direction: Network peer -> SGSN |
| 225 | |
| 226 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 227 | |=== |
| 228 | |IEI|IE|Type|Presence|Format|Length |
| 229 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 230 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 231 | |07|Freeze P-TMSI|<<gsup-ie-empty>>|M|TLV|2 |
| 232 | |=== |
| 233 | |
| 234 | ==== Insert Subscriber Data Request |
| 235 | |
| 236 | Direction: Network peer -> SGSN |
| 237 | |
| 238 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 239 | |=== |
| 240 | |IEI|IE|Type|Presence|Format|Length |
| 241 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 242 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 243 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
| 244 | |08|MSISDN|<<gsup-ie-msisdn>>|O|TLV|0-9 |
| 245 | |09|HLR Number|<<gsup-ie-hlr>>|O|TLV|0-9 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 246 | |04|PDP info complete|<<gsup-ie-empty>>|M|TLV|2 |
| 247 | |05|PDP info|<<gsup-ie-pdpinfo>>|0-10|TLV| |
| 248 | |=== |
| 249 | |
| 250 | If the PDP info complete IE is present, the old PDP info list shall be cleared. |
| 251 | |
| 252 | ==== Insert Subscriber Data Error |
| 253 | |
| 254 | Direction: SGSN -> Network peer |
| 255 | |
| 256 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 257 | |=== |
| 258 | |IEI|IE|Type|Presence|Format|Length |
| 259 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 260 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 261 | |02|Cause|<<gsup-ie-cause>>|M|TLV|3 |
| 262 | |=== |
| 263 | |
| 264 | ==== Insert Subscriber Data Result |
| 265 | |
| 266 | Direction: SGSN -> Network peer |
| 267 | |
| 268 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 269 | |=== |
| 270 | |IEI|IE|Type|Presence|Format|Length |
| 271 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 272 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 273 | |=== |
| 274 | |
| 275 | ==== Delete Subscriber Data Request |
| 276 | |
| 277 | Direction: Network peer -> SGSN |
| 278 | |
| 279 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 280 | |=== |
| 281 | |IEI|IE|Type|Presence|Format|Length |
| 282 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 283 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 284 | |28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 285 | |10|PDP context id|<<gsup-ie-pdpinfo>> (no conditional IE)|0-10|TLV| |
| 286 | |=== |
| 287 | |
| 288 | ==== Delete Subscriber Data Error |
| 289 | |
| 290 | Direction: SGSN -> Network peer |
| 291 | |
| 292 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 293 | |=== |
| 294 | |IEI|IE|Type|Presence|Format|Length |
| 295 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 296 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 297 | |02|Cause|<<gsup-ie-cause>>|M|TLV|3 |
| 298 | |=== |
| 299 | |
| 300 | ==== Delete Subscriber Data Result |
| 301 | |
| 302 | Direction: Network peer -> SGSN |
| 303 | |
| 304 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 305 | |=== |
| 306 | |IEI|IE|Type|Presence|Format|Length |
| 307 | | |Message Type|<<gsup-ie-msgtype>>|M|V|1 |
| 308 | |01|IMSI|<<gsup-ie-imsi>>|M|TLV|2-10 |
| 309 | |=== |
| 310 | |
| 311 | === Information Elements |
| 312 | |
| 313 | [[gsup-ie-msgtype]] |
| 314 | ==== Message Type |
| 315 | |
| 316 | [options="header",cols="10%,90%"] |
| 317 | |=== |
| 318 | |Type|Description |
| 319 | |0x04|Update Location Request |
| 320 | |0x05|Update Location Error |
| 321 | |0x06|Update Location Result |
| 322 | |0x08|Send Auth Info Request |
| 323 | |0x09|Send Auth Info Error |
| 324 | |0x0a|Send Auth Info Result |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 325 | |0x0b|Authentication Failure Report |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 326 | |0x0c|Purge MS Request |
| 327 | |0x0d|Purge MS Error |
| 328 | |0x0e|Purge MS Result |
| 329 | |0x10|Insert Subscriber Data Request |
| 330 | |0x11|Insert Subscriber Data Error |
| 331 | |0x12|Insert Subscriber Data Result |
| 332 | |0x14|Delete Subscriber Data Request |
| 333 | |0x15|Delete Subscriber Data Error |
| 334 | |0x16|Delete Subscriber Data Result |
| 335 | |0x1c|Location Cancellation Request |
| 336 | |0x1d|Location Cancellation Error |
| 337 | |0x1e|Location Cancellation Result |
| 338 | |=== |
| 339 | |
| 340 | [[gsup-ie-ipaddr]] |
| 341 | ==== IP Address |
| 342 | |
| 343 | The value part is encoded like in the Packet data protocol address IE defined |
| 344 | in 3GPP TS 04.08, Chapter 10.5.6.4. PDP type organization must be set to |
| 345 | 'IETF allocated address'. |
| 346 | |
| 347 | [[gsup-ie-pdpinfo]] |
| 348 | ==== PDP Info |
| 349 | |
| 350 | This is a container for information elements describing a single PDP. |
| 351 | |
| 352 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 353 | |=== |
| 354 | |IEI|IE|Type|Presence|Format|Length |
| 355 | | |PDP Info IEI|<<gsup-iei>>|M|V|1 |
| 356 | | |Length of PDP Info IE||M|V|1 |
| 357 | |10|PDP Context ID|<<gsup-ie-pdpctxid>>|C|TLV|3 |
| 358 | |11|PDP Type|<<gsup-ie-pdptype>>|C|TLV|4 |
| 359 | |12|Access Point Name|3GPP TS 04.08, Ch. 10.5.6.1|C|TLV|3-102 |
| 360 | |13|Quality of Service|<<gsup-ie-qos>>|O|TLV|1-20 |
| 361 | |=== |
| 362 | |
| 363 | The conditional IE are mandantory unless mentioned otherwise. |
| 364 | |
| 365 | [[gsup-ie-pdptype]] |
| 366 | ==== PDP Type |
| 367 | |
| 368 | The PDP type value consists of 2 octets that are encoded like octet 4-5 of the |
| 369 | End User Address defined in 3GPP TS 09.60, 7.9.18. |
| 370 | |
| 371 | [packetdiag] |
| 372 | ---- |
| 373 | { |
| 374 | colwidth = 8 |
| 375 | node_height = 24 |
| 376 | |
| 377 | 0-6: PDP type IEI |
| 378 | 7: Res |
| 379 | 8-15: Length (2) |
| 380 | 16-19: Spare |
| 381 | 20-23: PDP type org |
| 382 | 24-31: PDP type number |
| 383 | } |
| 384 | ---- |
| 385 | |
| 386 | The spare bits are left undefined. While 09.60 defines them as '1 1 1 1', there |
| 387 | are MAP traces where these bits are set to '0 0 0 0'. So the receiver shall |
| 388 | ignore these bits. |
| 389 | |
| 390 | Examples: |
| 391 | |
| 392 | * IPv4: PDP type org: 1 (IETF), PDP type number: 0x21 |
| 393 | * IPv6: PDP type org: 1 (IETF), PDP type number: 0x57 |
| 394 | |
| 395 | [[gsup-ie-pdpctxid]] |
| 396 | ==== PDP Context ID |
| 397 | |
| 398 | The PDP type context ID IE consists of a single integer byte wrapped in |
| 399 | a TLV. |
| 400 | |
| 401 | [packetdiag] |
| 402 | ---- |
| 403 | { |
| 404 | colwidth = 8 |
| 405 | node_height = 24 |
| 406 | |
| 407 | 0-6: PDP context ID IEI |
| 408 | 7: Res |
| 409 | 8-15: Length (1) |
| 410 | 16-23: PDP Context ID |
| 411 | } |
| 412 | ---- |
| 413 | |
| 414 | [[gsup-ie-authtuple]] |
| 415 | ==== Auth tuple |
| 416 | |
| 417 | This is a container for information elements describing a single authentication |
| 418 | tuple. |
| 419 | |
| 420 | [options="header",cols="5%,20%,45%,10%,10%,10%"] |
| 421 | |=== |
| 422 | |IEI|IE|Type|Presence|Format|Length |
| 423 | | |Auth Tuple IEI|<<gsup-iei>>|M|V|1 |
| 424 | | |Length of Auth Tuple IE||M|V|1 |
| 425 | |20|RAND|<<gsup-ie-rand>>|M|TLV|18 |
| 426 | |21|SRES|<<gsup-ie-sres>>|M|TLV|6 |
| 427 | |22|Kc|<<gsup-ie-kc>>|M|TLV|10 |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 428 | |23|IK|<<gsup-ie-ik>>|C|TLV|18 |
| 429 | |24|CK|<<gsup-ie-ck>>|C|TLV|18 |
| 430 | |25|AUTN|<<gsup-ie-autn>>|C|TLV|18 |
| 431 | |27|RES|<<gsup-ie-res>>|C|TLV|2-18 |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 432 | |=== |
| 433 | |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 434 | The conditional IEs 'IK', 'CK', 'AUTN' and 'RES' are onl present in |
| 435 | case the subscriber supports UMTS AKA. |
| 436 | |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 437 | [[gsup-ie-rand]] |
| 438 | ==== RAND |
| 439 | |
| 440 | The 16-byte Random Challenge of the GSM Authentication Algorithm. |
| 441 | |
| 442 | [[gsup-ie-sres]] |
| 443 | ==== SRES |
| 444 | |
| 445 | The 4-byte Authentication Result of the GSM Authentication Algorithm. |
| 446 | |
| 447 | [[gsup-ie-kc]] |
| 448 | ==== Kc |
| 449 | |
| 450 | The 8-byte Encryption Key of the GSM Authentication and Key Agreemnt |
| 451 | Algorithm. |
| 452 | |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 453 | [[gsup-ie-ik]] |
| 454 | ==== IK |
| 455 | |
| 456 | The 16-byte Integrity Protection Key generated by the UMTS |
| 457 | Authentication and Key Agreement Algorithm. |
| 458 | |
| 459 | [[gsup-ie-ck]] |
| 460 | ==== CK |
| 461 | |
| 462 | The 16-byte Ciphering Key generated by the UMTS Authentication and Key |
| 463 | Agreement Algorithm. |
| 464 | |
| 465 | [[gsup-ie-autn]] |
| 466 | ==== AUTN |
| 467 | |
| 468 | The 16-byte Authentication Nonce sent from network to USIM in the UMTS |
| 469 | Authentication and Key Agreement Algorithm. |
| 470 | |
| 471 | [[gsup-ie-auts]] |
| 472 | ==== AUTS |
| 473 | |
| 474 | The 16-byte Authentication Synchronization Nonce generated by the USIM |
| 475 | in case the UMTS Authentication and Key Agreement Algorithm needs to |
| 476 | re-synchronize the sequence counters between AUC and USIM. |
| 477 | |
| 478 | [[gsup-ie-res]] |
| 479 | ==== RES |
| 480 | |
| 481 | The (variable length, but typically 16 byte) Authentication Result |
| 482 | generated by the USIM in the UMTS Authentication and Key Agreement |
| 483 | Algorithm. |
| 484 | |
| 485 | [[gsup-ie-cndomain]] |
| 486 | ==== CN Domain |
| 487 | |
| 488 | This single-byte information element indicates the Core Network |
| 489 | Domain, i.e. if the message is related to Circuit Switched or Packet |
| 490 | Switched services. |
| 491 | |
| 492 | For backwards compatibility reasons, if no CN Domain IE is present |
| 493 | within a request, the PS Domain is assumed. |
| 494 | |
| 495 | .CN Domain Number |
| 496 | [options="header",cols="10%,90%"] |
| 497 | |=== |
| 498 | |Type|Description |
| 499 | |0x01|PS Domain |
| 500 | |0x02|CS Domain |
| 501 | |=== |
| 502 | |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 503 | [[gsup-ie-canctype]] |
| 504 | ==== Cancellation Type |
| 505 | |
| 506 | [packetdiag] |
| 507 | ---- |
| 508 | { |
| 509 | colwidth = 8 |
| 510 | node_height = 24 |
| 511 | |
| 512 | 0-6: PDP type IEI |
| 513 | 7: Res |
| 514 | 8-15: Length (1) |
| 515 | 16-23: Canc. Type Nr. |
| 516 | } |
| 517 | ---- |
| 518 | |
| 519 | .Cancellation Type Number |
| 520 | [options="header",cols="10%,90%"] |
| 521 | |=== |
| 522 | |Number|Description |
| 523 | |0x00|Update Procedure |
| 524 | |0x01|Subscription Withdrawn |
| 525 | |=== |
| 526 | |
| 527 | [[gsup-iei]] |
| 528 | ==== IE Identifier (informational) |
| 529 | |
| 530 | These are the standard values for the IEI. See the message definitions for the |
| 531 | IEI that shall be used for the encoding. |
| 532 | |
| 533 | .GSUP IE Identifiers |
| 534 | [options="header",cols="15%,35%,50%"] |
| 535 | |=== |
| 536 | |IEI|Info Element|Type / Encoding |
| 537 | |0x01|IMSI|Mobile Identity, 3GPP TS 04.08 Ch. 10.5.1.4 |
| 538 | |0x02|Cause|<<gsup-ie-cause>> |
| 539 | |0x03|Auth Tuple|<<gsup-ie-authtuple>> |
| 540 | |0x04|PDP Info Compl|<<gsup-ie-empty>> |
| 541 | |0x05|PDP Info|<<gsup-ie-pdpinfo>> |
| 542 | |0x06|Cancel Type|<<gsup-ie-canctype>> |
| 543 | |0x07|Freeze P-TMSI|<<gsup-ie-empty>> |
| 544 | |0x08|MSISDN|ISDN-AddressString/octet, <<gsup-ie-msisdn>> |
| 545 | |0x09|HLR Number|<<gsup-ie-hlr>> |
| 546 | |0x10|PDP Context ID|<<gsup-ie-pdpctxid>> |
| 547 | |0x11|PDP Type|<<gsup-ie-pdptype>> |
| 548 | |0x12|QoS|<<gsup-ie-qos>> |
| 549 | |0x20|RAND|<<gsup-ie-rand>> |
| 550 | |0x21|SRES|<<gsup-ie-sres>> |
| 551 | |0x22|Kc|<<gsup-ie-kc>> |
Harald Welte | ed9c53d | 2016-07-23 14:58:04 +0200 | [diff] [blame^] | 552 | |0x23|IK|<<gsup-ie-ik>> |
| 553 | |0x24|CK|<<gsup-ie-ck>> |
| 554 | |0x25|AUTN|<<gsup-ie-autn>> |
| 555 | |0x26|AUTS|<<gsup-ie-auts>> |
| 556 | |0x27|RES|<<gsup-ie-res>> |
| 557 | |0x28|CN Domain|<<gsup-ie-cndomain>> |
Harald Welte | 9f1331b | 2016-02-20 10:56:10 +0100 | [diff] [blame] | 558 | |=== |
| 559 | |
| 560 | [[gsup-ie-empty]] |
| 561 | ==== Empty field |
| 562 | |
| 563 | This is used for flags, if and only if this IE is present, the flag is set. |
| 564 | The semantics depend on the IEI and the context. |
| 565 | |
| 566 | [packetdiag] |
| 567 | ---- |
| 568 | { |
| 569 | colwidth = 8 |
| 570 | node_height = 24 |
| 571 | |
| 572 | 0-6: PDP type IEI |
| 573 | 7: Res |
| 574 | 8-15: Length (0) |
| 575 | } |
| 576 | ---- |
| 577 | |
| 578 | [[gsup-ie-imsi]] |
| 579 | ==== IMSI |
| 580 | |
| 581 | The IMSI is encoded like in octet 4-N of the Called Party BCD Number |
| 582 | defined in 3GPP TS 04.08, 10.5.4.7. |
| 583 | |
| 584 | [packetdiag] |
| 585 | ---- |
| 586 | { |
| 587 | colwidth = 8 |
| 588 | node_height = 24 |
| 589 | |
| 590 | 0-6: PDP type IEI |
| 591 | 7: Res |
| 592 | 8-15: Length of IE content |
| 593 | 16-19: Digit 1 |
| 594 | 20-23: Digit 2 |
| 595 | 24-27: Digit ... |
| 596 | 28-31: Digit N |
| 597 | 32-39: see Note |
| 598 | } |
| 599 | ---- |
| 600 | |
| 601 | NOTE: Either '1 1 1 1 | Number digit N' (N odd) or 'Number digit N | |
| 602 | Number digit N-1' (N even), where N is the number of digits. |
| 603 | |
| 604 | [[gsup-ie-msisdn]] |
| 605 | ==== ISDN-AddressString / MSISDN / Called Party BCD Number |
| 606 | |
| 607 | The MSISDN is encoded as an ISDN-AddressString in 3GPP TS 09.02 and Called Party |
| 608 | BCD Number in 3GPP TS 04.08. It will be stored by the SGSN and then passed as is |
| 609 | to the GGSN during the activation of the primary PDP Context. |
| 610 | |
| 611 | [packetdiag] |
| 612 | ---- |
| 613 | { |
| 614 | colwidth = 8 |
| 615 | node_height = 24 |
| 616 | |
| 617 | 0-6: PDP type IEI |
| 618 | 7: Res |
| 619 | 8-15: Length of IE content |
| 620 | 16-19: NPI |
| 621 | 20-22: TON |
| 622 | 23: ext |
| 623 | 24-27: Digit 1 |
| 624 | 28-31: Digit 2 |
| 625 | 32-35: Digit ... |
| 626 | 36-39: Digit N |
| 627 | } |
| 628 | ---- |
| 629 | |
| 630 | [[gsup-ie-qos]] |
| 631 | ==== Quality of Service Subscribed Service |
| 632 | |
| 633 | This encodes the subscribed QoS of a subscriber. It will be used by the |
| 634 | SGSN during the PDP Context activation. If the length of the QoS data |
| 635 | is 3 (three) octets it is assumed that these are octets 3-5 of the TS |
| 636 | 3GPP TS 24.008 Quality of Service Octets. If it is more than three then |
| 637 | then it is assumed that the first octet is the Allocation/Retention |
| 638 | Priority and the reset are encoded as octets 3-N of 24.008. |
| 639 | |
| 640 | [packetdiag] |
| 641 | ---- |
| 642 | { |
| 643 | colwidth = 8 |
| 644 | node_height = 24 |
| 645 | |
| 646 | 0-6: PDP type IEI |
| 647 | 7: Res |
| 648 | 8-15: Length of IE content |
| 649 | 16-23: Payload |
| 650 | } |
| 651 | ---- |
| 652 | |
| 653 | [[gsup-ie-hlr]] |
| 654 | ==== HLR Number encoded as 3GPP TS 09.02 ISDN-AddressString |
| 655 | |
| 656 | The HLR Number is encoded as an ISDN-AddressString in 3GPP TS 09.02. It |
| 657 | will be stored by the SGSN can be used by the CDR module to keep a |
| 658 | record. |
| 659 | |
| 660 | [packetdiag] |
| 661 | ---- |
| 662 | { |
| 663 | colwidth = 8 |
| 664 | node_height = 24 |
| 665 | |
| 666 | 0-6: PDP type IEI |
| 667 | 7: Res |
| 668 | 8-15: Length of IE content |
| 669 | 16-19: NPI |
| 670 | 20-22: TON |
| 671 | 23: ext |
| 672 | 24-27: Digit 1 |
| 673 | 28-31: Digit 2 |
| 674 | 32-35: Digit ... |
| 675 | 36-39: Digit N |
| 676 | } |
| 677 | ---- |
| 678 | |
| 679 | [[gsup-ie-cause]] |
| 680 | ==== Cause |
| 681 | |
| 682 | This IE shall be encoded according to the 'GMM Cause' as described in |
| 683 | Chapter 10.5.5.14 of 3GPP TS 04.08. |