Method of allocating orthogonal codes in a code division multiple access mobile radio system using codes of variable length

Abstract: Method of allocating orthogonal codes in a code division multiple access mobile radio system using codes of variable length which are generated in such a way that they can be represented in the form of a tree, said method being characterized in that it includes, in response to a code allocation request (A), a first step (20) of determining, in accordance with the tree capacity used (Cu), corresponding to codes already allocated, and the tree capacity required (Cr), corresponding to the code allocation requested, if such allocation is possible.

Description: The present invention is generally concerned with spread spectrum communication systems, i.e. systems in which spectrum spreading is applied to a sequence of data to be transmitted, on transmission, using a spreading code, and, conversely, despreading is effected on reception, in order to find the original sequence. Spreading an incident data sequence of N symbols, denoted (d1, d2, ..., dN), using a code of length (or spreading factor) Q, denoted c Q = (c1, c2, ..., cQ), produces a sequence of length Q.N, which can be represented as follows: (d1.c1, d1.c2, ..., d1.cQ, d2.c1, d2.c2, ..., dN.cQ) where d1.c1 represents the multiplication of d1 by c1. An alternative representation of the spread sequence of length Q.N is (d1. c Q , d2. c Q , ... dN. c Q ) where d1. c Q represents the product of the symbol d1 by the spreading code c Q . A more general approach to spreading consists in having a different spreading code for each symbol of the input sequence, in which case the resulting spread sequence can be expressed in the form: ( d 1. c (1) / Q , d 2. c (2) / Q ,..., dN . c ( N ) / Q ), c (1) / Q being the spreading code associated with the symbol d1. All the spreading codes preferably have the same length Q so that the resulting spread sequence has the length Q.N. Figure 1 outlines the principle of spreading, Ts designating the basic period (or symbol period) of a non-spread sequence and Tc designating the basic period (or "chip" period) of a spread sequence, Ts and Tc being related by the equation Ts = Q.Tc. In the figure dn and dn+1 correspond to two successive symbols of a non-spread incoming sequence and d'l and d'l+1 correspond to two successive basic symbols (or "chips") of the same spread symbol of the incoming sequence. One benefit of the above systems is enabling a plurality of users to share the same frequency band by allocating different users different codes. One important application is Code Division Multiple Access (CDMA) cellular mobile radio systems. In the above systems, the codes are advantageously orthogonal two by two within a cell to reduce interference between users in that cell (interference between cells can also be reduced by other techniques known per se ). Mathematical tools have been developed for generating orthogonal codes. Walsh functions, which are known per se, generate orthogonal codes of length Q recursively from orthogonal codes of length Q/2, Q/4, etc. To be more precise, two orthogonal codes of length q are obtained from a code of length q/2 by juxtaposing with that code of length q/2, respectively that code, and the complementary code. In systems using orthogonal codes of fixed length Q, the allocation of orthogonal codes can then be a relatively simple operation, consisting in selecting a code that is not being used at the time in question from Q possible orthogonal codes of length Q. There is a need in these cellular mobile radio systems to be able to transmit data at a varying bit rate, in particular when the bit rate of the user itself varies (for example in the case of transmitting multimedia type data), or because, depending on the conditions for propagation of radio signals, a higher or lower degree of redundancy has to be introduced into the data to be transmitted in order to obtain a higher or lower degree of protection against transmission errors. Increasing the bit rate of data to be transmitted by a user, for the same allocated frequency band (i.e. for the same duration Tc) by reducing the length of the code allocated to that user so that they continue to send on only one code is known per se. Figure 2 shows the principle of a technique of this kind, and uses the same type of representation as Figure 1, but for two different bit rates of the incoming sequence, respectively identified by the suffices 1 and 2, in this instance for three successive symbols dn, dn+1 and dn+2 of the incoming sequence, the symbol period corresponding to Ts1 for symbol dn and Ts2 for symbols dn+1 and dn+2 and the code length corresponding to Q1 for symbol dn and Q2 for symbols dn+1 and dn+2. Mobile radio systems using codes of variable length, typically Walsh codes, of length Q, Q/2, Q/4, etc. are therefore known per se. These codes can be represented in the form of a tree, each code giving rise within the tree to two codes of double the length, in the manner outlined above. Figure 3 shows a tree of the above kind in which the codes are denoted c h / Q , where Q represents the length of the code and h represents the order of that code in the set of possible codes of length Q. Accordingly, in Figure 3, the various codes can be denoted as follows: c h =0 / Q =1 = (1) c h =0 / Q =2 = (1,1) c h =1 / Q =2 = (1,-1) c h =0 / Q =4 = (1,1,1,1) c h =1 / Q =4 = (1,1,-1,-1) c h =2 / Q =4 = (1,-1,1,-1) c h =3 / Q =4 = (1,-1,-1,1) c h =0 / Q =8 = (1,1,1,1,1,1,1,1) c h =1 / Q =8 = (1,1,1,1,-1,-1,-1,-1) c h =2 / Q =8 = (1,1,-1,-1,1,1,-1,-1) c h =3 / Q =8 = (1,1,-1,-1,-1,-1,1,1) c h =4 / Q =8 = (1,-1,1,-1,1,-1,1,-1) c h =5 / Q =8 = (1,-1,1,-1,-1,1,-1,1) c h =6 / Q =8 = (1,-1,-1,1,1,-1,-1,1) c h =7 / Q =8 = (1,-1,-1,1,-1,1,1,-1) etc. In a tree of the above kind the orthogonal relationship between codes of different length is preserved only on condition that certain allocation rules are complied with. Accordingly, a given code cannot be allocated at a given time if it is recursively tied to a code that has already been allocated. Allocating orthogonal codes therefore constitutes a relatively more complex operation in systems using codes of variable length than in systems using codes of fixed length. Thus document US 5,751,761 teaches, on each new request for allocation of a code of given length, drawing up a list including codes already allocated at that time and codes tied to them in a recursive manner, the code to be allocated then being a chosen one of the codes not appearing in the list. It is also possible to refer to WO 98 20639 A & EP 0 878 930 A, or EP 0 814 581 A, or Okawa K et al: "Orthogonal multi-spreading factor forward link for coherent DS-CDMA mobile radio" 1997 IEEE 6 th International Conference on Universal Personal Communications Record, San Diego, 12-16 oct.1997, vol.2, n°Conf.-, 12 Oct.1997 (1997-10-12), pages 618-622, XP000777896, Institute of Electrical and Electronics Engineers. A solution of the above kind has the particular drawback that establishing a list of the above kind is a lengthy operation and entails multiple write operations, the number of which increases with the depth of the tree, i.e. with the maximum permitted code length. A particular aim of the present invention is to avoid this drawback. Thus in one aspect the present invention consists in a method of allocating orthogonal codes in a code division multiple access mobile radio system using codes of variable length which are generated in such a way that they can be represented in the form of a tree, said method being essentially characterized in that it includes, in response to a code allocation request, and prior to searching for a code to allocate, a first step of determining, in accordance with the tree capacity used, corresponding to codes already allocated, and the tree capacity required, corresponding to the code allocation requested, if such allocation is possible. In accordance with another feature, if such allocation is found to be possible at the end of said first step said allocation method includes a second step of searching for a code to allocate. In accordance with another feature, if such allocation is found to be possible at the end of said first step and if no code to be allocated has been found at the end of said second step said allocation method includes a third step of rearranging allocated codes within said tree. Accordingly, in contrast to the document cited previously, it is not necessary, on each new allocation request, to draw up a complete list of all the codes that are not available, and in particular to look for all the codes tied in a recursive manner to codes already allocated. All that is required is to see if a code having the required length is available or can be made available by rearranging the codes allocated within the tree; if a code of this kind is available or can be rendered available by rearrangement in this way, the search for the code to be allocated is effected by searching for a code that is not already allocated and is not tied in a recursive manner to a code already allocated. The allocation operation is therefore made less complex and speeded up, which leads to a simplification and an improvement in quality of service. In contrast to systems using fixed length codes, here the concept of capacity takes account of the fact that allocating a given code when it is not only that code that is unavailable thereafter, but also all codes that are tied to it in a recursive manner within said tree; this is what is meant in the present context by the expression "tree capacity". In another aspect the invention therefore consists in a particularly simple and fast method of determining a used or required tree capacity. In accordance with another feature, the tree capacity used or required corresponding to a code of length Q is determined as corresponding to (1/Q)th of the total tree capacity. In accordance with another feature, said first step advantageously includes comparing the sum S of the tree capacity used and of the tree capacity required to a capacity threshold T corresponding to a maximum capacity that can be allocated. In accordance with another feature, said sum S is expressed in the form: where N q is the number of codes already allocated of length q between 1 and Q Max (Q Max being maximum code length permitted) and Q is the length of the code whose allocation is requested (this sum can be limited to a subset of the integers q between 1 and Q Max , for example the q integers of the set that are a power of 2). Accordingly, said first step of determining if a requested allocation is possible can be effected in a particularly simple and fast manner. Said threshold can advantageously be determined in an adaptive manner in accordance with various parameters characteristic of the system concerned. Such parameters can include in particular the measured or estimated level of interference in a cell, the type of call (circuit-switched or packet-switched) in that cell, the required quality of service, etc. It may be possible to choose said threshold in such a manner that the maximum capacity of said tree is never reached, in particular in accordance with features specific to CDMA type cellular systems, in terms of limiting the acceptable number of users (in particular according to the maximum interference level between cells and of power control stability). In accordance with another feature, allocation of certain codes and their sub-trees is prohibited and said threshold is then expressed in the form: T ≤ T Max with: T Max =1- number of prohibited codes of length Q Max Q Max where Q Max is the maximum code length permitted. In accordance with another feature, said second step of searching for a code to allocate of given length includes: a first sub-step of searching for a free path within said tree, from the root of the tree as far as a code having said given length, said free path not including any other code already allocated, and a second sub-step for verifying if no code has already been allocated in the sub-tree whose root is the code found at the end of said first sub-step. A code being identified within said tree by its code length and by the order of that code in the set of different codes having that code length, said first and second sub-steps advantageously include scanning all or part of said tree in accordance with a combination of increasing code lengths and orders varying in accordance with a predetermined law, in particular an increasing law. Said first and second sub-steps advantageously use binary numbering of said orders. The present invention also has for its object an entity for a mobile radiocommunication system, comprising means for performing a method of the above kind. Other aims and features of the present invention will become apparent on reading the following description of one embodiment given with reference to the accompanying drawings, in which: Figure 1 outlines the principle of spectrum spreading, in the case of fixed length spreading codes, Figure 2 outlines the principle of spectrum spreading, in the case of variable length spreading codes, Figure 3 shows how variable length codes are represented in the form of a tree, Figure 4 shows a code allocation method in accordance with the invention, Figure 5 shows an example of codes allocated, before said step of rearranging allocated codes within said tree, Figure 6 shows an example of codes allocated, after said step of rearranging allocated codes within said tree, Figure 7 shows one embodiment of said step of searching for a code to allocate, Figure 8 shows a first example of the code searching step from Figure 7, Figure 9 shows a second example of the code searching step from Figure 7, Figure 10 shows a third example of the code searching step from Figure 7. In accordance with the invention, as shown in Figure 4, in response to a request to allocate a code of given length, denoted A, in a first step 20, whether such allocation is possible or not is determined in accordance with the tree capacity used, denoted Cu, corresponding to codes already allocated, and the tree capacity required, denoted Cr, corresponding to the requested code allocation. If such allocation is possible, a code to be allocated is searched for in a second step 21. If such allocation is not possible, no code can be allocated at the time in question; the allocation request can possibly be repeated later (which is shown in dashed line in the figure). If such allocation is possible and a code is found at the end of said search, then that code constitutes the allocated code. If such allocation is possible and no code to allocate is found at the end of said search, the allocated codes are rearranged within said tree in step 22 before proceeding to a new search for a code to allocate in step 21. Step 20 advantageously corresponds to comparing the sum S of Cu + Cr to a threshold T corresponding to a maximum capacity that can be allocated. The value S is advantageously expressed in the form: where N q is the number of codes already allocated of length q between 1 and Q Max (Q Max being the maximum code length permitted) and Q is the code length in respect of which allocation is requested. For example, if only one code has already been allocated, of length 4, and if allocation of a code of length 8 is requested, we get: S= 1 4 + 1 8 or: S= 3 8 . If the threshold value T is chosen as 1, for example, then because the value S is lower than the threshold value T a code of length Q equal to 8 can be allocated. For example, if two codes of length 4 have already been allocated, and if allocation of a code of length 8 is requested, we get: S= 1 4 + 1 4 + 1 8 or: S= 5 8 . Similarly, if the threshold value is equal to 1, a code of length 8 can be allocated. For example, if three codes of length 4 have already been allocated, and if allocation of a code of length 8 is requested, we get: S= 1 4 + 1 4 + 1 4 + 1 8 or: S= 7 8 . Similarly, if the threshold value is equal to 1, a code of length 8 can be allocated. In contrast, if a code of length 2 and two codes of length 4 have already been allocated, for example, and if allocation of a code of length 8 is requested, we get: S= 1 2 + 1 4 + 1 4 + 1 8 or: S= 9 8 . Because the value S is greater than the threshold value T in this case, the allocation request cannot be satisfied. As previously indicated, the threshold value T could also be chosen less than 1, in particular to allow for features specific to CDMA type cellular systems. Also as previously indicated, the threshold value T could also be adaptive in accordance with various parameters characteristic of the system concerned. Figure 5 shows an example of codes already allocated, before said step of rearranging the allocated codes within said tree is executed. For example, the codes c h=0 / Q=4 and c h=2 / Q=4 have already been allocated, for which reason they are struck through in the figure. In this case, although in response to a request for allocation of a code of length 2 said first step indicates that such allocation is possible, no code can be found at the end of said second step of searching for a code to be allocated. Figure 6 shows an example of codes already allocated after said step of rearranging the allocated codes within said tree has been executed. For example, the codes already allocated are now the codes c h=0 / Q=4 and c h=1 / Q=4, for which reason these codes are struck through in the figure. In this case, in response to a request to allocate a code of length 2, said first step indicates that such allocation is possible and a code can be found at the end of said second step of searching for a code to allocate. An advantageous method of searching for a code of given length to be allocated will now be described with reference to Figure 7. In this method, said search includes the following steps: a first sub-step of searching for a free path within said tree, from the root of the tree to a code having said given length; this free path must not include any other code already allocated, and a second sub-step for verifying if no other code has already been allocated in the sub-tree whose root is the code found at the end of said first sub-step. A code c h / q can be identified within said tree by its length q and its order h among all possible codes of length q . In the following description a binary representation is used for the variable h , thus: h = (b 1 b 2 ...b e ) where q = 2 e , q ≤ Q Max and < E Max is such that Q Max = 2 Emax . Q (with Q = 2 E ) is the code length to be allocated. As shown in Figure 7, a search of the above kind advantageously includes the following steps: Step 1 of initializing variables e (or q ) and b 1 : e = 1 (i.e. q = 2), and b 1 = 0. Step 2 during which it is determined if the code c (b 1 b 2 -b c ) / q is used. If the code c (b 1 b 2 -b c ) / q is found not to have been used at the end of step 2: Step 3 during which it is determined if e is less than E. If e is found to be less than E at the end of step 3: Step 4 during which e is incremented by 1 and the value b e is set to 0. Return to step 2. If e is not less than E at the end of step 3 (i.e. if e = E) : Initialization step 8: e = E + 1 and [b E+1 b E+2 ...b e ] = 0 Step 9 during which it is determined if c (b 1 b 2 -b c ) / q has been used. If c (b 1 b 2 -b c ) / q is found not to have been used at the end of step 9: Step 10 during which it is determined if e<E Max If e is less than E Max , at the end of step 10: Step 11 during which it is determined if [b E+1 b E+2 ...b e ] is less than 2 e-E -1 If [b E+1 b E+2 ...b e ] is less than 2 e-E -1, step 11b during which: [b E+1 b E+2 ...b e ] = [b E+1 b E+2 ...b e ] + 1 If [b E+1 b E+2 ...b e ] is found to be equal to 2 e-E -1, step 11a during which e is incremented by 1 and [b E+1 b E+2 ...b e ] is reset to 0. Return to step 9. If e is not less than E Max , (i.e. if e = E Max ), at the end of step 10: an available code has been found (step 12). If code c (b 1 b 2 -b c ) / q is found to have been used at the end of step 9: Step 13 consisting in determining if b i = 1 ∀ = 1, ..., E. If ∃ i ∈ {1, ..., E} such that b 1 ≠ 1 at the end of step 13: Step 14 consisting in (b 1 b 2 ... b E ) = (b 1 b 2 ... b E ) + (0 ... 01) then setting e to the maximum value of i for which b i ≠ 0 (with i between 1 and E). Return to step 9. If b i = 1 ∀ = 1, ..., E at the end of step 13: Rearrangement of codes is necessary within the tree (step 15). If code (b 1 b 2 -b c ) / q is found to have been used at the end of step 2: Step 5 during which it is determined if b i = 1 V = 1, ..., e. If b 1 ≠ 1 ∀i = 1, ..., e at the end of step 5: step 6 during which: (b 1 b 2 ... b e ) = (b 1 b 2 ... b e ) + (0 ... 01) then e is set to the maximum value of i for which b 1 ≠ 0 (with i between 1 and e). Return to step 2. If ∃ i ∈ 1, ..., E} such that b i ≠ 1 at the end of step 5: Rearrangement of codes within said tree is necessary (step 7). Thus steps 1 to 6 constitute a first sub-step of searching for a free path within said tree, from the root of the tree to a code having said given length. Steps 8 to 14 constitute said second sub-step for verifying if no other code has already been allocated in the sub-tree whose root is the code found at the end of said first sub-step. Figure 8 shows a first embodiment of a method of search for a code to allocate of the above kind. This example corresponds to the situation in which a code of length 4 has already been allocated, for example the code c h =0 / Q =4 (for which reason this code is struck through in the figure) and a code of length Q equal to 8 is to be allocated. In this case the codes envisaged successively during said free path search are as follows: c h=0 / Q=2 (not used), c h=0 / Q=4 (used), c h=1 / Q=4 (not used), c h=2 / Q=8 (not used). In Figure 8 thicker lines are used to show the free path found within said tree, from the root c h =0 / Q =1 and in this instance as far as the code c h =2 / Q =8, this free path here passing through the codes c h =0 / Q =2 and c h =1 / Q =4 Figure 8 also shows in thicker line the sub-tree whose root is the code c h =2 / Q =8 and formed of the codes c h=4 / Q=16 and c h=5 / Q=16. In this instance, no code having already been allocated in this sub-tree, the code c h=2 / Q=8 can be allocated. Figure 9 shows a second example. In this second example the codes c h=0 / Q=4 and c h=1 / Q=4 have already been allocated (for which reason these codes are struck through in the figure) and the allocation of a code of length 8 has been requested. In this case the codes that are successively considered during said free path search are as follows: c h=0 / Q=2 (not used) , c h=0 / Q=4 (used) , c h=1 / Q=4 (used) , c h=1 / Q=2 (not used), c h=2 / Q=4 (not used), c h=4 / Q=8 (not used) . Figure 9 also shows in thicker line the free path found within said tree, from the root c h=0 / Q=1 and in this instance as far as the code c h=4 / Q=8, this tree path here passing through the codes c h=1 / Q=2 and c h=2 / Q=4. Figure 9 also shows in thicker line the sub-tree whose root is the code c h=4 / Q=8 and formed of the codes c h=8 / Q=16 and c h=9 / Q=16. In this instance, no code having been already allocated in this sub-tree, the code c h=4 / Q=8 can be allocated. Figure 10 shows a third example. In this third example the codes c h=0 / Q=4, c h=1 / Q=4 and c h=2 / Q=4 have already been allocated (for which reason these codes are struck through in the figure) and the allocation of a code of length 8 has been requested. In this case the various codes that are successively considered during said free path search are as follows: c h=0 / Q=2 (not used) , c h=0 / Q=4 (used) , c h=1 / Q=4 (used) , c h=1 / Q=2 (not used), c h=2 / Q=4 (used), c h=3 / Q=4 (not used), c h=6 / Q=8 (not used) . Figure 10 also shows in thicker line the free path found within said tree, from the root c h=0 / Q=1 and in this instance as far as the code c h=6 / Q=8, this free path passing here through the codes c h=1 / Q=2 and c h=3 / Q=4. Figure 10 also shows in thicker line the sub-tree whose root is the code c h=6 / Q=8 and formed of the codes c h=12 / Q=16 et c h=13 / Q=16. In this instance, no code having already been allocated in this sub-tree, the code c h=6 / Q=8 can be allocated. Note also that the binary numbering scheme used to identify the codes within the tree by their order h enables methodical scanning of the tree during said free path search, using a combination of increasing code lengths and increasing orders (although said orders could be considered in accordance with a law other than an increasing law, for example a decreasing law). Apart from the fact that this algorithm can therefore be implemented in a relatively simple manner, this also enables methodical allocation of the codes, which avoids problems of excessively fast saturation of capacity that could result from allocation effected in a more random manner. Another advantage is that using the criterion S (i.e. the first step) enables a priori determination if it is possible to find a code of required length. If the response to the test is in the negative, it is possible to reject the request without having to scan the tree at all. Otherwise scanning the tree finds an available code, if necessary after rearrangement if the first pass is unsuccessful. The approach adopted in the document previously mentioned (US Patent 5,751,761) did not satisfy this requirement: in the absence of any availability criterion, the search for non-available codes indicated an impossibility, but it was impossible to know if rearrangement would free up a code, whence a longer procedure, with the risk of ultimate failure. It is also possible to prohibit the allocation of certain codes and their sub-trees, for example half of the codes for which b i = 1, using the above notation. In this case the threshold T used must be adapted accordingly: its value is at most that of the maximal capacity that can be allocated, with the new constraint T Max = 1 - number of prohibited codes of length Q Max Q Max ; and T can be smaller than T max .

