1 CSC535 Communication Networks I Chapter 3b: Signal Encoding and Conversion Dr. Cheer-Sun Yang.

Slides:



Advertisements
Similar presentations
Signal Encoding Techniques
Advertisements

Signal Encoding Techniques
Physical Layer (Part 2) Data Encoding Techniques
1 Pertemuan 07 Teknik Modulasi Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Chapter 2 Fundamentals of Data and Signals
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 5 – Signal Encoding Techniques.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 5 – Signal Encoding Techniques.
Data and Computer Communications
Data and Computer Communications Chapter 5 – Signal Encoding Techniques.
1 Data Encoding – Chapter 5 (part 1) CSE 3213 Fall /2/2015 9:13 AM.
Chapter 5 – Signal Encoding and Modulation Techniques
Signal Encoding Techniques
Stallings, Wireless Communications & Networks, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Signal Encoding Techniques.
Physical Layer – Part 2 Data Encoding Techniques
1 Digital Data, Analog Signals (5.2) CSE 3213 Fall May 2015.
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.
S IGNAL E NCODING T ECHNIQUES Engr. Mehran Mamonai Department of Telecommunication.
William Stallings Data and Computer Communications 7th Edition
Networks: Data Encoding1 Data Encoding Techniques.
Chapter Two Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User's Approach Fifth Edition.
Physical Layer – Part 2 Data Encoding Techniques
Data Encoding Techniques
Chapter 2 Fundamentals of Data and Signals
Signal Encoding Lesson 05 NETS2150/2850
3. Encoding Techniques and Spread Spectrum
Chapter 2: Fundamentals of Data and Signals. 2 Objectives After reading this chapter, you should be able to: Distinguish between data and signals, and.
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
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-DIGITAL CONVERSION
CS3502, Data and Computer Networks: the physical layer-3.
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
CSC 335 Data Communications and Networking
Data Communications & Computer Networks, Second Edition1 Chapter 2 Fundamentals of Data and Signals.
Data and Computer Communications
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.
Data Encoding Reading Assignment : Stallings Chapter 2, pp , Chapter 4, pp , , Terminology –Data entities that convey.
Wireless Networks Instructor: Fatima Naseem Lecture # 03 Computer Engineering Department, University of Engineering and Technology, Taxila.
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.
EEC4113 Data Communication & Multimedia System Chapter 2: Baseband Encoding by Muhazam Mustapha, July 2010.
1 Chapter 2 Fundamentals of Data and Signals Data Communications and Computer Networks: A Business User’s Approach.
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.
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
EE 3220: Digital Communication Dr. Hassan Yousif Ahmed Department of Electrical Engineering College of Engineering at Wadi Aldwasser Slman bin Abdulaziz.
Session 2. Objectives: By the end of this session, the student will be able to: Distinguish between data and signals. Cite the advantages of digital data.
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.
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.
CSE 320 Data Communications
Data Encoding Data Encoding refers the various techniques of impressing data (0,1) or information on an electrical, electromagnetic or optical signal that.
KOMUNIKASI DATA Materi Pertemuan 10.
CHAPTER 3 Physical Layer.
CHAPTER 3 Physical Layer.
Physical Layer (Part 2) Data Encoding Techniques
Chapter 4 Digital Transmission
Data Encoding Data Encoding refers the various techniques of impressing data (0,1) or information on an electrical, electromagnetic or optical signal that.
Physical Layer – Part 2 Data Encoding Techniques
Lecture 6: Signal Encoding Techniques
Signal Encoding Techniques
Chapter 5. Data Encoding Digital Data, Digital Signals
Physical Layer – Part 2 Data Encoding Techniques
Presentation transcript:

1 CSC535 Communication Networks I Chapter 3b: Signal Encoding and Conversion Dr. Cheer-Sun Yang

2 Motivation Short distance and Long distance communications require to encode data with signals prior to sending the signals across communication media. We need to discuss the following: What are the communication services and devices available today? How are bits encoded into electric signals? How are analog signals and digital signals be converted?

3 Communication Services and Devices Telephone System – switching technique and routing methods are the two main design issues. Integrated Services Digital Network Cellular Phones – the sender and receiver can move Fax Machines Computers

4 Data Encoding ASCII (American Standard Code for Information Interchange) EBCDIC (Extended Binary Coded Decimal Interchange Code) Others – Baudot, morse, BCD

5 Electric Current and Data Bits The simplest electronic communication systems use a small electric current to encode data. Positive voltage – represents 0 (or 1) Negative voltage – represents 1 (or 0) A waveform diagram can be used to illustrate how data bits are represented and transmitted.

6 Electric Current and Data Bits A waveform diagram provides a visual representation of how an electrical signal varies over time. For example, the diagram shows that a longer time elapsed between the transmission of the fourth and the fifth bits than between others.

7 Digital Encoding Schemes Using Digital Signals Nonreturn to Zero-Level (NRZ-L) Nonreturn to Zero Inverted (NRZI) Manchester Differential Manchester

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks Unipolar NRZ NRZ-Inverted (Differential Encoding) Bipolar Encoding Manchester Encoding Differential Manchester Encoding Polar NRZ Figure 3.25

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 9 Figure 3.26

