PART II Physical Layer.

Slides:



Advertisements
Similar presentations
Pensinyalan (1) Sinyal Analog dan Sinyal Digital.
Advertisements

Pensinyalan (2) Perbandingan antara sinyal analog dan digital.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 DATA AND SIGNALS T.Najah Al_Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University.
Chapter 3 Data and Signals.
Chapter 3 Data and Signals
Signals The main function of the physical layer is moving information in the form of electromagnetic signals across a transmission media. Information can.
Chapter 3 Data and Signals
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
PART II Physical Layer.
3.1 Chapter 3 Data and Signals Computer Communication & Networks.
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Physical Layer PART II.
Chapter 2 Data and Signals
Chapter 3: Data and Signals
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 3 Data and Signals
1 Computer Communication & Networks Lecture 5 Physical Layer: Data & Signals Waleed Ejaz
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Physical Layer PART II.
1 Kyung Hee University Signals 2 3. 신호 (Signals) 3.1 아날로그와 디지털 (Analog and Digital) 3.2 아날로그 신호 (Analog signals) 3.3 디지털 신호 (Digital signals) 3.4 Analog.
Part 2 Physical Layer and Media
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Prof. Hosny Ibrahim Lecture 2
Computer Communication & Networks
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Outline Analog and Digital Data Analog and Digital Signals Amplitude Modulation (AM) Frequency Modulation (FM)
Physical Layer PART II. Position of the physical layer.
Data Comm. & Networks Lecture 6 Instructor: Ibrahim Tariq.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Physical Layer PART II.
Channel capacity A very important consideration in data communications is how fast we can send data, in bits per second, over a channel.
Lecture Focus: Data Communications and Networking  Transmission Impairment Lecture 14 CSCS 311.
Signals. Signals can be analog or digital. Analog signals can have an infinite number of values in a range; digital signals can have only a limited number.
Spring 2006Data Communications, Kwangwoon University3-1 Chapter 3. Signals 1.Analog and digital 2.Analog signals 3.Digital signals 4.Analog versus digital.
Part II. Physical Layer and Media Chapter 3. Data and Signals COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
Data and Signals. To be transmitted, data must be transformed to electromagnetic signals. Note.
Computer Engineering and Networks, College of Engineering, Majmaah University Some Basics Mohammed Saleem Bhat CEN-444 Networks Structure.
Computer Communication & Networks
Part II Physical Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter # 3 Data and Signals
Dr. Clincy Professor of CS
Part II Physical Layer.
Part II Physical Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Networks: Data Communication
Computer Data Communication
Chapter 3 Data and Signals Tel: (03) Ext: URL:
Chapter 2 Data and Signals
Topics discussed in this section:
Chapter 3 Data and Signals
CHAPTER 3 DATA AND SIGNAL
Chapter 3 Data and Signals
. Who is Most Merciful and Beneficial With the Name of Allah
Signals Prof. Choong Seon HONG.
Physical Layer Part 1 Lecture -3.
Part II Physical Layer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 3 Data and Signals
Chapter 3 Data and Signals
Chapter 3 Data and Signals
Chapter 3 Data and Signals
Data Communication Data Communications and Networking, 4rd Edition, Behrouz A. Forouzan.
Chapter 3 Data and Signals
Chapter 3 Data and Signals
REVIEW Physical Layer.
Introduction To Physical Layer
Chapter 3 Introduction To Physical Layer Dr. Eng. Samy Elmokadem.
Chapter 3 Data and Signals
Chapter 3 Signals.
Chapter 3 Data and Signals
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

PART II Physical Layer

Position of the physical layer

Services

Chapters Chapter 3 Signals Chapter 4 Digital Transmission Chapter 5 Analog Transmission Chapter 6 Multiplexing Chapter 7 Transmission Media Chapter 8 Circuit Switching and Telephone Network Chapter 9 High Speed Digital Access

Signals Chapter 3 Signal Types and Characteristics Transmission Impairment Transmission Performance

Note: To be transmitted, data must be transformed to electromagnetic signals.

3.1 Analog and Digital Analog and Digital Data Analog and Digital Signals Periodic and Aperiodic Signals

Signals can be analog or digital. Note: Signals can be analog or digital. Analog signals have an infinite number of values in a range Digital signals have only a limited number of values.

Figure 3.1 Comparison of analog and digital signals Discrete Continuous

Note: In data communication, we commonly use periodic analog signals and aperiodic digital signals.

3.2 Analog Signals Sine Wave Phase Examples of Sine Waves Time and Frequency Domains Composite Signals Bandwidth

Figure 3.2 A sine wave

Figure 3.3 Amplitude

Frequency and period are inverses of each other. Note: Frequency and period are inverses of each other.

Figure 3.4 Period and frequency

Table 3.1 Units of periods and frequencies Equivalent Seconds (s) 1 s hertz (Hz) 1 Hz Milliseconds (ms) 10–3 s kilohertz (KHz) 103 Hz Microseconds (ms) 10–6 s megahertz (MHz) 106 Hz Nanoseconds (ns) 10–9 s gigahertz (GHz) 109 Hz Picoseconds (ps) 10–12 s terahertz (THz) 1012 Hz

