Computer Network (CSI-405) Lecture 01 by Pro Javeed
Computer Network (CSI-405) Lecture 01 by Pro Javeed
The terms analog and digital correspond, roughly, to continuous and discrete,
respectively. These two terms are used frequently in data communications in at
least three contexts: Data, Signaling , Transmission.
Analog Data
The concepts of analog and digital data are simple enough. Analog data take on
continuous values in some interval. For example, voice and video are
continuously varying patterns of intensity. Most data collected by sensors, such as
temperature and pressure, are continuous valued.
Digital data take on discrete values; examples are text and integers. The most
familiar example of analog data is audio, which, in the form of acoustic sound
waves, can be perceived directly by human beings.
DIGITAL-TO-DIGITAL CONVERSION
Digital-to-digital encoding is the representation of digital information by a digital signal.
When binary 1s and 0s generated by the computer are translated into a sequence of
voltage pulses that can be propagated over a wire, this process is known as digital-to-
digital encoding.
ADVERTISEMENT
ADVERTISEMENT
o Unipolar Encoding
o Polar Encoding
o Bipolar Encoding
Unipolar
o Digital transmission system sends the voltage pulses over the medium link such
as wire or cable.
o In most types of encoding, one voltage level represents 0, and another voltage
level represents 1.
o The polarity of each pulse determines whether it is positive or negative.
o This type of encoding is known as Unipolar encoding as it uses only one polarity.
o In Unipolar encoding, the polarity is assigned to the 1 binary state.
o In this, 1s are represented as a positive value and 0s are represented as a zero
value.
o In Unipolar Encoding, '1' is considered as a high voltage and '0' is considered as a
zero voltage.
o Unipolar encoding is simpler and inexpensive to implement.
Polar
o Polar encoding is an encoding scheme that uses two voltage levels: one is
positive, and another is negative.
o By using two voltage levels, an average voltage level is reduced, and the DC
component problem of unipolar encoding scheme is alleviated.
NRZ
NRZ-L: In NRZ-L encoding, the level of the signal depends on the type of the bit that it
represents. If a bit is 0 or 1, then their voltages will be positive and negative respectively.
Therefore, we can say that the level of the signal is dependent on the state of the bit.
NRZ-I: NRZ-I is an inversion of the voltage level that represents 1 bit. In the NRZ-I
encoding scheme, a transition occurs between the positive and negative voltage that
represents 1 bit. In this scheme, 0 bit represents no change and 1 bit represents a
change in voltage level.
RZ
Disadvantage of RZ:
It performs two signal changes to encode one bit that acquires more bandwidth.
Biphase
o Biphase is an encoding scheme in which signal changes at the middle of the bit
interval but does not return to zero.
o It changes the signal at the middle of the bit interval but does not return to zero
for synchronization.
o In Manchester encoding, a negative-to-positive transition represents binary 1,
and positive-to-negative transition represents 0.
o Manchester has the same level of synchronization as RZ scheme except that it has
two levels of amplitude.
Differential Manchester
o It changes the signal at the middle of the bit interval for synchronization, but the
presence or absence of the transition at the beginning of the interval determines
the bit. A transition means binary 0 and no transition means binary 1.
o In Manchester Encoding scheme, two signal changes represent 0 and one signal
change represent 1.
Bipolar
o Bipolar encoding scheme represents three voltage levels: positive, negative, and
zero.
o In Bipolar encoding scheme, zero level represents binary 0, and binary 1 is
represented by alternating positive and negative voltages.
o If the first 1 bit is represented by positive amplitude, then the second 1 bit is
represented by negative voltage, third 1 bit is represented by the positive
amplitude and so on. This alternation can also occur even when the 1bits are not
consecutive.
Bipolar can be classified as:
AMI
o AMI stands for alternate mark inversion where mark work comes from
telegraphy which means 1. So, it can be redefined as alternate 1 inversion.
o In Bipolar AMI encoding scheme, 0 bit is represented by zero level and 1 bit is
represented by alternating positive and negative voltages.
Advantage:
o DC component is zero.
o Sequence of 1s bits are synchronized.
Disadvantage:
o This encoding scheme does not ensure the synchronization of a long string of 0s
bits.
B8ZS
o If the polarity of previous 1 bit is negative, then the eight 0s will be encoded as
zero, zero, zero, negative, positive, zero, positive, negative.
HDB3
If the number of 1s bits is even, then the violation is made on the place of the first and
fourth consecutive 0s. If the polarity of the previous bit is positive, then violations are
negative, and if the polarity of the previous bit is negative, then violations are positive.
ADVERTISEMENT