J.6 A detailed example

3GPP44.018GSM/EDGE Radio Resource Control (RRC) protocolMobile radio interface Layer 3 specificationRelease 17TS

Let us take the following subset of 16 elements of the set [0..1023] : [13, 71, 122, 191, 251, 321, 402, 476, 521, 575, 635, 701, 765, 831, 906, 981]

Range 1024 format will be used. Frequency 0 is not in the set, thus field F0 is set to 0. The set is renumbered, so as to give a subset of 0..1022 : [12, 70, 121, 190, 250, 320, 401, 475, 520, 574, 634, 700, 764, 830, 905, 980].

For the first node (corresponding to W(1)), the value 121 satisfies the requirements. The opposite value is 121 + 511 = 632. There are 8 values between 633 and 120 (namely the left-hand subset 634, 700, 764, 830, 905, 980, 12 and 70), and 7 values between 122 and 632 (namely the right-hand subset 190, 250, 320, 401, 475, 520 and 574).

The encoded value W(1) is 121 + 1, i.e. 122.

The second node (corresponding to W(2)) is the left-hand child of the first node. The corresponding subtree has to encode for the left-hand subset, renumbered beginning at 633. This gives the following 8 element subset of 0..510, ordered as resulting from the example of algorithm: [402, 460, 1, 67, 131, 197, 272, 347]. Out of these values, 1 splits the set in 4 and 3, and the encoded value W(2) is 2.

Similarly, the third node (W(3)) is the right-hand child of the first node and then the corresponding subtree encodes for the right-hand subset, renumbered starting at 122. This gives the following set of 0..510: [68, 128, 198, 279, 353, 398, 452]. Out of these values, 68 splits the set into 3 and 3, and the encoded value W(3) is 69.

The same method is applied for all nodes, giving the following encoded values per node:

Node

Value

1

122

2

2

3

69

4

204

5

75

6

66

7

60

8

70

9

83

10

3

11

24

12

67

13

54

14

64

15

70

16

9

The encoding then consists in formatting, in that order:

– 122 on 10 bits, then 2 and 69 on 9 bits each, then 204, 75, 66 and 60 on 8 bits each, then 70, 83, 3, 24, 67, 54, 64 and 70 on 7 bits each, and finally 9 on 6 bits.

Conversely the decoding can be done easily. For instance for node 2, the original value is:

– (122 – 512 + 2) smod 1023 = 635.

For node 14, we have as original value:

– (122 – 512 + (2 + (66 + 64)smod 255)smod 511)smod 1023 = 765.

Annex K (informative):
Default Codings of Information Elements

This annex is informative.

The information in this annex does NOT define the value of any IEI for any particular message. This annex exists to aid the design of new messages, in particular with regard to backward compatibility with phase 1 mobile stations.