notes-Lec 10 - Physical Layer.ppt
-
Upload
waseem-farooq -
Category
Documents
-
view
235 -
download
0
Transcript of notes-Lec 10 - Physical Layer.ppt
![Page 1: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/1.jpg)
Data Transmission, Media
Signal Encoding Techniques
Data Communication Techniques
Data Link Control, ATM
Computer Communication Networks
Physical LayerPhysical Layer
Multiplexing, Switching, Routing
Spread Spectrum, Wireless Networks
Local and Wide Area Networks
![Page 2: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/2.jpg)
2
Transmission of data over Physical Layer: Analog and Digital Data
Lecture Goals
![Page 3: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/3.jpg)
Transmission of data
Data must be transformed to electromagnetic signals to be transmitted.
![Page 4: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/4.jpg)
Data : Analog or Digital
Analog data : human voice, chirping of birds etc , converted to Analog or digital signals
Digital : data stored in computer memory, converted to Analog or digital signals
![Page 5: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/5.jpg)
Examples
Analog data as analog signal : Human voice from our houses to the telephone exchange.
Analog data as digital signal : most of the systems today : Say Human voice, images sent on digital lines .. New telephone system (digital exchanges)
Digital data as analog signal : computer data sent over internet using analog line .. Say telephone line ( say our house to the exchange)
Digital data as digital signal : say from one digital exchange to another
![Page 6: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/6.jpg)
Signals : Analog or digital
Analog signal has infinitely many levels of intensity (infinitely many values, continuous values) over a period of time.
Digital signal has only a limited number of defined values(discrete values) say, 0,1.
![Page 7: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/7.jpg)
Figure 3.1 Comparison of analog and digital signals
![Page 8: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/8.jpg)
Figure 3.2 A sine wave
![Page 9: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/9.jpg)
Figure 3.3 Amplitude
![Page 10: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/10.jpg)
Figure 3.4 Period and frequency
![Page 11: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/11.jpg)
If a signal does not change at all, its frequency is zero.
If it changes instantaneously, its frequency is infinite.
![Page 12: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/12.jpg)
An analog signal is best represented in the frequency domain.
![Page 13: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/13.jpg)
Figure 3.7 Time and frequency domains
![Page 14: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/14.jpg)
Figure 3.7 Time and frequency domains (continued)
![Page 15: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/15.jpg)
Figure 3.7 Time and frequency domains (continued)
![Page 16: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/16.jpg)
Single-frequency sine wave is not useful for data communication A single sine wave can carry electric energy from
one place to another. For eg., the power company sends a single sine wave with a frequency of say 60Hz to distribute electric energy to our houses.
![Page 17: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/17.jpg)
Contd..
If a single sine wave was used to convey conversation over the phone, we would always hear just a buzz.
If we sent one sine wave to transfer data, we would always be sending alternating 0’s and 1’s, which does not have any communication value.
![Page 18: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/18.jpg)
Composite Signals
If we want to use sine wave for communication, we need to change one or more of its characteristics. For eg., to send 1 bit, we send a maximum amplitude, and to send 0, the minimum amplitude.
When we change one or more characteristics of a single-frequency signal, it becomes a composite signal made up of many frequenies.
![Page 19: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/19.jpg)
Figure 3.9 Three harmonics
![Page 20: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/20.jpg)
Figure 3.10 Adding first three harmonics
![Page 21: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/21.jpg)
Fourier Analysis
In early 1900s, French Mathematician Jean-Baptiste Fourier showed that any composite signal can be represented as a combination of simple sine waves with different frequencies, phases and amplitudes.
More is the number of components included better is the approximation
For eg., let us consider the square wave …
![Page 22: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/22.jpg)
Time-Voltage graph
Time on x-axis in msec, Voltage on y-axis
![Page 23: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/23.jpg)
The first trace in the above figure is the sum of 2 sine waves with amplitudes chosen to approximate a 3 Hz square wave (time base is msec). One sine wave has a frequency of 3 Hz and the other has a frequency of 9 Hz.
The second trace starts with the first but adds a 15 Hz sine wave and a 21 Hz sine wave. It is clearly a better approximation.
![Page 24: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/24.jpg)
Figure 3.8 Square wave
![Page 25: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/25.jpg)
It can be shown (ref Kreyzsig) that this signal consists of a series of sine waves with frequencies f, 3f, 5f, 7f, … and amplitudes 4A/pi, 4A/3Pi, 4A/5Pi, 4A/7Pi,… where f is the fundamental frequency(1/T, T the time period) and A the maximum amplitude. The term with frequency f, 3f .. are called the first harmonic, 3rd harmonic,… respectively.
![Page 26: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/26.jpg)
Frequency spectrum of a signal
The description of a signal using the frequency domain and containing all its components is called the frequency spectrum of the signal.
![Page 27: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/27.jpg)
Figure 3.11 Frequency spectrum comparison
![Page 28: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/28.jpg)
Composite Signal and Transmission Medium A signal needs to pass thru a transmission medium.
A transmission medium may pass some frequencies, may block few and weaken others.
This means when a composite signal, containing many frequencies, is passed thru a transmission medium, we may not receive the same signal at the other end.
![Page 29: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/29.jpg)
Figure 3.12 Signal corruption
![Page 30: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/30.jpg)
Bandwidth of a channel
The range of frequencies that a medium can pass without loosing one-half of the power contained in that signal is called its bandwidth.
![Page 31: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/31.jpg)
Figure 3.13 Bandwidth
![Page 32: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/32.jpg)
Representing data as Digital Signals
1 can be encoded as a positive voltage say 5 volts, 0 as zero voltage (or negative voltage say –5 volts)
Most digital signals are aperiodic. Thus we use Bit interval (instead of period) : time required to send
one bit = 1/ bit rate. Bit rate (instead of frequency) :number of bits per
second.
![Page 33: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/33.jpg)
Figure 3.17 Bit rate and bit interval
![Page 34: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/34.jpg)
Digital signal as Composite Signal
Digital signal is nothing but a composite analog signal with an infinite bandwidth.
A digital signal theoretically needs a bandwidth between 0 and infinity. The lower limit 0 is fixed. The upper limit may be compromised.
![Page 35: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/35.jpg)
Relationship b/w bit rate and reqd. channel b/w (informal) Imagine that our computer creates 6bps In 1 second, the data created may be 111111, no
change in the value, best case In another, 101010, maximum change in the values,
worst case In another, 001010, change in between the above two
cases We have already shown .. More the changes higher
are the frequency components
![Page 36: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/36.jpg)
Figure 3.18 Digital versus analog
![Page 37: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/37.jpg)
Using single harmonic – just to get the intuition
The signal 111111 (or 00000 ) can be simulated by sending a single-frequency signal with frequency 0.
The signal 101010 (010101) can be simulated by sending a single-frequency signal with frequency 3 Hz. (3 signals or sine waves per second)
![Page 38: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/38.jpg)
All other cases are between the best and the worst cases. We can simulate other cases with a single frequency of 1 0r 2 Hz (using appropriate phase).
I.e. to simulate the digital signal at data rate 6bps, sometimes we need to send a signal of frequency 0, sometimes 1,sometimes 2 and sometimes 3. We need that our medium should be able to pass frequencies of 0-3 Hz.
![Page 39: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/39.jpg)
Generalizing the example above
Bit rate = n bps Best case ---- frequency 0 Hz Worst case ----- frequency n/2 Hz Hence B (bandwidth) = n/2
![Page 40: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/40.jpg)
Using more harmonics
However, as said earlier, one harmonic does not approximate the digital signal nicely and more harmonics are required to approximate the digital signal.
As shown earlier, such a signal consists of odd harmonics
When we add 3rd harmonic to the worst case, we need B = n/2 + 3n/2 = 4n/2
When we add 5th harmonic to the worst case, we need B = n/2 + 3n/2 + 5n/2= 9n/2 and so on.
In other words, B >= n/2 or n <= 2B
![Page 41: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/41.jpg)
Relationship b/w bit rate and reqd. channel b/w (informal) Hence we conclude that bit rate and the bandwidth of
a channel are proportional to each other.
![Page 42: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/42.jpg)
Analog vs Digital
Low-pass channel : has a bandwidth with frequencies between 0 and f (f could be anything including infinity).
Band-pass channel : has a bandwidth with frequencies between f1 (>=0) and f2
A band-pass channel is more easily available than a low-pass channel.
![Page 43: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/43.jpg)
Figure 3.19 Low-pass and band-pass
![Page 44: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/44.jpg)
Digital Rate limits
Data rate depends on 3 factors:
The bandwidth available Number of levels of signals Quality of the channel (noise level)
![Page 45: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/45.jpg)
Figure 3.18 Digital versus analog
![Page 46: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/46.jpg)
Noiseless Channel: Nyquist Bit rate
b = 2 B log L (log is to base 2)
b : bit rate
B : Bandwidth
L : number of levels
![Page 47: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/47.jpg)
Noisy channel : Shannon Capacity
C = B log (1 + SNR)
C = capacity of the channel in bps
B = Bandwidth
SNR = signal to noise ratio
![Page 48: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/48.jpg)
Digital vs Analog contd…
Digital signal needs a low-pass channel
Analog signal can use a band-pass channel. Moreover, bandwidth of a signal can always be
shifted ( a property required for FDM – The bandwidth of a medium can be divided into several band-pass channels to carry several analog transmissions at the same time.)
![Page 49: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/49.jpg)
Example 1Example 1
Consider an extremely noisy channel in which the value of the signal-to-noise ratio is almost zero. In other words, the noise is so strong that the signal is faint. For this channel the capacity is calculated as
C = B logC = B log22 (1 + SNR) = B log (1 + SNR) = B log22 (1 + 0) (1 + 0)
= B log= B log22 (1) = B (1) = B 0 = 0 0 = 0
![Page 50: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/50.jpg)
Example 2Example 2
We can calculate the theoretical highest bit rate of a regular telephone line. A telephone line normally has a bandwidth of 3000 Hz (300 Hz to 3300 Hz). The signal-to-noise ratio is usually 3162. For this channel the capacity is calculated as
C = B logC = B log22 (1 + SNR) = 3000 log (1 + SNR) = 3000 log22 (1 + 3162) (1 + 3162)
= 3000 log= 3000 log22 (3163) (3163)
C = 3000 C = 3000 11.62 = 34,860 bps 11.62 = 34,860 bps
![Page 51: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/51.jpg)
Using both the limits
In practice we use both the limits to determine, given the channel bandwidth, what should be the number of levels a signal should have.
![Page 52: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/52.jpg)
Acknowledgement
http://www.mhhe.com/engcs/compsci/forouzan/
![Page 53: notes-Lec 10 - Physical Layer.ppt](https://reader036.fdocuments.in/reader036/viewer/2022081421/55cf903c550346703ba422cb/html5/thumbnails/53.jpg)
Q&A
?