Error correction code: Difference between revisions

Content deleted Content added
Isheden (talk | contribs)
In accordance with other spelling variants
eliminate reidirect by replacing material from FEC page
Tag: Removed redirect
Line 1:
{{redirect|Interleaver|the fiber-optic device|optical interleaver}}
#REDIRECT [[Forward error correction]]
{{Use dmy dates|date=July 2013}}
In [[computing]], [[telecommunication]], [[information theory]], and [[coding theory]], an '''error correction code''' ('''ECC''') is used for [[error control|controlling errors]] in data over unreliable or noisy [[communication channel]]s.<ref> {{cite journal
| last1 = Glover | first1 = Neal
| last2 = Dudley | first2 = Trent
| title = Practical Error Correction Design For Engineers
| edition= Revision 1.1, 2<sup>nd</sup>
| publisher = Cirrus Logic
| ___location = CO, USA
| year = 1990
| isbn= 0-927239-00-0
}}</ref>
<ref name="Hamming">{{cite journal
| last = Hamming
| first = R. W.
| title = Error Detecting and Error Correcting Codes
| journal = Bell System Tech. J.
| volume = 29
| issue = 2
| pages = 147–160
| publisher = AT&T
| ___location = USA
| date = April 1950
| url = http://www3.alcatel-lucent.com/bstj/vol29-1950/articles/bstj29-2-147.pdf
| issn =
| doi = 10.1002/j.1538-7305.1950.tb00463.x
| id =
| accessdate = 4 December 2012}}</ref> The central idea is the sender encodes the message with a [[Redundancy (information theory)|redundant]] in the form of an ECC. The American mathematician [[Richard Hamming]] pioneered this field in the 1940s and invented the first error-correcting code in 1950: the [[Hamming (7,4) code]].<ref name="Hamming" />
The redundancy allows the receiver to detect a limited number of errors that may occur anywhere in the message, and often to correct these errors without retransmission. ECC gives the receiver the ability to correct errors without needing a [[reverse channel]] to request retransmission of data, but at the cost of a fixed, higher forward channel bandwidth. ECC is therefore applied in situations where retransmissions are costly or impossible, such as one-way communication links and when transmitting to multiple receivers in [[multicast]]. For example, in the case of a satellite orbiting around [[Uranus]], a retransmission because of decoding errors can create a delay of 5 hours. ECC information is usually added to [[mass storage]] devices to enable recovery of corrupted data, is widely used in [[modem]]s, and is used on systems where the primary memory is [[ECC memory]].
 
