Analog & Digital Signals © Prof. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.

Slides:



Advertisements
Similar presentations
Signal Encoding Techniques
Advertisements

Signal Encoding Techniques
Physical Layer (Part 2) Data Encoding Techniques
Chapter 2 Fundamentals of Data and Signals
Chapter 5 – Signal Encoding and Modulation Techniques
Modulation of Digital Data 1.Digital-to-Analog Conversion 2.Amplitude Shift Keying (ASK) 3.Frequency Shift Keying (FSK) 4.Phase Shift Keying (PSK) 5.Quadrature.
Physical Layer – Part 2 Data Encoding Techniques
Chapter 5 Analog Transmission
Chapter 5 Analog Transmission.
Digital to Analog Many carrier facilities are analog Many transmission media are also analog (microwave, radio) We can carry digital values over analog.
EE302 Lesson 21: Transmission of Binary Data in Communication Systems
EE 4272Spring, 2003 Chapter 5 Data Encoding Data Transmission Digital data, digital signal Analog data, digital signal: e.g., voice, and video are often.
Physical Layer CHAPTER 3. Announcements and Outline Announcements Credit Suisse – Tomorrow (9/9) Afternoon – Student Lounge 5:30 PM Information Session.
DIGITAL COMMUNICATIONS.  The modern world is dependent on digital communications.  Radio, television and telephone systems were essentially analog in.
William Stallings Data and Computer Communications 7th Edition
Chapter 5 Analog Transmission Digital-to-analog conversion is the process of changing one of the characteristics of an analog signal based on the information.
IS250 Spring 2010 Physical Layer IS250 Spring 2010
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 7 Introduction to Networks and the Internet.
Chapter 2 Fundamentals of Data and Signals
1 K. Salah Module 3.1: Encoding and Modulating Conversion Schemes D to D Conversion A to A Conversion A to D Conversion D to A Conversion Final comments.
Chapter 2: Fundamentals of Data and Signals. 2 Objectives After reading this chapter, you should be able to: Distinguish between data and signals, and.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
IT-101 Section 001 Lecture #15 Introduction to Information Technology.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Sami Al-Wakeel 1 Data Transmission and Computer Networks Data Encoding.
Digital to analogue conversion. 1 DIGITAL-TO-ANALOG CONVERSION Digital-to-analog conversion is the process of changing one of the characteristics (A,
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Data Transmission Techniques Data to be transmitted is of two types 1.Analog data 2.Digital data Therefore,
COSC 3213 – Computer Networks I Summer 2003 Topics: 1. Line Coding (Digital Data, Digital Signals) 2. Digital Modulation (Digital Data, Analog Signals)
Aegis School of Telecommunication Telecom Systems I by Dr. M. G. Sharma, Phd. IIT Kharagpur Microwaves and Antennas.
Chapter 6. Signal Encoding Techniques
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
CSC 335 Data Communications and Networking
Analog Transmission of Digital Data. The Telephone Network Originally designed for analog communications only. Today, standard analog telephone service.
Data Communications Chapter 5 Data Encoding.
Signal Encoding Techniques Chapter 6. Reasons for Choosing Encoding Techniques  Digital data, digital signal Equipment less complex and expensive than.
1 CSCD 433 Network Programming Fall 2013 Lecture 4 Physical Layer Line Coding Continued.
Signal Encoding Techniques. Lecture Learning Outcomes Be able to understand, appreciate and differentiate the different signal encoding criteria available.
Digital Transmission Outlines:- Multiplexing FDM TDM WDM
3-2008UP-Copyrights reserved1 ITGD4103 Data Communications and Networks Lecture-11:Data encoding techniques week 12- q-2/ 2008 Dr. Anwar Mousa University.
Physical Layer (Part 2) Data Encoding Techniques Computer Networks Spring 2012.
CSCI 465 Data Communications and Networks Lecture 7 Martin van Bommel CSCI 465 Data Communications and Networks 1.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
Signal Encoding Techniques Chapter 6. Reasons for Choosing Encoding Techniques Digital data, digital signal Equipment less complex and expensive than.
DATA ENCODING Digital-to-digital conversion - Encode digital data into a digital signal - Sending computer data Analog-to-Digital conversion - Digitizing.
Channel capacity A very important consideration in data communications is how fast we can send data, in bits per second, over a channel.
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
Shannon’s Theorem Nyquist Theorem Modulations Multiplexing
Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.
Part II. Physical Layer and Media Chapter 5. Analog Transmission COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Data Communications and Computer Networks Chapter 1 Network Architecture Models Logical and physical connections.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
McGraw-Hill©2003 The McGraw-Hill Companies, Inc. Chapter 6 Physical Layer.
Advanced Computer Networks
Signal Encoding Techniques Ir. Hary Nugroho MT.. Data Transmission.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education,
Signal Encoding Techniques. Digital Data, Digital Signal  Digital signal discrete, discontinuous voltage pulses discrete, discontinuous voltage pulses.
Feb. 2, 2004 Prof. Paul Lin 1 CPET The Physical Layer - Signal Encoding & Modems Paul I-Hai Lin, Professor Electrical and Computer Engineering Technology.
1587: COMMUNICATION SYSTEMS 1 Digital Signals, modulation and noise Dr. George Loukas University of Greenwich,
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Physical Layer Summary Data-to-Signal Digital-to-Analog (Modem) Analog-to-Analog (Modem) Digital-to-Digital.
Computer Networks Chapter 5 – Analog Transmission.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
IT-101 Section 001 Lecture #15 Introduction to Information Technology.
KOMUNIKASI DATA Materi Pertemuan 10.
CHAPTER 3 Physical Layer.
CHAPTER 3 Physical Layer.
Physical Layer (Part 2) Data Encoding Techniques
Physical Layer – Part 2 Data Encoding Techniques
Signal Encoding Techniques
Physical Layer – Part 2 Data Encoding Techniques
Presentation transcript:

Analog & Digital Signals © Prof. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada

2 A nalog & Digital Signals Figure 3.1 – Digital & Analog Signals

3 D igital Encoding Schemes There are 10 types of people; those who know binary and those who do not.  Digital data are represented by a sequence of 1s & 0s  1 refer to a high electrical voltage, and 0 refers to a low electrical voltage  Two major digital encoding schemes exist: NonReturn to Zero (NRZ) EncodingNonReturn to Zero (NRZ) Encoding Manchester EncodingManchester Encoding

4 D igital Encoding Schemes (continue...) NRZ Encoding  A 0 voltage is transmitted by raising the voltage level high, while 1 is transmitted by using a low voltage Figure 3.2(a) – NRZ Encoding

5 D igital Encoding Schemes (continue...) NRZI Encoding  An alternative to NRZ is NRZI (Inverted)  The voltage changes only when a 1 is to be sent Figure 3.2(b) – NRZI Encoding

6 D igital Encoding Schemes (continue...)  Both NRZ and NRZI have problems; for example what is the exact sequence being transmitted in the sequence below?  Is time synchronization possible? Figure 3.3 – NRZ Encoding of a Sequence of 0s

7 D igital Encoding Schemes (continue...) Manchester Encoding  Also called Self-Synchronizing Code  Uses signal changes to keep the sending and receiving devices synchronized  0 is represented by a change from high to low in the middle of transmission and 1 is represented by a low to high change in the middle of transmission  Are there any disadvantages? Figure 3.4 – Manchester Encoding

8 D igital Encoding Schemes (continue...) Differential Manchester Encoding  Similar to Manchester encoding, the signal will change in the middle, however  1 causes the signal to remain the same, while 0 causes the signal to change Figure 3.5 – Differential Manchester Encoding

9 A nalog Signals  Adds complexity to data communication  Phone lines carry analog signals  Digital computers need to convert their signal to analog before placing it on the wire; this is called Modulation  Similarly, all received signals must be converted to digital; this is called Demodulation  A modem is hence needed  An analog signal is not that simple; in general, an analog signal is characterized by its frequency, amplitude and phase shift Different Amplitude & phase shift

10 B it Rate  Describes a medium capacity; that is how many bits can be transferred per unit of time  Measured as Bits Per Second (bps)  A higher bandwidth medium is capable of a higher bit rate  Transmitter sends a signal representing a bit sting (a component), while the receiver listens to the medium and creates a bit string based on what it receives  Once the component is sent, the transmitter gets another bit string (another component) and the process repeats Figure 3.9 – Sending Data via Signals

11 B it Rate (continue...) The Nyquist Theorem & Noiseless Channels  Baud Rate: the frequency with which components change  Each bit string is composed of n bits, and hence the signal component may have up to 2 n different amplitudes (one for each unique combination for b 1, b 2, …b n )  Are bit rate and baud rate the Same?  No, bit rate depends on the number of bits (n) as well as the baud rate; more precisely: Bit Rate = n * Baud Rate  Bit rate can then be increased by either increasing the baud rate or n; however only up to a point

12 B it Rate (continue...) Bit Rate = n * Baud Rate  This result is surprisingly old, back to 1920s, when Harry Nyquist developed his classic theory  Nyquist theory showed that if f is the maximum frequency a medium can transmit, then the receiver can reconstruct the signal by sampling it 2f times per second  In other words, the receiver can construct the signal by sampling it at intervals of 1 / 2f seconds, or twice each period (one period is 1 / f ).  For example, if the maximum frequency is 4000 Hz, then the receiver can completely construct it by sampling it every 1/8000 th of a second  Assuming that the transmitter baud rate is 2 f, in other words changes signal each 1 / 2f intervals, we can state Bit Rate = n * Baud Rate = n * 2 * f  This can also be stated based on component; if B is the number of different components, then B = 2 n B = 2 nOr n = log 2 ( B )  Hence, Bit Rate = 2 * f * log 2 ( B ) Bit Rate = 2 * f * log 2 ( B )

13 Noisy Channels  We interject that Nyquist theory assumed that there is absolutely no noise in the channel to alter the signal  The result of Nyquist Theorem for a maximum frequency of 3300Hz, the approximate upper limit of the telephone system, can then be summarized as follows:  This result seem to imply that there is no upper bound for a bit rate given the maximum frequency; unfortunately this is not the case due to two main reasons: 1. More components mean subtler change among them 2. Channels are subject to noise B it Rate (continue...) Result of Nyquist Theorem for a maximum of 3300 Hz N, number of bits B, number of signal components Maximum bit rate (bps) 126, , , ,400

14 Noisy Channels 1.More components mean subtler change among them 2.Channels are subject to noise  The transmitted signal can be distorted due to the channel noise  If distortion is too large, the receiver may not be able to reconstruct the signal at all B it Rate (continue...) Figure 3.10 – Effect on Noise on Digital Signals (The same applies to analog signals)

15 B it Rate (continue...) Shannon’s Result  How much noise is bad? This depends on its ratio to the signal  We define S/N (Signal-to-Noise-Ratio)  A higher S/N (less significant noise) indicates higher quality  Because S >> N, the ratio is often scaled down as R = log 10 (S/N) bels// bels is the measurement unit For example, If S is 10 times larger than N, then R = log 10 (10N/N) = 1 bel R = log 10 (10N/N) = 1 bel If S is 100 times larger than N, then R = log 10 (100N/N) = 2 bels R = log 10 (100N/N) = 2 bels Perhaps, a more familiar measurement is the decibel (dB) 1 dB = 0.1 bel

16 B it Rate (continue...) Shannon’s Result  In 1940, Claude Shannon went beyond Nyquist’s results and considered noisy channels  Shannon related the maximum bit rate not only to the frequency but also to the S/N ratio; specifically he showed that: Bit Rate = Bandwidth * log 2 (1 + S/N) bps  The formula states that a higher BW and S/N ratio allow higher bit rate  Hence, for the telephone system, which has a frequency of about 3000 Hz and S/N ≈ 35 dB, or 3.5 bels, Shannon’s result yields the following 3.5 = log 10 (S/N)  S = N  S ≈ 3162 N  S/N ≈ 3162 Bit Rate = Bandwidth * log 2 (1 + S/N) = 3000 * log 2 ( ) = 3000 * log 2 ( ) ≈ 3000 * bps ≈ 3000 * bps ≈ 34,880 bps ≈ 35 kbps ≈ 34,880 bps ≈ 35 kbps

17 B it Rate (continue...) Shannon’s Result  Shannon’s result is not just a theoretical result; rather it has its very real implication  During the 1980s, 2400 & 9600 bps modems became common  Early 1990s, modems with a rate of 28.8 and 33.6 kbps became common (this matched the maximum bit rate that Shannon’s result indicated)  Not much longer, modems that supported 56.6 kbps rates were a reality. Did this violate Shannon’s results?

18 D igital-to-Analog-Conversion  Computers are digital, however phone lines connecting them to remote machines/servers are analog Figure 3.11 – Computer Data Transmitted Over Telephone Lines

19 D igital-to-Analog-Conversion  New phone lines use optical fiber, which carry digital signal  Codec (Coder/Decoder) is needed in such cases Figure 3.12 – Voice Information Transmitted Digitally

20 D igital-to-Analog- Conversion Frequency Modulation (FM)  Simple method of digital to analog conversion,  Also known as Frequency Shift Keying (FSK)  Assigns digital 0 to one signal and 1 to another based on some rule  In general, if n bits are sent per baud, then we can have 2 n signal combination  The signal is transmitted for a fixed period of time Figure 3.13 – FSK (Two Frequencies), One Bit per Baud – Analog signal for 01001

21 D igital-to-Analog- Conversion Amplitude Modulation (AM)  Also known as Amplitude Shift Keying (ASK)  Each bit group is assigned to an analog signal of given magnitude  The signal is transmitted for a fixed period of time as with FM Figure 3.14 – ASK (Four Amplitudes), Two Bits per Baud – Analog signal for

22 D igital-to-Analog- Conversion Phase Modulation (PM)  Also known as Phase Shift Keying (PSK)  1 results in a phase change of 180°, while 0 results in 0° (no change)  In such case, one bit of information can be transmitted per baud PSK (One Shift), One Bit per Baud – Analog signal for

23 D igital-to-Analog- Conversion Differential Phase Modulation (DPM)  Also known as Differential Phase Shift Keying (DPSK)  Allows transmission of more than 1 bit per baud  For example, if the phase is shifted by multiples of 90°, two bits at a time can be transmitted DPSK, Two Bits per Baud – Analog signal for

24 D igital-to-Analog- Conversion Quadrature Amplitude Modulation (QAM)  A greater signal variety means a greater bit rate per baud rate  The problem is that the higher the number of signal, the smaller the difference among them  One common approach to avoid that is to use a combination of frequencies, amplitudes or phase shifts to allow a large group of bits while marinating a larger differences among them  QAM is a common technique in which a group of bits is assigned a signal defined by its amplitude and phase shift

25 D igital-to-Analog- Conversion Quadrature Amplitude Modulation (QAM) Bit Value: Amplitude, Phase Shift 000: A1, 0 0 phase shift 001: A2, 0 0 phase shift 010: A1, 90 0 shift 011: A2, 90 0 phase shift 100: A1, phase shift 101: A2, phase shift 110: A1, phase shift 111: A2, phase shift Figure 3.15 – QAM (Two Amplitudes & Four Phases), Three Bits per Baud Analog Signal for

26 A nalog-to-Digital- Conversion  Some analog-to-digital conversion is nothing but the opposite to what has been discussed, however,  Other conversions are more complex; for example those that are required to convert analog data for voice or music

27 A nalog-to-Digital- Conversion Pulse Amplitude Modulation (PAM)  An analog signal is sampled at a regular interval, then a pulse with amplitude equal to the sampled signal is generated Amplitude Modulation Figure 3.17 – Pulse Amplitude Modulation

28 A nalog-to-Digital- Conversion Pulse Code Modulation (PCM)  PAM-generated signals look digital, but the signal has analog characteristics  PCM allows the signal to truly be digital by assigning amplitude from a predefined set of digital codes  By sampling s times per second, we obtain a bit rate of n * s bps Code Modulation, n=3, 2 n codes Figure 3.18 – Pulse Code Modulation, n=3, 2 n codes

29 A nalog-to-Digital- Conversion Pulse Code Modulation (PCM)  At the receiving end, the accuracy of the construction depends on: Sampling frequency: a slower sampling frequency may result in some oscillations to be missed entirelySampling frequency: a slower sampling frequency may result in some oscillations to be missed entirely  higher sampling rate will produce a higher accuracy; but up to a point  Based on Nyquist theorem, if the original signal has f maximum frequency, then sampling at 2f is enough  That is, sampling at a higher rate than 2f will not produce any better accuracy than 2f Number of amplitude (binary codes) from which to chooseNumber of amplitude (binary codes) from which to choose  The higher the difference between the sampled signal and the pulse/code, the higher the chances that the reconstructed signal become distorted  This is called, quantization noise It should be noted however that higher sampling and higher number of pulse amplitude comes with a price Figure 3.19 – Sampling at Too Low Frequency

30 A nalog-to-Digital- Conversion Pulse Code Modulation (PCM)  PAM has several common applications; which include Digitizing of voice signal over long-distance telephone linesDigitizing of voice signal over long-distance telephone lines  8000 samples, with 8-bit sample  bit rate of 64 kbps Compact discs (CDs)Compact discs (CDs)  Varies from one device to another  As an example: 44.1 kHz sampling frequency, with a D-A conversion of 16-bit linear  16-bit would allow 64,000 amplitude (linear indicates that the differences between these amplitudes are the same)

31 M odems Two important issues are there with modems Software (deliver signals to and from modem)Software (deliver signals to and from modem) Compatibility (demodulate what other modems modulated)Compatibility (demodulate what other modems modulated)  Several standards were defined for modems  CCITT (ITU) defined V.xx series of modem standards  V.21 uses FSK with 1 frequency for 1 bit, and the resulting bit rate is equal to the baud rate. (supports up to 300 bps.)  V.22 uses PSK with 2 bits for each phase shift; resulting bit rate is twice the baud rate. 600 bauds/sec = 1200bps  Sending and receiving modems use different frequency; that enable full-duplex communication

32 M odems (continue...) Signal Constellation  Many modems work by changing more than one analog signal’s components, typically phase shift & amplitude (QAM)  QAM can visually be described a signal constellation graph  Distance represents amplitude, while angel represents phase shift Figure 3.20 – Quantifying a Point on a signal Constellation

33 M odems (continue...) Signal Constellation  A shift with x° corresponds to x/360° of a period  V.22 uses fixed amplitude with 4 (2 2 ) points and 600 bauds  600 * 2 = 1200 bps  600 * 2 = 1200 bps  V.22 bis uses 16 (2 4 ) points and 600 bauds  600 * 4 = 2400 bps  600 * 4 = 2400 bps  V.32 uses 5 bits per baud but one of them is for Trellis Coding error detection  16 (2 4 ) points are counting and 2400 bauds  2400 * 4 = 9600 bps  2400 * 4 = 9600 bps Figure 3.21 – Quantifying a Point on a signal Constellation

34 M odems (continue...) Signal Constellation  Distortion is possible, which may change the amplitude or the phase shift Figure 3.22 – Distortion of Signal Constellation Points

35 M odems (continue...) Signal Constellation  Depending on the distortion level, the modem may or may not be able to interpret the distorted signal correctly Interpreting for a distorted signal Figure 3.23 – Interpreting Constellation Points for a distorted signal

36 M odems (continue...) Modem Standards  Few modem standards exist!  They differ in baud rate, bit per baud, modulation techniques, error detection, compressions,..etc.  Autobaud modems exist and convenient since they are capable of automatically choose the appropriate standard; they also allow users to communicate using any of several standards  56 kbps modems were achievable when connecting directly with ISP Connections using a Modem Figure 3.24 – Connections using a Modem

37 M odems (continue...) Cable Modems  Driven by many facts including the inability of modem over phone lines to go beyond 56kbps  They connect with the analog component of a cable TV (CATV) instead of the analog component of the telephone system Cable Modem Placement Figure 3.25 – Cable Modem Placement

38 M odems (continue...) Cable Modems  Utilizes the much higher frequency of CATV, so few Mbps speed is achieved  However bit rate may differ depending on the number of users (neighbors usually!) that are using the cable line

39 M odems (continue...) Cable Modems  Usually has a frequency of about 750 MHz, divided into many 6-MHz for different channels  Information from the Internet can be downloaded onto a 6- MHz band somewhere between 42 and 750 MHz Figure 3.26 – Cable Modem & Carrier Signals

40 M odems (continue...) Cable Modems  A number of techniques can be used for modulating & demodulating, but two are more popular: Quaternary Phase Shift Keying (QPSK)Quaternary Phase Shift Keying (QPSK) QAM64, a variation of QAMQAM64, a variation of QAM  QAM64 is typical for high bandwidth requirement – data download rate can be 36 Mbps, which many PCs today are not capable of handling  A more realistic figure is between 1 and 11 Mbps

41 M odems (continue...) Cable Modems  Can also be used to transmit information on the opposite direction (Uploading)  Frequency used for uploading is usually between 5 & 40 MHz Uploading has lower bit rate, which might be okay. Why?Uploading has lower bit rate, which might be okay. Why?

42 D SL  DSL - Digital Subscriber Line  Fast and does not require cable wiring or dialing up to ISP  Uses telephone lines!!!!  Local loop (last mile) is capable of transmitting signals of up to 1 MHz frequency, that Local exchange can receive Local Loop - POTS (Plain Old Telephone Service) Configuration Figure 3.27 – Local Loop - POTS (Plain Old Telephone Service) Configuration

43 D SL (continue...) Various forms of DSL exist Asymmetric DSL ADSL Connection Figure 3.28 – ADSL Connection

44 D SL (continue...) ADSL Lite  Designed for residential customers ADSL Lite Figure 3.30 – ADSL Lite

45 D SL (continue...) VDSL – Very High Data Rate DSL  The local loop causes many DSL problems  Signal degrades over long distance, do DSL is not available if the house is more than 3.5 miles from the local office  New improved local loop using fiber/copper hybrid is used, which improves quality, reduces the copper length and makes VDSL possible Local Loop: Fiber/Copper Hybrid Figure 3.31 – Local Loop: Fiber/Copper Hybrid