Claims: Method of allocating orthogonal codes in a code division multiple access mobile radio system using codes of variable length which are generated in such a way that they can be represented in the form of a tree, said method being characterized in that it includes, in response to a code allocation request (A), and prior to searching for a code to allocate, a first step (20) of determining if such allocation is possible, in accordance with the tree capacity used (Cu), corresponding to codes already allocated, and the tree capacity required (Cr), corresponding to the code allocation requested. Method according to claim 1, characterized in that , if such allocation is found to be possible at the end of said first step, it includes a second step (21) of searching for a code to allocate. Method according to claim 2, characterized in that , if such allocation is found to be possible at the end of said first step and if no code to be allocated has been found at the end of said second step, it includes a third step (22) of rearranging allocated codes within said tree. Method according to any one of claims 1 to 3, characterized in that the tree capacity used or required corresponding to a code of length Q is determined as corresponding to (1/Q)th of the total tree capacity. Method according to any one of claims 1 to 4, characterized in that said first step (20) includes comparing the sum S of the tree capacity used Cu and of the tree capacity required Cr to a capacity threshold T corresponding to a maximum capacity that can be allocated. Method according to claims 4 and 5, characterized in that said sum S is expressed in the form: where N q is the number of codes already allocated of length q between 1 and Q Max (Q Max being maximum code length permitted) and Q is the length of the code whose allocation is requested. Method according to any one of claims 5 to 6, characterized in that said threshold (T) is made adaptive in accordance with various parameters characteristic of said system. Method according to any one of claims 5 to 7, characterized in that said threshold (T) is chosen so that the maximum capacity of said tree is never reached. Method according to any one of claims 5 to 7, characterized in that the allocation of certain codes and their sub-trees is prohibited and in that said threshold (T) is then expressed in the form: T ≤ T Max with: T Max = 1 - number of prohibited codes of length Q Max Q Max where Q Max is the maximum code length permitted. Method according to any one of claims 2 to 9, characterized in that said second step of searching for a code of given length to allocate includes: a first sub-step (1 to 6) of searching for a free path within said tree, from the root of the tree as far as a code having said given length, said free path not including any other code already allocated, and a second sub-step (8 to 14) for verifying if no code has already been allocated in the sub-tree whose root is the code found at the end of said first sub-step. Method according to claim 10, characterized in that , a code c h / Q being identified within said tree by its code length Q and by the order h of that code in the set of different codes having that code length, said first and second sub-steps include scanning all or part of said tree in accordance with a combination of increasing code lengths Q and orders h varying in accordance with a predetermined law, in particular an increasing law. Method according to claim 10 and 11, characterized in that said first and second sub-steps use binary numbering of said orders h . An entity for a mobile radiocommunication system, comprising means for carrying out the steps of the method according to any of claims 1 to 12.

Inventors: GOURGUE FREDERIC, ROOSEN FABIENNE, GOURGUE, FREDERIC, ROOSEN, FABIENNE, Gourgue, Frédéric
Applicants: CIT ALCATEL, ALCATEL
Application year: 1999
Main classification: H04J11
IPC codes: H04J11, H04B1, H03M7, H04B7