ECC processing in a receiver may be applied to a digital bit stream or in the demodulation of a digitally modulated carrier. For the latter, ECC is an integral part of the initial [[Analog-to-digital converter|analog-to-digital conversion]] in the receiver. The [[Viterbi decoder]] implements a [[Error correction code#Types of ECC|soft-decision algorithm]] to demodulate digital data from an analog signal corrupted by noise. Many ECC coders can also generate a [[bit-error rate]] (BER) signal which can be used as feedback to fine-tune the analog receiving electronics.
The maximum fractions of errors or of missing bits that can be corrected is determined by the design of the ECC code, so different forward error correcting codes are suitable for different conditions. In general, a stronger code induces more redundancy that needs to be transmitted using the available bandwidth, which reduces the effective bit-rate while improving the received effective signal-to-noise ratio. The [[noisy-channel coding theorem]] of Claude Shannon answers the question of how much bandwidth is left for data communication while using the most efficient code that turns the decoding error probability to zero. This establishes bounds on the theoretical maximum information transfer rate of a channel with some given base noise level. However, the proof is not constructive, and hence gives no insight of how to build a capacity achieving code. Fortunately, after years of research, some advanced ECC systems nowadays come very close to the theoretical maximum.
 
==How it works==
ECC is accomplished by adding [[redundancy (information theory)|redundancy]] to the transmitted information using an algorithm. A redundant bit may be a complex function of many original information bits. The original information may or may not appear literally in the encoded output; codes that include the unmodified input in the output are '''[[systematic code|systematic]]''', while those that do not are '''non-systematic'''.
 
A simplistic example of ECC is to transmit each data bit 3 times, which is known as a (3,1) [[repetition code]]. Through a noisy channel, a receiver might see 8 versions of the output, see table below.
 
{| class=wikitable
! width=50% |Triplet received
! width=50% |Interpreted as
|- valign="top"
|000
|0 (error free)
|- valign="top"
|001
|0
|- valign="top"
|010
|0
|- valign="top"
|100
|0
|- valign="top"
|111
|1 (error free)
|- valign="top"
|110
|1
|- valign="top"
|101
|1
|- valign="top"
|011
|1
|}
This allows an error in any one of the three samples to be corrected by "majority vote" or "democratic voting". The correcting ability of this ECC is:
*Up to 1 bit of triplet in error, or
*up to 2 bits of triplet omitted (cases not shown in table).
Though simple to implement and widely used, this [[triple modular redundancy]] is a relatively inefficient ECC. Better ECC codes typically examine the last several dozen, or even the last several hundred, previously received bits to determine how to decode the current small handful of bits (typically in groups of 2 to 8 bits).
 
==Averaging noise to reduce errors==
ECC could be said to work by "averaging noise"; since each data bit affects many transmitted symbols, the corruption of some symbols by noise usually allows the original user data to be extracted from the other, uncorrupted received symbols that also depend on the same user data.
* Because of this "risk-pooling" effect, digital communication systems that use ECC tend to work well above a certain minimum [[signal-to-noise ratio]] and not at all below it.
* This ''all-or-nothing tendency'' — the [[cliff effect]] — becomes more pronounced as stronger codes are used that more closely approach the theoretical [[Shannon limit]].
* Interleaving ECC coded data can reduce the all or nothing properties of transmitted ECC codes when the channel errors tend to occur in bursts. However, this method has limits; it is best used on narrowband data.
 
Most telecommunication systems use a fixed [[channel code]] designed to tolerate the expected worst-case bit error rate, and then fail to work at all if the bit error rate is ever worse.
However, some systems adapt to the given channel error conditions: some instances of [[hybrid automatic repeat-request]] use a fixed ECC method as long as the ECC can handle the error rate, then switch to [[Automatic Repeat Request|ARQ]] when the error rate gets too high;
[[adaptive modulation and coding]] uses a variety of ECC rates, adding more error-correction bits per packet when there are higher error rates in the channel, or taking them out when they are not needed.
 
==Types of ECC==
{{Main|Block code|Convolutional code}}
The two main categories of ECC codes are [[block code]]s and [[convolutional code]]s.
* Block codes work on fixed-size blocks (packets) of bits or symbols of predetermined size. Practical block codes can generally be hard-decoded in [[polynomial time]] to their block length.
* Convolutional codes work on bit or symbol streams of arbitrary length. They are most often soft decoded with the [[Viterbi algorithm]], though other algorithms are sometimes used. Viterbi decoding allows asymptotically optimal decoding efficiency with increasing constraint length of the convolutional code, but at the expense of [[exponential time|exponentially]] increasing complexity. A convolutional code that is terminated is also a 'block code' in that it encodes a block of input data, but the block size of a convolutional code is generally arbitrary, while block codes have a fixed size dictated by their algebraic characteristics. Types of termination for convolutional codes include "tail-biting" and "bit-flushing".
There are many types of block codes, but among the classical ones the most notable is [[Reed-Solomon error correction|Reed-Solomon coding]] because of its widespread use in [[compact disc]]s, [[DVD]]s, and [[hard disk drive#Error handling|hard disk drives]]. Other examples of classical block codes include [[Golay code (disambiguation)|Golay]], [[BCH code|BCH]], [[Multidimensional parity-check code|Multidimensional parity]], and [[Hamming code]]s.
 
Hamming ECC is commonly used to correct [[NAND flash]] memory errors.<ref>
[http://www.eetasia.com/ART_8800575062_499486_AN_7549c493.HTM "Hamming codes for NAND flash memory devices"].
EE Times-Asia.
Apparently based on
[http://www.micron.com/~/media/Documents/Products/Technical%20Note/NAND%20Flash/tn2908_NAND_hamming_ECC_code.pdf "Micron Technical Note TN-29-08: Hamming Codes for NAND Flash Memory Devices"].
2005.
Both say:
"The Hamming algorithm is an industry-accepted method for error detection and correction in many SLC NAND flash-based applications."
</ref>
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>
Jim Cooke.
[https://cushychicken.github.io/assets/cooke_inconvenient_truths.pdf "The Inconvenient Truths of NAND Flash Memory"].
2007.
p. 28.
says
"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 |author1=Baldi M. |author2=Chiaraluce 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=957846 |year=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.
 
Nearly all classical block codes apply the algebraic properties of [[finite field]]s. Hence classical block codes are often referred to as algebraic codes.
 
In contrast to classical block codes that often specify an error-detecting or error-correcting ability, many modern block codes such as [[LDPC codes]] lack such guarantees. Instead, modern codes are evaluated in terms of their bit error rates.
 
Most forward error correction codes correct only bit-flips, but not bit-insertions or bit-deletions.
In this setting, the [[Hamming distance]] is the appropriate way to measure the [[bit error rate]].
A few forward error correction codes are designed to correct bit-insertions and bit-deletions, such as [[marker codes|Marker Codes]] and [[watermark codes|Watermark Codes]].
The [[Levenshtein distance]] is a more appropriate way to measure the bit error rate when using such codes.<ref>
{{Cite conference
| title=Keyboards and covert channels
| first1 = Gaurav | last1 = Shah
| first2 = Andres | last2 = Molina
| first3 = Matt | last3 = Blaze
| url = http://crypto.com/papers/jbug-Usenix06-final.pdf
| year= 2006
| booktitle=Proceedings of the 15th conference on USENIX Security Symposium
}}
</ref>
 
==Code-rate and the tradeoff between reliability and data rate==
{{Main|Code-rate and the tradeoff between reliability and data rate}}
The fundamental principle of ECC is to add redundant bits in order to help the decoder to find out the true message that was encoded by the transmitter. The code-rate of a given ECC system is defined as the rate between the number of information bits and the total number of bits (i.e. information plus redundancy bits) in a given communication package. The code-rate is hence a real number. A low code-rate close to zero implies a strong code that uses many redundant bits to achieve a good performance, while a large code-rate close to 1 implies a weak code.
 
Interestingly, 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 = David Tse, Pramod Viswanath | title = Fundamentals of Wireless Communication | publisher = Cambridge University Press, UK | year=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 a 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">C. E. Shannon: ''A mathematical theory of communication.'' Bell System Technical Journal, vol. 27, pp. 379–423 and 623–656, July and October 1948</ref>. His proof, unfortunately, 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 codes ECCs have a trade performance and computational complexity. Usually their parameters give a range of possible code rates, which can be optimized depending of the scenario. Usually, this optimization is done in order to achieve a low decoding error probability without hurting too much the data rate. Another criteria 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 = Fernando | last1 = Rosas| first2 = Glauber | last2 = Brante| first3 = Richard Demo | last3 = Souza| first4 = Christian | last4 = Oberli| url = http://ieeexplore.ieee.org/abstract/document/6952166/| year= 2014| booktitle=Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC)}}</ref>.
 
 
==Concatenated ECC codes for improved performance==
{{Main|Concatenated error correction codes}}
Classical (algebraic) block codes and convolutional codes are frequently combined in '''concatenated''' coding schemes in which a short constraint-length Viterbi-decoded convolutional code does most of the work and a block code (usually Reed-Solomon) with larger symbol size and block length "mops up" any errors made by the convolutional decoder. Single pass decoding with this family of error correction codes can yield very low error rates, but for long range transmission conditions (like deep space) iterative decoding is recommended.
 
Concatenated codes have been standard practice in satellite and deep space communications since [[Voyager program|Voyager 2]] first used the technique in its 1986 encounter with [[Uranus]]. The [[Galileo (spacecraft)|Galileo]] craft used iterative concatenated codes to compensate for the very high error rate conditions caused by having a failed antenna.
 
==Low-density parity-check (LDPC)==
{{Main|Low-density parity-check code}}
[[Low-density parity-check code|Low-density parity-check]] (LDPC) codes are a class of highly efficient linear block
codes made from many single parity check (SPC) codes. They can provide performance very close to the [[Shannon limit|channel capacity]] (the theoretical maximum) using an iterated soft-decision decoding approach, at linear time complexity in terms of their block length. Practical implementations rely heavily on decoding the constituent SPC codes in parallel.
 
LDPC codes were first introduced by [[Robert G. Gallager]] in his PhD thesis in 1960,
but due to the computational effort in implementing encoder and decoder and the introduction of [[Reed–Solomon]] codes,
they were mostly ignored until the 1990s.
 
LDPC codes are now used in many recent high-speed communication standards, such as [[DVB-S2]] (Digital Video Broadcasting - Satellite - Second Generation), [[WiMAX]] ([[IEEE 802.16e]] standard for microwave communications), High-Speed Wireless LAN ([[IEEE 802.11n]]),<ref>IEEE Standard, section 20.3.11.6 [http://standards.ieee.org/getieee802/download/802.11n-2009.pdf "802.11n-2009"], IEEE, October 29, 2009, accessed March 21, 2011.</ref> [[802.3an#10GBASE-T|10GBase-T Ethernet]] (802.3an) and [[G.hn|G.hn/G.9960]] (ITU-T Standard for networking over power lines, phone lines and coaxial cable). Other LDPC codes are standardized for wireless communication standards within [[3GPP]] [[MBMS]] (see [[Fountain code#Fountain codes in standards|fountain codes]]).
 
==Turbo codes==
{{Main|Turbo code}}
 
[[turbo code|Turbo coding]] is an iterated soft-decoding scheme that combines two or more relatively simple convolutional codes and an interleaver to produce a block code that can perform to within a fraction of a decibel of the [[Shannon limit]]. Predating [[LDPC codes]] in terms of practical application, they now provide similar performance.
 
One of the earliest commercial applications of turbo coding was the [[CDMA2000|CDMA2000 1x]] (TIA IS-2000) digital cellular technology developed by [[Qualcomm]] and sold by [[Verizon Wireless]], [[Sprint Nextel|Sprint]], and other carriers. It is also used for the evolution of CDMA2000 1x specifically for Internet access, [[Evolution-Data Optimized|1xEV-DO]] (TIA IS-856). Like 1x, EV-DO was developed by [[Qualcomm]], and is sold by [[Verizon Wireless]], [[Sprint Nextel|Sprint]], and other carriers (Verizon's marketing name for 1xEV-DO is ''Broadband Access'', Sprint's consumer and business marketing names for 1xEV-DO are ''Power Vision'' and ''Mobile Broadband'', respectively).
 
==Local decoding and testing of codes==
{{Main|Locally decodable code|Locally testable code}}
Sometimes it is only necessary to decode single bits of the message, or to check whether a given signal is a codeword, and do so without looking at the entire signal. This can make sense in a streaming setting, where codewords are too large to be classically decoded fast enough and where only a few bits of the message are of interest for now. Also such codes have become an important tool in [[computational complexity theory]], e.g., for the design of [[probabilistically checkable proof]]s.
 
[[Locally decodable code]]s are error-correcting codes for which single bits of the message can be probabilistically recovered by only looking at a small (say constant) number of positions of a codeword, even after the codeword has been corrupted at some constant fraction of positions. [[Locally testable code]]s are error-correcting codes for which it can be checked probabilistically whether a signal is close to a codeword by only looking at a small number of positions of the signal.
 
== Interleaving ==
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 ameliorates 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|author1=B. Vucetic |author2=J. Yuan |title=Turbo codes: principles and applications|publisher=[[Springer Verlag]]|isbn=978-0-7923-7868-6|year=2000}}</ref> Therefore, interleaving is widely used for [[burst error-correcting code|burst error-correction]].
 
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=[[Michael Luby|M. Luby]], M. Mitzenmacher, A. Shokrollahi, D. Spielman, V. Stemann|title=Practical Loss-Resilient Codes|journal=Proc. 29th annual [[Association for Computing Machinery]] (ACM) symposium on Theory of computation|year=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|postscript=<!--None-->}}</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=K. Andrews|title=The Development of Turbo and LDPC Codes for Deep-Space Applications|journal=[[Proc. IEEE]]|volume=95|issue=11|date=November 2007|display-authors=etal}}</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:
*rectangular (or uniform) interleavers (similar to the method using skip factors described above)
*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>S. Dolinar and D. Divsalar. Weight Distributions for Turbo Codes Using Random and Nonrandom Permutations. 1995. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.105.6640&rep=rep1&type=pdf]</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| year=2006 | first1=Oscar | last1= Takeshita | arxiv = cs/0601048 | postscript=<!--None--> | doi=10.1109/TIT.2007.896870 | volume=53 | journal=IEEE Transactions on Information Theory | pages=2116–2132}}</ref> It is used for example 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|postscript=<!--None-->}}</ref>
 
