Difference between revisions of "Channel Coding/The Basics of Product Codes"
Line 175: | Line 175: | ||
*The left graph shows the influence of the iterations. At the transition from I=1 to I=2 one gains ≈2 dB (at BER=10−5) and with I=10 another dB. Further iterations are not worthwhile.<br> | *The left graph shows the influence of the iterations. At the transition from I=1 to I=2 one gains ≈2 dB (at BER=10−5) and with I=10 another dB. Further iterations are not worthwhile.<br> | ||
− | *All bounds mentioned in the chapter [[Channel_Coding/Bounds_for_Block_Error_Probability# | + | *All bounds mentioned in the chapter [[Channel_Coding/Bounds_for_Block_Error_Probability#Union_Bound_of_the_block_error_probability| "Bounds for the Block Error Probability"]] can be applied here as well, e.g. the "truncated union bound" (dashed curve in the right graph): |
::<math>{\rm Pr(Truncated\hspace{0.15cm}Union\hspace{0.15cm} Bound)}= W_{d_{\rm min}} \cdot {\rm Q} \left ( \sqrt{d_{\rm min} \cdot {2R \cdot E_{\rm B}}/{N_0}} \right ) | ::<math>{\rm Pr(Truncated\hspace{0.15cm}Union\hspace{0.15cm} Bound)}= W_{d_{\rm min}} \cdot {\rm Q} \left ( \sqrt{d_{\rm min} \cdot {2R \cdot E_{\rm B}}/{N_0}} \right ) |
Revision as of 17:15, 6 December 2022
Contents
Basic structure of a product code
The graphic shows the principle structure of »product codes«, which were already introduced in 1954 by Peter Elias.
- The two-dimensional product code C=C1×C2 shown here is based on the two linear and binary block codes with parameters (n1, k1) and (n2, k2) respectively.
- The code word length is n=n1⋅n2.
The n encoded bits can be grouped as follows:
- The k=k1⋅k2 information bits are arranged in the k2×k1 matrix U.
- The code rate is equal to the product of the code rates of the base codes:
- R=k/n=(k1/n1)⋅(k2/n2)=R1⋅R2.
- The upper right matrix P(1) with dimension k2×m1 contains the parity bits with respect to the code C1.
- In each of the k2 rows, m1=n1−k1 check bits are added to the k1 information bits as described in an earlier chapter using the example of "Hamming codes" .
- The lower left matrix P(2) of dimension m2×k1 contains the check bits for the second component code C2. Here the encoding (and also the decoding) is done line by line: In each of the k1 columns, the k2 information bits are still supplemented by m2=n2−k2 check bits.
- The m2×m1–matrix P(12) on the bottom right is called "checks–on–checks". Here the two previously generated parity matrices P(1) and P(2) are linked according to the parity-check equations.
Conclusions: All product codes according to the above graph have the following properties:
- For linear component codes C1 and C2 the product code C=C1×C2 is also linear.
- Each row of C returns a code word of C1 and each column returns a code word of C2.
- The sum of two rows again gives a code word of C1 due to linearity.
- Also, the sum of two columns gives a valid code word of C2.
- Each product code also includes the "zero word" 0_ (a vector of n "zeros").
- The minimum distance of C is dmin=d1⋅d2, where di indicates the minimum distance of Ci
Iterative syndrome decoding of product codes
We now consider the case where a product code with matrix X is transmitted over a binary channel.
- Let the received matrix Y=X+E, where E denotes the "error matrix".
- Let all elements of the matrices X, E and Y be binary, that is 0 or 1.
For the decoding of the two component codes the syndrome decoding according to the chapter "Decoding linear block codes" is suitable.
In the two-dimensional case this means:
- One first decodes the n2 rows of the received matrix Y, based on the parity-check matrix H1 of the component code C1.
Syndrome decoding is one way to do this. - For this one forms in each case the so-called "syndrome" s_=y_⋅HT1, where the vector y_ of length n1 indicates the current row of Y and
"T" stands for "transposed". - Correspondingly to the calculated s_μ (with 0≤μ<2n1−k1) one finds in a prepared syndrome table the corresponding probable error pattern e_=e_μ.
- If there are only a few errors within the row, then y_+e_ matches the sent row vector x_.
- However, if too many errors have occurred, then incorrect corrections will occur.
- Afterwards one decodes the n1 columns of the (corrected) received matrix Y′, this time based on the (transposed) parity-check matrix HT2 of the component code C2.
- For this, one forms the syndrome s_=y_′⋅HT2, where the vector y_′ of length n2 denotes the considered column of Y′ .
- From a second syndrome table (valid for code C2) we find for the computed s_μ (with 0≤μ<2n2−k2) the probable error pattern e_=e_μ of the edited column.
- After correcting all columns, the matrix Y is present. Now one can do another row and then a column decoding ⇒ second iteration, and so on, and so forth.
Example 1: To illustrate the decoding algorithm, we again consider the (42,12) product code, based on
- the Hamming code HC (7, 4, 3) ⇒ code C1,
- the truncated Hamming code HC (6, 3, 3) ⇒ code C2.
The left graph shows the received matrix Y.
Note: For display reasons,
- the code matrix X was chosen to be a 6×7 zero matrix,
- so that the nine "ones" in Y represent transmission errors
⇒ The row-by-row syndrome decoding is done via the syndrome s_=y_⋅HT1 with
- HT1=(101110011111100010001).
In particular:
- Row 1 ⇒ Single error correction is successful (also in rows 3, 4 and 6):
- s_=(0,0,1,0,0,0,0)⋅HT1=(0,1,1)=s_3
- ⇒y_+e_3=(0,0,0,0,0,0,0).
- Row 2 (contains two errors) ⇒ Error correction concerning bit 5:
- s_=(1,0,0,0,0,0,1)⋅HT1=(1,0,0)=s_4
- ⇒y_+e_4=(1,0,0,0,1,0,1).
- Row 5 (also contains two errors) ⇒ Error correction concerning bit 3:
- s_=(0,0,0,1,1,0,0)⋅HT1=(0,1,1)=s_3
- ⇒y_+e_3=(0,0,1,1,1,0,0).
⇒ The column-by-column syndrome decoding removes all single errors in columns 1, 2, 3, 4 and 7.
- Column 5 (contains two errors) ⇒ Error correction concerning bit 4:
- s_=(0,1,0,0,1,0)⋅HT2=(0,1,0,0,1,0)⋅(110101011100010001)=(1,0,0)=s_4
- ⇒y_+e_4=(0,1,0,1,1,0).
⇒ The remaining three errors are corrected by decoding the second row iteration loop (line-by-line).
Whether all errors of a block are correctable depends on the error pattern. Here we refer to Exercise 4.7
Performance of product codes
The 1954 introduced product codes were the first codes, which were based on recursive construction rules and thus in principle suitable for iterative decoding. The inventor Peter Elias did not comment on this, but in the last twenty years this aspect and the simultaneous availability of fast processors have contributed to the fact that in the meantime product codes are also used in real communication systems, e.g.
- in error protection of storage media, and
- in very high data rate fiber optic systems.
Usually one uses very long product codes (large n=n1⋅n2) with the following consequence:
- For effort reasons, the "maximum likelihood decoding at block level" is not applicable for the component codes C1 and C2 nor the "syndrome decoding", which is after all a realization form of maximum likelihood decoding.
- Applicable, on the other hand, even with large n is the "iterative symbol-wise MAP decoding". The exchange of extrinsic and a-priori–information happens here between the two component codes. More details on this can be found in [Liv15][1].
The graph shows for a (1024,676) product code, based on the extended Hamming code eHC (32,26) as component codes,
- on the left, the bit error probability as function of the AWGN parameter 10⋅lg(EB/N0) the number of iterations (I),
- on the right, the error probability of the blocks, (or code words).
Here are some additional remarks:
- The code rate is R=R1⋅R2=0.66; this results to the Shannon bound 10⋅lg(EB/N0)≈1 dB.
- The left graph shows the influence of the iterations. At the transition from I=1 to I=2 one gains ≈2 dB (at BER=10−5) and with I=10 another dB. Further iterations are not worthwhile.
- All bounds mentioned in the chapter "Bounds for the Block Error Probability" can be applied here as well, e.g. the "truncated union bound" (dashed curve in the right graph):
- Pr(TruncatedUnionBound)=Wdmin⋅Q(√dmin⋅2R⋅EB/N0).
- The minimum distance is dmin=d1⋅d2=4⋅4=16. With the weight function of the eHC (32,26),
- WeHC(32,26)(X)=1+1240⋅X4+27776⋅X6+330460⋅X8+...+X32,
- we obtain for the product code: Wd, min=12402=15376000.
- This gives the block error probability bound shown in the graph on the right.
Exercises for the chapter
"Exercise 4.6: Product Code Generation"
"Exercise 4.6Z: Basics of Product Codes"
"Exercise 4.7: Product Code Decoding"
"Exercise 4.7Z: Principle of Syndrome Decoding"
References
- ↑ Liva, G.: Channels Codes for Iterative Decoding. Lecture manuscript, Department of Communications Engineering, TU Munich and DLR Oberpfaffenhofen, 2015.