© Janice Regan, CMPT 128, 2007-2012 0 CMPT 371 Data Communications and Networking Digital Encoding.

Slides:



Advertisements
Similar presentations
Signal Encoding Techniques
Advertisements

1 Pertemuan 07 Teknik Modulasi Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Teknik Enkoding Pertemuan 08 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 5 – Signal Encoding Techniques.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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
Physical Layer – Part 2 Data Encoding Techniques
EE 4272Spring, 2003 Chapter 5 Data Encoding Data Transmission Digital data, digital signal Analog data, digital signal: e.g., voice, and video are often.
Data and Computer Communications
S IGNAL E NCODING T ECHNIQUES Engr. Mehran Mamonai Department of Telecommunication.
Chapter 4 Digital Transmission
4.2 Digital Transmission Pulse Modulation (Part 2.1)
CSCD 218 : DATA COMMUNICATIONS AND NETWORKING 1
William Stallings Data and Computer Communications 7th Edition
Transmitting digital signals How do we encode digital signals for transmission? How can we interpret those signals?
Signal Encoding Lesson 05 NETS2150/2850
3. Encoding Techniques and Spread Spectrum
Sami Al-Wakeel 1 Data Transmission and Computer Networks Data Encoding.
LECTURE 5 CT1303 LAN. DATA ENCODING Digital signal: is a sequence of discrete, discontinuous voltage pulses. Each pulse is a signal element Binary data.
DIGITAL-TO-DIGITAL CONVERSION
Base-Band Digital Data Transmission Prepared By: Amit Degada. Electronics Engineering Department, Sardar Vallabhbhai National Institute of Technology,
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.
Data Encoding.
Data and Computer Communications
Data Communications Chapter 5 Data Encoding.
Department of Electrical and Computer Engineering
Computer Communication & Networks
ECE 4371, Fall, 2015 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
Multi Level, Multi Transition & Block Codes
Chapter 4 Digital Transmission.
British Computer Society (BCS)
Chapter 4 Digital Transmission.
DIGITAL-TO-DIGITAL CONVERSION In this section, we see how we can represent digital data by using digital signals. The conversion involves three.
EEC4113 Data Communication & Multimedia System Chapter 2: Baseband Encoding by Muhazam Mustapha, July 2010.
Digital Transmission & Analog Transmission. 4.#2 1. DIGITAL-TO-DIGITAL CONVERSION Digital Data -> Digital Signal Three techniques: 1.line coding (always.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Spring 2007Data Communications, Kwangwoon University4-1 Chapter 4. Digital Transmission 1.Digital-to-Digital Conversion 2.Analog-to-Digital Conversion.
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
1 Chapter 5 Encoding. 2 Figure 4-1 Transformation of Information to Signals.
Unit 1 Lecture 7 1. Bipolar Encoding Bipolar encoding, like RZ, uses three voltage levels: positive, negative and zero. Unlike RZ, however, the zero level.
Digital Line Encoding Converting standard logic level to a form more suitable to telephone line transmission. Six factors must be considered when selecting.
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.
CSE 320 Data Communications
Data Communications and Networking
Data Encoding Data Encoding refers the various techniques of impressing data (0,1) or information on an electrical, electromagnetic or optical signal that.
4.2 Digital Transmission Pulse Modulation (Part 2.1)
DIGITAL TRANSMISSION PART C
Data Conversion Methods
Signal Encoding Techniques
Physical Layer (Part 2) Data Encoding Techniques
Chapter 4 Digital Transmission
Signal Encoding Techniques
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
CT1303 LAN Rehab AlFallaj.
Lecture 6: Signal Encoding Techniques
NET301 Lecture 5 10/18/2015 Lect5 NET301.
NET301 Lecture 5 10/18/2015 Lect5 NET301.
Chapter 5. Data Encoding Digital Data, Digital Signals
Physical Layer – Part 2 Data Encoding Techniques
EEC4113 Data Communication & Multimedia System Chapter 2: Baseband Encoding by Muhazam Mustapha, September 2012.
CS433 - Data Communication and Computer Networks
Presentation transcript:

© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Digital Encoding

