Difference between revisions of "Aufgaben:Exercise 4.6: OVSF Codes"

From LNTwww
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Beispiele von Nachrichtensystemen/Nachrichtentechnische Aspekte von UMTS
+
{{quiz-Header|Buchseite=Examples_of_Communication_Systems/Telecommunications_Aspects_of_UMTS
  
  
 
}}
 
}}
  
[[File:P_ID1975__Mod_Z_5_4.png|right|frame|Baumstruktur zur Konstruktion <br>eines OVSF–Codes]]
+
[[File:EN_Bei_A_4_6a.png|right|frame|Tree structure for the construction <br>of an OVSF code]]
Die Spreizcodes für UMTS sollen
+
The spreading codes for UMTS should
*alle zueinander orthogonal sein, um gegenseitige Beeinflussung der Teilnehmer zu vermeiden,
+
*all be orthogonal to each other to avoid mutual interference between subscribers,
*möglichst flexibel sein, um unterschiedliche Spreizfaktoren&nbsp; $J$&nbsp; zu realisieren.
+
*be as flexible as possible in order to realize different spreading factors&nbsp; $J$&nbsp;.
  
  
Ein Beispiel hierfür sind die so genannten&nbsp; '''Codes mit variablem Spreizfaktor'''&nbsp; (englisch:&nbsp; ''Orthogonal Variable Spreading Factor'',&nbsp; '''OVSF'''), die Spreizcodes der Längen von&nbsp; $J = 4$&nbsp; bis&nbsp; $J = 512$&nbsp; bereitstellen. Diese können, wie in der Grafik zu sehen ist, mit Hilfe eines Codebaums erstellt werden. Dabei entstehen bei jeder Verzweigung aus einem Code&nbsp; $\mathcal{C}$&nbsp; zwei neue Codes
+
An example of this are the so-called&nbsp; '''Orthogonal Variable Spreading Factor'''&nbsp; ('''OVSF''') codes, which provide spreading codes of lengths from&nbsp; $J = 4$&nbsp; to&nbsp; $J = 512$&nbsp;. These can be created using a code tree, as shown in the diagram. Thereby, at each branch from one code&nbsp; $\mathcal{C}$&nbsp; two new codes are created.
*$(+\mathcal{C} \ +\hspace{-0.05cm}\mathcal{C})$,
+
*$(+\mathcal{C} \ +\hspace{-0.05cm}\mathcal{C})$,
*$(+\mathcal{C}\ -\hspace{-0.05cm}\mathcal{C})$.
+
*$(+\mathcal{C}\ -\hspace{-0.05cm}\mathcal{C})$.
  
  
Die Grafik verdeutlicht das hier angegebene Prinzip am Beispiel&nbsp; $J = 4$.  
+
The diagram illustrates the principle given here by the example&nbsp; $J = 4$.  
  
Nummeriert man die Spreizfolgen von&nbsp; $0$&nbsp; bis&nbsp; $J –1$&nbsp; durch, so ergeben sich hier die Spreizfolgen
+
If we number the spreading sequences from&nbsp; $0$&nbsp; to&nbsp; $J -1$&nbsp; we get here the spreading sequences
 
:$$ \langle c_\nu^{(0)}\rangle \ = \ {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.15cm} {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.05cm},\hspace{0.3cm} \langle c_\nu^{(1)}\rangle = {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.15cm} {-\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.05cm},$$  
 
:$$ \langle c_\nu^{(0)}\rangle \ = \ {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.15cm} {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.05cm},\hspace{0.3cm} \langle c_\nu^{(1)}\rangle = {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.15cm} {-\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.05cm},$$  
 
:$$\langle c_\nu^{(2)}\rangle \ = \ {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.15cm} {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.05cm},\hspace{0.3cm} \langle c_\nu^{(3)}\rangle = {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.15cm} {-\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.05cm}.$$
 
