Introduction
Introduction
THEORY
• COURSE OBJECTIVES
• Describe the principles of coding techniques used in digital
communication systems.
Message Encoder
e.g. English symbols e.g. English to 0,1 sequence
Information
Coding
Source
Communication
Channel
Destination Decoding
Information
Coding
Source
Communication
Channel
Destination Decoding
Source Channel
Data
Encoding Encoding
Channel
Source Channel
User
Decoding Decoding
Example: Disk Storage
Channel
Verify
User Unzip
CRC
In terms of Information Theory
Terminology
Source
Zip = Encoding Data Compression
= Source
Unzip Data Decompression
Decoding
Verify Channel
CRC = Decoding Error Correction
Example: VCD and DVD
MPEG RS
Moive
Encoder Encoding
CD/DVD
MPEG RS
TV
Decoder Decoding
Speech CC
Encoding Encoding
Channel
Speech CC
Decoding Decoding
GSM/CDMA
CC stands for Convolutional Code.
Example: WLAN IEEE 802.11b
CC
Data Zip
Encoding
Channel
CC
User Unzip
Decoding
IEEE 802.11b
CC stands for Convolutional Code.
Shannon Theory
1. Measurement of Information
2. Source Coding Theory
3. Channel Coding Theory
Measurement of Information
= ? bits
= ? bits
Or Lottery!?
= ? bits
Or this…
= ? bits
= ? bits
All events are probabilistic!
H ( X ) p( x ) log2 p( x )
x
• Tossing a dice:
• Outcomes are 1,2,3,4,5,6
• Each occurs at probability 1/6
• Information provided by tossing a dice is
6 6
H p(i ) log2 p(i ) p(i ) log2 p(i )
i 1 i 1
6
1 1
log2 log2 6 2.585 bits
i 1 6 6
Wait!
It is nonsense!
•Shannon showed:
“To reliably store the information
generated by some random source
X, you need no more/less than, on
the average, H(X) bits for each
outcome.”
Meaning:
2.585x1,000,000=2,585,000 bits
• Optimal Compression Ratio is:
2,585,000
0.3231 32.31%
8,000,000
Let’s Do Some Test!
Source Channel
Data
Encoding Encoding
Channel
Source Channel
User
Decoding Decoding
The Simplest Case:
Computer Network
Communications over computer network,
ex. Internet
8Mbps
2 Mbps
X4
Alice Bob
p=0.00390625
Shannon challenged:
•Shannon answered:
“Give me a channel and I can
compute a quantity called capacity,
C for that channel. Then reliable
communication is possible only if
your data rate stays below C.”
? ?
? ?
p=0.25
Alice Bob
?
Alice 8 x (1-p)
=6 Mbps p=0 Bob
Unfortunately…
Data Audio
Compression MP3 Compression