Janice Regan © Encoding  Digital and analog data can be encoded as digital or analog signals.  Digital data encoded to digital signals  Analog data encoded to digital signals  Digital data encoded to analog signals  Analog data encoded to analog signals

Janice Regan © Definitions  Data rate, R  Rate of data transmission in bits per second  Duration or length of a bit, t b = 1/R  Time taken for transmitter to emit the bit  Modulation rate, D = R/b  Measured in baud (signal elements or symbols per second)  b is the number of bits per signal element  Mark and Space  Binary 1 and Binary 0 respectively

Janice Regan © Encoding and Modulation Stallings 2003: Figure 5.1

Janice Regan © Digital Signaling  The source data is a stream of data bits, g(t) is encoded into voltage pulses.  The particular encoding method will determine how the information is translated into voltage pulses  Encoding methods use multiple voltage levels  Information is carried using the voltage levels and sometimes the transitions between voltage levels.  Factors affecting efficiency of encoding include  Number of voltage levels  Signal bandwidth  Error detection efficiency  Maximum duration without a transition (Loss of Sync)  Amount of DC signal produced ( transformer coupling only with no dc signal)

Janice Regan © Analog Signaling  carrier signal: continuous signal with frequency, f c  Modulation: the process of encoding the source data stream (baseband signal or modulating signal) onto the carrier signal  Modulation involves superimposing variations in amplitude, phase or frequency on the carrier signal. These variations carry the information in the data.  The Modulated Signal (output from modulation) is transmitted as an analog signal  The Receiver will demodulate the Modulated Signal and extract the information  WHY? To change the signals bandwidth and frequency so it can be transmitted on the specified limited width communication channel.

Janice Regan © Digital to Digital Encoding Schemes Nonreturn to Zero-Level (NRZ-L) Nonreturn to Zero Inverted (NRZI) Bipolar -AMI Pseudoternary Manchester Differential Manchester B8ZS HDB3 4B/5B MLT-3 8B/10 Schemes

Janice Regan ©  Digital signal  Discrete, discontinuous voltage pulses  Each pulse is a signal element  Binary data encoded into signal elements

Janice Regan ©  Data encoding of binary ones and zeros  Two signal levels used for encoding 1 – Negative voltage 0 – Positive voltage  Constant voltage pulse for duration of bit no return to zero voltage during pulse  Synchronization may be lost during a long string of zeros or ones. A change is signal level is needed to determine where a bit starts or ends Nonreturn to Zero – Level (NRZI)

Janice Regan © Nonreturn to Zero - Level

Janice Regan © Properties of NRZ- level signals  Maximum possible frequency (bit rate R bps)  Period T=2/R, f = 1/T = R/2 (alternating 1s and 0s)  Minimum possible frequency  Period T=∞, f = 1/T = 0 (all 0s or all 1s): DC component  Bandwidth = Maximum Frequency – Minimum Frequency = R/2 – 0 = R/2  May have a net dc component time 0 1/R 4/R 2/R 3/R 5/R 6/R7/R 8/R 9/R time 0 1/R 4/R 2/R 3/R 5/R 6/R7/R 8/R9/R 0 1 ±1±1

Janice Regan © Bipolar Alternate Mark Inversion (Bipolar AMI)  Multilevel binary data encoding of 1s and 0s  0 represented by no signal (0 voltage)  1 represented by a signal (+ve or –ve voltage)  Signals for ones alternate in sign (+ve and –ve)  Constant voltage pulse for duration of bit  No loss of sync if a long string of ones  Sync may be lost during a long string of zeros  Easy error detection: when 2 successive bits are the same (+1 or -1) an error has occurred.

Janice Regan © Bipolar Alternate Mark Inversion (Bipolar AMI)

Janice Regan © Properties of Bipolar AMI signals  Maximum possible frequency (bit rate R bps)  Period T=2/R, f = 1/T = R/2 (all 1s)  Minimum possible frequency  Period T=∞, f = 1/T = 0 (all 0s)  Bandwidth = Maximum Frequency – Minimum Frequency = R/2 – 0 = R/2  No net dc component (+ve and –ve bits alternate) time /R 4/R 2/R 3/R 5/R 6/R7/R 8/R9/R 0 1/R 4/R 2/R 3/R 5/R 6/R7/R 8/R9/R