:$$\langle c_\nu^{(2)}\rangle \ = \ {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.15cm} {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.05cm},\hspace{0.3cm} \langle c_\nu^{(3)}\rangle = {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.15cm} {-\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.05cm}.$$
Nach dieser Nomenklatur gibt es für den Spreizfaktor&nbsp; $J = 8$&nbsp; die Spreizfolgen&nbsp; $\langle c_{\nu}^{(0)} \rangle, \ \text{...} \ ,\langle c_{\nu}^{(7)} \rangle$.
+
According to this nomenclature, for the spreading factor&nbsp; $J = 8$&nbsp; there are the spreading sequences&nbsp; $\langle c_{\nu}^{(0)} \rangle, \ \text{...} \ ,\langle c_{\nu}^{(7)} \rangle$.
  
Anzumerken ist, dass kein Vorgänger und Nachfolger eines Codes von anderen Teilnehmern benutzt werden darf.  
+
Note that no predecessor and successor of a code may be used by other participants.  
*Im Beispiel könnten also vier Spreizcodes mit dem Spreizfaktor&nbsp; $J = 4$&nbsp; verwendet werden, oder
+
*So, in the example, four spreading codes with spreading factor&nbsp; $J = 4$&nbsp; could be used, or.
*die drei gelb hinterlegten Codes – einmal mit&nbsp; $J = 2$&nbsp; und zweimal mit&nbsp; $J = 4$.
+
*the three codes highlighted in yellow - once with&nbsp; $J = 2$&nbsp; and twice with&nbsp; $J = 4$.
  
  
Line 33: Line 33:
  
  
''Hinweise:''
+
Hints:  
*Die Aufgabegehört zum Kapitel&nbsp; [[Examples_of_Communication_Systems/Nachrichtentechnische_Aspekte_von_UMTS|Nachrichtentechnische Aspekte von UMTS]].
+
*This exercise belongs to the chapter&nbsp; [[Examples_of_Communication_Systems/Telecommunications_Aspects_of_UMTS|"Telecommunications Aspects of UMTS"]].
*Bezug genommen wird insbesondere auf die Seite&nbsp; [[Examples_of_Communication_Systems/Nachrichtentechnische_Aspekte_von_UMTS#Spreizcodes_und_Verw.C3.BCrfelung_bei_UMTS|Spreizcodes und Verwürfelung bei UMTS]].
+
*Reference is made in particular to the page&nbsp; [[Examples_of_Communication_Systems/Telecommunications_Aspects_of_UMTS#Spreading_codes_and_scrambling_with_UMTS|"Spreading codes and scrambling with UMTS"]].
 
   
 
   
  
Line 41: Line 41:
  
  
===Fragebogen===
+
===Questions===
  
 
<quiz display=simple>
 
<quiz display=simple>
  
{Konstruieren Sie das Baumdiagramm für&nbsp; $J = 8$. Welche OVSF–Codes ergeben sich daraus?
+
{Construct the tree diagram for&nbsp; $J = 8$. What are the resulting OVSF codes?
 
|type="[]"}
 
|type="[]"}
+ $\langle c_{\nu}^{(1)} \rangle = +1 +1 +1 +1 –1 –1 –1 –1$,
+
+ $\langle c_{\nu}^{(1)} \rangle = +1 +1 +1 -1 -1 -1$,
- $\langle c_{\nu}^{(3)} \rangle   = +1 +1 –1 –1 +1 +1 –1 –1$,
+
- $\langle c_{\nu}^{(3)} \rangle = +1 +1 -1 +1 -1 -1$,
+ $\langle c_{\nu}^{(5)} \rangle = +1 –1 +1 –1 –1 +1 –1 +1$,
+
+ $\langle c_{\nu}^{(5)} \rangle = +1 -1 +1 -1 +1 +1$,
+ $\langle c_{\nu}^{(7)} \rangle = +1 –1 –1 +1 –1 +1 +1 –1$.
+
+ $\langle c_{\nu}^{(7)} \rangle = +1 -1 -1 +1 +1 -1$.
  
{Wieviele UMTS–Teilnehmer können mit&nbsp; $J = 8$&nbsp; maximal bedient werden?
+
{How many UMTS subscribers can be served with&nbsp; $J = 8$&nbsp; maximum?
 
|type="{}"}
 
|type="{}"}
 
$K_{\rm max} \ = \ ${ 8 3% }
 
$K_{\rm max} \ = \ ${ 8 3% }
  
{Wieviele Teilnehmer können versorgt werden, wenn drei von ihnen einen Spreizcode mit&nbsp; $J = 4$&nbsp; verwenden sollen?
+
{How many subscribers can be served if three of them are to use a spreading code with&nbsp; $J = 4$&nbsp;?
 
|type="{}"}
 
|type="{}"}
 
$K \ = \ $ { 5 3% }
 
$K \ = \ $ { 5 3% }
  
{Gehen Sie von einer Baumstruktur für&nbsp; $J = 32$&nbsp; aus. Ist die folgende Zuweisung machbar: <br>Zweimal&nbsp; $J = 4$, einmal&nbsp; $J = 8$, zweimal&nbsp; $J = 16$,&nbsp; achtmal $J = 32$&nbsp;?
+
{Assume a tree structure for&nbsp; $J = 32$&nbsp;. Is the following assignment feasible: <br>Twice&nbsp; $J = 4$, once&nbsp; $J = 8$, twice&nbsp; $J = 16$,&nbsp; eight times $J = 32$&nbsp;?
 
|type="()"}
 
|type="()"}
+ Ja.
+
+ Yes.
- Nein.
+
- No.
  
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
  
[[File:P_ID1979__Bei_A_4_6a.png|right|frame|OVSF–Baumstruktur für&nbsp; $J = 8$]]
+
[[File:P_ID1979__Bei_A_4_6a.png|right|frame|OVSF tree structure for&nbsp; $J = 8$]]
'''(1)'''&nbsp; Die Grafik zeigt die OVSF–Baumstruktur für&nbsp; $J = 8$&nbsp; Nutzer.  
+
'''(1)'''&nbsp; The graph shows the OVSF tree structure for&nbsp; $J = 8$&nbsp; user.  
*Daraus ist ersichtlich, dass die <u>Lösungsvorschläge 1, 3 und 4</u> zutreffen, nicht jedoch der zweite.
+
*From this it can be seen that <u>proposed solutions 1, 3, and 4</u> are true, but not the second one.
  
  
  
'''(2)'''&nbsp; Wird jedem Nutzer ein Spreizcode mit&nbsp; $J = 8$&nbsp; zugewiesen, so können&nbsp; $\underline{K_{\rm max} = 8}$&nbsp; Teilnehmer versorgt werden.
+
'''(2)'''&nbsp; If each user is assigned a spreading code with&nbsp; $J = 8$&nbsp; then&nbsp; $\underline{K_{\rm max} = 8}$&nbsp; subscribers can be served.
  
  
  
'''(3)'''&nbsp; Wenn drei Teilnehmer mit&nbsp; $J = 4$&nbsp; versorgt werden, können nur mehr zwei Teilnehmer durch eine Spreizfolge mit&nbsp; $J = 8$&nbsp; bedient werden (siehe beispielhafte gelbe Hinterlegung in obiger Grafik) &nbsp; &rArr; &nbsp; $\underline{K = 5}$.
+
'''(3)'''&nbsp; If three subscribers are served with&nbsp; $J = 4$&nbsp; only two subscribers can be served by a spreading sequence with&nbsp; $J = 8$&nbsp; (see exemplary yellow background in above diagram) &nbsp; &rArr; &nbsp; $\underline{K = 5}$.
  
  
  
'''(4)'''&nbsp; Wir bezeichnen mit
+
'''(4)'''&nbsp; We denote by.
*$K_{4} = 2$&nbsp; die Anzahl der Spreizfolgen mit&nbsp; $J = 4$,
+
*$K_{4} = 2$&nbsp; the number of spreading sequences with&nbsp; $J = 4$,
*$K_{8} = 1$&nbsp; die Anzahl der Spreizfolgen mit&nbsp; $J = 8$,
+
*$K_{8} = 1$&nbsp; the number of spreading sequences with&nbsp; $J = 8$,
*$K_{16} = 2$&nbsp; die Anzahl der Spreizfolgen mit&nbsp; $J = 16$,
+
*$K_{16} = 2$&nbsp; the number of spreading sequences with&nbsp; $J = 16$,
*$K_{32} = 8$&nbsp; die Anzahl der Spreizfolgen mit&nbsp; $J = 32$.
+
*$K_{32} = 8$&nbsp; the number of spreading sequences with&nbsp; $J = 32$.
  
  
Dann muss folgende Bedingung erfüllt sein:
+
Then the following condition must be satisfied:
 
:$$ K_4 \cdot \frac{32}{4} + K_8 \cdot \frac{32}{8} +K_{16} \cdot \frac{32}{16} +K_{32} \cdot \frac{32}{32} \le 32 \hspace{0.3cm}  
 
:$$ K_4 \cdot \frac{32}{4} + K_8 \cdot \frac{32}{8} +K_{16} \cdot \frac{32}{16} +K_{32} \cdot \frac{32}{32} \le 32 \hspace{0.3cm}  
\Rightarrow \hspace{0.3cm} K_4 \cdot8 + K_8 \cdot 4 +K_{16} \cdot 2 +K_{32} \cdot1 \le 32 \hspace{0.05cm}.$$
+
\Rightarrow \hspace{0.3cm} K_4 \cdot8 + K_8 \cdot 4 +K_{16} \cdot2 +K_{32} \cdot1 \le 32 \hspace{0.05cm}.$$
*Wegen&nbsp; $2 \cdot 8 + 1 \cdot 4 + 2 \cdot 2 + 8 = 32$&nbsp; ist die gewünschte Belegung gerade noch erlaubt &nbsp; &rArr; &nbsp; <u>Antwort JA</u>.  
+
*Because&nbsp; $2 \cdot 8 + 1 \cdot 4 + 2 \cdot 2 + 8 = 32$&nbsp; the desired allocation is just allowed &nbsp; &rArr; &nbsp; <u>Answer YES</u>.  
*Die zweimalige Bereitstellung des Spreizgrads&nbsp; $J = 4$&nbsp; blockiert zum Beispiel die obere Hälfte des Baums, nach der Versorgung der einen Spreizung mit&nbsp; $J = 8$, bleiben auf der&nbsp; $J = 8$–Ebene noch drei der acht Äste zu belegen, usw. und so fort.
+
*Providing the degree of spread twice&nbsp; $J = 4$&nbsp; blocks, for example, the top half of the tree, after providing one spread with&nbsp; $J = 8$, three of the eight branches remain to be occupied at the&nbsp; $J = 8$ level, and so on.
  
 
{{ML-Fuß}}
 
{{ML-Fuß}}
Line 101: Line 101:
  
  
[[Category:Examples of Communication Systems: Exercises|^4.3 Nachrichtentechnische Aspekte
+
[[Category:Examples of Communication Systems: Exercises|^4.3 Telecommunications Aspects
 
^]]
 
^]]

Latest revision as of 19:45, 2 March 2023

Tree structure for the construction
of an OVSF code

The spreading codes for UMTS should

  • all be orthogonal to each other to avoid mutual interference between subscribers,
  • be as flexible as possible in order to realize different spreading factors  $J$ .


An example of this are the so-called  Orthogonal Variable Spreading Factor  (OVSF) codes, which provide spreading codes of lengths from  $J = 4$  to  $J = 512$ . These can be created using a code tree, as shown in the diagram. Thereby, at each branch from one code  $\mathcal{C}$  two new codes are created.

  • $(+\mathcal{C} \ +\hspace{-0.05cm}\mathcal{C})$,
  • $(+\mathcal{C}\ -\hspace{-0.05cm}\mathcal{C})$.


The diagram illustrates the principle given here by the example  $J = 4$.

If we number the spreading sequences from  $0$  to  $J -1$  we get here the spreading sequences

$$ \langle c_\nu^{(0)}\rangle \ = \ {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.15cm} {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.05cm},\hspace{0.3cm} \langle c_\nu^{(1)}\rangle = {+\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.15cm} {-\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.05cm},$$
$$\langle c_\nu^{(2)}\rangle \ = \ {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.15cm} {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.05cm},\hspace{0.3cm} \langle c_\nu^{(3)}\rangle = {+\hspace{-0.05cm}1}\hspace{0.15cm} {-\hspace{-0.05cm}1} \hspace{0.15cm} {-\hspace{-0.05cm}1}\hspace{0.15cm} {+\hspace{-0.05cm}1} \hspace{0.05cm}.$$

According to this nomenclature, for the spreading factor  $J = 8$  there are the spreading sequences  $\langle c_{\nu}^{(0)} \rangle, \ \text{...} \ ,\langle c_{\nu}^{(7)} \rangle$.

Note that no predecessor and successor of a code may be used by other participants.

  • So, in the example, four spreading codes with spreading factor  $J = 4$  could be used, or.
  • the three codes highlighted in yellow - once with  $J = 2$  and twice with  $J = 4$.




Hints:



Questions

1

Construct the tree diagram for  $J = 8$. What are the resulting OVSF codes?

$\langle c_{\nu}^{(1)} \rangle = +1 +1 +1 -1 -1 -1$,
$\langle c_{\nu}^{(3)} \rangle = +1 +1 -1 +1 -1 -1$,
$\langle c_{\nu}^{(5)} \rangle = +1 -1 +1 -1 +1 +1$,
$\langle c_{\nu}^{(7)} \rangle = +1 -1 -1 +1 +1 -1$.

2

How many UMTS subscribers can be served with  $J = 8$  maximum?

$K_{\rm max} \ = \ $

3

How many subscribers can be served if three of them are to use a spreading code with  $J = 4$ ?

$K \ = \ $

4

Assume a tree structure for  $J = 32$ . Is the following assignment feasible:
Twice  $J = 4$, once  $J = 8$, twice  $J = 16$,  eight times $J = 32$ ?

Yes.
No.


Solution

OVSF tree structure for  $J = 8$

(1)  The graph shows the OVSF tree structure for  $J = 8$  user.

  • From this it can be seen that proposed solutions 1, 3, and 4 are true, but not the second one.


(2)  If each user is assigned a spreading code with  $J = 8$  then  $\underline{K_{\rm max} = 8}$  subscribers can be served.


(3)  If three subscribers are served with  $J = 4$  only two subscribers can be served by a spreading sequence with  $J = 8$  (see exemplary yellow background in above diagram)   ⇒   $\underline{K = 5}$.


(4)  We denote by.

  • $K_{4} = 2$  the number of spreading sequences with  $J = 4$,
  • $K_{8} = 1$  the number of spreading sequences with  $J = 8$,
  • $K_{16} = 2$  the number of spreading sequences with  $J = 16$,
  • $K_{32} = 8$  the number of spreading sequences with  $J = 32$.


Then the following condition must be satisfied:

$$ K_4 \cdot \frac{32}{4} + K_8 \cdot \frac{32}{8} +K_{16} \cdot \frac{32}{16} +K_{32} \cdot \frac{32}{32} \le 32 \hspace{0.3cm} \Rightarrow \hspace{0.3cm} K_4 \cdot8 + K_8 \cdot 4 +K_{16} \cdot2 +K_{32} \cdot1 \le 32 \hspace{0.05cm}.$$
  • Because  $2 \cdot 8 + 1 \cdot 4 + 2 \cdot 2 + 8 = 32$  the desired allocation is just allowed   ⇒   Answer YES.
  • Providing the degree of spread twice  $J = 4$  blocks, for example, the top half of the tree, after providing one spread with  $J = 8$, three of the eight branches remain to be occupied at the  $J = 8$ level, and so on.