Example 1 Express a period of 100 ms in microseconds, and express the corresponding frequency in kilohertz. Solution From Table 3.1 we find the equivalent of 1 ms.We make the following substitutions: 100 ms = 100  10-3 s = 100  10-3  106 ms = 105 ms Now we use the inverse relationship to find the frequency, changing hertz to kilohertz 100 ms = 100  10-3 s = 10-1 s f = 1/10-1 Hz = 10  10-3 KHz = 10-2 KHz

Note: Frequency is the rate of change with respect to time. Change in a short span of time means high frequency. Change over a long span of time means low frequency.

Note: If a signal does not change at all, its frequency is zero. If a signal changes instantaneously, its frequency is infinite.

Phase describes the position of the waveform relative to time zero. Note: Phase describes the position of the waveform relative to time zero.

Figure 3.5 Relationships between different phases

Example 2 A sine wave is offset one-sixth of a cycle with respect to time zero. What is its phase in degrees and radians? Solution We know that one complete cycle is 360 degrees. Therefore, 1/6 cycle is (1/6) 360 = 60 degrees = 60 x 2p /360 rad = 1.046 rad

Figure 3.6 Sine wave examples

Figure 3.6 Sine wave examples (continued)

Figure 3.6 Sine wave examples (continued)

An analog signal is best represented in the frequency domain. Note: An analog signal is best represented in the frequency domain.

Figure 3.7 Time and frequency domains

Figure 3.7 Time and frequency domains (continued)

Figure 3.7 Time and frequency domains (continued)

Note: A single-frequency sine wave is not useful in data communications; we need to change one or more of its characteristics to make it useful.

Note: When we change one or more characteristics of a single-frequency signal, it becomes a composite signal made of many frequencies.

Note: According to Fourier analysis, any composite signal can be represented as a combination of simple sine waves with different frequencies, phases, and amplitudes.

Figure 3.8 Square wave

Figure 3.9 Three harmonics

Figure 3.10 Adding first three harmonics

Figure 3.11 Frequency spectrum comparison

Figure 3.12 Signal corruption

Note: The bandwidth is a property of a medium: It is the difference between the highest and the lowest frequencies that the medium can satisfactorily pass.

Note: In this book, we use the term bandwidth to refer to the property of a medium or the width of a single spectrum.

Figure 3.13 Bandwidth

Example 3 If a periodic signal is decomposed into five sine waves with frequencies of 100, 300, 500, 700, and 900 Hz, what is the bandwidth? Draw the spectrum, assuming all components have a maximum amplitude of 10 V. Solution B = fh - fl = 900 - 100 = 800 Hz The spectrum has only five spikes, at 100, 300, 500, 700, and 900 (see Figure 13.4 )

Figure 3.14 Example 3

Example 4 A signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest frequency? Draw the spectrum if the signal contains all integral frequencies of the same amplitude. Solution B = fh - fl 20 = 60 - fl fl = 60 - 20 = 40 Hz BW = 20 Hz Flow = ?? Hz Fhigh = 60 Hz

Figure 3.15 Example 4

Example 5 A signal has a spectrum with frequencies between 1000 and 2000 Hz (bandwidth of 1000 Hz). A medium can pass frequencies from 3000 to 4000 Hz (a bandwidth of 1000 Hz). Can this signal faithfully pass through this medium? Medium BW = 1000 Hz Signal BW = 1000 Hz Flow = 3000 Hz Solution Flow = 1000 Hz Fhigh = 2000 Hz Fhigh = 4000 Hz The answer is definitely no. Although the signal can have the same bandwidth (1000 Hz), the range does not overlap. The medium can only pass the frequencies between 3000 and 4000 Hz; the signal is totally lost.

3.3 Digital Signals Bit Interval and Bit Rate As a Composite Analog Signal Through Wide-Bandwidth Medium Through Band-Limited Medium Versus Analog Bandwidth Higher Bit Rate

Figure 3.16 A digital signal

Example 6 A 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 106 ms = 500 ms

Figure 3.17 Bit rate and bit interval

Figure 3.18 Digital versus analog

A digital signal is a composite signal with an infinite bandwidth. Note: A digital signal is a composite signal with an infinite bandwidth.

Table 3.12 Bandwidth Requirement Bit Rate Harmonic 1 Harmonics 1, 3 1, 3, 5 1, 3, 5, 7 1 Kbps 500 Hz 1.5 KHz 2.5 KHz 3.5 KHz 10 Kbps 5 KHz 15 KHz 25 KHz 35 KHz 100 Kbps 50 KHz 150 KHz 250 KHz 350 KHz

The bit rate and the bandwidth are proportional to each other. Note: The bit rate and the bandwidth are proportional to each other.

3.4 Analog versus Digital Low-pass versus Band-pass Digital Transmission Analog Transmission

Figure 3.19 Low-pass and band-pass

