Error correction code: Difference between revisions

Content deleted Content added
Remove deadlink, DOI still good.
CE
Line 62:
{{Main|Block code|Convolutional code}}
 
[[File:BlockCont.png|right|500pxupright=2.25|thumb|A short classification of the error correction codes.]]
 
The two main categories of ECC codes are [[block code]]s and [[convolutional code]]s.
Line 73:
This provides single-bit error correction and 2-bit error detection.
Hamming codes are only suitable for more reliable [[single-level cell]] (SLC) NAND.
Denser [[multi-level cell]] (MLC) NAND requires stronger multi-bit correcting ECC such as BCH or Reed–Solomon.<ref name="spansion">[http://www.spansion.com/Support/Application%20Notes/Types_of_ECC_Used_on_Flash_AN.pdf "What Types of ECC Should Be Used on Flash Memory?"]. (Spansion application note). 2011. says: "Both Reed-Solomon algorithm and BCH algorithm are common ECC choices for MLC NAND flash. ... Hamming based block codes are the most commonly used ECC for SLC.... both Reed-Solomon and BCH are able to handle multiple errors and are widely used on MLC flash."</ref><ref>{{cite web|author=Jim Cooke. {|url=https://cushychicken.github.io/assets/cooke_inconvenient_truths.pdf "|title=The Inconvenient Truths of NAND Flash Memory"].|date=August 2007. |p. =28. says "|quote=For SLC, a code with a correction threshold of 1 is sufficient. t=4 required ... for MLC."}}</ref>{{Dubious|date=March 2008}} NOR Flash typically does not use any error correction.<ref name="spansion"/>
 
Classical block codes are usually decoded using '''hard-decision''' algorithms,<ref>{{cite journal |author-last1=Baldi |author-first1=M. |author-last2=Chiaraluce |author-first2=F. |title=A Simple Scheme for Belief Propagation Decoding of BCH and RS Codes in Multimedia Transmissions |journal=[[International Journal of Digital Multimedia Broadcasting]] |volume=2008 |pages=1–12 |date=2008 |doi=10.1155/2008/957846 |url=http://www.hindawi.com/journals/ijdmb/2008/957846.html}}</ref> which means that for every input and output signal a hard decision is made whether it corresponds to a one or a zero bit. In contrast, convolutional codes are typically decoded using '''soft-decision''' algorithms like the Viterbi, MAP or [[BCJR algorithm|BCJR]] algorithms, which process (discretized) analog signals, and which allow for much higher error-correction performance than hard-decision decoding.
Line 85:
A few forward error correction codes are designed to correct bit-insertions and bit-deletions, such as Marker Codes and Watermark Codes.
The [[Levenshtein distance]] is a more appropriate way to measure the bit error rate when using such codes.
<ref>{{cite web |author-last1=Shah |author-first1=Gaurav |author-last2=Molina |author-first2=Andres |author-last3=Blaze |author-first3=Matt |title=Keyboards and covert channels |url=https://www.usenix.org/legacy/event/sec06/tech/full_papers/shah/shah_html/jbug-Usenix06.html |website=Usenix.orgUSENIX |access-date=20 December 2018 |date=2006}}</ref>
 
==Code-rate and the tradeoff between reliability and data rate==
Line 93:
The redundant bits that protect the information have to be transferred using the same communication resources that they are trying to protect. This causes a fundamental tradeoff between reliability and data rate.<ref>{{citation |author-first1=David |author-last1=Tse |author-first2=Pramod |author-last2=Viswanath |title=Fundamentals of Wireless Communication |publisher=[[Cambridge University Press]], UK |date=2005}}</ref> In one extreme, a strong code (with low code-rate) can induce an important increase in the receiver SNR decreasing the bit error rate, at the cost of reducing the effective data rate. On the other extreme, not using any ECC (i.e. a code-rate equal to 1) uses the full channel for information transfer purposes, at the cost of leaving the bits without any additional protection.
 
One interesting question is the following: how efficient in terms of information transfer can be an ECC that has a negligible decoding error rate? This question was answered by Claude Shannon with his second theorem, which says that the channel capacity is the maximum bit rate achievable by any ECC whose error rate tends to zero:<ref name="shannon paper">{{cite journal|first=C. E. |last=Shannon: ''|title=A mathematical theory of communication.'' |journal=[[Bell System Technical Journal]], vol. |volume=27, |issue=3–4|pp. =379–423 and& 623–656, July and October |date=1948|url=http://www.math.harvard.edu/~ctm/home/text/others/shannon/entropy/entropy.pdf|doi=10.1002/j.1538-7305.1948.tb01338.x}}</ref> His proof relies on Gaussian random coding, which is not suitable of real-world applications. This upper bound given by Shannon's work set up a long journey in designing ECCs that can go close to the ultimate performance boundary. Various codes today can attain almost the Shannon limit. However, capacity achieving ECCs are usually extremely complex to implement.
 
The most popular ECCs have a trade-off between performance and computational complexity. Usually, their parameters give a range of possible code rates, which can be optimized depending on the scenario. Usually, this optimization is done in order to achieve a low decoding error probability while minimizing the impact to the data rate. Another criterion for optimizing the code rate is to balance low error rate and retransmissions number in order to the energy cost of the communication.<ref>{{Cite conference |title=Optimizing the code rate for achieving energy-efficient wireless communications |first1=FernandoF. |last1=Rosas |first2=GlauberG. |last2=Brante |first3=RichardR. DemoD. |last3=Souza |first4=ChristianC. |last4=Oberli |url=https://ieeexplore.ieee.org/abstract/document/6952166/ |date=2014 |booktitle=Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC)}}</ref>
 
==Concatenated ECC codes for improved performance==
Line 130:
{{redirect|Interleaver|the fiber-optic device|optical interleaver}}
 
[[File:Interleaving1.png|right|400pxupright=2.25|thumb|A short illustration of interleaving idea.]]
 
Interleaving is frequently used in digital communication and storage systems to improve the performance of forward error correcting codes. Many [[communication channel]]s are not memoryless: errors typically occur in [[burst error|burst]]s rather than independently. If the number of errors within a [[code word]] exceeds the error-correcting code's capability, it fails to recover the original code word. Interleaving alleviates this problem by shuffling source symbols across several code words, thereby creating a more [[Uniform distribution (continuous)|uniform distribution]] of errors.<ref name="turbo-principles">{{cite book |author-first1=B. |author-last1=Vucetic |author-first2=J. |author-last2=Yuan |title=Turbo codes: principles and applications |publisher=[[Springer Verlag]] |isbn=978-0-7923-7868-6 |date=2000}}</ref> Therefore, interleaving is widely used for [[burst error-correcting code|burst error-correction]].
Line 136:
The analysis of modern iterated codes, like [[turbo code]]s and [[LDPC code]]s, typically assumes an independent distribution of errors.<ref>{{cite journal |author-first1=Michael |author-last1=Luby |author-link1=Michael Luby |author-first2=M. |author-last2=Mitzenmacher |author-first3=A. |author-last3=Shokrollahi |author-first4=D. |author-last4=Spielman |author-first5=V. |author-last5=Stemann |title=Practical Loss-Resilient Codes |journal=Proc. 29th Annual [[Association for Computing Machinery]] (ACM) Symposium on Theory of Computation |date=1997}}</ref> Systems using LDPC codes therefore typically employ additional interleaving across the symbols within a code word.<ref>{{Cite journal |title=Digital Video Broadcast (DVB); Second generation framing structure, channel coding and modulation systems for Broadcasting, Interactive Services, News Gathering and other satellite broadband applications (DVB-S2) |journal=En 302 307 |issue=V1.2.1 |publisher=[[ETSI]] |date=April 2009}}</ref>
 
For turbo codes, an interleaver is an integral component and its proper design is crucial for good performance.<ref name="turbo-principles"/><ref>{{cite journal |author-first=K. S.|author-last=Andrews|first2=D.|last2=Divsalar|first3=S.|last3=Dolinar|first4=J.|last4=Hamkins|first5=C. R.|last5=Jones|first6=F.|last6=Pollara|title=The Development of Turbo and LDPC Codes for Deep-Space Applications |journal=[[Proceedings of the IEEE]] |volume=95 |issue=11 |pages=2142–2156|date=November 2007 |display-authorsdoi=etal10.1109/JPROC.2007.905132}}</ref> The iterative decoding algorithm works best when there are not short cycles in the [[factor graph]] that represents the decoder; the interleaver is chosen to avoid short cycles.
 
Interleaver designs include:
Line 142:
* convolutional interleavers
* random interleavers (where the interleaver is a known random permutation)
* S-random interleaver (where the interleaver is a known random permutation with the constraint that no input symbols within distance S appear within a distance of S in the output).<ref>{{cite paper|first=S. |last=Dolinar and |first2=D. |last2=Divsalar. |title=Weight Distributions for Turbo Codes Using Random and Nonrandom Permutations. 1995. [|url=http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.105.6640&rep=rep1&type=pdf]|date=August 15, 1995|pages=42–122|work=TDA Progress Report}}</ref>
* Another possible construction is a contention-free quadratic [[permutation polynomial]] (QPP).<ref name="Takeshita1">{{cite journal |title=Permutation Polynomial Interleavers: An Algebraic-Geometric Perspective |date=2006 |author-first1=Oscar |author-last1=Takeshita |arxiv=cs/0601048 |doi=10.1109/TIT.2007.896870 |volume=53 |issue=6 |journal=[[IEEE Transactions on Information Theory]] |pages=2116–2132}}</ref> ItAn isexample usedof foruse exampleis in the [[3GPP Long Term Evolution]] mobile telecommunication standard.<ref>[http://www.3gpp.org/ftp/Specs/html-info/36212.htm 3GPP TS 36.212], version 8.8.0, page 14</ref>
 
In multi-[[carrier signal|carrier]] communication systems, interleaving across carriers may be employed to provide frequency [[diversity scheme|diversity]], e.g., to mitigate [[frequency-selective fading]] or narrowband interference.<ref>{{Cite journal |title=Digital Video Broadcast (DVB); Frame structure, channel coding and modulation for a second generation digital terrestrial television broadcasting system (DVB-T2) |journal=En 302 755 |issue=V1.1.1 |publisher=[[ETSI]] |date=September 2009}}</ref>
Line 183:
=== Disadvantages of interleaving ===
 
Use of interleaving techniques increases total delay. This is because the entire interleaved block must be received before the packets can be decoded.<ref>{{cite web |title=Explaining Interleaving|author=Techie|date=June 3, 2010|publisherwebsite=w3techie.comW3 Techie Blog|url=http://w3techie.com/2010/explaining-interleaving/ |access-date=2010-06-03}}</ref> Also interleavers hide the structure of errors; without an interleaver, more advanced decoding algorithms can take advantage of the error structure and achieve more reliable communication than a simpler decoder combined with an interleaver{{Citation needed|date=April 2017}}.
 
== Software for error-correcting codes ==