Wireless Mobile Communication and Transmission Lab. Chapter 2 Block code ----BCH The Theory and Technology of Error Control Coding.

Slides:



Advertisements
Similar presentations
Mahdi Barhoush Mohammad Hanaysheh
Advertisements

Noise, Information Theory, and Entropy (cont.) CS414 – Spring 2007 By Karrie Karahalios, Roger Cheng, Brian Bailey.
BCH Codes Hsin-Lung Wu NTPU.
Cyclic Code.
Error Control Code.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
296.3Page :Algorithms in the Real World Error Correcting Codes II – Cyclic Codes – Reed-Solomon Codes.
L. J. Wang 1 Introduction to Reed-Solomon Coding ( Part I )
15-853:Algorithms in the Real World
Information and Coding Theory
CHANNEL CODING REED SOLOMON CODES.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Transmission Errors Error Detection and Correction
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
Error Detection and Correction
DIGITAL COMMUNICATION Coding
Error detection/correction FOUR WEEK PROJECT 1 ITEMS TO BE DISCUSSED 1.0 OVERVIEW OF CODING STRENGTH (3MINS) Weight/distance of binary vectors Error detection.
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
Chapter 11 Error-Control CodingChapter 11 : Lecture edition by K.Heikkinen.
Chapter 11 Algebraic Coding Theory. Single Error Detection M = (1, 1, …, 1) is the m  1 parity check matrix for single error detection. If c = (0, 1,
DIGITAL COMMUNICATION Coding
15-853Page :Algorithms in the Real World Error Correcting Codes I – Overview – Hamming Codes – Linear Codes.
Transmission Errors Error Detection and Correction
Syndrome Decoding of Linear Block Code
Linear Codes.
DIGITAL COMMUNICATION Error - Correction A.J. Han Vinck.
Cyclic codes 1 CHAPTER 3: Cyclic and convolution codes Cyclic codes are of interest and importance because They posses rich algebraic structure that can.
Channel Coding Part 1: Block Coding
SPANISH CRYPTOGRAPHY DAYS (SCD 2011) A Search Algorithm Based on Syndrome Computation to Get Efficient Shortened Cyclic Codes Correcting either Random.
Information and Coding Theory Linear Block Codes. Basic definitions and some examples. Juris Viksna, 2015.
1 Channel Coding (II) Cyclic Codes and Convolutional Codes.
Application of Finite Geometry LDPC code on the Internet Data Transport Wu Yuchun Oct 2006 Huawei Hisi Company Ltd.
BCH_Code 2004/5/5Yuh-Ming Huang, CSIE, NCNU1 BCH Code a larger class of powerful random error-correcting cyclic codes a remarkable generalization of the.
Cyclic Codes for Error Detection W. W. Peterson and D. T. Brown by Maheshwar R Geereddy.
1 SNS COLLEGE OF ENGINEERING Department of Electronics and Communication Engineering Subject: Digital communication Sem: V Cyclic Codes.
Codes Codes are used for the following purposes: - to detect errors - to correct errors after detection Error Control Coding © Erhan A. Ince Types: -Linear.
MIMO continued and Error Correction Code. 2 by 2 MIMO Now consider we have two transmitting antennas and two receiving antennas. A simple scheme called.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
§6 Linear Codes § 6.1 Classification of error control system § 6.2 Channel coding conception § 6.3 The generator and parity-check matrices § 6.5 Hamming.
DIGITAL COMMUNICATIONS Linear Block Codes
EE 430 \ Dr. Muqaibel Cyclic Codes1 CYCLIC CODES.
ADVANTAGE of GENERATOR MATRIX:
Chapter 31 INTRODUCTION TO ALGEBRAIC CODING THEORY.
Information and Coding Theory Cyclic codes Juris Viksna, 2015.
Information Theory Linear Block Codes Jalal Al Roumy.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
Some Computation Problems in Coding Theory
Error Detection and Correction
Elementary Coding Theory Including Hamming and Reed-Solomom Codes with Maple and MATLAB Richard Klima Appalachian State University Boone, North Carolina.
Digital Communications I: Modulation and Coding Course Term Catharina Logothetis Lecture 9.
INFORMATION THEORY Pui-chor Wong.
Error Control Coding. Purpose To detect and correct error(s) that is introduced during transmission of digital signal.
Reed-Solomon Codes Rong-Jaye Chen.
CHAPTER 8 CHANNEL CODING: PART 3 Sajina Pradhan
Exercise in the previous class (1) Define (one of) (15, 11) Hamming code: construct a parity check matrix, and determine the corresponding generator matrix.
Cyclic Linear Codes. p2. OUTLINE  [1] Polynomials and words  [2] Introduction to cyclic codes  [3] Generating and parity check matrices for cyclic.
II. Linear Block Codes. © Tallal Elshabrawy 2 Digital Communication Systems Source of Information User of Information Source Encoder Channel Encoder Modulator.
ECE 442 COMMUNICATION SYSTEM DESIGN LECTURE 10. LINEAR BLOCK CODES Husheng Li Dept. of EECS The University of Tennessee.
Channel Coding: Part I Presentation II Irvanda Kurniadi V. ( ) Digital Communication 1.
Class Report 林格名 : Reed Solomon Encoder. Reed-Solomom Error Correction When a codeword is decoded, there are three possible outcomes –If 2s + r < 2t (s.
RS – Reed Solomon Error correcting code. Error-correcting codes are clever ways of representing data so that one can recover the original information.
V. Non-Binary Codes: Introduction to Reed Solomon Codes
Information and Coding Theory
Subject Name: COMPUTER NETWORKS-1
Subject Name: Information Theory Coding Subject Code: 10EC55
Cyclic Code.
Error Detection and Correction
Chapter 10 Error Detection and Correction
Mathematical Background: Extension Finite Fields
Presentation transcript:

Wireless Mobile Communication and Transmission Lab. Chapter 2 Block code ----BCH The Theory and Technology of Error Control Coding

Wireless Mobile Communication and Transmission Lab. Summary  The arithmetic of Galois field  Linear Block Code  Cyclic Code  Code Construction of BCH Codes  Decoding of binary BCH codes ---BMA

Wireless Mobile Communication and Transmission Lab. The arithmetic of Galois field  Self-sealed arithmetic : If the elements of a set are still in the set by some kind of operation (e.g. addition,subtraction,multiplication and division),then the set is called arithmetic seal up.  Field : the collection of arithmetic seal up elements is called field.  Finite field : a field with finite number of elements is called a finite field or Galois field , written as GF(2).

Wireless Mobile Communication and Transmission Lab. The arithmetic of Galois field  Binary Field A finite field which contains only the elements of 0 and 1 is called a binary field.  The arithmetic of addition and multiplication addition multiplication 0+0 = 0 0*0 = = 1 0*1 = = 1 1*0 = = 0 1*1 = 1

Wireless Mobile Communication and Transmission Lab. The arithmetic of Galois field  Irreducible polynomial : It can not be decomposed as a product of lower degree polynomial  Example : x 2 +x + 1 and x 4 +x +1 are irreducible polynomials , while x 2 +1 is not.  The Reason : (x+1) 2 = x 2 +x+x + 1= x 2 +1

Wireless Mobile Communication and Transmission Lab. The arithmetic of Galois field  GF(2 m ) There is a primitive element a ∈ GF(2^m), such that every nonzero element β in GF(2^m) can be expressed as, 0 ≤i ≤ 2^m − 2.  This element a is the root of an irreducible polynomial, called a primitive polynomial, p(x) over {0, 1}, that is, p(a) = 0.  A primitive element a of the field GF(2^m) satisfies the equation a^(2^m−1) = 1, and n = 2^m − 1 is the smallest positive integer such that a^n = 1.

Wireless Mobile Communication and Transmission Lab. The arithmetic of Galois field  {0 , 1 , a , a 2 , a 3 , ·····,a -2 } make up the elements of GF(2 m ) 。  EXAMPLE: Let ‘a’ be a primitive element of GF(2^3) such that p(a) = a^3 + a + 1 = 0 and a^7 = 1. Show the ways to express the elements in GF(2^3).

Wireless Mobile Communication and Transmission Lab. The arithmetic of Galois field  Minimal polynomial the minimal polynomial f i (x) of a i is the polynomial with the smallest degree which takes a i as its root. f i (x) has binary coefficients, and is irreducible.  Conjugate Elements besides, 、 、 ····· are also the elements of f i (x) , and they are called the conjugate elements of a i.

Wireless Mobile Communication and Transmission Lab. Introduction of Linear Block Code  Definition The block code whose length is n and the number of the codewords is 2 k, if and only if the 2 k codewords constitute a k-dimensional vector subspace of all n-dimensional vector space of the field GF (2) , the code is called a (n, k) linear code.  Necessary and sufficient condition : adding any two codewords using mold 2 addition, the result is still the codeword of the block code.

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Encoding:  (n,k) linear block code C is a k-dimensional subspace of V n , we can find k codewords which are linearly independent of each other,g 0 , g 1 , ···· , g k-1 , and make any codeword v in C be a linear combination of these k codewords.  v=u 0 g 0 +u 1 g 1 +····+u k-1 g k-1

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Taking the k-linearly independent code words as row vectors,we can get a k*n matrix:

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  IF u= ( u0 , u1 , ·····uk-1 ) is the message sequence which is to be encoded, then the codeword V is as follows described: v=u·G  The linear block word C is generated by the rows of the matrix G , so the matrix G is called the generator matrix of C.

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  For the linear block, the code word is divided into two parts, the message part and the redundant checking part. the message part is made up of the original message without changing, and the redundant checking part is made up of n-k parity codes. Linear block code with this construction is called systematic linear block code. Redundant checking part Message part n-k K

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Generator matrix G of systematic form can be written as follows G=[P,I k ]  The matrix G of systematic form can be got from G of non-systematic form via row/columm transformation.

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Parity-check matrix  For any k*n matrix G which was made up of k linearly independent row vectors, there exist a (n- k)*n matrix H which was made up of n-k linearly dependent row vector , and the row vectors of H are orthogonal with any row vector of G. H is called the parity-check matrix.Thus, G·H T =0,that is v·H T =0

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  If G is the systematic form , then:  H=[I n-k,P T ]

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Decoding  Let v= ( v 0 , v 1 , ···· , v n-1 ) is a codeword that was transmitted over a noisy channel, r= ( r 0 , r 1 , ···· , r n-1 ) is the received code V and R may be different, then e=v+r= ( e 0 , e 1 , ···· , e n-1 ) e is called error pattern.

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Syndrome  The value of syndrome is defined as follows :

Wireless Mobile Communication and Transmission Lab. Introduction of linear block code  Since  While v·H T =0 so we can get s=e·H T  That is  The n - k linear equations above do not have an unique solution but have 2^k solutions. To minimize the probability of a decoding error, the most probable error pattern that satisfies the equations is chosen as the true error vector.  If the channel is a BSC, the most probable error pattern is the one that has the smallest number of nonzero digits.

Wireless Mobile Communication and Transmission Lab. Introduction of Cyclic Code  Definition  A linear code that satisfies that any cyclic shift of a codeword is still a codeword of the linear code is called Cyclic code  Advantages: a. simpler encoded mechanism because the process can be implemented by Shift registers b. simpler decoded mechanism because of fixed algebra structure

Wireless Mobile Communication and Transmission Lab. Introduction of Cyclic Code  Generator polynomial.  Parity-check polynomial From the equality :g ( x ) ·h ( x ) =x n +1, we can get the parity-check polynomial h ( x )

Wireless Mobile Communication and Transmission Lab. Introduction of Cyclic Code  Encoding of cyclic code Non-systematic encoding: v(x)=u(x)g(x) Systematic encoding: v(x)=x n-k u(x)+[x n-k u(x)modg(x)]

Wireless Mobile Communication and Transmission Lab. Introduction of Cyclic Code  General decoding of cyclic codes Let r(x) = v(x) + e(x) e(x) the error polynomial v(x) the code polynomial r(x) the received code polynomial  Then define the syndrome polynomial as

Wireless Mobile Communication and Transmission Lab. BCH code  BCH code which was named after the inventors (Bose- Chaudhurl-Hocquenghem), is one of cyclic code that can correct more than one errors since As the code generator polynomial is related to the minimum distance, the code construction can be easily determined by the error correcting ability. Therefore, BCH is one of the widely used error control codes.

Wireless Mobile Communication and Transmission Lab. BCH code  Definition: A BCH code of dmin ≥ 2t d + 1 is a cyclic code whose generator polynomial g(x) has 2td consecutive roots: So, a binary BCH (n, k, d min ) code has a generator polynomial: g(x) = LCM{φ b (x), φ b+1 (x),..., φ b+2td−1 (x)}, Length n = LCM{n b, n b+1,..., n b+2td−1 }, and dimension k = n − deg[g(x)]

Wireless Mobile Communication and Transmission Lab. BCH code Code Construction of BCH Codes : t-error correcting binary BCH code of length 2 m  1 Find a degree m primitive polynomial p(x) over GF(2). Use p(x) to construct GF(2^m). Let  be a primitive element of GF(2^m), i.e.  is a root of p(x) in GF(2^m). Find the Φ(x),the minimal polynomial of  ^i, for i = 1, 3,.., 2t  1. Let g(x) be the minimal degree polynomial with the Φ(x) as factors, ,

Wireless Mobile Communication and Transmission Lab. BCH code Simplification of generator matrix:  According to the arithmetic of finite field,  If  then, while i’ is odd.   i and  i’ are conjugate elements,so they have the same minimal polynomial, then the generator matrix can be simplified as follows:

Wireless Mobile Communication and Transmission Lab. BCH code  Example consider GF(2 4 ), p(x) = x 4 + x + 1,with t d = 2 and b =1. then g(x) = LCM{φ 1 (x), φ 3 (x)} = (x 4 + x + 1)(x 4 + x 3 + x 2 + x + 1) = x 8 + x 7 + x 6 + x generates a double-error-correcting binary BCH (15,7,5) code.

Wireless Mobile Communication and Transmission Lab. BCH code  Encoding of BCH: So we have got the generator polynomial g(x), the code word v(x) can be consturcted by v(x) = b(x) + X^(n-k)*m(x). Just the same as encoding the cyclic code mentioned before.

Wireless Mobile Communication and Transmission Lab. Decoding algorithm of BCH  BMA(Berlekamp-Massey Agorithm ) The BMA was invented by Berlekamp (1984), Massey (1969). This is a computationally efficient method to solve the key equation, in terms of the number of operations in GF(2^m).  EA(Euclidean Agorithm)  Direct solution

Wireless Mobile Communication and Transmission Lab. Decoding algorithm of BCH  Let v(X)=v 0 +v 1 X+····+v n-1 X n-1 is the code polynomial of a BCH code whose length n is 2 m -1 and the error correcting ability is t, FOR 1<=i<=2t ,  i is the roots of v(X) , so we can get : v(  i )= v 0 +v 1  i +····+v n-1  i(n-1) =0 From the above property,we can construct H as follows: H= 1   2  3 ··································  n-1 1  2 ( 2 ) 2 ( 2 ) 3 ···················· (  2 ) n-1 1  2t ( 2t ) 2 ( 2t ) 3 ·············· (  2t ) n-1

Wireless Mobile Communication and Transmission Lab. Decoding algorithm of BCH  According to the concept of conjugate element, H can be simplified as follows:  H= 1   2  3 ··································  n-1 1  3 ( 3 ) 2 ( 3 ) 3 ···················· (  3 ) n-1 1  2t-1 ( 2t-1 ) 2 ( 2t-1 ) 3 ····· (  2t-1 ) n-1

Wireless Mobile Communication and Transmission Lab. Decoding algorithm of BCH  We assume that the transmission errors occurred, v(X)=v 0 +v 1 X+····+v n-1 X n-1 changed into r(X)=r 0 +r 1 X+····+r n-1 X n-1 In the receiver side, r(X)=v(X)+e(x) s=(s 1,s 2,·····,s 2t )=r·H T so we can get the ith component of S: s i = r(  i )=r 0 +r 1  i +····+r n-1  i ( n-1 ) while r(X)=a i (x)φ i (X)+b i (X) φ i (  i )=0 s i = r(  i )= b i (  i )=v(  i )+e(  i )= e(  i ) let

Wireless Mobile Communication and Transmission Lab. Decoding algorithm of BCH  From the above analysis,we can get a series of equations about the syndrome: Any method for solving these equations is a kind of decoding algorithm for BCH define the error position polynomial as follows :

Wireless Mobile Communication and Transmission Lab. Decoding algorithm of BCH  The error correcting process of BCH code : 1 、 calculate syndrome S from the receiver polynomial r(X): s=(s 1,s 2, ·····,s 2t ) 2 、 get the error polynomial by s 1,s 2, ·····,s 2t. 3 、 resolve the roots of , find the position of errors,and correct the errors of r(X).

Wireless Mobile Communication and Transmission Lab. BMA  The goal of the BMA is to find a (connection) polynomial σ^ (i+1)(x) of minimal degree that satisfies the following equations, derived from  (a)  The discrepancy at iteration i defined as If di = 0, then the equations (a) are satisfied for If di! = 0: Let σ ^(m)(x) be the solution at iteration m, such that −1 ≤ m < i, dm = 0,and (m − lm) is maximal. Then

Wireless Mobile Communication and Transmission Lab. BMA With an initial value of i = 0, the computation of σ (i+1)(x) continues until the conditions i ≥ i+1 + td − 1 or i = 2td − 1 or both are satisfied. The initial conditions of the algorithm are:

Wireless Mobile Communication and Transmission Lab. BMA  Example Let C be the triple-error-correcting BCH (15,5,7) code of Example As a reference, to check the numerical computations, the power and vector representations of GF(2^4), with primitive polynomial p(x) = 1 + x + x4, are listed. A generator polynomial for C is

Wireless Mobile Communication and Transmission Lab. BMA Suppose that the information polynomial is Then the corresponding code polynomial is given by Let be the polynomial associated with a vector r = v + e received after transmission of code word v over a BSC channel.

Wireless Mobile Communication and Transmission Lab. BMA The vector e corresponds to the error polynomial e(x) = 1 + x6 + x12. Obviously, the decoder does not know this. However, in computing the syndromes below, this knowledge is used to simplify expressions. The syndromes are:

Wireless Mobile Communication and Transmission Lab. BMA Berlekamp–Massey algorithm:

Wireless Mobile Communication and Transmission Lab. BMA

Wireless Mobile Communication and Transmission Lab. BMA

Wireless Mobile Communication and Transmission Lab. BMA Chien search and error correcting  To find the roots of σ(x), a simple trial-and-error procedure – called Chien search – is performed. All nonzero elements β of GF(2m) are generated in sequence 1, a, a^2,... And the condition = 0 tested.  For binary BCH codes, once the error locations j1,..., jv are known, the corresponding bits in the received word are complemented and the estimated code word v(x) generated.

Wireless Mobile Communication and Transmission Lab. Reference  The Art of Error Correction Coding (SECOND EDITION) Written byRobert H.morelos-Zaragoza  Error Control Coding (SECOND EDITION) Written by Shu Lin Daniel J.Costello,Jr.