Janice Regan © Pseudoternary

Janice Regan © Manchester  Biphase data encoding of binary ones and zeros  Transition between the two possible signal levels occurs in the middle of each bit period Used for clocking and to encode information  1 - signal transition low to high  0 - signal transition high to low  Signal transitions may also occur at the beginning of a bit period (to allow for the correct mid bit transition)  Used by IEEE 802.3

Janice Regan © Manchester

Janice Regan © Properties of Manchester signals  Maximum possible frequency (bit rate R bps)  Period T=1/R, f = 1/T = R (all 1s or all 0s)  Minimum possible frequency  Period T=2/R, f = 1/T = R/2 (alternating 1s and 0s)  Bandwidth = Maximum Frequency – Minimum Frequency = R – R/2 = R/2 time 0 1/R 4/R 2/R 3/R 5/R 6/R7/R 8/R9/R time 0 2/R 1/R 3/R 4/R5/R 0 7/ R 6/R 8/R 9/R10/R

Janice Regan © Theoretical Bit Error Rate Stallings 2003: Figure 5.4

Janice Regan © Scrambling  Use scrambling to replace sequences that cause transmission at a constant level (voltage) for many bit durations, and may cause synchronization problems  Replace long constant sequences with a filling sequence  The filling sequence must be chosen to  Produce enough transitions to sync  Be recognized by receiver and replaced with original data  Same length as original  The filling sequence should not have  A dc component  Any long sequences of zero level line signal  Any reduction in data rate  Error detection capability

Janice Regan © Bipolar AMI

Janice Regan © Bipolar With 8 Zeros Substitution (B8ZS) Data encoding (Based on bipolar-AMI)  0 represented by no signal for duration of bit  1 represented by a signal for duration of bit  Signals for ones alternate in sign  An octet of zeros in the data is encoded as  if the preceding voltage pulse was +ve  if the preceding voltage pulse was -ve  Transmitting station inserts these octets to replace each octet of zeros in the data.  Receiving station detects the octets inserted to replace sequences of zeros and interprets each such octet as a sequence of eight zeros  Insertion of each octet causes two violations of the bipolar-AMI code  These violations are unlikely to occur as a result of noise

Janice Regan © B8ZS

23 Properties of B8ZS signals  Maximum possible frequency (bit rate R bps)  Period T=2/R, f = 1/T = R/2 (all 1s)  Minimum possible frequency  Period T=16/R, f = 1/T = R/16 (repeating pattern of 7 0s followed by a 1 )  Bandwidth = R/2 – R/16 = 7R/16  No net dc component (+ve and –ve bits alternate, except when substitutions occur)  Sync is maintained (need 1 bit in 8 not zero for hardware reliability)  Used in telecom (Voip..) on DS1 and T1 lines time 0 1/R 4/R 2/R 3/R 5/R 6/R7/R 8/R9/R time 0 7/R 31/R 15/R 23/R 39/R 47/R55/R 63/R71/R

Janice Regan © B/5B  Used for 100BASE-X and FDDI LANs  4 Data Bits Encoded into 5 Code Bits At least 2 transitions occur in each group of code bits No more than 2 consecutive 0’s in a group of code bits No more than 3 consecutive 0’s in any coded sequence  80% efficiency, 125Mbaud, 100Mbps

Janice Regan © B/5B: code groups Stallings 2003: Table 16.6

Janice Regan © B/5B MLT-3  Used for 100BASE-TX Over Twisted Pair  Different way of encoding groups of 4B/5B Code bits so high frequencies, which cannot be transmitted through twisted pair cable, are removed from the transmitted signal  The 4B/5B bit stream is scrambled

Janice Regan © B/5B MLT-3  The resulting bit stream is encoded using MLT-3  If the next input bit is zero the next output bit is the same as the present output bit  If the next input bit is one the next output bit is different from the present output bit If the present output bit is not 0 then the next output bit is 0 If the present output bit is 0 the next output bit is not zero and has a sign opposite the previous nonzero output bit

Janice Regan © State Machine for MLT-3 encoding Stallings 2003: Figure 16.12

Janice Regan © MLT-3 (4B/5B 3-Level )