===Example===
 
'''Transmission without interleaving''':
 
Error-free message: aaaabbbbccccddddeeeeffffgggg
Transmission with a burst error: aaaabbbbccc____deeeeffffgggg
 
Here, each group of the same letter represents a 4-bit one-bit error-correcting codeword. The codeword cccc is altered in one bit and can be corrected, but the codeword dddd is altered in three bits, so either it cannot be decoded at all or it might be [[falsing|decoded incorrectly]].
 
'''With interleaving''':
 
Error-free code words: aaaabbbbccccddddeeeeffffgggg
Interleaved: abcdefgabcdefgabcdefgabcdefg
Transmission with a burst error: abcdefgabcd____bcdefgabcdefg
Received code words after deinterleaving: aa_abbbbccccdddde_eef_ffg_gg
 
In each of the codewords aaaa, eeee, ffff, gggg, only one bit is altered, so one-bit error-correcting code will decode everything correctly.
 
'''Transmission without interleaving''':
 
Original transmitted sentence: ThisIsAnExampleOfInterleaving
Received sentence with a burst error: ThisIs______pleOfInterleaving
 
The term "AnExample" ends up mostly unintelligible and difficult to correct.
 
'''With interleaving''':
 
Transmitted sentence: ThisIsAnExampleOfInterleaving...
Error-free transmission: TIEpfeaghsxlIrv.iAaenli.snmOten.
Received sentence with a burst error: TIEpfe______Irv.iAaenli.snmOten.
Received sentence after deinterleaving: T_isI_AnE_amp_eOfInterle_vin_...
 
