Digital To Digital Encoding
Digital To Digital Encoding
Physical Layer
PSG COLLEGE OF TECHNOLOGY DEPARTMENT OF APPLIED
MATHEMATICS AND COMPUTATIONAL SCIENCES COMPUTER
NETWORKS 20XC42 & 20XW42 COMPUTER NETWORKS
Text and Reference books
TEXT BOOKS:
1. Behrouz A Forouzan, “Data Communications and
Networking”, Tata McGraw Hill, 2013
.2. Behrouz A Forouzan, “TCP/ IP Protocol Suite”, Tata
McGraw Hill, 2017.
3. Peterson, Larry L., and Bruce S. Davie. Computer
networks: a systems approach. Elsevier, 2012.
REFERENCES■
1. Kevin Fall R and Richard Stevens W, "TCP/IP Illustrated,
Volume 1: The Protocols”, Addison-Wesley, Ann Arbor, 2011.
2. James F. Ku rose, Keith Ross, “Computer Networking: A
& TCP/IP
Top-Down Approach”, Addison-Wesley, 2017. a Protocol
3. Douglas Comer, “Internetworking with TCP/IP”, Prentice
Hall, 2013. i
^■! ■
Suite
4. William Stallings, "Data and Computer
Communications”, Prentice Hall, 2007.
hlmiAJiriuan
Digital and Analog Transmission
1
S = c x N x ____ r
where N is the data rate (bps); c is the case factor(0-1 ,worst, best, avg), which varies for each case; S is
the number of signal elements; r is the ratio between data element & signal element
• The unit is the baud (Bd)f and ft is a measurement of speed
• This has a baud rate of l_Ekif as the • This has a baud rate of 3_Bd
signal only changes once a second ・ 3 pulses in 1 second
(taken to be the end) ii & rs [
・ This has a baud rate of 1 Bd, and a bit Baud rate still 1 Bd, but the bit rate
rate of 1 bps-only 2 voltage !e 、 /e!s is 2 bps - now each signal
so onlv i hit ne ____ represents 2 bits
Data Communication @lestariningati
Example
Example
The baud rate, not the bit rate, determines the required
bandwidth for a digital signal
What is the bandwidth that s needed for a
communication channel given the baud rate?
There is a relationship between the baud rate (signal rate) and the bandwidth.
What is the bandwidth of the digital signal if we know the baud rate?
Minimum bandwidth that we need is the baud rate
l’ need to have atleast a bandwidth of the channel equals to baud rate in order to the
Signal to pass through (minimum)
More bandwidth more accurately the signal will be received ..but minimum bandwidth
1
Bmin = C X N X ---
r
=H /c) x x r C = 2 B log22'
Data Communication
Self Synchronisation
To correctly interpret the signals received from the sender, the
‘receiver's bit intervals must correspond exactly to the sender's bit
intervals.
If the receiver clock is faster or slower, the bit intervals are not
matched and the receiver might misinterpret the signals.
Figure shows a situation in which the receiver has a shorter bit
duration. The sender sends 10110001, while the receiver receives
110111000011.
Effect of lack of synchronisation
Data Communication
Example
• In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock.
How many extra bits per second does the receiver receive if the data rate is
1 kbps? How many if the data rate is 1 Mbps?
• Solution
• At 1 kbps, the receiver receives 1001 bps instead of 1000 bps.
-----NRZ
-----MLT-3
Data Communication
Unipolar Scheme
□□11
In polar schemes, the voltages are on the both sides of the time axis. For example, the
voltage level for 0 can be positive and the voltage level for 1 can be negative.
In polar Non-Return-to-Zero (NRZ) encoding, we use two levels of voltage
amplitude. We can have two versions of polar NRZ: NRZ-Land NRZ-I, as shown in
Figure. The figure also shows the value of r, the average baud rate, and the bandwidth.
In the first variation, NRZ-L (NRZ-Level), the level of the voltage determines the value
of the bit. In the second variation, NRZ-I (NRZ-lnvert), the change or lack of
change in the level of the voltage determines the value of the bit. If there is no change,
the bit is 0; if there is a change, the bit is 1.
r= 1 S
ave=N/2
-4 Save-N
[
1- Bandwidth
0.5-
U
( )1 1 1
2 f/N
Bipolar Schemes: AMI and Pseudoternary
Multilevel Schemes
Group data bits and form data pattern then map them from a group of signal elements
The goal is to increase the number of bits per baud by encoding a pattern of m data
elements into a pattern of n signal elements.
Two types of data elements (Os and 1s), which means that a group of m data elements can
produce a combination of 2m data patterns.
L_
number of levels in
binary data signaling
a pattern of 8 data elements is encoded into a pattern of 6 signal elements where the signal
has 3 levels
■ *>0^*0 [ .■ - * ■a ■ I ■ Q Q
■ o3" ’*■■ w3 “
QOQ
D■■-0 DC«000 Q»*■«■
*C
•0”0 • •OQd
A
««OQQ
-
,■
QV^VQ 0-^
■ ■ «(tv
0-«o 4*
Q ■ ■ ■'-
Data Communication
8B6T Scheme
+ -. + 0 +
00010001 ■ 01010011 ;
1 01010000 ;
I 1
1
1 tt
i
r 01010000 ---------► 50
inverted
t
1 t
1
inverted
+”+0+
1 I
-0-0++ ; -+-++0 i + — + 0+ i
weight: 0 weight: *1 weight: -1 >
““I~
weight: +1
Mapping Table 8B6T (partial)
+ 0 + -0
■:
■ *>0^*0 [ .■ - * ■a ■ I ■ Q Q
■ o3" ’*■■ w3 “
QOQ
D■■-0 DC«000 Q»*■«■
*C
•0”0 • •OQd
A
««OQQ
-
,■
QV^VQ 0-^
■ ■ «(tv
0-«o 4*
Q ■ ■ ■'-
4D-PAM5(Four-dimensional five- level pulse amplitude
modulation
•4D means that data is sent over four wires at the same
uses five voltage levels, such as -2, -1, 0,
•one level, level 0, is used only for forward error detection
in other words, an 8-bit word is translated to a signal element of four
different levels.
The technique is designed to send data over four channels (four wires). All 8 bits
can be fed into a wire simultaneously and sent by using one signal element.
Gigabit LANs use this technique to send 1-Gbps data over four copper cables that
can handle 125 Mbaud.
This scheme has a lot of redundancy in the signal pattern because 28 data
patterns are matched to 44= 256 signal patterns. The extra signal patterns can be
used for other purposes such as error detection.
Data Communication
00011110 1 Gbps
A 250 Mbps
---------Wire 1 (125 MBd)
>
250 Mbps
---------Wire 2 (125 MBd)
>
Multiline Transmission: MLT-3
c,Transition states
b. Worse case
Summary of Line Coding Schemes
Bandwidth
Category Scheme (average) Characteristics
Unipolar NRZ B = N/2 Costly, no self-synchronization if long Os or Is, DC
NRZ-L B = N/2 No self-synchronization if long Os or Is, DC
Polar ■ NRZ-I B = N/2 No self-synchronization for long Os, DC
Sender Receiver
NRZ-I 4B/5B
encoding encoding decoding decoding
4B/5B
Every 4 bits of data is encoded into a 5-bit code. The 5-bit codes are normally line
coded using NRZ-invert (longer sequences of 1 are tolerated)!!! The selection of the 5-
bit code is such that each code contains no more than one leading 0 and no more
than two trailing Os.
Therefore, when these 5-bit codes are sent in sequence, no more than three
consecutive Os are encountered.
4-bit blocks 5-bit blocks
a Digital signal
a
Link
Data Communication
0001 01001
I (Idle) Q11TTr^
H (Halt) 'durud'
0010 10100
0011 10101 J (Start delimiter) 11000
0100 01010 K (Stall delimiter) 10001
0101 01011 T (End delimiter) 01101
0110 OHIO S (Set) 11001
0111 01111 R (Reset) 00111
1000 10010
1001 10011
1010 10110
1011 10111
1100 11010
1101 11011
1110 11100
1111 11101
Data Communication 8B/10B
□ The eight binary/ten binary (8B/10B) encoding is similar to
4B/5B encoding except that a group of 8 bits of data is now
substituted by a 10-bit code.
□ It provides greater error detection capability than 4B/5B.
□ The 8B/10B block coding is actually a combination of 5B/6B
•Biphase schemes that are suitable for dedicated links between stations in a LAN ・
Not suitable for long-distance communication because of their wide bandwidth
•requirement.
•The combination of block coding and NRZ line coding is not suitable for longdistance
encoding either, because of the DC component.
•Bipolar AMI encoding, on the other hand, has a narrow bandwidth and
does not create a DC component.
•However, a long sequence of Os upsets the synchronization.
•One solution is called scrambling. We modify part of the AMI rule to include
scrambling.
•Note that scrambling, as opposed to block coding, is done at the same time as
encoding. The system needs to insert the required pulses based on the defined
scrambling rules.
•Two common scrambling techniques ar
Data Communication
Sender Receiver
a nr
Modified AMI
」u
Modified AMI \
encoding x
encoding U
Data Communication @lestariningati
100000000
H »»n H
i i i i i l_l ■ i
1 1 1 1 1
1g1 1 y1 1
a. Previous level is positive.
• One more point is worth mentioning. The letter V (violation) or B (bipolar) here is relative.
The V means the same polarity as the polarity of the previous nonzero pulse; B means the
polarity opposite to the polarity of the previous nonzero pulse.
Data Communication High-density bipolar 3-zero (HDB3)
|-| no ; 0ri
I
i L ! !
I
I
1
1 1
I ! I
」1
1
1 1 1 I i
1
1
1
1
1 i i 1 1
1 i i i i i
1 1 .....v......
1 1
we need11 to mention
1 1 1 1 1 v
• There are several points
1 1 here.
1 First,
1 before
1 the first substitution, the
number of nonzero t pulses is1 even,
M sof the f first substitution is BOOV. After this substitution,
the polarity of the 1 bit is changed because the AMI scheme, after each substitution, must
follow its own rule. After this bit, we need another substitution, which is 000V because we
have only one nonzero pulse (odd) after the last substitution. The third substitution is BOOV
because there are no nonzero pulses after the second substitution (even).
Example
• The maximum data rate of a channel (see Chapter 3) is Nmax = 2 x B x iog2 L (defined by
the Nyquist formula). Does this agree with the previous formula for Nmax?
• Solution
• A signal with L levels actually can carry log2L bits per level. If each level corresponds to
one signal element and we assume the average case (c = 1/2), then we have