0% found this document useful (0 votes)
21 views

Computer Communication and Networks-Encoding Techniques-Jasmin

1) There are four main encoding techniques used in computer communication and networks: digital-to-digital, digital-to-analog, analog-to-digital, and analog-to-analog encoding. 2) Digital-to-digital encoding takes binary signals from a computer and encodes them into voltage pulses that can be transmitted through a medium using methods like unipolar, polar, and bipolar encoding. 3) Analog-to-digital encoding converts analog signals like voices into digital signals using techniques like pulse code modulation (PCM) which samples, quantizes, and encodes the analog information.

Uploaded by

zerihun demere
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Computer Communication and Networks-Encoding Techniques-Jasmin

1) There are four main encoding techniques used in computer communication and networks: digital-to-digital, digital-to-analog, analog-to-digital, and analog-to-analog encoding. 2) Digital-to-digital encoding takes binary signals from a computer and encodes them into voltage pulses that can be transmitted through a medium using methods like unipolar, polar, and bipolar encoding. 3) Analog-to-digital encoding converts analog signals like voices into digital signals using techniques like pulse code modulation (PCM) which samples, quantizes, and encodes the analog information.

Uploaded by

zerihun demere
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

COMPUTER COMMUNICATION

AND NETWORKS

ENCODING TECHNIQUES
Encoding
• Coding is the process of embedding clocks into a given data stream and

producing a signal that can be transmitted over a selected medium.

• Transmitter is responsible for "encoding" i.e. inserting clocks into data

according to a selected coding scheme

• Receiver is responsible for "decoding" i.e. separating clocks and data from

the incoming embedded stream.

• Systems that use coding are synchronous systems .

• We must encode data into signals to send them from one place to another.

• There are 4 possible encoding techniques that can be used on the data:

Digital-to-digital, Digital-to-Analog, Analog-to-analog, Analog-to-digital.


Digital-to-Digital Encoding

• The binary signals created by your computer (DTE) are translated into a
sequence of voltage pulses that can be sent through the transmission
medium.
• Binary signals have two basic parameters: amplitude and duration.
• As the number of bits sent per unit of time increases, the bit duration
decreases.
• The three most common methods of encoding used are: unipolar , polar ,

and bipolar .
Digital-to-Digital Encoding
Unipolar Encoding

•The simplest and most primitive


type of encoding is Unipolar encoding.
•Typically, one voltage level stands
for binary 0 and another voltage
level for binary 1.
•Polarity refers to whether you have
a positive or a negative pulse.
•Unipolar encoding uses only one
polarity, only one of the two binary
states is encoded, usually the 1.
•Two problems with unipolar encoding:
DC component and synchronization . 5
UNIPOLAR ENCODING

Unipolar encoding uses only one voltage level.


Problems in Unipolar encoding
DC Component
• Average amplitude of a unipolar encoded signal is nonzero.
• This creates a direct current (DC component) -- shifts the zero level
that cannot travel through some media (e.g. microwave).
Synchronization
• The change in voltage for each bit is what allows a digital encoding
system to indicate changes in bit type.
• Long strings of zeros and ones do not produce any transitions which
may create problems in error detection and recovery.
Lack of synchronization
Polar Encoding

Polar encoding uses two levels (positive


and negative) of amplitude.
Polar encoding eliminates some of the DC
residual problem, because the average
voltage level on the line is reduced.
The power to transmit this signal is one
Polar encoding uses two voltage levels
half that of unipolar signal.
(positive and negative).
Several types: NRZ, RZ, and biphase.

9
Non Return to Zero

NRZ
• Non-return to Zero (NRZ) -- signal is always positive or negative.
• Two main types of NRZ: NRZ-L and NRZ-I
NRZ-L
• NRZ-L: signal never returns to zero voltage, and the value during a bit time
is a level voltage.
• Good for short and well- shielded transmission paths.
• In NRZ-L the level of the signal is dependent upon the state of the bit,
dependent upon the state of the bit
Non Return to Zero- Inversion
NRZ-I

• NRZ-I : invert on ones

• The transition between a positive and negative voltage represents a 1 bit.

• Provides more synchronization than NRZ-L because there is a transition


for each 1 bit.

• In NRZ-I the signal is inverted if a 1 is encountered.


NRZ-L and NRZ-I encoding
RZ encoding
Tries to solve the problem of losing
synchronization due to long strings of
consecutive 1s or 0s.
•Signal change during each bit promotes
synchronization.
Positive voltage=1;Negative voltage=0
Signal returns to zero halfway through the
bit interval.

13
Biphase
• Signal changes at the middle of the bit interval,does not return to zero, goes
to opposite pole.

• Good solution to synchronization problem

• Two types of biphase encoding used in networks:

• Manchester and Differential Manchester

Manchester

• This code is self-clocking.

