Professional Documents
Culture Documents
COMMUNICATION
WHAT IS ERROR?
Error is a condition when the
During transmission, digital signals can suffer from noise that can introduce errors in the binary
bits travelling from one system to other. That means a 0 bit may change to 1 or a 1 bit may
change to 0.
ERROR DETECTION AND CORRECTION
ERROR CORRECTION
ERROR DETECTION
Error detection is the detection of errors Error correction is the detection of errors
caused by noise or other impairments during and reconstruction of the original, error-
transmission from the transmitter to the free data.
receiver.
TYPES OF ERROR
Single bit error
Multi bits error
Burst bits error
00 11 00 11 00
00 11 1 11 00 00 11 1 11 1 0 0 1 0 0
“Hamming code is a set of error-correction codes that can be used to detect and
correct bit errors that can occur when computer data is moved or stored.”
OVERVIEW
Add Parity Bits
Systematic form.
Single-bit detection and correction code, if multiple bits are errored then the
errors are detected but the resultant could cause another bit that is correct to
be changed, causing the data to be further errored.
Due to this additional property, the encoding and decoding processes can be
implemented more efficiently using a feedback shift register.
CONDITIONS
There are two conditions for the Cyclic Codes :
1. Linearity
Given Code Word should be following the property of Linearity.
2. Cyclic Shift
The Code Word should be following the Cyclic shift.
TYPES OF CODE WORDS
There are two types of code words:
X(x)=xn-k.M(x)+P(x)
Where P(x)
Rem. xn-k.M(x)/g(x)
NON-SYSTEMATIC CODEWORD
X(x)=M(x).g(x)
ADVANTAGES OF CYCLIC CODES
•Good performance in detecting single bit and double bit error and odd number
errors
•Can be easily implemented on both hardware and soft were
•Its decoding is reasonably simple as compare to others
•Minimal distance h(c) is easy to compute if c is linear code
•Cannot be tapped by unwanted receiver.
DISADVANTAGES:
•Heavy restriction for cyclic codes generations are required
•Linearity
• cyclic shift
•Non systematic codes
APPLICATIONS:
The most common cyclic codes application is Steganography.
Steganography is the hiding of a secret message within an ordinary message and the
extraction of it at its destination.
Example:
LINEAR BLOCK CODES
INTRODUCTION
The purpose of linear block coding is to enable the receiver to detect or even correct
the errors by introducing
some redundancies in to the data to be transmitted.
There are basically two mechanisms for adding
redundancy:
1. Block coding
2. Convolutional coding
CHANNEL CODING
The purpose of channel coding theory is to find codes which transmit quickly, contain
many valid code words and can correct or at least detect many errors
Channel Encoding makes a signal compactable for Tx before is transmission. e.g
If signal is analog and Channel is digital.
Linear codes
Algebraic coding theory is basically divided into two major types of codes:
Linear block codes
Convolutional codes
LINEAR BLOCK CODES
Linear block codes have the property of linearity, i.e. the sum of any two code words
is also a code word
There are many types of linear block codes, such as
Cyclic codes (e.g., Hamming codes)
Repetition codes
Parity codes
Polynomial codes (e.g., BCH codes)
Reed–Solomon codes
ERROR DETECTION CODE
TYPES OF ERRORS
Single Bit Error
Only one bit in data unit has changed
Every time the active edge of the clock occurs, the input to
the flip-flop is clocked through to the output, and thus the
data are shifted over one stage.
Depends on the present As well as previous inputs(Stored in SR).
PARAMETERS OF A CONVOLUTIONAL ENCODER
K is the number of bits that form input to encoder
N is the number of bits in the codeword output from encoder
m = number of memory registers
Code Rate: The quantity k/n is called as code rate. It is a measure of
the efficiency of the code.
Constraint Length: The quantity L(or K) is called the constraint length of
the code. It represents the number of bits in the encoder memory that
affect the generation of the n output bits. It is defined by
Constraint Length, L = k (m-1)
ENCODER REPRESENTATIONS
The encoder can be represented in several different but equivalent
ways. They are:
I.State Diagram Representation
II. Tree Diagram Representation
III. Trellis Diagram Representation
I. STATE DIAGRAM REPRESENTATION
In the state diagram, the state information of the encoder
is shown in the circles. Each new input information bit causes
a transition from one state to another.
Contents of the rightmost (K-1) shift register stages define
the states of the encoder. The transition of an encoder from
one state to another, as caused by input bits, is depicted in the
state diagram.
II. TREE DIAGRAM REPRESENTATION
The tree diagram representation shows all possible information
and encoded sequences for the convolutional encoder.
In the tree diagram, a solid line represents input information bit
0 and a dashed line represents input information bit 1.
The corresponding output encoded bits are shown on the
branches of the tree.
An input information sequence defines a specific path through
the tree diagram from left to right.
TRELLIS DIAGRAM REPRESENTATION
The trellis diagram is basically a redrawing of the state diagram. It shows
all possible state transitions at each time
step.
The trellis diagram is drawn by lining up all the possible states (2L) in the
vertical axis. Then we connect each state to the next state by the allowable
codeword’s for that state.
There are only two choices possible at each state. These are determined by
the arrival of either a 0 or a 1 bit.
The arrows show the input bit and the output bits are shown in parentheses.
The arrows going upwards represent a 0 bit and going downwards
represent a 1 bit.
TRELLIS DIAGRAM CONSTRUCTION STEPS
It starts from scratch (all 0’s in the SR, i.e., state a) and makes transitions
corresponding to each input data digit.
These transitions are denoted by a solid line for the next data digit 0 and
by a dashed line for the next data digit 1.
Thus when the first input digit is 0, the encoder output is 00 (solid line)
When the input digit is 1, the encoder output is 11(dashed line).
We continue this way for the second input digit and so on as depicted in Fig
that follows.
CONVOLUTION ENCODING
1)Connection Representation
Let an Example
IMPULSE RESPONSE
STATE
DIAGRAM
Encoder is a linear sequential circuit, its behavior
can be described by a state diagram
TREE DIAGRAM
• Wireless multimedia
– Data: use large frame sizes
• Low BER, but long latency
– Voice: use small frame sizes
• Short latency, but higher BER