Note: The analog bandwidth of a medium is expressed in hertz; the digital bandwidth, in bits per second.

Digital transmission needs a low-pass channel. Note: Digital transmission needs a low-pass channel.

Analog transmission can use a band- pass channel. Note: Analog transmission can use a band- pass channel.

3.5 Data Rate Limit Noiseless Channel: Nyquist Bit Rate Noisy Channel: Shannon Capacity Using Both Limits

Example 7 Consider a noiseless channel with a bandwidth of 3000 Hz transmitting a signal with two signal levels. The maximum bit rate can be calculated as BW noiseless-channel = 3000 Hz ; Lsignal level = 2 ; MAX Bit rateMAX = ??? Nyquist Bit rate = maximum bit rate for noiseless channel = 2 x BW x log2L Bit RateMAX = 2  3000  log2 2 = 6000 bps

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: Lsignal level = 4 Bit RateMAX = 2 x 3000 x log2 4 = 12,000 bps

Shannon capacity = maximum bit rate for noisy channel Example 9 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 Shannon capacity = maximum bit rate for noisy channel = BW x log2 (1+SNR) SNR: Signal-to-Noise Ratio (Avg.Signal Power / Avg. Noise Power) C = BW log2 (1 + SNR) = BW log2 (1 + 0) = BW log2 (1) = BW  0 = 0

C = BW log2 (1 + SNR) = 3000 log2 (1 + 3162) = 3000 log2 (3163) Example 10 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 = BW log2 (1 + SNR) = 3000 log2 (1 + 3162) = 3000 log2 (3163) C = 3000  11.62 = 34,860 bps

Example 11 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 First, we use the Shannon formula to find our upper limit. C = BW log2 (1 + SNR) = 106 log2 (1 + 63) = 106 log2 (64) = 6 Mbps Then we use the Nyquist formula to find the number of signal levels. 4 Mbps = 2  1 MHz  log2 L  L = 4 6 Mbps = 2  1 MHz  log2 L  L = 8

3.6 Transmission Impairment Attenuation Distortion Noise

Figure 3.20 Impairment types

Figure 3.21 Attenuation

Example 12 Imagine a signal travels through a transmission medium and its power is reduced to half. This means that P2 = 1/2 P1. In this case, the attenuation (loss of power) can be calculated as Solution 10 log10 (P2/P1) = 10 log10 (0.5P1/P1) = 10 log10 (0.5) = 10(–0.3) = –3 dB

Example 13 Imagine a signal travels through an amplifier and its power is increased ten times. This means that P2 = 10 ¥ P1. In this case, the amplification (gain of power) can be calculated as 10 log10 (P2/P1) = 10 log10 (10P1/P1) = 10 log10 (10) = 10 (1) = 10 dB

Example 14 One reason that engineers use the decibel to measure the changes in the strength of a signal is that decibel numbers can be added (or subtracted) when we are talking about several points instead of just two (cascading). In Figure 3.22 a signal travels a long distance from point 1 to point 4. The signal is attenuated by the time it reaches point 2. Between points 2 and 3, the signal is amplified. Again, between points 3 and 4, the signal is attenuated. We can find the resultant decibel for the signal just by adding the decibel measurements between each set of points.

Figure 3.22 Example 14 dB = –3 + 7 – 3 = +1

Figure 3.23 Distortion

Figure 3.24 Noise

3.7 More About Signals Throughput Propagation Speed Propagation Time Wavelength

Figure 3.25 Throughput ความเร็วของข้อมูลที่ผ่านจุดๆหนึ่งใน 1 วินาที (bps)

Propagation_time = distance / propagation speed Figure 3.26 Propagation time ระยะเวลาในการเดินทางของสัญญาณจากจุดเริ่มต้นไปจุดสิ้นสุด (sec) Propagation_time = distance / propagation speed Propagation speedสุญญากาศ = 3 x 108 m/s Propagation speedfiber optic = 2 x 108 m/s

Figure 3.27 Wavelength ระยะทางที่สัญญาณเดินทางในตัวกลางครบหนึ่ง period ของสัญญาณ (m) Wavelength = propagation speed / frequency

Transmission Time Latency (Delay) ระยะเวลาที่ข้อมูลทั้งหมด (Entire message) ถูกส่งออกไปบนสื่อ Transmission time = Message (bits)/ Bandwidth (bps) Latency (Delay) ระยะเวลาในการส่งข้อมูลทั้งหมด (Entire message) เริ่มตั้งแต่บิตแรกของข้อมูลถูกส่งออกไปจากตัวส่ง จนถึงปลายทางครบสมบูรณ์ Latency = transmission time + propagation_time + queuing time + processing delay

Bandwidth-Delay Product Number of bits that can fill the link The product of bandwidth and delay Link Bandwidth (bps) Delay from Sender to Receiver (sec) Example Link BW = 4 bps/ Delay = 5 s Bandwidth delay product = 4 bps x 5 s = 20 bits Half-duplex channel 20 bits to fill up the Link Full-duplex channel 2 x bandwidth-delay product = 40 bits to fill up the Link for 2 directions