• Provides a transition for every bit in the middle of the bit cell. This
transition is used only to provide clocking.

• +ve to -ve transition for a "0" bit; -ve to +ve transition for a "1" bit

• This scheme is used in Ethernet and IEEE 802.3 compliant LANs


Manchester Encoding

In Manchester encoding, the transition at the middle of the bit is


transition at the middle of the bit is used for both synchronization
and bit used for both synchronization and bit representation.
Differential Manchester Coding
• Code is self-clocking
• Transition for every bit in the
middle of the bit cell
• Transition at the beginning
of the bit cell if the next bit is In differential Manchester encoding,
"0" the transition at the middle of the bit
• NO Transition at the is used Transition at the middle of the
beginning of the bit cell if bit is used only for synchronization.
the next bit is " 1 " The bit representation is defined by
• Used in Token Ring or IEEE the
802.5-compliant LANs. inversion or noninversion at the
beginning of the bit.
Analog-to-Digital Encoding

The challenge is to transform potentially


infinite values in an analog message to
digital without losing data (e.g. voice on
CD)
Pulse Amplitude Modulation (PAM)
• Samples the analog message and
generates pulses based on the sampling.
Sampling-- measures the amplitude of the
signal at equal intervals.

17
Analog-to-Digital Encoding
Pulse Code Modulation (PCM)

•Uses 3-4 processes to create a digital


signal: PAM (sampling), quantization
(discrete amplitudes +/- value), binary
encoding, and digital-to-digital encoding.

•PCM is the sampling method used to


digitize voice in T-line transmission in
North American telecommunications
system (codecs).

• PCM sampling rate - twice the


highest frequency of the original signal –
to ensure the accurate reproduction of an
original analog signal using PAM

18
Analog-to-Digital Encoding
Digital-to-Analog Encoding
• Used in transmitting data from one computer to another across a public
access phone line
Bit Rate and Baud Rate
• Bit rate is the number of bits transmitted per second.
Bit rate is always >/= to the baud rate
• Baud rate is the number of signal units per second required to send those
bits.
Carrier signal
• A high-frequency signal that acts as a basis for the information signal - by
sender
• Digital information is encoded by modulating the signal's: amplitude,
frequency, or Phase
• Bit rate=Baud rate X No. of bits per signal element
Analog-to-Digital Encoding
Pulse Code Modulation (PCM)

•Uses 3-4 processes to create a digital


signal: PAM (sampling), quantization
(discrete amplitudes +/- value), binary
encoding, and digital-to-digital encoding.

•PCM is the sampling method used to


digitize voice in T-line transmission in
North American telecommunications
system (codecs).

• PCM sampling rate - twice the


highest frequency of the original signal –
to ensure the accurate reproduction of an
original analog signal using PAM

21
Amplitude Shift Keying (ASK)
•To represent binary signals, the
amplitude is varied - 1 or 0.

•Keying means turning a transmitter on


and off.

•Highly susceptible to noise interference.


Noise is referred as random electrical
signals (voltages) that tend to generate
errors in transmission; introduced into a
line by heat from circuit components, or
natural disturbances .

22
Relationship between baud
rate and bandwidth in ASK
Frequency Shift Keying (FSK)
Frequency is varied to represent binary 1
or 0.

• Noise interference not a problem


because it's looking for frequency changes
and doesn't care about voltage spikes.

24
Phase Shift Keying(PSK)
Phase is varied to represent
binary 1 or 0.
Limited by the ability of the
equipment to detect small
differences in phase. This
limits its potential bit rate.
Quadrature Amplitude
Modulation (QAM)
•Means combining ASK and
PSK in such a way that we
have a maximum contrast
between each bit, dibit (one-
pair), quadbit (two-pair), and
so on.
•Theoretically, any
measurable number of
changes in amplitude can be
combined with any
measurable number of
changes in phase.
•Uses more phase shifts than
amplitude shifts to reduce
noise susceptibility.
Analog to Analog Modulation
Amplitude Modulation (AM)
•The carrier's signal is modulated
so that amplitude varies with the
changing amplitude of the signal.
•The bandwidth of an AM signal is
equal to twice the bandwidth of the
modulating signal and covers a
range centered around the carrier
frequency.
• AM radio stations need a
minimum bandwidth of 10 Khz.
Frequency Modulation (FM)

The frequency of the


carrier signal is modulated
to follow the changing
voltage level (amplitude) of
the modulating signal.
The bandwidth of an FM
signal is equal to 10 times
the bandwidth of the
modulating signal.
An FM station needs a
bandwidth of 200 KHz (0.2
MHz).
Phase Modulation (PM)

The phase of the carrier


signal is modulated to
follow the changing
voltage level (amplitude) of
the modulating signal.

Used as an alternative to
frequency modulation.

You might also like