10 Nonreturn to Zero-Level (NRZ- L) Two different voltages for 0 and 1 bits Voltage constant during bit interval –no transition I.e. no return to zero voltage e.g. Absence of voltage for zero, constant positive voltage for one More often, negative voltage for one value and positive for the other This is NRZ-L

11 Nonreturn to Zero Inverted Nonreturn to zero inverted on ones Constant voltage pulse for duration of bit Data encoded as presence or absence of signal transition at beginning of bit time Transition (low to high or high to low) denotes a binary 1 No transition denotes binary 0 An example of differential encoding

12 NRZ

13 NRZ pros and cons Pros –Easy to engineer –Make good use of bandwidth Cons –dc component –Lack of synchronization capability and hard to synchronize timing of sender and receiver. Used for magnetic recording Not often used for signal transmission

14 Differential Encoding Data represented by changes rather than levels More reliable detection of transition rather than level In complex transmission layouts it is easy to lose sense of polarity

15 Manchester Transition in middle of each bit period Transition serves as clock and data Low to high represents one High to low represents zero Used by IEEE 802.3

16 Advantages of Manchester Synchronization: Because there is a predictable transition during each bit time, the receiver can synchronize on that transition. Error detection: Noise on the line would have to invert both the signal before and affter to cause an undetected error.

17 How are bits encoded into digital signals? Exercise with a neighbor now. Draw a waveform diagram depicting the message “Hi” using NRZL, NRZI, and Manchester encoding schemes. –Assume that the bit representation of “H” is = 0X48 –Assume that the bit representation of “i” is = 0X69

18 Limitation Digital signals cannot be used to transmit across a long distance. During transmitting digital signals, it is susceptible to interference easily. Digital encoding schemes are widely used in recording. Instead, analog signals are used to transmit even digital data bits. How?

19 Motivation on Modulation and Demodulation If either analog or digital signals were used exclusively, communications would be simplified. However, this is impossible especially attempting to send signals across a long distance. Digital signals cannot be transmitted far without being converted to analog signals. Because telephone system is an analog device, computer signals must be converted to analog signals.

20 The Waveform of a Carrier The wave form of an analog signal carrier oscillates continuously even when no signal is being sent.

21 Carrier Researchers found that a continuous, oscillating signal will propagate farther than other signals. Instead of transmitting an electric current that only changes when the value of a bit changes, long-distance communication systems send a continuously oscillating signal, usually a sine wave, called a carrier.

22 Data Modulation To send data, a transmitter modifies the carrier slightly. Collectively, such modifications are called modulation. The technique was originated for transmitting radio or TV signals. Generally speaking, modulation is the process to transform a digital signal into an analog signal.

23 Data Demodulation At the receiving end, the analog signal is transformed back to digital signals. The process is called demodulation. The device to perform modulation and demodulation is called a modem. We will talk about modem later.

24 Example of Data Modulation The digital signal ’01’ is sent. The carrier is reduced to 2/3 full strength to encode a 1 bit and 1/3 strength to encode a 0 bit.

25 Modulation Techniques Amplitude shift keying (ASK) Frequency shift keying (FSK) Phase shift keying (PK)

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 26 f f 2 f 1 f c 0 Figure 3.27

27 Modulation Techniques

28 Modulation Techniques This modulation technique is called Amplitude Shift keying (ASK) technique.

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 29 Information T 2T2T 3T3T 4T4T5T5T 6T6T Amplitude Shift Keying +1 Frequency Shift Keying +1 Phase Shift Keying (a) (b) (c) 0 T 2T2T 3T3T 4T4T5T5T 6T6T 0 T 2T2T 3T3T 4T4T5T5T 6T6T t t t Figure 3.28

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks (a) Information (d) 2Y i (t) cos(2  f c t) +2A -2A +A -A (c) Modulated Signal Y i (t) 0 T 2T2T 3T3T 4T4T5T5T 6T6T +A -A (b) Baseband Signal X i (t) 0 2T2T 3T3T 6T6T 0 T 2T2T 3T3T 4T4T5T5T 6T6T T 4T4T5T5T t t t Figure 3.29

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 31 (a) Modulate cos(2  f c t) by multiplying it by A k for (k-1)T < t <kT: AkAk x cos(2  f c t) Y i (t) = A k cos(2  f c t) (b) Demodulate (recover) A k by multiplying by 2cos(2  f c t) and lowpass filtering: x 2cos(2  f c t) 2A k cos 2 (2  f c t) = A k {1 + cos(2  f c t)} Lowpass Filter with cutoff W Hz X i (t) Y i (t) = A k cos(2  f c t) Figure 3.30

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 32 AkAk x cos(2  f c t) Y i (t) = A k cos(2  f c t) BkBk x sin(2  f c t) Y q (t) = B k sin(2  f c t) +Y(t) Modulate cos(2  f c t) and sin (2  f c t) by multiplying them by A k and B k respectively for (k-1)T < t <kT: Figure 3.31

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 33 Y(t) x 2cos(2  f c t) 2cos 2 (2  f c t)+2B k cos(2  f c t)sin(2  f c t) = A k {1 + cos(4  f c t)}+B k {0 + sin(4  f c t)} Lowpass Filter with cutoff W/2 Hz AkAk x 2sin(2  f c t) 2B k sin 2 (2  f c t)+2A k cos(2  f c t)sin(2  f c t) = B k {1 - cos(4  f c t)}+A k {0 + sin(4  f c t)} Lowpass Filter with cutoff W/2 Hz BkBk Figure 3.32

