Top Banner
Channel Encoding & Decoding Viterbi Viterbi Algorithm Algorithm Stefan Kroll Martin Schober Christoph Kaiser Peter Mödlhammer Roland Ortner Hannes Graf
48

Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal...

Mar 23, 2018

Download

Documents

dangbao
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

Channel Encoding & Decoding ViterbiViterbi Algorithm Algorithm

Stefan Kroll Martin SchoberChristoph Kaiser Peter MödlhammerRoland Ortner Hannes Graf

Page 2: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

Channel Encoding & Decoding

1. Digital Communication System 2. Viterbi Algorithm 3. Advantages of the Viterbi Algorithm 4. Presentation of a Demonstration

Software

Page 3: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

1. Digital communicationsystem

• Definition of Viterbi algorithm• Historical background of viterbi-coding• Parts of a digital communication system• Use of the Viterbi algorithm

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 4: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

Digital communication system

• Problem of digital communitcation– Transmit much data via a noisy channel– Detect and correct errors

• Solution– Convolutional coding with– Forward error correction (FER)

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 5: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

Viterbi Algorithm

The Viterbi-Algorithm is a basic part of thecoding and modulation method of the

digital data transmission.With the help of the Viterbi-algorithm it is

possible to recognise data errors andcorrect them at the receiver. [9]

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 6: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

Viterbi Algorithm

"…efficient methode of optimum sequenceestimation of a finite-state process“.

„finding the shortest path through aweighted graph“

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 7: Channel Encoding & Decoding Viterbi Algorithm - · PDF fileChannel Encoding & Decoding ... •Transformation of analogue signal into digital signal •Compression of signal => Information

������������

���

Development

Elias P. introduced– Convolutional codes– Fixed decoding time– First real-time coding

< 1955< 1955

19551955

Channel Encoding was implemented by–Block codes–Linear block codes

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 8: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Development

Other researchers improved the channelcoding methodes– Found new convolutional codes– Improved the performance limits– Designed implementations in hard- & software

19671967

......

Andrew J. Viterbi–Founder of Qualcomm Corporation–Developed the Viterbi Algorithm

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 9: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Development

Viterbi & Reed-Solomon decoding– Used in space communication– geostationary satellite communication

19931993

19951995

Turbo coding merged–Parallel concatenated convolutional technique–Improves performence by chaining up:Viterbi decoder and Reed-Solomon decoder(data recycle through the decoder several times)

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 10: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

51. Information source•Speech of a person •Binary data of a machine e.g. computer=> Analog wave / sequence of discrete symbols

Page 11: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

52. Source encoder (A/D converter) •Transformation of analogue signal into digital signal•Compression of signal=> Information sequence

Page 12: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

53. Channel encoder•Transformation of information sequence into encoded sequence•Adding of redundant information for error recognition and correction=> Code word

Page 13: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

54. Modulator•Modulation of a high frequency carrierby code word e.g. QPSK

Page 14: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

55. ChannelTransmission via channel; Influence by noise• Non-linearity of system• Interferences in the atmosphere: rain, clouds, other radio waves• Reflections

Page 15: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

56. Demodulator•Detection of the phase•Viterbi-decoding in real-time=> Received sequence

Page 16: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

57. Channel decoder•Transformation of received sequence into a=> Binary sequence

Page 17: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Information source

Source encoder

Channel encoder

Modulator

Destination Source decoder

Channel decoder

Demodulator

Noise

Digital communication system

1 2 3 4

9 8 7 6

58. Source decoder (D/A converter)Transformation into a continous waveform=> Analogue signal (speech)

Page 18: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Channel coding: Code Types

Code Types:– Block coding– Convolutional coding

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 19: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

1. Block coding

• Input:– Large message blocks with CRC

• Output:– Block code with different lenght and breaks

Block

CRCChecksum

t

ChannelDecoderChannelDecoder

Input Output

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 20: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

1. Block coding

Example of Block Coding:• Reed-Solomon Block:

• Recognition and correction of 8 error-bytes

188 bytes 16 byte

Viterbi-coded block ++ CRC-block

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 21: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

2. Convolutional Coding

• Input:– Serial data stream with includes redundant

information• Output:

– Decoded binary data stream

ChannelDecoderChannelDecoder

Viterbi Code Binary sequence

OutputInput

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 22: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Use of the Viterbi Algorithm

• Low Signal to noise ratio ratio

