comparison cdg-hybrid/sap/rlp.pdf @ 14:35f7a1dc9f7d

cdg-hybrid: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 07:15:38 +0000
parents
children
comparison
equal deleted inserted replaced
13:83146a4ae927 14:35f7a1dc9f7d
1 ;********************************************************************************
2 ;*** File : rlp.pdf
3 ;*** Creation : Wed Mar 11 09:58:42 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 : rlp
9 ;*** Document No. : 8411.101.98.115
10 ;*** Document Date : 2002-04-22
11 ;*** Document Status: BEING_PROCESSED
12 ;*** Document Author: slo
13 ;********************************************************************************
14
15
16
17 PRAGMA SRC_FILE_TIME "Thu Nov 29 09:51:48 2007"
18 PRAGMA LAST_MODIFIED "2002-04-22"
19 PRAGMA ID_AND_VERSION "8411.101.98.115"
20
21
22
23 CONST RLP_HEADER_LEN 16 ; Length of RLP header in bits
24 CONST RLP_TRAILER_LEN 0 ; Length of RLP trailer in bits
25
26
27
28 VALTAB VAL_pt
29 VAL 0 RLP_COMPR_TYPE_V42BIS "V.42bis"
30
31 VALTAB VAL_p0
32 VAL 0 RLP_COMP_DIR_NONE "compress in neither direction"
33 VAL 1 RLP_COMP_DIR_TRANSMIT "compress in uplink direction only"
34 VAL 2 RLP_COMP_DIR_RECEIVE "compress in downlink direction only"
35 VAL 3 RLP_COMP_DIR_BOTH "compress in both directions"
36
37 VALTAB VAL_rate
38 VAL 0 RLP_HALFRATE_4800 "halfrate 4,8/6 kBit"
39 VAL 1 RLP_FULLRATE_4800 "fullrate 4,8/6 kBit"
40 VAL 2 RLP_FULLRATE_9600 "fullrate 9,6/12 kBit"
41 VAL 3 RLP_FULLRATE_14400 "fullrate 13,4/14,4 kBit"
42
43 VALTAB VAL_ack_flg
44 VAL 0 RLP_ACK "acknowledged"
45 VAL 1 RLP_NAK "not acknowledged"
46
47 VALTAB VAL_cause
48 VAL 0xC200 RLP_ERR_PF_RETRANS "Max Retransmissions of Poll reached"
49 VAL 0xC201 RLP_ERR_XID_RETRANS "Max Retransmissions of XID reached"
50 VAL 0xC202 RLP_ERR_SABM_RETRANS "Max Retransmissions of SABM reached"
51 VAL 0xC203 RLP_ERR_DISC_RETRANS "Max Retransmissions of DISC reached"
52 VAL 0xC204 RLP_ERR_REMAP_RETRANS "Max Retransmissions of REMAP reached"
53 VAL 0xC210 RLP_ERR_SDU_TO_SMALL "Received SDU is to small"
54 VAL 0xC220 RLP_ERR_INTERNAL "Internal error"
55
56
57
58
59 VAR rlp_vers "rlp version number" B
60
61
62 VAR k_ms_iwf "window size ms -> iwf" S
63
64
65 VAR k_iwf_ms "window size iwf -> ms" S
66
67
68 VAR t1 "acknowledge timer" B
69
70
71 VAR t2 "reply delay" B
72
73
74 VAR n2 "maximum numer of retransmission attempts" B
75
76
77 VAR pt "type of data compression" B
78
79 VAL @p_rlp - VAL_pt@
80
81 VAR p0 "v.42bis data compression direction" B
82
83 VAL @p_rlp - VAL_p0@
84
85 VAR p1 "v.42 bis number of possible codewords" S
86
87
88 VAR p2 "v.42 bis maximum encodable string length" B
89
90
91 VAR bytes_per_prim "bytes per primitive" S
92
93
94 VAR rate "transmission rate" B
95
96 VAL @p_rlp - VAL_rate@
97
98 VAR ack_flg "acknowledge flag" B
99
100 VAL @p_rlp - VAL_ack_flg@
101
102 VAR l_buf "length of content in bit" S
103
104
105 VAR o_buf "offset of content in bit" S
106
107
108 VAR buf "buffer content" B
109
110
111 VAR cause "cause" S
112
113 VAL @p_rlp - VAL_cause@
114
115 VAR error_rate "error_rate" L
116
117
118 VAR reserved "Reserved" B
119
120
121 VAR data_size "data size" S
122
123
124
125
126
127 COMP sdu "Service Data Unit"
128 {
129 l_buf ; length of content in bit
130 o_buf ; offset of content in bit
131 buf [1] ; buffer content
132 }
133
134
135
136
137
138
139 ; RLP_ATTACH_REQ 0x80000011
140 ; RLP_DETACH_REQ 0x80010011
141 ; RLP_DETACH_CNF 0x80004011
142 ; RLP_CONNECT_REQ 0x80020011
143 ; RLP_CONNECT_IND 0x80014011
144 ; RLP_CONNECT_RES 0x80030011
145 ; RLP_CONNECT_CNF 0x80024011
146 ; RLP_DISC_REQ 0x80040011
147 ; RLP_DISC_IND 0x80034011
148 ; RLP_DISC_CNF 0x80044011
149 ; RLP_RESET_REQ 0x80050011
150 ; RLP_RESET_IND 0x80054011
151 ; RLP_RESET_RES 0x80060011
152 ; RLP_RESET_CNF 0x80064011
153 ; RLP_READY_IND 0x80074011
154 ; RLP_DATA_REQ 0x80070011
155 ; RLP_GETDATA_REQ 0x80080011
156 ; RLP_DATA_IND 0x80084011
157 ; RLP_UI_REQ 0x80090011
158 ; RLP_UI_IND 0x80094011
159 ; RLP_XID_IND 0x800A4011
160 ; RLP_ERROR_IND 0x800B4011
161 ; RLP_STATISTIC_IND 0x800C4011
162 ; RLP_REMAP_REQ 0x800A0011
163 ; RLP_REMAP_CNF 0x800D4011
164 ; RLP_REMAP_DATA_IND 0x800E4011
165 ; RLP_REMAP_DATA_RES 0x800B0011
166
167
168
169 PRIM RLP_ATTACH_REQ 0x80000011
170 {
171 k_ms_iwf ; window size ms->iwf
172 k_iwf_ms ; window size iwf->ms
173 t1 ; acknowledge timer
174 t2 ; reply delay
175 n2 ; retransmission attempts
176 pt ; type of data compression
177 p0 ; v.42 bis data compression request
178 p1 ; v.42 bis number of possible codewords
179 p2 ; v.42 bis maximum encodable data string length
180 bytes_per_prim ; bytes per primitive
181 rate ; transmission rate
182 }
183
184
185
186
187
188
189 PRIM RLP_DETACH_REQ 0x80010011
190 {
191 }
192
193
194
195
196
197
198 PRIM RLP_DETACH_CNF 0x80004011
199 {
200 }
201
202
203
204
205
206
207 PRIM RLP_CONNECT_REQ 0x80020011
208 {
209 }
210
211
212
213
214
215
216 PRIM RLP_CONNECT_IND 0x80014011
217 {
218 }
219
220
221
222
223
224
225 PRIM RLP_CONNECT_RES 0x80030011
226 {
227 ack_flg ; acknowledge flag
228 }
229
230
231
232
233
234
235 PRIM RLP_CONNECT_CNF 0x80024011
236 {
237 ack_flg ; acknowledge flag
238 }
239
240
241
242
243
244
245 PRIM RLP_DISC_REQ 0x80040011
246 {
247 }
248
249
250
251
252
253
254 PRIM RLP_DISC_IND 0x80034011
255 {
256 }
257
258
259
260
261
262
263 PRIM RLP_DISC_CNF 0x80044011
264 {
265 }
266
267
268
269
270
271
272 PRIM RLP_RESET_REQ 0x80050011
273 {
274 }
275
276
277
278
279
280
281 PRIM RLP_RESET_IND 0x80054011
282 {
283 }
284
285
286
287
288
289
290 PRIM RLP_RESET_RES 0x80060011
291 {
292 }
293
294
295
296
297
298
299 PRIM RLP_RESET_CNF 0x80064011
300 {
301 }
302
303
304
305
306
307
308 PRIM RLP_READY_IND 0x80074011
309 {
310 }
311
312
313
314
315
316
317 PRIM RLP_DATA_REQ 0x80070011
318 {
319 reserved [4] ; reserved
320 sdu ; service data unit
321 }
322
323
324
325
326
327
328 PRIM RLP_GETDATA_REQ 0x80080011
329 {
330 }
331
332
333
334
335
336
337 PRIM RLP_DATA_IND 0x80084011
338 {
339 data_size ; data size
340 reserved [2] ; reserved
341 sdu ; service data unit
342 }
343
344
345
346
347
348
349 PRIM RLP_UI_REQ 0x80090011
350 {
351 sdu ; service data unit
352 }
353
354
355
356
357
358
359 PRIM RLP_UI_IND 0x80094011
360 {
361 sdu ; service data unit
362 }
363
364
365
366
367
368
369 PRIM RLP_XID_IND 0x800A4011
370 {
371 rlp_vers ; RLP version no.
372 k_ms_iwf ; window size ms->iwf
373 k_iwf_ms ; window size iwf->ms
374 t1 ; acknowledge timer
375 t2 ; reply delay
376 n2 ; retransmission attempts
377 pt ; type of data compression
378 p0 ; v.42 bis data compression request
379 p1 ; v.42 bis number of possible codewords
380 p2 ; v.42 bis maximum encodable data string length
381 }
382
383
384
385
386
387
388 PRIM RLP_ERROR_IND 0x800B4011
389 {
390 cause ; error cause
391 }
392
393
394
395
396
397
398 PRIM RLP_STATISTIC_IND 0x800C4011
399 {
400 error_rate ; error rate
401 }
402
403
404
405
406
407
408 PRIM RLP_REMAP_REQ 0x800A0011
409 {
410 rate ; transmission rate
411 }
412
413
414
415
416
417
418 PRIM RLP_REMAP_CNF 0x800D4011
419 {
420 }
421
422
423
424
425
426
427 PRIM RLP_REMAP_DATA_IND 0x800E4011
428 {
429 data_size ; data size
430 reserved [2] ; reserved
431 sdu ; service data unit
432 }
433
434
435
436
437
438
439 PRIM RLP_REMAP_DATA_RES 0x800B0011
440 {
441 }
442
443
444
445
446
447
448
449
450