blob: 7ea34815fc732a7bf47fe29d433dbaee79017f4c [file] [log] [blame]
Harald Welte9f1331b2016-02-20 10:56:10 +01001[[gsup]]
2== GPRS Subscriber Update Protocol
3
4=== General
5
6This chapter describes the remote protocol that is used by the SGSN to update
7and manage the local subscriber list. The protocol and the messages are
8designed after the corresponding MAP messages (see 3GPP TS 09.02) with the
9following differences:
10
11* The encoding uses TLV structures instead of ASN.1 encodings
12* Segmentation is not used
13
14For more information, see the specification of the Gr interface (3GPP TS 03.60).
15
16=== Connection
17
18The protocol expects that a reliable, ordered, packet boundaries preserving
19connection is used (e.g. IPA over TCP). The remote peer is either a service
20that understands the protocol natively or a wrapper service that maps the
21messages to/from real MAP messages that can be used to directly communicate
22with an HLR.
23
24=== Using IPA
25
26By default, the following identifiers should be used:
27
28* IPA Stream ID: 0xEE (OSMO)
29* IPA OSMO protocol extension: 0x05
30
31For more information about the IPA multiplex, please see the 'OsmoBTS
Jonathan Brielmaier5530c912016-05-25 15:01:11 +020032Abis/IP Specification'.
Harald Welte9f1331b2016-02-20 10:56:10 +010033
34=== Procedures
35
36==== Authentication management
37
38The SGSN sends a SEND_AUTHENTICATION_INFO_REQ message containing the MS's IMSI
Jonathan Brielmaier5530c912016-05-25 15:01:11 +020039to the peer. On errors, especially if authentication info is not available for
Harald Welte9f1331b2016-02-20 10:56:10 +010040that IMSI, the peer returns a SEND_AUTHENTICATION_INFO_ERR message. Otherwise
41the peer returns a SEND_AUTHENTICATION_INFO_RES message. If this message
42contains at least one authentication tuple, the SGSN replaces all tuples that
43are assigned to the subscriber. If the message doesn't contain any tuple the
44SGSN may reject the Attach Request. (see 3GPP TS 09.02, 25.5.6)
45
46==== Location Updating
47
48The SGSN sends a UPDATE_LOCATION_REQ to the peer. If the request is denied by
49the network, the peer returns an UPDATE_LOCATION_ERR message to the SGSN.
50Otherwise the peer returns an UPDATE_LOCATION_RES message containing all
51information fields that shall be inserted into the subscriber record. If
52the 'PDP info complete' information element is set in the message, the SGSN
53clears 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
62Every 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
71If a numeric range is indicated in the 'presence' column, multiple information
72elements with the same tag may be used in sequence. The information elements
73shall be sent in the given order. Nevertheless after the generic part the
74receiver shall be able to received them in any order. Unknown IE shall be
75ignored.
76
77==== Send Authentication Info Request
78
79Direction: 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 Welteed9c53d2016-07-23 14:58:04 +020086|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 Welte9f1331b2016-02-20 10:56:10 +010089|===
90
Harald Welteed9c53d2016-07-23 14:58:04 +020091The conditional 'AUTS' and 'RAND' IEs are both present in case the SIM
92(via UE) requests an UMTS AKA re-synchronization procedure. Eiter
93both optional IEs are present, or none of them.
94
Harald Welte9f1331b2016-02-20 10:56:10 +010095==== Send Authentication Info Error
96
97Direction: 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
109Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200119==== Authentication Failure Report
120
121Direction: 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 Welte9f1331b2016-02-20 10:56:10 +0100131==== Update Location Request
132
133Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200140|28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3
Harald Welte9f1331b2016-02-20 10:56:10 +0100141|===
142
143==== Update Location Error
144
145Direction: 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
157Direction: 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
170If the PDP info complete IE is present, the old PDP info list shall be cleared.
171
172==== Location Cancellation Request
173
174Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200181|28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3
Harald Welte9f1331b2016-02-20 10:56:10 +0100182|06|Cancellation type|<<gsup-ie-canctype>>|O|TLV|3
183|===
184
185==== Location Cancellation Result
186
187Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200194|28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3
Harald Welte9f1331b2016-02-20 10:56:10 +0100195|===
196
197==== Purge MS Request
198
199Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200206|28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3
Harald Welte9f1331b2016-02-20 10:56:10 +0100207|09|HLR Number|<<gsup-ie-hlr>>|M|TLV|0-9
208|===
209
210==== Purge MS Error
211
212Direction: 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
224Direction: 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
236Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200243|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 Welte9f1331b2016-02-20 10:56:10 +0100246|04|PDP info complete|<<gsup-ie-empty>>|M|TLV|2
247|05|PDP info|<<gsup-ie-pdpinfo>>|0-10|TLV|
248|===
249
250If the PDP info complete IE is present, the old PDP info list shall be cleared.
251
252==== Insert Subscriber Data Error
253
254Direction: 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
266Direction: 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
277Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200284|28|CN Domain|<<gsup-ie-cndomain>>|O|TLV|3
Harald Welte9f1331b2016-02-20 10:56:10 +0100285|10|PDP context id|<<gsup-ie-pdpinfo>> (no conditional IE)|0-10|TLV|
286|===
287
288==== Delete Subscriber Data Error
289
290Direction: 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
302Direction: 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 Welteed9c53d2016-07-23 14:58:04 +0200325|0x0b|Authentication Failure Report
Harald Welte9f1331b2016-02-20 10:56:10 +0100326|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
343The value part is encoded like in the Packet data protocol address IE defined
344in 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
350This 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
363The conditional IE are mandantory unless mentioned otherwise.
364
365[[gsup-ie-pdptype]]
366==== PDP Type
367
368The PDP type value consists of 2 octets that are encoded like octet 4-5 of the
369End 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
386The spare bits are left undefined. While 09.60 defines them as '1 1 1 1', there
387are MAP traces where these bits are set to '0 0 0 0'. So the receiver shall
388ignore these bits.
389
390Examples:
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
398The PDP type context ID IE consists of a single integer byte wrapped in
399a 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
417This is a container for information elements describing a single authentication
418tuple.
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 Welteed9c53d2016-07-23 14:58:04 +0200428|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 Welte9f1331b2016-02-20 10:56:10 +0100432|===
433
Harald Welteed9c53d2016-07-23 14:58:04 +0200434The conditional IEs 'IK', 'CK', 'AUTN' and 'RES' are onl present in
435case the subscriber supports UMTS AKA.
436
Harald Welte9f1331b2016-02-20 10:56:10 +0100437[[gsup-ie-rand]]
438==== RAND
439
440The 16-byte Random Challenge of the GSM Authentication Algorithm.
441
442[[gsup-ie-sres]]
443==== SRES
444
445The 4-byte Authentication Result of the GSM Authentication Algorithm.
446
447[[gsup-ie-kc]]
448==== Kc
449
450The 8-byte Encryption Key of the GSM Authentication and Key Agreemnt
451Algorithm.
452
Harald Welteed9c53d2016-07-23 14:58:04 +0200453[[gsup-ie-ik]]
454==== IK
455
456The 16-byte Integrity Protection Key generated by the UMTS
457Authentication and Key Agreement Algorithm.
458
459[[gsup-ie-ck]]
460==== CK
461
462The 16-byte Ciphering Key generated by the UMTS Authentication and Key
463Agreement Algorithm.
464
465[[gsup-ie-autn]]
466==== AUTN
467
468The 16-byte Authentication Nonce sent from network to USIM in the UMTS
469Authentication and Key Agreement Algorithm.
470
471[[gsup-ie-auts]]
472==== AUTS
473
474The 16-byte Authentication Synchronization Nonce generated by the USIM
475in case the UMTS Authentication and Key Agreement Algorithm needs to
476re-synchronize the sequence counters between AUC and USIM.
477
478[[gsup-ie-res]]
479==== RES
480
481The (variable length, but typically 16 byte) Authentication Result
482generated by the USIM in the UMTS Authentication and Key Agreement
483Algorithm.
484
485[[gsup-ie-cndomain]]
486==== CN Domain
487
488This single-byte information element indicates the Core Network
489Domain, i.e. if the message is related to Circuit Switched or Packet
490Switched services.
491
492For backwards compatibility reasons, if no CN Domain IE is present
493within 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 Welte9f1331b2016-02-20 10:56:10 +0100503[[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
530These are the standard values for the IEI. See the message definitions for the
531IEI 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 Welteed9c53d2016-07-23 14:58:04 +0200552|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 Welte9f1331b2016-02-20 10:56:10 +0100558|===
559
560[[gsup-ie-empty]]
561==== Empty field
562
563This is used for flags, if and only if this IE is present, the flag is set.
564The 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
581The IMSI is encoded like in octet 4-N of the Called Party BCD Number
582defined 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
601NOTE: Either '1 1 1 1 | Number digit N' (N odd) or 'Number digit N |
602Number 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
607The MSISDN is encoded as an ISDN-AddressString in 3GPP TS 09.02 and Called Party
608BCD Number in 3GPP TS 04.08. It will be stored by the SGSN and then passed as is
609to 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
633This encodes the subscribed QoS of a subscriber. It will be used by the
634SGSN during the PDP Context activation. If the length of the QoS data
635is 3 (three) octets it is assumed that these are octets 3-5 of the TS
6363GPP TS 24.008 Quality of Service Octets. If it is more than three then
637then it is assumed that the first octet is the Allocation/Retention
638Priority 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
656The HLR Number is encoded as an ISDN-AddressString in 3GPP TS 09.02. It
657will be stored by the SGSN can be used by the CDR module to keep a
658record.
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
682This IE shall be encoded according to the 'GMM Cause' as described in
683Chapter 10.5.5.14 of 3GPP TS 04.08.