cc notes lecture 04
TRANSCRIPT
-
7/29/2019 CC Notes Lecture 04
1/59
Computer Communication &
Networks
Lecture # 04
Physical Layer: Signals & Digital Transmission
Course Instructor:
Engr. Sana Ziafat
-
7/29/2019 CC Notes Lecture 04
2/59
Physical Layer Topics to Cover
Signals
Digital Transmission
Analog TransmissionMultiplexing
Transmission Media
-
7/29/2019 CC Notes Lecture 04
3/59
Analog & Digital Data
Data can be analog or digital. The term
analog data refers to information that is
continuous; digital data refers to information
that has discrete states. Analog data take oncontinuous values. Digital data take on
discrete values.
-
7/29/2019 CC Notes Lecture 04
4/59
To be transmitted, data must betransformed to electromagnetic signals.
Note
-
7/29/2019 CC Notes Lecture 04
5/59
Signals can be analog or digital.Analog signals can have an infinitenumber of values in a range; digital
signals can have only a limited
number of values.
Note
-
7/29/2019 CC Notes Lecture 04
6/59
Analog Vs Digital
-
7/29/2019 CC Notes Lecture 04
7/59
Analog Signals
-
7/29/2019 CC Notes Lecture 04
8/59
Sine Wave
-
7/29/2019 CC Notes Lecture 04
9/59
Cont
Three parameters to describe a sine wave
1. Peak amplitude
2. Frequency and time period
3. Phase
-
7/29/2019 CC Notes Lecture 04
10/59
-
7/29/2019 CC Notes Lecture 04
11/59
Bandwidth
-
7/29/2019 CC Notes Lecture 04
12/59
Digital Signals
-
7/29/2019 CC Notes Lecture 04
13/59
Digital Signals
In addition to being represented by an analog
signal, information can also be represented
by a digital signal. For example, a 1 can be
encoded as a positive voltage and a 0 aszero voltage. A digital signal can have more
than two levels. In this case, we can send
more than 1 bit for each level.
-
7/29/2019 CC Notes Lecture 04
14/59
Digital Signal
-
7/29/2019 CC Notes Lecture 04
15/59
Bit Rate & Bit Interval (contd.)
-
7/29/2019 CC Notes Lecture 04
16/59
Bit Interval and Bit Rate
ExampleA digital signal has a bit rate of 2000 bps. What is the
duration of each bit (bit interval)
Solution
The bit interval is the inverse of the bit rate.
Bit interval = 1/ 2000 s = 0.000500 s
= 0.000500 x 106ms = 500 ms
-
7/29/2019 CC Notes Lecture 04
17/59
The bit rate and the bandwidth are
proportional to each other.
Note
-
7/29/2019 CC Notes Lecture 04
18/59
Analog Vs Digital
-
7/29/2019 CC Notes Lecture 04
19/59
Analog versus digital signals
-
7/29/2019 CC Notes Lecture 04
20/59
Low Pass & Band Pass
-
7/29/2019 CC Notes Lecture 04
21/59
Data Rate Limits
-
7/29/2019 CC Notes Lecture 04
22/59
-
7/29/2019 CC Notes Lecture 04
23/59
Noiseless Channel: Nyquist Bit Rate
Defines theoretical maximum bit rate for
Noiseless Channel:
Bit Rate=2 X Bandwidth X log2L
-
7/29/2019 CC Notes Lecture 04
24/59
-
7/29/2019 CC Notes Lecture 04
25/59
Example 8
Consider the same noiseless channel, transmitting a signal
with four signal levels (for each level, we send two bits).
The maximum bit rate can be calculated as:
Bit Rate = 2 x 3000 x log2 4 = 12,000 bps
-
7/29/2019 CC Notes Lecture 04
26/59
Increasing the levels of a signal mayreduce the reliability of the system.
Note
-
7/29/2019 CC Notes Lecture 04
27/59
Noisy Channel: Shannon Capacity
Defines theoretical maximum bit rate for
Noisy Channel:
Capacity=Bandwidth X log2(1+SNR)
-
7/29/2019 CC Notes Lecture 04
28/59
-
7/29/2019 CC Notes Lecture 04
29/59
Example
We can calculate the theoretical highest bit rate of a
regular telephone line. A telephone line normally has a
bandwidth of 4KHz. The signal-to-noise ratio is usually
3162. For this channel the capacity is calculated as
C = B log2 (1 + SNR) = 3000 log2 (1 + 3162)= 3000 log2 (3163)
C = 3000 11.62 = 34,860 bps
-
7/29/2019 CC Notes Lecture 04
30/59
Example
We have a channel with a 1 MHz bandwidth. The SNR
for this channel is 63; what is the appropriate bit rate and
signal level?
Solution
C = B log2 (1 + SNR) = 106 log2 (1 + 63) = 10
6 log2 (64) = 6 Mbps
Then we use the Nyquist formula to find thenumber of signal levels.
6 Mbps = 2 1 MHz log2L L = 8
First, we use the Shannon formula to find our upper
limit.
-
7/29/2019 CC Notes Lecture 04
31/59
The Shannon capacity gives us the
upper limit; the Nyquist formula tells ushow many signal levels we need.
Note
-
7/29/2019 CC Notes Lecture 04
32/59
Transmission Impairments
-
7/29/2019 CC Notes Lecture 04
33/59
Transmission Impairments
Signals travel through transmission media,
which are not perfect. The imperfection
causes signal impairment. This means that
the signal at the beginning of the medium isnot the same as the signal at the end of the
medium. What is sent is not what is received.
Three causes of impairment areattenuation,
distortion, andnoise.
-
7/29/2019 CC Notes Lecture 04
34/59
-
7/29/2019 CC Notes Lecture 04
35/59
-
7/29/2019 CC Notes Lecture 04
36/59
Example
Suppose a signal travels through
transmission medium and its power is
reduced to one half. Calculate attenuation
loss?
-
7/29/2019 CC Notes Lecture 04
37/59
-
7/29/2019 CC Notes Lecture 04
38/59
-
7/29/2019 CC Notes Lecture 04
39/59
Performance
Bandwidth
Throughput
Latency (Delay)
Bandwidth-Delay Product
-
7/29/2019 CC Notes Lecture 04
40/59
Throughput
-
7/29/2019 CC Notes Lecture 04
41/59
Latency
Latency = propagation time
+
transmission time
+
queuing time
+
processing time
-
7/29/2019 CC Notes Lecture 04
42/59
Propagation Time
-
7/29/2019 CC Notes Lecture 04
43/59
The bandwidth-delay product defines
the number of bits that can fill the link.
Note
-
7/29/2019 CC Notes Lecture 04
44/59
Physical Layer Topics to Cover
Signals
Digital Transmission
Analog Transmission
Multiplexing
Transmission Media
-
7/29/2019 CC Notes Lecture 04
45/59
Analog To Digital
Conversion
-
7/29/2019 CC Notes Lecture 04
46/59
Sampling
Pulse Code Modulation
Sampling Rate: Nyquist Theorem
-
7/29/2019 CC Notes Lecture 04
47/59
PCM
-
7/29/2019 CC Notes Lecture 04
48/59
-
7/29/2019 CC Notes Lecture 04
49/59
According to the Nyquist theorem, thesampling rate must be
at least 2 times the highest frequencycontained in the signal.
Note
-
7/29/2019 CC Notes Lecture 04
50/59
Transmission Modes
-
7/29/2019 CC Notes Lecture 04
51/59
-
7/29/2019 CC Notes Lecture 04
52/59
Line Coding & Decoding
-
7/29/2019 CC Notes Lecture 04
53/59
Signal Levels (Elements) Vs Data Levels
(Elements)
-
7/29/2019 CC Notes Lecture 04
54/59
Data Rate Versus Pulse Rate
Number of bits per second = Data Rate
Number of signal elements per second =
Pulse Rate
-
7/29/2019 CC Notes Lecture 04
55/59
Pulse Rate Vs Bit Rate
Example
A signal has two data levels with a pulse duration of 1
ms. We calculate the pulse rate and bit rate as follows:
Pulse Rate = 1/ 10-3= 1000 pulses/s
Bit Rate = Pulse Rate x log2 L = 1000 x log2 2 = 1000 bps
-
7/29/2019 CC Notes Lecture 04
56/59
DC Component
k f h
-
7/29/2019 CC Notes Lecture 04
57/59
Lack of Synchronization
-
7/29/2019 CC Notes Lecture 04
58/59
Example 3
In a digital transmission, the receiver clock is 0.1 percentfaster 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:
1000 bits sent1001 bits received1 extra bpsAt 1 Mbps:
1,000,000 bits sent1,001,000 bits received1000 extra bps
Li C di S h
-
7/29/2019 CC Notes Lecture 04
59/59
Line Coding Schemes