34 Amplitude Shift Keying Values represented by different amplitudes of carrier Usually, one amplitude is zero –i.e. presence and absence of carrier is used Susceptible to sudden gain changes Inefficient

35 Example of ASK Bit ValuesAmplitude 00A1A1 01A2A2 10A3A3 11A4A4

36 Amplitude Shifting Keying (four amplitudes), two bits per baud

37 Phase Shift Keying Nyquist Theorem suggests that the number of bits sent per cycle can be increased if the encoding scheme permits multiple bits to be encoded in a single cycle of the carrier. ASK and FSK work well but require at least one cycle of a carrier wave to send a single bit. PSK changes the timing of the carrier wave abruptly to encode data. Such change is called a phase shift.

38 Example of Phase Shift

39 Phase Shift Keying Arrows indicate points at which the carrier abruptly jumps to a new position in the cycle. For different code, the phase shift is different.

40 Frequency Shift Keying

41 QAM Any of the simple techniques can be used with any number of different signals. More signals means a greater bit rate with a given baud rate. The problem is that a higher bit rate requires more signals and reduces the differences among them and makes the receiver’s job more difficult.

42 QAM(cont’d) Another approach is to use a combination of frequencies, amplitudes, or phase shifts, which allows us to use a larger group of legitimate signals while maintaining larger differences among them. One technique is Quadrature Amplitude Modulation (QAM), in which a group of bits is assigned a signal defined by its amplitude and phase shift.

43 Quadrature PSK More efficient use by each signal element representing more than one bit –e.g. shifts of  /4 (45 o ) –Each element represents three bits –Can use 4 phase angles and have two amplitudes –9600bps modem use 12 angles, four of which have two amplitudes

44 Signal Associations for QAM

45 Two amplitudes and four phases are used to send three bits per baud.

46 Performance of Digital to Analog Modulation Schemes Bandwidth –ASK and PSK bandwidth directly related to bit rate –FSK bandwidth related to data rate for lower frequencies, but to offset of modulated frequency from carrier at high frequencies In the presence of noise, bit error rate of PSK and QPSK are about 3dB superior to ASK and FSK

47 Analog-to-Digital Conversion Usually, it is the reverse of what we have just discussed. A modem examines the incoming signals for amplitude, frequencies, and phase shifts and generates digital signals. This works for signals having constant characteristics. What about analog signals whose characteristics change continually for example voice ?

48 Pulse Code Modulation One way of making the signal truly digital is to assign amplitudes from a predefined set to the sample signals. This process is called PCM.

49

50 The pulse amplitude is divided into eight values or 2 3 values.

51 Accuracy of PCM 1.The sampling frequency 2.The number of amplitudes chosen: in Fig 2.47, the resulted signal becomes distorted.

52

53 Modem Modem = modulator + demodulator A modem converts digital signals to analog signals before sending them across a phone line. Another modem converts analog signals back to digital signals before passing them to a receiver.

54 Illustration of Dial-up Modem

55 Modems Intelligent Modems (Hayes Compatible) –A user can enter commands such as continuing dialing, beeping when disconnected, etc. –Hayes Modem allows a user to enter AT command to request for connection. –ATDT : AT represents AT command; D stands for dial; T stands for tone dialing. Cable Modems – connects to cable TV carrier from a PC and a TV. Null Modems – used for connecting two local PC’s together. (will be discussed again in next chapter)

56 Summary of Modem A pair of modem is required for long-distance communication across a leased line; each modem contains separate circuitry to send and receive digital data. To send data, a modem emits a continuous carrier wave, which it then modulates according to the values of the bits being transferred. To receive data, a modem detects modulation in the incoming carrier, and uses it to recreate the data bits.

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 57 AkAk BkBk 16 “levels”/ pulse 4 bits / pulse 4W bits per second AkAk BkBk 4 “levels”/ pulse 2 bits / pulse 2W bits per second 2-D signal Figure 3.33

Copyright 2000 McGraw-Hill Leon- Garcia and Widjaja Communication Networks 58 AkAk BkBk 4 “levels”/ pulse 2 bits / pulse 2W bits per second AkAk BkBk 16 “levels”/ pulse 4 bits / pulse 4W bits per second Figure 3.34

59 Reading Assignments Read Chapter 3.5, 3.6