Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
COMMUNICATIONS
Prof.Mostafa
Prof. Mostafa Nofal
Nofal
Dr.
Dr. Ashraf
AShraf Afifi
Afifi
Dr.
Dr. Amira
Amira Ashour
Ashour
Course Specifications
College of Computers كلية احلاسبات
and Information Technology وتقنية املعلومات
Course Description
1- Meaning/need of data communications
2- Overview of data communication system
3- Digital transmission of analog data
4- Transmission of digital data
5- Common transmission Media
6- Error control of data transmission
7- Cellular Mobile Radio
Lectures: 42 Hrs.
Textbook
References
General objective
The course is deigned to provide the students with
the fundamental concepts and techniques of data
communications.
Objectives
Course
CO1: 1- Introduce essential components of an end-to-end
Objectives
data communication system
Lecture Schedule
One 60-minute session + one 120-minute per week.
Course Exams
There will be two exams in the course.
1- Introduction
Meaning of data communications
History of Data Communications
Types of data
Importance of Data Communications
5- Transmission Media
Categories of transmission media
Twisted pair cable
Coaxial cable
Optical fiber cable
Wireless transmission media
Transmission impairments
Course Channel capacity
Topics Multiplexing Techniques
INTRODUCTION
Meaning of data communications
History of Data Communications
Types of data
Importance of Data Communications
Chapter 1
CLO1
Objectives of Chapter 1
By the end of this chapter, the student will be able to:
Understand the meaning of data communications.
Trace the history of data communication industry.
Identify the main types of data and visualize the
techniques of data digitization.
Appreciate the importance of data communications.
Chapter 1
CLO1
What is Data?
Data refers to the raw facts, concepts and instructions that
are collected.
Information refers to processed data that enables us to take
decisions.
In general, data refers to symbolic representations that
convey meaning in agreed and accepted upon rules between
the two partners.
In computer systems, data are usually represented in binary
form of 1s and 0s.
Prof. Mostafa Nofal
College of Computers كلية احلاسبات
and Information Technology وتقنية املعلومات
What is Communication?
Communication refers to the process of imparting,
conveying or exchanging of information via a specific
transmission medium.
Telecommunication implies the exchange of diverse types of
information over a long distance.
3- Early Telegraph
Morse developed the telegraph in 1832, but
demonstrated its use in 1844.
S. Morse
Station A Station B
Key
Sounder
+ Telegraph line
-
V
I
R
Carbon Sound
microphone
G. Marconi
Types of data
1- Text
A text is a sequence of symbols used to represent an idea in
a specific language.
To deal with electronically, each symbol should be
represented with a unique bit pattern of 1s and 0s.
International codes have been designed to represent text.
These include: ASCII, Extended ASCII, EBCDIC, Unicode,
and ISO codes
ASCII Code
EBCDIC code
2- Numbers
Numbers are represented using the binary system.
The number is not represented by ASCII code but directly
converted to a binary number.
This is to simplify mathematical operations on numbers.
3- Images
We cannot transmit an image in its original form.
We need encoded description in terms of 1s and 0s.
Images can be represented by one of two methods: bitmap
graphic or vector graphic.
00111000
00100000
00111000
00100000
00100000
image Matrix
representation
3- Audio
Audio refers sound or music. It is continuous, not discrete.
We use a microphone to change voice from an acoustic to a
continuous electric signal.
To get digital format, sequence of operations is carried out:
1- Sampling
2- Quantization.
3- Encoding to binary patterns.
OVERVIEW OF DATA
COMMUNICATIONS
Model of a Communication System
Classification of Communication Systems
Digital Communication System
Line Configuration
Objectives of Chapter 2
By the end of this chapter, the student will be able to:
Get insight into the operational processes of data
communications.
Specify the main functional elements of a data
communication system.
Understand the modes of data transmission as well
as direction of data flow.
Chapter 2 Understand the salient characteristics of the
electrical signals as a means of conveying data.
CLO1 + CLO2
Information source
and input Transmitter
transducer
Electrical Electrical
waveform commun.
channel
Communications Systems
Analog Digital
communications communications
systems systems
Why Digital?
1- Use of modern digital technology
Advent of VLSI technology reduces cost, size and reliability
of digital transmission circuitry.
2- Data integrity
Due to repeaters, signal impairments does not affect digital
transmission as analog.
3- Ease of multiplexing and robust transmission
Efficient utilization of link capacity can be achieved with
digital rather than analog techniques.
Digital system has can operate at relatively low SNR.
Why Digital?
4- Security and privacy
Encryption can be readily applied to digital signals.
5- Integration of diverse services
By treating all signals digitally, transmission system does
not have to provide special attention to individual services.
Traffic of different types can be intermixed in a single
transmission medium without mutual interference.
6- Performance monitorability
Quality of digital received signal can be ascertained with no
knowledge of the nature of the traffic.
Analog
signal
Analog
signal
Source Channel
Destination decoder decoder Demodulator
Line configuration
It refers to the way through which two or more
communicating devices attach to the transmission line.
Categories of line configuration
Point-to-point Multipoint
Line configuration
It refers to the way through which two or more
communicating devices attach to the transmission line.
Categories of line configuration
Point-to-point Multipoint
Workstation Workstation
More than two specific devices share
a single link.
link The capacity of the channel is shared
between multiple devices.
This type of connection is employed in
Server
the bus network topology.
Workstation It is also called multidrop.
Transmission Modes
The transmission of binary data across a link can be
accomplished in either parallel or serial mode.
Transmission modes
Parallel Serial
Synchronous Asynchronous
Transmission Modes
Parallel transmission
Multiple bits are sent with each clock tick.
Data are organized into groups of n bits transmitted through
n wires.
Sender Receiver
Transmission Modes
Advantages of Parallel transmission
It is characterized by high speed of data transmission.
It can increase the transfer speed by a factor of n over serial
transmission.
Disadvantages of Parallel transmission
High cost as it requires n lines just to transmit data stream.
It is practical only for short distances.
Consequently, parallel transmission is usually limited to
shorter distances.
Transmission Modes
Serial transmission
One bit follows another so it needs only one channel.
As communication within devices is parallel, conversion
devices are required at the interface.
It is designated as synchronous or asynchronous depending
on how the timing and framing information is transmitted.
0 0
8 bits are sent one after another
1 1
1 0 1 1 0 1 1 0 0 1
0 0
Sender 1 1 Receiver
1 1
0 0
serial/Parallel
0 Parallel/serial 0
converter
converter
Transmission Modes
Advantages of Serial transmission
Only one channel is required; consequently cost is reduced.
It has few errors, and is practical for long distances.
Disadvantages of Serial transmission
It is slow.
There is a need for serial to parallel conversions.
Consequently, serial transmission is usually practical for
long distances.
Transmission Modes
Asynchronous Serial Transmission
Timing of a signal is unimportant.
Bits are grouped into bytes.
Each bit is sent independently along the link as a unit.
To alert the receiver to the arrival of a new group, a start bit
is added at byte beginning of each byte.
To alert the receiver know that the byte is finished, a stop
bit is appended to the end of the byte.
Each byte is thus increased to 10 bits.
The transmission of each byte is followed by a gap.
Transmission Modes
Asynchronous Serial Transmission
Synchronization is required only for duration of a single
byte
Stop bit Start bit
0 1 1 0 1 1 0 0 0 1 0 1 1 0 1 1 0 0 0 1 0 1 1 0 1 1 0 0
Sender Receiver
Transmission Modes
Advantages of Asynchronous transmission
It is cheap and cost-effective.
This makes it an attractive choice for situations like low
speed communications.
Disadvantages of Asynchronous transmission
It provides slower data rate due to the addition of stop and
start bits as well as the insertion of gaps into the bit stream.
Transmission Modes
Synchronous Serial Transmission
The bit stream is combined into longer frames that may
contain multiple bytes.
Bits are sent one after another without start/stop bits or
gaps.
Receiver will group the bits into bytes or characters to
reconstruct the information by counting the arrived bits.
0 1 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0
Sender Receiver
Transmission Modes
Synchronous Serial Transmission
There are synchronization characters that are transmitted at
beginning of every data block to achieve synchronization.
Such systems are more expensive and complex but
extremely efficient.
Advantages of synchronous transmission
It provides higher speed than asynchronous transmission
and therefore, it is more useful for high-speed applications.
Disadvantages of synchronous transmission
The timing becomes very important.
Signal Characteristics
Need for Signals
Data are entities that convey meaning while signals are
electric or electromagnetic representations of these data.
Signal is represented as a function of time.
The frequency domain representation of the signal leads to
the concepts of spectrum and bandwidth.
Its spectrum is the range of frequencies that it contains.
The bandwidth of a signal is the width of the spectrum.
Signal Characteristics
Analog and Digital Concepts
Data can take either analog or digital form.
Analog refers to something that is continuous.
Digital refers to something that is discrete.
Like data, signals can be either analog or digital.
Value Value
time time
Signal Characteristics
Periodic and Aperiodic Signals
Analog and digital signals can be periodic and aperiodic.
A periodic signal completes a pattern within a period.
It repeats that pattern over identical subsequent periods.
x(t T ) x(t ), t
The completion of one pattern is called a cycle.
A period is amount of time required to complete one cycle.
Value Value
time time
T T T T
Signal Characteristics
Periodic and Aperiodic Signals
An aperiodic, or non-periodic, signal changes constantly
without exhibiting a pattern or cycle that repeats over time.
Any aperiodic signal can be decomposed into an infinite
number of periodic signals.
Value Value
time time
Signal Characteristics
Deterministic and random Signals
Deterministic signal has a regular pattern.
It can be modeled by an explicit mathematical expression.
Example: x(t)=10 sin 30t.
The pattern of a random signal is quite irregular.
Example is noise.
Signal Characteristics
Simple Analog Signals
Analog signals can be classified as simple or composite.
A simple analog signal, or a sine wave, cannot be
decomposed into simpler signals.
A composite signal is composed of multiple sine waves.
A sine wave is denned by its amplitude, frequency, and
phase.
The amplitude of a signal is the value of the signal at any
time.
The period T is the time needed to complete one cycle.
Signal Characteristics
Simple Analog Signals
The frequency f is the number of periods in one second.
The wavelength λ is the distance traveled in one period.
c
c T
f
Amplitude
One second
Maximum Three periods in one second: f = 3 Hz.
amplitude
time
Minimum
amplitude
Period =1/3 sec T
One cycle
Signal Characteristics
Simple Analog Signals
The phase describes the position of the waveform relative
to time zero.
Signal Characteristics
Time and frequency domains
A signal is denned by its amplitude, frequency, and phase.
Time-domain shows changes in signal amplitude with time.
Frequency-domain plot shows the relationship between
amplitude and frequency.
Signal Characteristics
Composite Signal
Many waveforms do not change in a single smooth curve.
For a signal to communicate data, it is usually a composite
signal.
However, as long as any irregularities are consistent, cycle
after cycle, a signal is still periodic.
Any periodic signal can be decomposed into a collection of
sine waves.
This is the result of the work done by Fourier.
Signal Characteristics
Composite Signal
Time-domain illustrates a composite signal as a single entity.
Frequency-domain shows it as a series of component
frequencies. Amplitude
Amplitude
1 second
7 7
time Frequency
0
Signal Characteristics
Frequency Spectrum and Bandwidth
The frequency spectrum of a signal is the collection of all
the frequency components it contains.
The bandwidth of a signal is the width of the frequency
spectrum.
Amplitude
Frequency
1000 5000
Bandwidth=5000-1000=4000 Hz
Signal Characteristics
Digital Signals
Data can be represented by a digital signal.
Most digital signals are aperiodic.
The period or frequency is not appropriate to be used.
Two new terms, bit interval (instead of period) and bit rate
(instead of frequency) are used to describe digital signals.
Amplitude 1 sec = 6 bit interval
Bit rate = 6 bps
1 0 1 1 0 1
time
Bit interval
Signal Characteristics
Digital Signals
Bit interval To is the time required to send one single bit.
Bit rate rs is the number of bit intervals per second.
1
rs bps
T0
For a digital signal with a bit rate of 5000 bps, the bit
interval is 1/5000 bps, or 200 sec.
Signal Characteristics
Digital Signals
A digital signal can be decomposed into an infinite number
of simple sine waves called harmonics.
This means that when we send a digital signal, we are
sending an infinite number of simple signals.
No practical medium is capable of transferring the entire
range of frequencies, we always have corruption.
Signal Characteristics
Digital Signals
Amplitude Amplitude
time time
Amplitude Amplitude
time time
Signal Characteristics
Digital Signals
Digital signal contains an infinite number of frequencies.
We can recreate it if we send only significant components.
This is the significant spectrum, and its bandwidth the
significant or effective bandwidth.
Amplitude Amplitude
Frequency Frequency
0 Infinity
Infinite bandwidth x Significant bandwidth y
Signal Characteristics
Some Important Signals
Sine wave
Unit impulse.
Unit step.
Sampling function.
Gate function.
Signal Characteristics
Sine Wave
It is the most fundamental in electrical communications.
The sin analysis of networks is simple and convenient.
The response of a sine wave to a linear time invariant
system is also sinusoidal.
It changes in a smooth curve between a minimum and a
maximum amplitude.
It is represented mathematically as
x(t ) A sin(2ft )
Signal Characteristics
Unit Impulse Function
It is also called Dirac delta function, (t).
It has an infinite amplitude with zero width and unity
weight.
(t )dt 1
(t)
1
(t ) 0 for t 0
0 x(t ) (t t
o )dt x(t o )
Signal Characteristics
Unit Step Function
It exists only in positive side and is zero in negative side.
It is discontinuous at t=0.
It may be expressed as
0 for t 0
u (t )
1 for t 0
u(t)
t
0
Signal Characteristics
Sampling Function
It is called interpolation function or the sinc function.
It is defined as sin( x)
sinc ( x)
x
Its maximum sinc(0) =1.
It is an even function of x.
It approaches 0 as x approaches .
It goes through 0 at x = 1, 2, …
Signal Characteristics
Gate Function
It is a rectangular pulse with unity height and width .
The gate pulse is represented mathematically as
t 1 for - t
x(t ) rect 2 2
0 for otherwise
x(t)
1
time
-/2 0 /2
Signal Characteristics
Exponential Fourier Series
A periodic signal s(t) with a period To can be represented by
an exponential Fourier series of the form
s(t ) C (nf
n
s o ) e j 2nfot ; - t
where 1
T0 / 2
j 2nf0t
C s (nf 0 )
T0 s(t ) e dt
T0 / 2
Examples
Signal Characteristics
Trigonometric Fourier Series
The periodic signal s(t) can also be expanded into an infinite
sum of sine and cosine trigonometric functions as
s(t ) a0 2 a n cos(2nf 0 t ) bn sin(2nf 0 t )
where n 1
T0 / 2
1
a0
T0 s(t )
T0 / 2
dt
T0 / 2
1
an
T0 s(t ) cos(2nf t )dt;
T0 / 2
0 n 1,2,...
T0 / 2
1
bn
T0 s(t ) sin(2nf t )dt;
T0 / 2
0 n 1,2,...
Signal Characteristics
Fourier Transform of Aperiodic Signals
Fourier series gives the discrete frequency domain of a
periodic signal.
Fourier transform gives the continuous frequency domain of
a nonperiodic signal that we encounter in communications .
S ( f )e
j 2ft
s (t ) df ; - t
s(t )e
j 2ft
S( f ) dt ; - f
s(t ) S ( f )
Signal Characteristics
Frequency Translation Theorem
In communication, we encounter signals of the form
y(t ) x(t ) cos(2f 0 t )
Such signals are called modulated signals.
the Fourier transform of y(t) is related to the Fourier
transform of x(t) by
Y( f ) 1
2 X ( f f 0 ) X ( f f 0 )
Because of the shifting of the spectrum, it is known as the
frequency translation. It is conveniently restated as
x(t ) cos 2f 0 t 1
2 X ( f f 0 ) X ( f f 0 )
Signal Characteristics
Frequency Translation Theorem
Y ( f ) 12 X ( f f 0 ) X ( f f 0 )
X(f) Y(f)
f f
- fx 0 fx -f0- fx -f0 -f0+ fx f0+fx f0 f0+fx
DIGITAL TRANSMISSION
OF ANALOG DATA
Sampling Theory
Pulse Modulation Techniques
Wave Coding of Analog Signals
Pulse Code Modulation
Chapter 3 Delta Modulation
Data Compression
CLO1 + CLO2
Objectives of Chapter 3
Digital Transmission
Digital Transmission of Analog Signal
Analog data is converted to digital signals through sampling.
The sampled values can be quantized to predefined values.
These samples can be further encoded into a bit stream
before transmission if needed.
x(t) s k (t ) s k (t ) x(t)
Continuous Discrete Discrete Continuous
random random random random
signal sequence sequence signal
Sampling Theory
Statement of Sampling Theory
A signal x(t) that is bandlimited to fx may be represented and
recovered from its samples at a rate ≥ 2fx samples/sec.
Electronic switch
xs(t) = x(t) . s(t) x(t)
Input
X
x(t) Output xS(t)
x(t) xs(t)
xs(t)
Sampling function s(t)
Sampling Theory
Proof of Sampling Theory
The sampling function s(t) can be expressed using xs(t) = x(t) . s(t)
Input
X
trigonometric Fourier series as x(t) Output xS(t)
Sampling Theory
Proof of Sampling Theory Xs(f)
Ideal LPF can recover
X(f) the signal
Practical LPF
f f
-fx 0 -(fs+fx) -fs -(fs-fx) -fx 0 fx fs-fx fs
fx fs+fx
Guard
a: X(f) c: fs>2fx band
Xs(f) Xs(f)
f
-(fs+fx) -fs -fx 0 fx fs -fs -fx 0 fx
fs+fx fs fs+fx
fs - fx
b: fs=2fx Aliased components
d: fs<2fx
Sampling Theory
Important Points about Sampling Theory
If fs>2fx, the sampling leaves the message spectrum intact.
In this case a guard band is used as a buffer.
If fs<2fx, sidebands of the signal overlap and x(t) cannot be
recovered from Xs(f) without distortion.
This distortion is due to under-sampling is celled aliasing.
Thus, we use a LP anti-aliasing or band-limiting filter of cut-
off fx Hz prior to sampling.
Then, the filtered signal is sampled at a rate fs>2fx.
Sampling Theory
Nyquist Sampling Rate and Period
The minimum sampling frequency is called Nyquist rate
fs min==2fx samples/sec
The maximum sampling interval is called Nyquist interval,
Ts max = 1/ 2fx sec
Sampling Theory
Recovery of Original Signal
It is possible to reconstruct x(t) from xs(t) by using LPF with
a cut off frequency of fx Hz, or at a bandwidth of
fx B fs fx
Xs(f)
Ideal LPF can recover
the signal
Practical LPF
f
-(fs+fx) -fs -(fs-fx) -fx 0 fx fs-fx fs fs+fx
Guard
band
Sampling Theory
Recovery of Original Signal
At the receiver, the signal is passed through a simple
holding circuit and a LPF. S
Due to charging
Holding circuit
Due to holding output
LPF output
x(t)
t
c: Output of holding circuit. d: Output of LPF.
Sampling Theory
Example 3.1
A voice message to be transmitted on a telephone line.
It is bandlimited to fx=3.3 KHz, and sampled at 8 KHz.
Find the guard band.
Solution
The minimum required band is given by
Minimum band = 2fx = 2×3.3 = 6.6 KHz Xs(f)
Sampling Theory
Example 3.2
Calculate the Nyquist sampling rate and interval for the
composite analog signal x(t ) 13 sin 500t 8 cos 60t 2 cos 150t
Solution
It can represented as x(t ) 13 sin w1t 8 cos w2t 2 cos w3t
The maximum frequency is fmax = f1 = 250 Hz
The Nyquist sampling rate is
f s 2 f max 2 250 500 samples/sec
The sampling interval is
Ts 1 / f s 1 / 500 2 msec
Sampling Theory
Example 3.3
Find Nyquist sampling rate and interval for the signal
x(t ) 4 cos(3000t ) cos(2000t )
Solution
We need to determine fmax cos A cos B 12 cos( A B) cos( A B)
Then x(t ) 4
2 cos(3000t 2000t ) cos(3000t 2000t )
2 cos(5000t ) 2 cos(1000t )
The maximum frequency is fmax = f1 = 2500 Hz
Sampling Theory
Types of Sampling
Sampling techniques
Sampling Theory
1- Instantaneous Sampling
It is also called the impulse sampling or the ideal sampling.
It uses a train of impulses and a switching sampler.
x (t ) Input signal Ts(t) sampling function.
t
0 t
-4Ts -3Ts -2Ts -Ts 0 T s 2T s 3T s 4T s
x(t)
xs(t)
3T s 4T s
t t
-Ts 0 T s 2T s
Switching sampler.
Sampling Theory
2- Instantaneous Sampling
The impulse train sampling function is expressed as
Ts (t ) (t nTs )
Sampling Theory
Few Points about Instantaneous Sampling
The sampled signal is discrete in time domain with Ts.
The spectrum will repeat for every fs Hz.
Aliasing occurs if fs < 2fx, so over-sampling is usually done.
Ideal sampling is possible only in theory as it is impossible
to have a pulse whose width approaches zero.
The power content in the instantaneous sampled pulse is
negligible; so it is not suitable for communication purposes.
Sampling Theory
2- Natural Sampling
Sampling is performed by a train of periodic rectangular
pulses with finite width and frequency equal to fs Hz.
Tops of samples are not flat but follow the waveform x(t).
x(t) Ts(t) xs(t)
3T s 4T s
t t t t
0 -3Ts -2Ts -Ts 0 Ts 2T s 3T s 4T s -Ts 0 T s 2T s
Xs( f )
Ts
sin c(nf
s ) X ( f nf s )
Sampling Theory
Few Points about Natural Sampling
The spectrum of the sampled signal will repeat itself every fs
with an amplitude weighted by „sinc‟ function envelope.
Its electronic circuitry is somewhat complicated because the
pulse top shape is to be maintained.
Natural sampled pulses are received while contaminated by
noise.
It becomes quite difficult to determine its exact shape.
The distortion after recovery depends on the ratio (/Ts).
Sampling Theory
3- Flat top Sampling
It is called rectangular pulse sampling and it is practical.
The top of the samples remains constant and is equal to
input signal x(t) at the start of sampling.
sampling function Ts(t) xs(t) Flat-top sampling.
x(t) Input signal
3T s 4T s
t t t t
0
-3Ts -2Ts -Ts 0 Ts 2T s 3T s 4T s -Ts 0 T s 2T s
Sampling Theory
Illustrative Sampling Circuit
It is an emitter follower.
In absence of clock, the output follows the input.
The signal x(t) is applied as an input signal.
+Vcc
The clock is applied to the base with:
1- Its frequency = fs Hz.
Input modulating signal
2- High level is at ground (0 v). x(t)
Output
xs(t)
3- Low level is at negative voltage
that is sufficient to bring
clock t
a- PAM
Time
b- PDM
c- PWM
d- PPM
time
time
Noisy channel
X(f)
H(f) X(f)
f f f
fX fX
Baseband signal Low-pass filter Bandlimited signal
t
Sampling
f(t) f(t)
fs(t)
Low
Electronic
t Pass t Switch
Filter t
q5
Quantized error
q4
q3 time
q2
q1
q0
Step size
Input/Output
Quantizer
input Input
Quantizer
output
Pqe(qe)
1/
Quantization
error (i/p-o/p)
/2 qe
t -/2 +/2
-/2
d: Distribution of quantization error.
c: Range of quantization error.
Encoder
0 1 0 1 1 0 0 1
0 for qe 2 Pqe(qe)
1/
f qe (qe ) 1 for - 2 qe 2
0 for qe 2
qe
-/2 +/2
2
1 q 2
2 3 2
1
q e dq e e
2
3 12
2 2
Decision
Amplitude making
equalizer device
Distorted Regenerated
PCM signal PCM signal
Timing Distorted
circuit PCM signal
Decision
threshold
a: Block diagram of a regenerative repeater.
Sampling
instants
decision
0 1 0 1 0
Regenerated
PCM
output
Output
voltage Compression Linear
characteristics
Expansion
Input voltage
Expansion
Compression
+
Prediction
filter
b: DPCM receiver.
Pulse ~
generator x (t )
Pi(t)
x (t)
+ Po(t)
x(t) (t) Communication
Differential Modulator
amplifier channel
- t
~
x (t )
Integrator
Po(t)
(t) = x(t) - ~
x (t ) t
t
To reduce this error, the step size must be increased when
the slop of the signal x(t) is high.
t
The solution to this problem is make step size small.
Gain
control
input
R
Square law
device
C
DATA COMPRESSION
Data Compression
Meaning of Data Compression
The rate of data demand from the public is ever increasing.
Users need to download more and more data in a shorter
and shorter time.
Users want to store more and more data in a smaller space.
Data compression refers to the process of sending or storing a
smaller number of bits.
Compressing data can reduce the amount of data sent or stored by
partially eliminating inherent redundancy.
Data Compression
Need for Data Compression
1- Save the storage capacity needed for large files so that
more files can be stored.
2- Reduce the data traffic across the network which results in
less network congestion (e.g. 1000A).
Data Compression
Applications of Data Compression
Digital photography.
Digital satellite receivers.
Digital cellular telephony.
Medical applications.
Entertainments such as DVD and MP3, 4.
B09A11N01M05
14 4 0 12
000000000000001000011000000000000
1110010000001100
0000000000000000000000000
1111 1010
11111010
Character A B C D E
Frequency 17 12 12 27 32 100
A B C D E
17 12 12 27 32
Prof. Mostafa Nofal
College of Computers كلية احلاسبات
and Information Technology وتقنية املعلومات
Character A B C D E
Frequency 17 12 12 27 32
Code 00 010 011 10 11
A: 00
B: 010
C: 011 EAEBAECDEA
D: 10
E: 11
Send
11 00 11 010 00 11 011 10 11 00
Huffman code
Decoder
00: A
010: B
011: C
1100110100011011101100
10: D
11: E
EAEBAECDEA
1 2 Parsed string
B A
A A, 2B, 3B, 1A, 4B, 5A
BA
1 2 3 Parsed string
B A AB
2B 2B, 3B, 1A, 4B, 5A
B A AB
1 2 3 4 Parsed string
B A AB ABB
3B, 1A, 4B, 5A
3B
B A AB ABB
1 2 3 4 5 Parsed string
B A AB ABB BA
1A, 4B, 5A
1A
B A AB ABB BA
1 2 3 4 5 6 Parsed string
B A AB ABB BA ABBB
4B, 5A
4B
B A AB ABB BA ABBB
1 2 3 4 5 6 7 Parsed string
B A AB ABB BA ABBB BAA
5A
5A
B A AB ABB BA ABBB BAA
B A AB ABB BA ABBB BAA Uncompressed