• Radio link• Satellite connection• Digital TV (MPEG-2/DVB)• Geostationary satellite networks (VSAT)• Speech recognition• Magnetic recoring• Direct broadcast satellite systems (DBS)

1. D

igita

l com

mun

icat

ion

syst

emsy

stem

Page 23: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

2. Description of theAlgorithmus

• Generation of the data• Convolutional encoder• Parameters• Channel symbols mapping• Noise adding• Channel symbol quantizing• Viterbi Decoding

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 24: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Generation of the data

• needed for simulation• eg. using a random number genarator

– eg. rand (); in C– value less than half of the maximum value is

a zero– any value grater or equal to half of the

maximum value is a one

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 25: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Convolutional encoder

Output

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 26: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Convolutional encoder

State diagram Encoder2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 27: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Parameters

• eg. k=3– represent the code generator polynomials

• eg. m=2– number of shift-register

• eg.R=1/2– code rate (one inputbit two outputbits)

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 28: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Channel symbols mapping

• Is simply a matter of translating:

• zeros to +1• ones to –1

– method is called living zero

This can be accomplished by performing the operation: y = 1-2x

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 29: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Noise adding

• generating Gaussian random numbers• adding the scaled Gaussian random

numbers to the channel symbols values

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 30: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Channel symbol quantizing

• Hard-decision• Soft-decision

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 31: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Hard-descision

• quantized to one-bit precision

• < 0V = 1• > 0V = 0

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 32: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Soft-decision

• quantized with more than one bit ofprecision

• three or four bits of precision canperform about 2 dB better than hard-decision

• the usual quantization precision is threebits

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 33: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

3 Bit Quantizer2.

2.

Des

crip

tion

of th

e Al

gorit

hmD

escr

iptio

n of

the

Algo

rithm

Page 34: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Viterbi Decoding

• Diagrams help to understand thealgorithm

– State diagram– Trellis diagram

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 35: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

State diagram / Trellis diagram

State diagram Trellis diagram2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 36: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Viterbi decoding 12.

2.

Des

crip

tion

of th

e Al

gorit

hmD

escr

iptio

n of

the

Algo

rithm

Page 37: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Viterbi decoding 22.

2.

Des

crip

tion

of th

e Al

gorit

hmD

escr

iptio

n of

the

Algo

rithm

Page 38: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Trellis diagram

11111

00111

11001

00001

11110

00110

11000

00000

sended bitnextcurrent

2.

2. D

escr

iptio

n of

the

Algo

rithm

Des

crip

tion

of th

e Al

gorit

hm

Page 39: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

3. Advantages of theViterbi Algorithm

• Self-Correction of the Code• Minimization of the Transmitting Energy• Minimization of the Bandwidth• Other Advantages

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 40: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Self-Correction of the Code

• very good ability to correct wrongtransmitted bits ⇒ forward errorcorrection

• done by adding of a redundantinformation

• state diagram offers a completedescription of the system

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 41: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Self-Correction of the Code

• State diagram

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 42: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Minimization of theTransmitting Energy

• BER

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 43: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Minimization of theTransmitting Energy

• good designed satellite transmissions:BER< 10-6

• professional transmissions: BER < 10-10

• transmitting power: 4 Watt

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 44: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Minimization of the Bandwidth

• possible to reconstruct lost data ⇒ usedto save bandwidth

• more bandwidth needed, because of allthe redundant information

• rate 1/2 ⇒ double of the bandwidth• don’t send every third bit ⇒ able to

reconstruct the dropped data

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 45: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Minimization of the Bandwidth

• called puncturing of the code• disadvantage: the transmitting energy

have to been increased

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 46: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Other Advantages

• fixed decoding time• high transfer rate, up to 2 Mbps• implementation in hardware and software

3.

3. A

dvan

tage

s of

the

Algo

rithm

Adva

ntag

es o

f the

Alg

orith

m

Page 47: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

4. Presentation of the Software

• task:– constraint length: 7– code rate: 1/2– soft decision: 3 bit quantizer

4. P

rese

ntat

ion

of th

e So

ftwar

e4.

Pre

sent

atio

n of

the

Softw

are

Page 48: Channel Encoding &amp; Decoding Viterbi Algorithm - · PDF fileChannel Encoding &amp; Decoding ... •Transformation of analogue signal into digital signal •Compression of signal =&gt; Information

������������

���

Viterbi Algorithm

Thank You for Your Attention!