DataCommunication (5CCI02) Module2 Part1
DataCommunication (5CCI02) Module2 Part1
Dr. Jagadamba G
Dept. of ISE, SIT, Tumakuru
Data Communication and Networking
Forouzan, 5th Edition
Chapter 3 : Introduction to
physical layer
To be transmitted,
data must be transformed to electromagnetic signals.
The Transmitter at Initiator side and Receiver at the Destination
side will receive signals through the transmission media.
Analog and Digital
• Analog data refers to information that is continuous and take on
continuous values.
• Digital data refers to information that has discrete states and take on
discrete values.
• Analog signals refer to infinitely many levels of intensity over a period
of time and can have an infinite number of values in a range.
• Digital signals can have only a limited number of values. But it can be as
simple as 0 and 1
Applications of Data and Signal changeover
period
peak
amplitude
time
time
10
Peak Amplitude
The frequency domain is more compact and useful when we are dealing with
more than one sine wave.
For example, above figure shows three sine waves, each with different amplitude
and frequency. All can be represented by spikes in the frequency domain.
Phases
• Phase describes the position of the waveform relative to time zero.
• It also describes the amount of shift and status of the first cycle.
• It is measured in radians(360º is 2π rad, 1º is 2π/360 and 1 rad is 360/2π)
Example
A sine wave is offset 1/6 cycle and ¼ cycle with respect to time 0. What
is its phase in degrees and radians?
Solution
We know that 1 complete cycle is 360°.
λ=c/f
Example
1. Let us consider the speed of the light, that is 3× 10^8 meters/sec. If a
red light has a frequency of say 2 × 10^14Hz. What is the wavelength of
red light?
Solution:
λ=c/f= (3× 10^8)/(2 × 10^14Hz)
Solution:
f=c/ λ = (3× 10^8)/(2 × 10^14Hz)
Composite signals
• For data communication a simple sine wave is not useful, what is used is a
composite signal which is a combination of many simple sine waves.
• A composite signal is made of many simple periodic or nonperiodic sine
waves.
• If we had only one single sine wave to convey a conversation over the
phone, it would make no sense and carry no information. We would just
hear a buzz. Hence, a single frequency sine wave is not useful in data
communications.
• we need to send a composite signal, a signal made of many simple sine
waves.
Time and frequency domain plots of a
composite sine wave
• The frequency domain is more compact and useful when we are dealing with
more than one sine wave.
• A single-frequency sine wave is not useful in data communication.
• We need to send a composite signal, a signal made of many simple sine waves.
A composite periodic signal
A composite periodic signal
Solution
• Total is 200, so two half is 100Hz,
• But middle is 140kHz, hence
lower frequency=140-100=40kHz
highest frequency=140+100=240kHz
• The lowest frequency must be at 40 kHz and the highest at
240 kHz.
29
DIGITAL SIGNALS
I=2Blog2M
M=signal level
I=Information/Data rate
Examples
1. A digital signal has 8 levels. How many bits are
represented by each level?
100*24*80*8=1,536,000bps
2*4000*8=64,000bps=64kbps
Example
• To verify the signal strength, a unit of decibel (dB) is used. Where decibel
is a measure of relative strengths of two signals. P1 and P2 are signal
strength at two points 1 and 2 respectively.
Solution
The values of SNR and SNRdB can be calculated as follows:
Example
Solution
We can use the Nyquist formula as
This means that the highest bit rate for a telephone line
is 34.860 Kbps.
If we want to send data faster than this, we can either
increase the bandwidth of the line or improve the signal-
to-noise ratio.
Example
Solution
Example
64
PERFORMANCE
• For example, we may have a link with a bandwidth of 1 Mbps, but the
devices connected to the end of the link may handle only 200 kbps. This
means that we cannot send more than 200 kbps through this link.
• Imagine a highway designed to transmit 1000 cars per minute from one
point to another. However, if there is congestion on the road, this figure
may be reduced to 100 cars per minute.
• The bandwidth is 1000 cars per minute; the throughput is 100 cars per
minute.
Latency
Latency (delay) : defines how long it takes for an entire message to
completely arrive at the destination from the time the first bit is sent out from
the source.
• We can say that latency is made of four components: propagation time,
transmission time, queuing time and processing delay.
Latency =propagation time +transmission time +queuing time + processing delay
• Propagation time is the time required for a bit to travel from the source to
the destination.
Propagation time = Distance/Propagation speed
Transmission time = Message size/Bandwidth
• Queuing time is the time needed for each intermediate or end device to
hold the message before it can be processed. The queuing time is not a
fixed factor; it changes with the load imposed on the network.
Example
Note that in this case, the dominant factor is the propagation time,
not the transmission time, because the message is short and the
bandwidth is high. The transmission time can be ignored.
Example
What are the propagation time and the transmission time
for a 5-Mbyte message if the bandwidth of the network is
1 Mbps?
Assume that the distance is 12,000 km and that light
travels at 2.4 × 108 m/s.
Solution
Solution
We can calculate the propagation time as
Solution
• If the delay for the first packet is 20 ms, for the second is 45 ms, and for
the third is 40 ms, then the real-time application that uses the packets
endures jitter
Data Communication and Networking
Forouzan, 5th Edition
Chapter 4:
Digital to digital conversion
Disadvantage:
• More bandwidth: The transmission of digitally encoded analog signals
requires significantly more bandwidth than simply transmitting the
original analog signal.
• Extra Circuitry for encoding and Decoding: Analog signals must be
converted to digital pulses prior to transmissions and converted back to
their original analog form at receiver, thus require additional circuitry for
encoding and decoding.
• Require Synchronization: Digital transmissions require precise time
synchronization between the clocks in transmitter and receiver.
Digital to digital conversion
• The signals can be represented in digital or analog data.
• Now we can see how we can represent digital data by using digital signals.
• Digital to digital conversion includes three types of conversion techniques
1. Block coding: Block coding refers to the technique of adding extra bits to a
digital word in order to improve the reliability of transmission.
2. Scrambling: Scrambling is a technique that does not increase the number of
bits and does provide synchronization.
3. Line coding: converts a sequence of bits to a digital signal.
• A data element is the smallest entity • A signal element is the shortest unit
that can represent a piece of (timewise) of a digital signal.
information i.e., is a bit (0,01,101,…)
• Data elements are what we need to • Signal elements are what we can
send. send.
• Number of data levels: Number of • Number of signal levels: Number
voltage levels that actually represent of different voltage levels allowed
data values. in a signal.
• In digital data communications, a
signal element carries data
elements.
• Data elements are being carried. • Signal elements are the carriers.
Solution
We assume that the average value of c is 1/2 . The baud rate is then
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
Baseline wandering
0 1 0 0 1 1 0 1
Signal with
t DC component
0 1 0 0 1 1 0 1
Signal without
t DC component
Self-synchronization
• A self-synchronizing digital signal includes timing information in the data
being transmitted.
Providing Synchronization
clock
• Self-synchronization
0 1 0 0 1 1 0 1
t
Example 4.3
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.
Polar
• Uses two voltage levels (negative and positive)
• Eg: NRZ, RZ, Manchester, Differential Manchester
Bipolar
• Uses three voltage levels (+, 0, and –) for data bits
• Eg: AMI and Pseudoternary
Multilevel
• 2B/1Q, 8B/6T and 4D-PAM5
Multitransition
• MLT-3
Unipolar NRZ
0 1 0 0 1 1 0 0
t
Unipolar Signalling
Unipolar Non-Return to Zero (NRZ):
Advantages:
– Simplicity in implementation.
– Doesn’t require a lot of bandwidth for transmission.
Disadvantages:
– Presence of DC level (indicated by spectral line at 0 Hz).
– Contains low frequency components. Causes “Signal Droop” (explained
later).
– Does not have any error correction capability.
– Does not posses any clocking component for ease of synchronisation.
– Is not Transparent. Long string of zeros causes loss of synchronisation.
Polar Encoding
• Two voltage levels (+,-) represent data bits
• Most popular four
– Nonreturn-to-Zero (NRZ)
– Return-to-Zero (RZ)
– Manchester
– Differential Manchester
NRZ Encoding
• Non Return to Zero
– NRZ-L (NRZ-Level): the level of the voltage determines the value of
the bit
0 1 0 0 1 1 1 0
0 1 0 0 1 1 1 0
N = Bit rate
Save = Average signal rate
t
NRZ Encoding
NRZ-L (NRZ-Level)
0 1 0 0 1 1 1 0
NRZ-I (NRZ-Invert)
0 1 0 0 1 1 1 0
t
• In NRZ-L the level of the voltage determines the value
of the bit.
• In NRZ-I the inversion or the lack of inversion
determines the value of the bit.
Solution
The average signal rate is S = N/2 = 500 kbaud. The minimum bandwidth for this
average baud rate is Bmin = S = 500 kHz.
Return to Zero (RZ) Encoding
Return to Zero
• Uses three voltage levels: +, -
and 0, but only + and -
represent data bits
• Bit rate is double than that of
data rate
• No dc component
• Good synchronization
• Main limitation is the ?
increase in bandwidth
Manchester Encoding
• In Manchester encoding , 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 during the second half.
‘One’ is +ve in 1st half and -ve in 2nd half.
‘Zero’ is -ve in 1st half and +ve in 2nd half.
0 1 0 0 1 1 0 1
=0
t
=1
t
Polar biphase: Manchester and differential
Manchester schemes
Polar biphase: Manchester and differential
Manchester schemes
0 1 0 0 1 1 0 1
t
Bipolar AMI Encoding
Bipolar schemes: AMI and pseudoternary
Multilevel scheme
The first 2 letters define the data pattern and last two defines signal pattern
Multilevel: 2B1Q (two binary, one quaternary)
scheme
2m ≤ Ln , then m=2, n=1 and L=4 (quaternary)
Rules
+3
00 11 01 10 01 10 11 00 Bit sequence Voltage level
+1 00 -3
t 01 -1
-1
10 +3
-3
11 +1
We need to send data at a 1-Mbps rate. What is the minimum required bandwidth,
using a combination of 4B/5B and NRZ-I or Manchester coding?
Solution
First 4B/5B block coding increases the bit rate to 1.25 Mbps.
The minimum bandwidth using NRZ-I is N/2 = 1.25/2=625 kHz.
The Manchester scheme needs a minimum bandwidth of 1 MHz.
The first choice needs a lower bandwidth, but has a DC component problem; the
second choice needs a higher bandwidth, but does not have a DC component
problem.
8B/10B block encoding
Design goals:
No DC component
No long sequences of zero-level line signals
No reduction in data rate
Error detection capability
Two cases of Bipolar with 8-Zero Substitution
(B8ZS) scrambling technique
• Used in North America
• B8ZS substitutes eight consecutive zeros with
000VB0VB.
HDB3
High-density bipolar 3-zero (HDB3)
– Used outside of North America
– Based on bipolar-AMI, Four consecutive zero-level voltages
are replaced with a sequence of 000V or B00V.
1. If the number of nonzero pulses after the last substitution is odd, the
substitution pattern will be 000V, which makes the total number of nonzero
pulses even.
2. If the number of nonzero pulses after the last substitution is even, the
substitution pattern will be B00V, which means makes the total number of
nonzero pulses even. Number of Bipolar Pulses
since last substitution
Polarity of Odd Even
Preceding
Pulse
- 000- +00+
+ 000+ -00-
Different situations in High-Density Bipolar 3-
zero (HDB3) scrambling technique