Line Coding, Block Coding and Scrambling
Line Coding, Block Coding and Scrambling
Scrambling
Digital To Digital Conversion
• A computer network is designed to send
information from one point to another.
• This information needs to be converted to
either a digital signal or an analog signal for
transmission.
• Digital To Digital Conversion involves
representing digital data using digital signal
using three techniques:
Line coding, block coding and scrambling
Line Coding
• Line coding is the process of converting digital
data to digital signals.
• The data is in the form of text, numbers, graphical
images, audio, or video, are stored in computer
memory as sequences of bits.
• Line coding converts a sequence of bits to a
digital signal.
• At the sender, digital data are encoded into a
digital signal
• At the receiver, the digital data are recreated by
decoding the digital signal.
Line coding and decoding
Characteristics of line coding
Basic
1. Signal Element and Data Element
2. Data Rate and Signal Rate
Specific to schemes
1. Baseline wandering.
2. DC component.
3. Self Synchronization.
4. Built in Error Detection.
5. Immunity to noise and interference.
6. Complexity.
1. Signal Element and Data Element
– A data element is the smallest entity that can
represent a piece of information: this is the bit.
– A signal element is the shortest unit (timewise) of
a digital signal that carries data elements.
– Data elements are what we need to send; signal
elements are what we can send.
– Data elements are being carried; signal elements
are the carriers.
– A ratio r is the number of data elements carried by
each signal element.
Signal element versus data element
2. Data Rate Versus Signal Rate
– The data rate defines the number of data elements
(bits) sent in 1s.
– The unit is bits per second (bps).
– The signal rate is the number of signal elements sent
in 1s. The unit is the baud.
– The data rate is sometimes called the bit rate; the
signal rate is sometimes called the pulse rate, the
modulation rate, or the baud rate.
• One goal in data communications is to increase
the data rate while decreasing the signal rate.
• Increasing the data rate increases the speed of
transmission; decreasing the signal rate decreases
the bandwidth requirement.
Relationship between data rate and signal rate
• This relationship is dependent on r and on data
pattern.
• The worst case is when we need the maximum
signal rate, the best case is when we need the
minimum.
• The relationship between data rate and signal rate
as
S =c xNx 1/r baud
Where
N is the data rate (bps); c is the case factor, which
varies for each case; S is the number of signal
elements; and r is the previously defined factor.
Example 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 kbps, what is the
average value of the baud rate if c is between 0
and 1?
Soln:
We assume that the average value of c is 1/2 .
The baud rate is then
Bandwidth
• Digital signal is non periodic.
• The baud rate, not the bit rate, determines the
required bandwidth for a digital signal.
• The bandwidth reflects the range of frequencies
needed.
• Bandwidth (range of frequencies) is proportional
to the signal rate (baud rate).
• The minimum bandwidth can be given as
Bmin = c * N *1/ r
Where c- case factor, N is maximum data rate and r
is the factor defined previously
3. Baseline Wandering
• In decoding a digital signal, the receiver
calculates a running average of the received
signal power.
• This average is called the baseline.
• The incoming signal power is evaluated against
this baseline to determine the value of the data
element.
• A long string of Os or 1s can cause a drift in the
baseline (baseline wandering) and make it
difficult for the receiver to decode correctly.
• A good line coding scheme needs to prevent
baseline wandering.
Baseline Wandering Example
4. DC Components
4.17
6. Built-in Error Detection
• It is desirable to have a built-in error-detecting
capability in the generated code to detect some of
or all the errors that occurred during transmission.
7. Immunity to Noise and Interference
• Another desirable code characteristic is a code
that is immune to noise and other interferences.
8. Complexity
• A complex scheme is more costly to implement
than a simple one.
• For example, a scheme that uses four signal levels
is more difficult to interpret than one that uses
only two levels.
Line coding schemes can be divided into five
broad categories
Unipolar Scheme
• In a unipolar scheme, all the signal levels are
on one side of the time axis, either above or
below.
NRZ (Non-Return-to-Zero)
• The positive voltage defines bit 1 and the zero
voltage defines bit O.
• It is called NRZ because the signal does not
return to zero at the middle of the bit.
Unipolar NRZ