Physical Layer: Data and Signals

Slides:



Advertisements
Similar presentations
(Data and Signals - cont)
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 Introduction To Physical Layer 1.# 1
Chapter 3 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.
PART II Physical Layer.
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.
ECE 4321: Computer Networks Chapter 3 Data Transmission.
Information Sources and Signals
Chapter 2 Data and Signals
Chapter 3: Data and Signals
EE 4272Spring, 2003 Chapter 3 Data Transmission Part II Data Communications Concept & Terminology Signal : Time Domain & Frequency Domain Concepts Signal.
Chapter 3 Data and Signals
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Transmission Slide 1 Continuous & Discrete Signals.
Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Module 3.0: Data Transmission
ECOM 4314 Data Communications Fall September, 2010.
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.
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
1-1 Basics of Data Transmission Our Objective is to understand …  Signals, bandwidth, data rate concepts  Transmission impairments  Channel capacity.
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.
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Communication Data and Signals
1 Business Telecommunications Data and Computer Communications Chapter 3 Data Transmission.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Transmission Media Asst. Prof. Chaiporn Jaikaeo, Ph.D.
CE 4228 Data Communications and Networking
Chapter 3 Data and Signals
Computer Communication & Networks
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
Lecturer: Tamanna Haque Nipa
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 3 Digital Signals Dr Rudzidatul Akmam Bt Dziyauddin.
Physical Layer (Data and Signals)
Physical Layer PART II. Position of the physical layer.
Data Comm. & Networks Lecture 6 Instructor: Ibrahim Tariq.
CHAPTER # 3 DATA AND SIGNALS. Introduction  One of the major functions of physical layer is to move data in the form of electromagnetic signals across.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Physical Layer PART II.
Electromagnetic Spectrum
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
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.
1 st semester 1436/  When a signal is transmitted over a communication channel, it is subjected to different types of impairments because of imperfect.
Spring 2006Data Communications, Kwangwoon University3-1 Chapter 3. Signals 1.Analog and digital 2.Analog signals 3.Digital signals 4.Analog versus digital.
1 Kyung Hee University Chapter 3 Data and Signals.
Part II. Physical Layer and Media Chapter 3. Data and Signals COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
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
Dr. Clincy Professor of CS
Part II Physical Layer.
PART II Physical Layer.
Dr. Clincy Professor of CS
. Who is Most Merciful and Beneficial With the Name of Allah
Signals Prof. Choong Seon HONG.
Data Communication Data Communications and Networking, 4rd Edition, Behrouz A. Forouzan.
REVIEW Physical Layer.
CSE 313 Data Communication
KOMUNIKASI DATA Materi Pertemuan 5.
Presentation transcript:

Physical Layer: Data and Signals 01204325: Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D. chaiporn.j@ku.ac.th http://www.cpe.ku.ac.th/~cpj Computer Engineering Department Kasetsart University, Bangkok, Thailand

Outline Analog and digital data/signals Time and frequency domain views of signals Bandwidth and bit rate Transmitting digital signals as analog Theoretical data rate Signal impairment

Analog vs. Digital Data Analog data Digital data Data take on continuous values E.g., human voice, temperature reading Digital data Data take on discrete values E.g., text, integers

Analog vs. Digital Signals To be transmitted, data must be transformed to electromagnetic signals Analog signals have an infinite number of values in a range Digital signals Have a limited number of values value time value time

Data and Signals Analog Data Analog Signal Digital Data Analog Signal Telephone Analog Data Analog Signal Modem Digital Data Analog Signal Codec Analog Data Digital Signal Digital transmitter Digital Data Digital Signal

x(t) = x(t+T) - < t <  Periodic Signals A periodic signal completes a pattern within a timeframe, called a period A signal x(t) is periodic if and only if x(t) = x(t+T) - < t <  value time period

Sine Waves Simplest form of periodic signal General form: x(t) = A×sin(2ft + ) period T = 1/f peak amplitude time signal strength phase / phase shift

Varying Sine Waves A = 1, f = 1,  = 0 A = 2, f = 1,  = 0

Time vs. Frequency Domains Consider the signal + = Demo: sine.py

Time vs. Frequency Domains 1 -1 2 4 time signal strength 1 -1 2 4 signal strength frequency Time Domain Representation  plots amplitude as a function of time Frequency Domain Representation  plots each sine wave’s peak amplitude against its frequency Demo: Equalizer

Fourier Analysis Joseph Fourier (1768-1830) Any periodic signal can be represented as a sum of sinusoids known as a Fourier Series E.g., a square wave: = + + …

Fourier Analysis Every periodic signal consists of DC component AC components Fundamental frequency (f0) Harmonics (multiples of f0) fundamental frequency 3rd harmonic 5th harmonic … DC component AC components

Fourier Series: Representations Amplitude-phase form Sine-cosine form Complex exponential form (Euler formula) Note: cn are complex j = -1 ejx = cos x + j sin x Demo: Falstad

Fourier Series: Representation Sine-cosine representation

Fourier Series: Representation Amplitude-phase representation

Fourier Series: Representation Euler formula representation Note the Euler's Formula: eix = cos x + i sin x

Aperiodic Signals Consider a pulse train of period T, and the width of each pulse is  t x(t) T /2 -/2

Aperiodic Signals t x(t) T f X(f) f0 t x(t) T f X(f) f0 t x(t) T =  f

The time and frequency domains of a nonperiodic signal

Frequency Spectrum Frequency domain representation shows the frequency spectrum of a signal E.g., square wave f0 3f0 5f0 7f0 9f0 11f0 ...

