Unit 2
Unit 2
2
Unit – 2
Line Coding, Error Detection &
Correction, MAC Protocol,
Networking Devices
3
CODING: LINE CODING AND BLOCK CODING
5
UNIPOLAR SCHEME
–
In this scheme, all the signal levels are either
above or below the axis.
1. Non return to zero (NRZ) – It is
unipolar line coding scheme in which
positive voltage defines bit 1 and the
zero voltage defines bit 0. Signal does
not return to zero at the middle of the
bit thus it is called NRZ. For example:
Data = 10110.
6
POLAR SCHEMES
7
2. Return to zero (RZ)
One solution to NRZ problem is
the RZ scheme, which uses three
values positive, negative and zero. In
this scheme signal goes to 0 in the
middle of each bit.
8
3. Biphase (Manchester and Differential
Manchester )
Manchester encoding is somewhat combination
of the RZ (transition at the middle of the bit) and
NRZ-L schemes. The duration of the bit is
divided into two halves. The voltage remains at
one level during the first half and moves to the
other level in the second half. The transition at
the middle of the bit provides synchronization.
Differential Manchester is somewhat
combination of the RZ and NRZ-I schemes.
There is always a transition at the middle of the
bit but the bit values are determined at the
beginning of the bit. If the next bit is 0, there is a
transition, if the next bit is 1, there is no
transition.
9
MANCHESTER
10
DIFFERENTIAL MANCHESTER
11
12
BLOCK CODING
13
BLOCK CODE – PROCESS (OVERVIEW)
14
15
1. In 4B/5B, the 5-bit output replaces the 4-bit input has no more than one
leading zero (left bit) and no more than two trailing zeros (right bits). So when
different groups are combined to make a new sequence, there are never more
than three consecutive ‘0’s.
16
For example consider the following table of data words and
Code words
Assume the sender encodes the data word 01 as 011 and
sends it to the receiver. Consider the following cases:
1. The receiver receives O11. It is a valid code word. The
receiver extracts the data word 01 from it.
2. The code word is corrupted during transmission, and
111 is received (the leftmost bit is corrupted). This is
not a valid code word and is discarded.
3. The code word is corrupted during transmission, and
000 is received (the right two bits are corrupted). This is
a valid code word. The receiver incorrectly extracts the
data word 00. Two corrupted bits have made the error
undetectable.
17
MULTIPLEXING & IT’S TYPES
Multiplexing is a technique which combines multiple signals into one signal, suitable for
transmission over a communication channel such as coaxial cable or optical fiber.
Multiplexing is also sometimes referred to as muxing
18
MULTIPLEXING & IT’S TYPES
19
FREQUENCY DIVISION MULTIPLEXING
20
WAVE-LENGTH & TIME DIVISION MULTIPLEXING
21
22
ERROR DETECTION AND CORRECTION
In error detection, we are looking only
to see if any error has occurred or not.
But in error correction, we need to
know the exact number of bits that
are corrupted and their location in
the message. The number of the errors
and the size of the message are
important factors
23
24
TYPES
25
PARITY CHECK
Blocks of data from the source are subjected to a check bit or parity bit
generator form, where a parity of :
1. 1 is added to the block if it contains odd number of 1’s, and
2. 0 is added if it contains even number of 1’s
26
CHECKSUM
27
CRC
28