No word is completely lost and the missing letters can be recovered with minimal guesswork.
 
=== 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 - W3techie | publisher=w3techie.com | url=http://w3techie.com/2010/explaining-interleaving/ | accessdate=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 ==
Simulating the behaviour of error-correcting codes (ECCs) in software is a common practice to design, validate and improve ECCs. The upcoming wireless 5G standard raises a new range of applications for the software ECCs: the [[C-RAN|Cloud Radio Access Networks (C-RAN)]] in a [[Software-defined radio|Software-defined radio (SDR)]] context. The idea is to directly use software ECCs in the communications. For instance in the 5G, the software ECCs could be located in the cloud and the antennas connected to this computing resources: improving this way the flexibility of the communication network and eventually increasing the energy efficiency of the system.
 
In this context, there are various available Open-source software listed below (non exhaustive).
* [https://aff3ct.github.io/ AFF3CT](A Fast Forward Error Correction Toolbox): a full communication chain in C++ (many supported codes like Turbo, LDPC, Polar codes, etc.), very fast and specialized on channel coding (can be used as a program for simulations or as a library for the SDR).
* [[IT++]]: a C++ library of classes and functions for linear algebra, numerical optimization, signal processing, communications, and statistics.
* [https://gitlab.eurecom.fr/oai/openair-cn OpenAir]: implementation (in C) of the 3GPP specifications concerning the Evolved Packet Core Networks.
 
==List of error-correcting codes==
 
{| class="wikitable"
|-
! Distance !! Code
|-
| 2 (single-error detecting) || Parity
|-
| 3 (single-error correcting) || [[Triple modular redundancy]]
|-
| 3 (single-error correcting) || perfect Hamming such as [[Hamming(7,4)]]
|-
| 4 ([[SECDED]]) || Extended Hamming
|-
| 5 (double-error correcting) ||
|-
| 6 (double-error correct-/triple error detect) ||
|-
| 7 (three-error correcting) || perfect [[binary Golay code]]
|-
| 8 (TECFED) || extended [[binary Golay code]]
|}
<!--it would be nice to have some categorization of codes, e.g. into linear codes, cyclic codes, etc.-->
* [[AN codes]]
* [[BCH code]], which can be designed to correct any arbitrary number of errors per code block.
* [[Berger code]]
* [[Constant-weight code]]
* [[Convolutional code]]
* [[Expander code]]s
* [[Group code]]s
* [[Golay code (disambiguation)|Golay code]]s, of which the [[Binary Golay code]] is of practical interest
* [[Goppa code]], used in the [[McEliece cryptosystem]]
* [[Hadamard code]]
* [[Hagelbarger code]]
* [[Hamming code]]
* [[Latin square#Error correcting codes|Latin square based code]] for non-white noise (prevalent for example in broadband over powerlines)
* [[Lexicographic code]]
* [[Long code (mathematics)|Long code]]
* [[Low-density parity-check code]], also known as [[Gallager code]], as the archetype for [[sparse graph code]]s
* [[LT code]], which is a near-optimal [[Fountain code|rateless erasure correcting code (Fountain code)]]
* [[m of n codes]]
* [[Online code]], a near-optimal [[Fountain code|rateless erasure correcting code]]
* [[Polar code (coding theory)]]
* [[Raptor code]], a near-optimal [[Fountain code|rateless erasure correcting code]]
* [[Reed–Solomon error correction]]
* [[Reed–Muller code]]
* [[Repeat-accumulate code]]
* [[Repetition code]]s, such as [[Triple modular redundancy]]
* Spinal code, a rateless, nonlinear code based on pseudo-random hash functions <ref>{{Cite conference |
first1=Jonathan | last1=Perry |
first2=Hari | last2=Balakrishnan |
first3=Devavrat | last3=Shah |
title = Rateless Spinal Codes |
booktitle = Proceedings of the 10th ACM Workshop on Hot Topics in Networks |
year = 2011 |
url = http://doi.acm.org/10.1145/2070562.2070568 |
doi = 10.1145/2070562.2070568
}}</ref>
* [[Tornado code]], a near-optimal [[erasure code|erasure correcting code]], and the precursor to [[Fountain code]]s
* [[Turbo code]]
* [[Walsh–Hadamard code]]
* [[Cyclic redundancy check]]s (CRCs) can correct 1-bit errors for messages at most <math>2^{n-1}-1</math> bits long for optimal generator polynomials of degree <math>n</math>, see [[Mathematics of cyclic redundancy checks#Bitfilters]]
 
==See also==
* [[Code rate]]
* [[Erasure code]]s
* [[Soft-decision decoder]]
* [[Error detection and correction]]
* [[Error-correcting codes with feedback]]
* [[Burst error-correcting code]]
 
==References==
{{Reflist|30em}}
 
==Further reading==
*{{cite book |author1=Clark, George C., Jr. |author2=Cain, J. Bibb |title=Error-Correction Coding for Digital Communications |publisher=Plenum Press |___location=New York |year=1981 |isbn=0-306-40615-2 }}
*{{cite book |author=Wicker, Stephen B. |title=Error Control Systems for Digital Communication and Storage |publisher=Prentice-Hall |___location=Englewood Cliffs NJ |year=1995 |isbn=0-13-200809-2 }}
*{{cite book |author=Wilson, Stephen G. |title=Digital Modulation and Coding |publisher=Prentice-Hall |___location=Englewood Cliffs NJ |year=1996 |isbn=0-13-210071-1 }}
* [https://web.archive.org/web/20070519161253/http://www.st.com/stonline/products/literature/an/10123.htm "Error Correction Code in Single Level Cell NAND Flash memories"] 16 February 2007
* [http://www.eetasia.com/ARTICLES/2004NOV/A/2004NOV29_MEM_AN10.PDF?SOURCES=DOWNLOAD "Error Correction Code in NAND Flash memories"] 29 November 2004
* [http://perspectives.mvdirona.com/2012/02/observations-on-errors-corrections-trust-of-dependent-systems/ Observations on Errors, Corrections, & Trust of Dependent Systems], by James Hamilton, February 26, 2012
* Sphere Packings, Lattices and Groups, By J.H. Conway, N.J.A. Sloane, Springer Science & Business Media, 9 Mar 2013 - Mathematics - 682 pages.
 
==External links==
*{{Cite web
| last = Morelos-Zaragoza
| first = Robert
| year = 2004
| url = http://www.eccpage.com/
| title = The Correcting Codes (ECC) Page
| accessdate = 2006-03-05
}}
 
{{DEFAULTSORT:Forward Error Correction}}
[[Category:Error detection and correction]]