Bandwidth A property of a medium Also a property of a single spectrum Indicates the difference between the highest and the lowest frequencies allowed to pass <highest freq allowed> – <lowest freq allowed> Also a property of a single spectrum Cutoff frequency (half of power is lost)

Bandwidth of a Medium f f Transmission medium t t 1 (low-pass channel) gain freq f0 3f0 5f0 7f0 ... 9f0 f f0 3f0 5f0 f Transmission medium t t

Example What is the bandwidth of this signal? A medium can pass frequencies from 4000 to 7000 Hz. Can the above signal pass through?

Digital Signals Properties: Bit rate – number of bits per second Bit interval – duration of 1 bit 1 ... time amplitude bit interval

Two digital signals: one with two signal levels and the other with four signal levels

The time and frequency domains of periodic and nonperiodic digital signals

Baseband transmission  Sending a digital signal over a channel without changing it to an analog signal Baseband transmission requires a low-pass channel

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

Baseband transmission using a dedicated medium

Digital vs. Analog Using one harmonic Bit rate = 6 Digital f = 0 1 1 sec Bit rate = 6 Digital 1 f = 0 Analog 1 Bit rate = 6 Digital 1 f = 3 Analog

Digital vs. Analog Using more harmonics Adding 3rd harmonic to improve quality 1 Bit rate = 6 Digital 1 f0 = 3, fmax = 9 Analog

Table 3.2 Bandwidth requirements

Digital vs. Analog Bandwidth Digital bandwidth Expressed in bits per second (bps) Analog bandwidth Expressed in Hertz (Hz) Bit rate and bandwidth are proportional to each other

Low-Pass and Band-Pass Channels Low-pass channel Band-pass channel frequency f1 gain frequency f1 f2 gain

Modulation of a digital signal for transmission on a bandpass channel

Transmission Impairment Attenuation Distortion Noise

Signal Attenuation Attenuation  Loss of energy Signal strength falls off with distance Attenuation depends on medium Attenuation is an increasing function of frequency Transmission medium

Relative Signal Strength Measured in Decibel (dB) P1 and P2 are signal powers at points 1 and 2, respectively Positive dB  signal is amplified (gains strength) Negative dB  signal is attenuated (loses strength) dB = 10 log10 (P2/P1) Point 1 Point 2

Example Sometimes the decibel is used to measure signal power in milliwatts. In this case, it is referred to as dBm and is calculated as dBm = 10 log10 Pm , where Pm is the power in milliwatts. Calculate the power of a signal with dBm = −30. Solution We can calculate the power in the signal as

Example The loss in a cable is usually defined in decibels per kilometer (dB/km). If the signal at the beginning of a cable with −0.3 dB/km has a power of 2 mW, what is the power of the signal at 5 km? Solution The loss in the cable in decibels is 5 × (−0.3) = −1.5 dB. We can calculate the power as

Signal Distortion Distortion  Change in signal shape Only happens in guided media Propagation velocity varies with frequency

Noise Noise  Undesirable signals added between the transmitter and the receiver Types of noise Thermal Due to random motion of electrons in a wire

Noise Types of noise (cont’d) Crosstalk Impulse Signal from one line picked up by another Impulse Irregular pulses or spikes E.g., lightning Short duration High amplitude Wire 1 Wire 2

Signal-to-Noise Ratio Signal-to-Noise Ratio (SNR)

Example The power of a signal is 10 mW and the power of the noise is 1 μW; what are the values of SNR and SNRdB ? Solution The values of SNR and SNRdB can be calculated as follows:

Data Rate: Noiseless Channels Nyquist Theorem Bit rate in bps Bandwidth in Hz L – number of signal levels Bit Rate = 2 × Bandwidth × log2L Harry Nyquist (1889-1976)

Example We need to send 265 kbps over a noiseless channel with a bandwidth of 20 kHz. How many signal levels do we need? Solution We can use the Nyquist formula as shown: Since this result is not a power of 2, we need to either increase the number of levels or reduce the bit rate. If we have 128 levels, the bit rate is 280 kbps. If we have 64 levels, the bit rate is 240 kbps.

Data Rate: Noisy Channels Shannon Capacity Capacity (maximum bit rate) in bps Bandwidth in Hz SNR – Signal-to-Noise Ratio Capacity = Bandwidth × log2(1+SNR) Claude Elwood Shannon (1916-2001)

Example A telephone line normally has a bandwidth of 3000. The signal-to-noise ratio is usually 3162. Calculate the theoretical highest bit rate of a regular telephone line. 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 We have a channel with a 1-MHz bandwidth. The SNR for this channel is 63. What are the appropriate bit rate and signal level? Solution First, use the Shannon capacity followed by the Nyquist formula 6 8

Note The Shannon capacity gives us the upper limit; the Nyquist formula tells us how many signal levels we need.

Network Performance Bandwidth Throughput Latency (delay) Hertz Bits per second (bps) Throughput Actual data rate Latency (delay) Time it takes for an entire message to completely arrive at the destination

Latency Composed of Propagation time Transmission time Queuing time Processing time Entire message propagation time transmission time

Latency Sender Receiver First bit leaves Data bits Propagation time First bit arrives Transmission time Last bit leaves Last bit arrives Time Time

Bandwidth-Delay Product The link is seen as a pipe Cross section = bandwidth Length = delay Bandwidth-delay product defines the number of bits that can fill the link

Figure Filling the link with bits for case 1

Summary Data need to take form of signal to be transmitted Frequency domain representation of signal allows easier analysis Fourier analysis Medium's bandwidth limits certain frequencies to pass Bit rate is proportional to bandwidth Signals get impaired by attenuation, distortion, and noise