comparison cdg-hybrid/sap/ll.pdf @ 212:e7a67accfad9

cdg-hybrid cdginc headers created
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Oct 2016 21:52:58 +0000
parents
children
comparison
equal deleted inserted replaced
211:02269c474131 212:e7a67accfad9
1 ;********************************************************************************
2 ;*** File : ll.pdf
3 ;*** Creation : Wed Mar 11 09:58:15 CST 2009
4 ;*** XSLT Processor : Apache Software Foundation / http://xml.apache.org/xalan-j / supports XSLT-Ver: 1
5 ;*** Copyright : (c) Texas Instruments AG, Berlin Germany 2002
6 ;********************************************************************************
7 ;*** Document Type : Service Access Point Specification
8 ;*** Document Name : ll
9 ;*** Document No. : 8441.104.99.017
10 ;*** Document Date : 2003-02-04
11 ;*** Document Status: BEING_PROCESSED
12 ;*** Document Author: UT
13 ;********************************************************************************
14
15
16
17 PRAGMA SRC_FILE_TIME "Thu Nov 29 09:44:38 2007"
18 PRAGMA LAST_MODIFIED "2003-02-04"
19 PRAGMA ID_AND_VERSION "8441.104.99.017"
20
21
22
23 CONST N202 4 ; maximum number of octets in the layer-3 header, Requirements: <R.LLC.LLC_PAR.A.008>, <R.LLC.TXUI_ADM.A.003>, <R.LLC.RXUI_ADM.A.003>
24 CONST LLC_SDU_OFFSET 37 ; number of octets that have to be reserved at the beginning of an SDU when an upper layer allocates an SDU for uplink data transfer; these octets are the maximum number of octets that the LLC header can occupy, they have to be skipped when upper layers write / read the contents of the SDU
25 CONST LLC_SDU_OFFSET_BITS 296 ; LLC_SDU_OFFSET in bits. NOTE: When this definition is changed, upper layer SAPs may also need to be changed!
26 CONST LLC_MAX_L3_XID_LEN 255 ; Maximum byte length of the L3 XID parameter.
27 CONST LLC_MAX_L3_XID_LEN 255 ; Maximum byte length of the L3 XID parameter.
28 CONST LLC_MAX_CNF 32 ; Maximum number of L3-PDU confirmations included in one LL_DATA_CNF
29 EXTERN CONST @p_gsmcom - LLC_ORIGINATING_ENTITY@ LLC_ORIGINATING_ENTITY ; mask for indicating the originating entity of a cause is LLC
30
31
32
33 VALTAB VAL_sapi
34 VAL 1 LL_SAPI_1 "SAP for GMM"
35 VAL 3 LL_SAPI_3 "SAP 1 for SNDCP"
36 VAL 5 LL_SAPI_5 "SAP 2 for SNDCP"
37 VAL 7 LL_SAPI_7 "SAP for SMS"
38 VAL 9 LL_SAPI_9 "SAP 3 for SNDCP"
39 VAL 11 LL_SAPI_11 "SAP 4 for SNDCP"
40 VAL 255 LL_SAPI_INVALID "invalid SAPI identifier"
41
42 VALTAB VAL_tlli
43 VAL 0xFFFFFFFF LL_TLLI_INVALID "invalid TLLI value"
44
45 VALTAB VAL_xid_valid
46 VAL 0 LL_XID_INVALID "layer-3 XID parameters are not valid"
47 VAL 1 LL_XID_VALID "layer-3 XID parameters are valid"
48
49 VALTAB VAL_local
50 VAL 0 LL_REL_NOTLOCAL "release both sides of the connection"
51 VAL 1 LL_REL_LOCAL "local release only (no notification of the peer LLC)"
52
53 VALTAB VAL_cause
54 VAL 0b0101000000000000 LL_RELCS_INVALID_XID "invalid XID response"
55 VAL 0b0101000000000001 LL_RELCS_DM_RECEIVED "DM received"
56 VAL 0b0101000000000010 LL_RELCS_NO_PEER_RES "no peer response"
57 VAL 0b0101000000000100 LL_RELCS_NORMAL "normal release"
58
59 VALTAB VAL_cipher
60 VAL 0 LL_CIPHER_OFF "UI frame not ciphered"
61 VAL 1 LL_CIPHER_ON "UI frame ciphered"
62
63 VALTAB VAL_radio_prio
64 VAL 0 LL_RADIO_PRIO_1 "Radio Priority Level 1 (higest)"
65 VAL 1 LL_RADIO_PRIO_2 "Radio Priority Level 2"
66 VAL 2 LL_RADIO_PRIO_3 "Radio Priority Level 3"
67 VAL 3 LL_RADIO_PRIO_4 "Radio Priority Level 4 (lowest)"
68
69 VALTAB VAL_peak
70 VAL 0 LL_PEAK_SUB "Subscribed peak throughput"
71 VAL 1 LL_PEAK_1K "Up to 1 000 octet/s"
72 VAL 2 LL_PEAK_2K "Up to 2 000 octet/s"
73 VAL 3 LL_PEAK_4K "Up to 4 000 octet/s"
74 VAL 4 LL_PEAK_8K "Up to 8 000 octet/s"
75 VAL 5 LL_PEAK_16K "Up to 16 000 octet/s"
76 VAL 6 LL_PEAK_32K "Up to 32 000 octet/s"
77 VAL 7 LL_PEAK_64K "Up to 64 000 octet/s"
78 VAL 8 LL_PEAK_128K "Up to 128 000 octet/s"
79 VAL 9 LL_PEAK_256K "Up to 256 000 octet/s"
80
81 VALTAB VAL_relclass
82 VAL 0 LL_RELCLASS_SUB "Subscribed reliability class"
83 VAL 1 LL_GTP_LLC_RLC_PROT "Acknowledged GTP, LLC, and RLC; Protected data"
84 VAL 2 LL_LLC_RLC_PROT "Unacknowledged GTP; Acknowledged LLC and RLC, Protected data"
85 VAL 3 LL_RLC_PROT "Unacknowledged GTP and LLC; Acknowledged RLC, Protected data"
86 VAL 4 LL_PROT "Unacknowledged GTP, LLC, and RLC, Protected data"
87 VAL 5 LL_NO_REL "Unacknowledged GTP, LLC, and RLC, Unprotected data"
88
89 VALTAB VAL_delay
90 VAL 0 LL_DELAY_SUB "Subscribed delay class"
91 VAL 1 LL_DELAY_1 "Delay class 1"
92 VAL 2 LL_DELAY_2 "Delay class 2"
93 VAL 3 LL_DELAY_3 "Delay class 3"
94 VAL 4 LL_DELAY_4 "Delay class 4 (best effort)"
95
96 VALTAB VAL_mean
97 VAL 0 LL_MEAN_SUB "Subscribed mean throughput"
98 VAL 1 LL_MEAN_100 "100 octet/h"
99 VAL 2 LL_MEAN_200 "200 octet/h"
100 VAL 3 LL_MEAN_500 "500 octet/h"
101 VAL 4 LL_MEAN_1K "1 000 octet/h"
102 VAL 5 LL_MEAN_2K "2 000 octet/h"
103 VAL 6 LL_MEAN_5K "5 000 octet/h"
104 VAL 7 LL_MEAN_10K "10 000 octet/h"
105 VAL 8 LL_MEAN_20K "20 000 octet/h"
106 VAL 9 LL_MEAN_50K "50 000 octet/h"
107 VAL 10 LL_MEAN_100K "100 000 octet/h"
108 VAL 11 LL_MEAN_200K "200 000 octet/h"
109 VAL 12 LL_MEAN_500K "500 000 octet/h"
110 VAL 13 LL_MEAN_1M "1 000 000 octet/h"
111 VAL 14 LL_MEAN_2M "2 000 000 octet/h"
112 VAL 15 LL_MEAN_5M "5 000 000 octet/h"
113 VAL 16 LL_MEAN_10M "10 000 000 octet/h"
114 VAL 17 LL_MEAN_20M "20 000 000 octet/h"
115 VAL 18 LL_MEAN_50M "50 000 000 octet/h"
116 VAL 31 LL_MEAN_BEST "Best effort"
117
118 VALTAB VAL_preced
119 VAL 0 LL_PRECED_SUB "Subscribed precedence"
120 VAL 1 LL_PRIO_HIGH "High priority"
121 VAL 2 LL_PRIO_NORM "Normal priority"
122 VAL 3 LL_PRIO_LOW "Low priority"
123
124 VALTAB VAL_error_cause
125 VAL 0b0101000000000000 LL_ERRCS_INVALID_XID "invalid XID response"
126 VAL 0b0101000000000010 LL_ERRCS_NO_PEER_RES "no peer response"
127
128 VALTAB VAL_attached_counter
129 VAL 0 LLC_NO_ATTACHE "no entity/service is attached to the primitive"
130
131 VALTAB VAL_seg_pos
132 VAL 0 LL_SEG_POS_NONE "In between"
133 VAL 1 LL_SEG_POS_FIRST "first"
134 VAL 2 LL_SEG_POS_LAST "last"
135 VAL 3 LL_SEG_POS_FIRST_LAST "both"
136
137 VALTAB VAL_pkt_flow_id %REL99%
138 VAL 0x00 LL_PFI_BEST_EFFORT %REL99% "best effort"
139 VAL 0x01 LL_PFI_SIGNALING %REL99% "signalling"
140 VAL 0x02 LL_PFI_SMS %REL99% "SMS"
141 VAL 0xFF LL_PKT_FLOW_ID_NOT_PRES %REL99% "value FF is used to indicate when packet flwo identifier is not present"
142
143
144
145
146 VAR sapi "service access point identifier" B
147
148 VAL @p_ll - VAL_sapi@
149
150 VAR tlli "temporary logical link identifier" L
151
152 VAL @p_ll - VAL_tlli@
153
154 VAR xid_valid "layer-3 XID parameters valid or not" B
155
156 VAL @p_ll - VAL_xid_valid@
157
158 VAR l_buf "length of content in bit" S
159
160
161 VAR o_buf "offset of content in bit" S
162
163
164 VAR buf "buffer content" B
165
166
167 VAR n201_u "maximum number of octets in an U or UI frame information field" S
168
169
170 VAR n201_i "maximum number of octets in an I frame information field" S
171
172
173 VAR local "local release or release both sides" B
174
175 VAL @p_ll - VAL_local@
176
177 VAR cause "cause of ABM termination" S
178
179 VAL @p_ll - VAL_cause@
180
181 VAR ref_nsapi "ref_nsapi" B
182
183
184 VAR ref_npdu_num "ref_npdu_num" S
185
186
187 VAR ref_seg_num "ref_seg_num" B
188
189
190 VAR cipher "ciphering indicator" B
191
192 VAL @p_ll - VAL_cipher@
193
194 VAR radio_prio "Radio Priority" B
195
196 VAL @p_ll - VAL_radio_prio@
197
198 VAR delay "delay class" B
199
200 VAL @p_ll - VAL_delay@
201
202 VAR relclass "reliability class" B
203
204 VAL @p_ll - VAL_relclass@
205
206 VAR peak "peak throughput" B
207
208 VAL @p_ll - VAL_peak@
209
210 VAR preced "precedence class" B
211
212 VAL @p_ll - VAL_preced@
213
214 VAR mean "main throughput" B
215
216 VAL @p_ll - VAL_mean@
217
218 VAR reserved_1 "reserved" B
219
220
221 VAR reserved_2 "reserved" B
222
223
224 VAR reserved_3 "reserved" B
225
226
227 VAR reserved_release_cnf "reserved octets for release confirm" B
228
229
230 VAR reserved_data_req1 "reserved octets" B
231
232
233 VAR reserved_data_req4 "reserved octets for data request" L
234
235
236 VAR reserved_data_req5 %!REL99% "reserved octets" S
237
238
239 VAR reserved_unitdata_req4 "reserved octets for unitdata request" L
240
241
242 VAR reserved_unitdata_req5 %!REL99% "reserved octets" S
243
244
245 VAR reserved_data_ind1 "reserved octets for data indication" L
246
247
248 VAR reserved_data_ind3 "reserved octets for data indication" B
249
250
251 VAR reserved_data_ind4 "reserved octets for data indication" B
252
253
254 VAR reserved_data_ind5 "reserved octets for data indication" B
255
256
257 VAR reserved_data_ind6 "reserved octets for data indication" B
258
259
260 VAR reserved_unitdata_ind1 "reserved octets" L
261
262
263 VAR reserved_unitdata_ind3 "reserved octets" B
264
265
266 VAR reserved_unitdata_ind4 "reserved octets" B
267
268
269 VAR reserved_unitdata_ind5 "reserved octets" B
270
271
272 VAR error_cause "error cause" S
273
274 VAL @p_ll - VAL_error_cause@
275
276 VAR attached_counter "attached to primitive data counter" B
277
278 VAL @p_ll - VAL_attached_counter@
279
280 VAR seg_pos "First and/or last segment of N-PDU?" B
281
282 VAL @p_ll - VAL_seg_pos@
283
284 VAR list_len "length in octets of whole data" S
285
286
287 VAR first "pointer to first generic data descriptor" L
288
289
290 VAR next "next generic data descriptor" L
291
292
293 VAR offset "offset in octets" S
294
295
296 VAR len "length of content in octets" S
297
298
299 VAR buffer "pointer to buffer" L
300
301
302 VAR pkt_flow_id %REL99% "packet flow identifier" S
303
304 VAL @p_ll - VAL_pkt_flow_id@
305
306
307
308
309 COMP sdu "service data unit"
310 {
311 l_buf ; length of content in bit
312 o_buf ; offset of content in bit
313 buf [1] ; buffer content
314 }
315
316
317
318 COMP reference1 "to the segment to be confirmed"
319 {
320 ref_nsapi ; ref_nsapi
321 ref_npdu_num ; ref_npdu_num
322 ref_seg_num ; ref_seg_num
323 }
324 TYPEDEF COMP reference1 reserved_unitdata_req1 "reserved octets"
325 TYPEDEF COMP reference1 reserved_data_ind2 "reserved octets"
326 TYPEDEF COMP reference1 reserved_unitdata_ind2 "reserved octets"
327
328
329
330 COMP ll_qos "quality of service"
331 {
332 delay ; delay class
333 relclass ; reliability class
334 peak ; peak throughput
335 preced ; precedence class
336 mean ; main throughput
337 reserved_1 ; reserved
338 reserved_2 ; reserved
339 reserved_3 ; reserved
340 }
341
342
343
344 COMP desc_list3 "List of generic data descriptors"
345 {
346 list_len ; length in octets of whole data
347 first ; pointer to first generic data descriptor
348 }
349
350
351
352 COMP desc3 "generic data descriptor"
353 {
354 next ; next generic data descriptor
355 offset ; offset in octets
356 len ; length of content in octets
357 buffer ; pointer to buffer
358 }
359
360
361
362
363
364
365 ; LL_RESET_IND 0x6200
366 ; LL_ESTABLISH_REQ 0x2200
367 ; LL_ESTABLISH_CNF 0x6201
368 ; LL_ESTABLISH_IND 0x6202
369 ; LL_ESTABLISH_RES 0x2201
370 ; LL_RELEASE_REQ 0x2202
371 ; LL_RELEASE_CNF 0x6203
372 ; LL_RELEASE_IND 0x6204
373 ; LL_XID_REQ 0x2203
374 ; LL_XID_CNF 0x6205
375 ; LL_XID_IND 0x6206
376 ; LL_XID_RES 0x2204
377 ; LL_READY_IND 0x6207
378 ; LL_UNITREADY_IND 0x6208
379 ; LL_GETDATA_REQ 0x2205
380 ; LL_GETUNITDATA_REQ 0x2206
381 ; LL_DATA_REQ 0x2207
382 ; LL_DATA_CNF 0x6209
383 ; LL_DATA_IND 0x620A
384 ; LL_UNITDATA_REQ 0x2208
385 ; LL_UNITDATA_IND 0x620B
386 ; LL_STATUS_IND 0x620C
387 ; LL_DESC_REQ 0x2209
388 ; LL_UNITDESC_REQ 0x220A
389 ; LLC_DUMMY_REQ 0x220B
390
391
392
393 PRIM LL_RESET_IND 0x6200
394 {
395 sapi ; service access point identifier
396 }
397
398
399
400
401
402
403 PRIM LL_ESTABLISH_REQ 0x2200
404 {
405 sapi ; service access point identifier
406 sdu ; layer-3 XID parameters to be negotiated
407 }
408
409
410
411
412
413
414 PRIM LL_ESTABLISH_CNF 0x6201
415 {
416 sapi ; service access point identifier
417 n201_u ; unacknowledged information field length
418 n201_i ; acknowledged information field length
419 xid_valid ; layer-3 XID parameters valid
420 sdu ; negotiated layer-3 XID parameters
421 }
422
423
424
425
426
427
428 PRIM LL_ESTABLISH_IND 0x6202
429 {
430 sapi ; service access point identifier
431 n201_u ; unacknowledged information field length
432 n201_i ; acknowledged information field length
433 xid_valid ; layer-3 XID parameters valid
434 sdu ; layer-3 XID parameters to be negotiated
435 }
436
437
438
439
440
441
442 PRIM LL_ESTABLISH_RES 0x2201
443 {
444 sapi ; service access point identifier
445 xid_valid ; layer-3 XID parameters valid
446 sdu ; negotiated layer-3 XID parameters
447 }
448
449
450
451
452
453
454 PRIM LL_RELEASE_REQ 0x2202
455 {
456 sapi ; service access point identifier
457 local ; local release
458 }
459
460
461
462
463
464
465 PRIM LL_RELEASE_CNF 0x6203
466 {
467 sapi ; service access point identifier
468 reserved_release_cnf ; reserved octets for release confirm
469 }
470
471
472
473
474
475
476 PRIM LL_RELEASE_IND 0x6204
477 {
478 sapi ; service access point identifier
479 cause ; cause of ABM termination
480 }
481
482
483
484
485
486
487 PRIM LL_XID_REQ 0x2203
488 {
489 sapi ; service access point identifier
490 sdu ; service data unit
491 }
492
493
494
495
496
497
498 PRIM LL_XID_CNF 0x6205
499 {
500 sapi ; service access point identifier
501 n201_u ; unacknowledged information field length
502 n201_i ; acknowledged information field length
503 sdu ; service data unit
504 }
505
506
507
508
509
510
511 PRIM LL_XID_IND 0x6206
512 {
513 sapi ; service access point identifier
514 n201_u ; unacknowledged information field length
515 n201_i ; acknowledged information field length
516 xid_valid ; layer-3 XID parameters valid
517 sdu ; layer-3 XID parameters to be negotiated
518 }
519
520
521
522
523
524
525 PRIM LL_XID_RES 0x2204
526 {
527 sapi ; service access point identifier
528 sdu ; service data unit
529 }
530
531
532
533
534
535
536 PRIM LL_READY_IND 0x6207
537 {
538 sapi ; service access point identifier
539 }
540
541
542
543
544
545
546 PRIM LL_UNITREADY_IND 0x6208
547 {
548 sapi ; service access point identifier
549 }
550
551
552
553
554
555
556 PRIM LL_GETDATA_REQ 0x2205
557 {
558 sapi ; service access point identifier
559 }
560
561
562
563
564
565
566 PRIM LL_GETUNITDATA_REQ 0x2206
567 {
568 sapi ; service access point identifier
569 tlli ; temporary logical link entity
570 }
571
572
573
574
575
576
577 PRIM LL_DATA_REQ 0x2207
578 {
579 sapi ; service access point identifier
580 tlli ; temporary logical link entity
581 ll_qos ; quality of service
582 radio_prio ; radio priority
583 reserved_data_req1 ; reserved octet
584 reference1 ; reference to the PDU
585 seg_pos ; reserved octets
586 attached_counter ; attached to primitive counter
587 reserved_data_req4 ; reserved octets for data request
588 pkt_flow_id %REL99% ; packet flow identifier
589 reserved_data_req5 %!REL99% ; reserved octets for data request
590 sdu ; service data unit
591 }
592
593
594
595
596
597
598 PRIM LL_DATA_CNF 0x6209
599 {
600 sapi ; service access point identifier
601 reference1 [1..LLC_MAX_CNF] ; reference to the PDU
602 }
603
604
605
606
607
608
609 PRIM LL_DATA_IND 0x620A
610 {
611 sapi ; service access point identifier
612 tlli ; temporary logical link entity
613 reserved_data_ind1 ; reserved octets
614 reserved_data_ind2 ; reserved octets
615 reserved_data_ind3 ; reserved octets
616 reserved_data_ind4 ; reserved octets
617 reserved_data_ind5 ; reserved octets
618 reserved_data_ind6 ; reserved octets
619 sdu ; service data unit
620 }
621
622
623
624
625
626
627 PRIM LL_UNITDATA_REQ 0x2208
628 {
629 sapi ; service access point identifier
630 tlli ; temporary logical link entity
631 ll_qos ; quality of service
632 radio_prio ; radio priority
633 cipher ; ciphering indicator
634 reserved_unitdata_req1 ; reserved octets
635 seg_pos ; reserved octets
636 attached_counter ; attached to primitive counter
637 reserved_unitdata_req4 ; reserved octets for unitdata request
638 pkt_flow_id %REL99% ; packet flow identifier
639 reserved_unitdata_req5 %!REL99% ; reserved octets
640 sdu ; service data unit
641 }
642
643
644
645
646
647
648 PRIM LL_UNITDATA_IND 0x620B
649 {
650 sapi ; service access point identifier
651 tlli ; temporary logical link entity
652 reserved_unitdata_ind1 ; reserved octets
653 reserved_unitdata_ind2 ; reserved octets
654 reserved_unitdata_ind3 ; reserved octets
655 reserved_unitdata_ind4 ; reserved octets
656 reserved_unitdata_ind5 ; reserved octets
657 cipher ; ciphering indicator
658 sdu ; service data unit
659 }
660
661
662
663
664
665
666 PRIM LL_STATUS_IND 0x620C
667 {
668 sapi ; service access point identifier
669 error_cause ; error cause
670 }
671
672
673
674
675
676
677 PRIM LL_DESC_REQ 0x2209
678 {
679 sapi ; service access point identifier
680 tlli ; temporary logical link entity
681 ll_qos ; quality of service
682 radio_prio ; radio priority
683 reserved_data_req1 ; reserved octet
684 reference1 ; reference to the PDU
685 seg_pos ; reserved octets
686 attached_counter ; attached to primitive counter
687 reserved_data_req4 ; reserved octets for data request
688 pkt_flow_id %REL99% ; packet flow identifier
689 reserved_data_req5 %!REL99% ; reserved octets for data request
690 desc_list3 ; List of generic data descriptors
691 }
692
693
694
695
696
697
698 PRIM LL_UNITDESC_REQ 0x220A
699 {
700 sapi ; service access point identifier
701 tlli ; temporary logical link entity
702 ll_qos ; quality of service
703 radio_prio ; radio priority
704 cipher ; ciphering indicator
705 reserved_unitdata_req1 ; reserved octets
706 seg_pos ; reserved octets
707 attached_counter ; attached to primitive counter
708 reserved_unitdata_req4 ; reserved octets for unitdata request
709 pkt_flow_id %REL99% ; packet flow identifier
710 reserved_unitdata_req5 %!REL99% ; reserved octets
711 desc_list3 ; List of generic data descriptors
712 }
713
714
715
716
717
718
719 PRIM LLC_DUMMY_REQ 0x220B
720 {
721 desc3 ; generic data descriptor
722 }
723
724
725
726
727
728
729
730
731