Data Encoding: Introduction To Data Communication and Networking
Data Encoding: Introduction To Data Communication and Networking
Chapter 4
Data Encoding
• In this section, we will discuss how we can represent digital data by using digital
signals.
• The representation involves three techniques:
• line coding
• block coding
• scrambling.
3.35
LINE CODING
3.36
DATA ELEMENT AND SIGNAL ELEMENT
• Data element : The smallest entity that can represent a piece of information (bit).
• Signal element : The shortest unit (timewise) of a digital signal to carry data
element.
• Data elements are what we need to send; signal elements are what we can send
3.37
DATA ELEMENT AND SIGNAL ELEMENT
4.5
DATA RATE AND SIGNAL RATE
• Data rate : The number of data elements (bits) sent in 1s. Unit : bps
• Signal rate : The number of signal elements sent in 1s. Unit : baud
• Relation between data rate and signal rate (baud rate):
S = c x N x 1/r
• Example 4.1
A signal is carrying data in which one data element is encoded as one signal element ( r = 1). If the bit rate is 100
Solution
4.6
LINE CODING SCHEMES
4.7
UNIPOLAR SCHEME
4.8
POLAR SCHEME
Manchester
to-negative transition.
4.9
POLAR SCHEME
4.10
4-2 DIGITAL-TO-ANALOG CONVERSION
• Bit rate (N) is the number of bits per second. Baud rate (S) is the number of signal elements per
second.
• Relationship between S and N:
S = N x 1 baud ( r = log2L )
r
• The baud rate is less than or equal to the bit rate.
DIGITAL-TO-ANALOG CONVERSION
• Example 4.1
An analog signal carries 4 bits per signal element. If 1000 signal elements are sent
• Example 4.2
An analog signal has a bit rate of 8000 bps and a baud rate of 1000 baud. How
many data elements are carried by each signal element? How many signal elements
do we need?
CARRIER SIGNAL
• A high-frequency signal that acts as a basis for the information signal produced by
sender.
• Digital information then modulated on the carrier signal by modifying one or more
its characteristic (amplitude, frequency or phase).
• This process is called modulation (shift keying) and the information signal is called
modulation signal.
• The middle of the bandwidth is called carrier frequency, fc.
DIGITAL-TO-ANALOG CONVERSION
B = (1 + d) x S
where B is bandwidth, S is baud rate and d is a factor related to the modulation process (value
of d is between 0 and 1)
Example 5.3
We have an available bandwidth of 100 kHz which spans from 200 to 300 kHz. What are the
carrier frequency and the bit rate if we modulated our data by using ASK with d = 1?
Solution
The middle of the bandwidth is located at 250 kHz. This means that our carrier frequency can
be at fc = 250 kHz. We can use the formula for bandwidth to find the bit rate (with d = 1 and
r = 1).
FREQUENCY SHIFT KEYING
5.19
BANDWIDTH FOR FSK
B = (1 + d) x S + 2∆f
where B is bandwidth, S is baud rate, d is a factor related to the modulation process (value between 0 and 1), and 2∆f is difference
between 2 frequencies
• Example 5.5
We have an available bandwidth of 100 kHz which spans from 200 to 300 kHz. What should be the carrier frequency and the
Solution
This problem is similar to Example 5.3, but we are modulating by using FSK. The midpoint of the band is at 250 kHz. We
• In FSK, the phase of the carrier is varied to represent two or more different signal elements.
• Both amplitude and frequency are remains constant
• Same as that for BASK, but less than that for BFSK. No bandwidth is wasted for separating
two carrier signals
• Example 5.7
Find the bandwidth for a signal transmitting at 12 Mbps for QPSK. The value of d = 0
Solution
For QPSK, 2 bits is carried by one signal element. This means that r = 2. So the signal rate
• Define the relationship between amplitude and phase of a signal elements, particularly when
using two carriers (one in-phase and one quadrate).