Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

Similar documents
9.4. Synchronization:

Lecture 3 Data Link Layer - Digital Data Communication Techniques

SEN366 Computer Networks

Class 4 ((Communication and Computer Networks))

Digital to Digital Encoding

Data Communications and Networking (Module 2)

Data and Computer Communications

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

C06a: Digital Modulation

CHAPTER 2. Instructor: Mr. Abhijit Parmar Course: Mobile Computing and Wireless Communication ( )

Data Encoding. Two devices are used for producing the signals: CODECs produce DIGITAL signals MODEMs produce ANALOGUE signals

Lecture-8 Transmission of Signals

Digital Data Communication Techniques

Signal Encoding Techniques

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Stefan Savage

and coding (a.k.a. communication theory) Signals and functions Elementary operation of communication: send signal on

Chapter 2: Fundamentals of Data and Signals

Digital Transmission (Line Coding) EE4367 Telecom. Switching & Transmission. Pulse Transmission

Digital Transmission

CSE 123: Computer Networks Alex C. Snoeren. Project 1 out Today, due 10/26!

DIGITAL DATA COMMUNICATION TECHNIQUES

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Alex C. Snoeren

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

Signal Encoding Techniques

Lecture 3 Concepts for the Data Communications and Computer Interconnection

2. By convention, the minimum and maximum values of analog data and signals are presented as voltages.

Tutorial 5. Prebared by T.A,Najed Almutairi

Ș.l. dr. ing. Lucian-Florentin Bărbulescu

Computer Networks - Xarxes de Computadors

CSCI-1680 Physical Layer Rodrigo Fonseca

Physical Layer: Modulation, FEC. Wireless Networks: Guevara Noubir. S2001, COM3525 Wireless Networks Lecture 3, 1

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Physical-Layer Services and Systems

Lecture (06) Digital Coding techniques (II) Coverting Digital data to Digital Signals

NETWORKS FOR EMBEDDED SYSTEMS. (Data Communications and Applications to Automotive)

TSTE17 System Design, CDIO. General project hints. Behavioral Model. General project hints, cont. Lecture 5. Required documents Modulation, cont.

Lecture Outline. Data and Signals. Analogue Data on Analogue Signals. OSI Protocol Model

Thus there are three basic modulation techniques: 1) AMPLITUDE SHIFT KEYING 2) FREQUENCY SHIFT KEYING 3) PHASE SHIFT KEYING

Chapter 4 Digital Transmission 4.1

Lecture 6: Reliable Transmission"

Computer Facilities and Network Management BUS3150 Assignment 1

Error Protection: Detection and Correction

OptiSystem applications: Digital modulation analysis (PSK)

Digital signal is denoted by discreet signal, which represents digital data.there are three types of line coding schemes available:

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

Lecture 4: Wireless Physical Layer: Channel Coding. Mythili Vutukuru CS 653 Spring 2014 Jan 16, Thursday

Module 3: Physical Layer

Overview. Chapter 4. Design Factors. Electromagnetic Spectrum

Year : TYEJ Sub: Digital Communication (17535) Assignment No. 1. Introduction of Digital Communication. Question Exam Marks

Introduction to Error Control Coding

Transmission Principles

Representation of Information. Transmission Principles. Agenda. Transmission of Information

College of information Technology Department of Information Networks Telecommunication & Networking I Chapter 5. Analog Transmission

Chapter Two. Fundamentals of Data and Signals. Data Communications and Computer Networks: A Business User's Approach Seventh Edition

Physical Layer, Part 2. Analog and Digital Transmission

Error Control Coding. Aaron Gulliver Dept. of Electrical and Computer Engineering University of Victoria

COSC 3213: Computer Networks I: Chapter 3 Handout #4. Instructor: Dr. Marvin Mandelbaum Department of Computer Science York University Section A

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

ECE 476/ECE 501C/CS Wireless Communication Systems Winter Lecture 9: Error Control Coding

Physical Layer. Networked Systems (H) Lecture 3

Single Error Correcting Codes (SECC) 6.02 Spring 2011 Lecture #9. Checking the parity. Using the Syndrome to Correct Errors

Basic Concepts in Data Transmission

ECE 4203: COMMUNICATIONS ENGINEERING LAB II

Computer Networks Chapter 2: Physical layer

King Fahd University of Petroleum & Minerals Computer Engineering Dept

ECE5713 : Advanced Digital Communications

Lecture 17 Components Principles of Error Control Borivoje Nikolic March 16, 2004.

Department of Electronics and Communication Engineering 1

Data Encoding g(p (part 2)

QUESTION BANK SUBJECT: DIGITAL COMMUNICATION (15EC61)

Digital Transmission (Line Coding)

EECS 122: Introduction to Computer Networks Encoding and Framing. Questions

Fundamentals of Data and Signals

Layering and Controlling Errors

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT.

Department of Electronics & Telecommunication Engg. LAB MANUAL. B.Tech V Semester [ ] (Branch: ETE)

ECE 435 Network Engineering Lecture 4

Computer Networks. Week 03 Founda(on Communica(on Concepts. College of Information Science and Engineering Ritsumeikan University

Hello and welcome to today s lecture. In the last couple of lectures we have discussed about various transmission media.

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

Downloaded from 1

Revision of Lecture Eleven

Lecture 3: Wireless Physical Layer: Modulation Techniques. Mythili Vutukuru CS 653 Spring 2014 Jan 13, Monday

16.36 Communication Systems Engineering

UNIT I Source Coding Systems

Digital Modulation Schemes

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK. Subject Name: Digital Communication Techniques

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

EE3723 : Digital Communications

About Homework. The rest parts of the course: focus on popular standards like GSM, WCDMA, etc.

Manchester Coding and Decoding Generation Theortical and Expermental Design

Lecture 23: Media Access Control. CSE 123: Computer Networks Alex C. Snoeren

Mobile & Wireless Networking. Lecture 2: Wireless Transmission (2/2)

Wireless Communications

Chapter 10 Error Detection and Correction 10.1

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

ROM/UDF CPU I/O I/O I/O RAM

DIGITAL COMMINICATIONS

Transcription:

Datacommunication I Lecture 3 signal encoding, error detection/correction Layers of the OSI-model repetition 1

The OSI-model and its networking devices repetition The OSI-model and its networking devices repetition 2

Data encoding Turning data (digital or analog) into signals (digital or analog) Encoders and decoders ( codec ) are used for digital signals Modulators and demodulators ( modem ) are used for analog signals Why change between analog and digital? Copper wires e.g. can handle both digital and analog signals. But cheap and fast networking equipment (e.g. switching technology) only works on digital signals Unguided media and optical fibers only operate with analog signals In this course: focus on digital data as input Data encoding 3

Repetition of some terms Simplest form: One data element <-> one signal element Data rate (measured in bits/s) Signal rate measured in signal elements per second or baud Also called modulation rate or baud rate Bit error rate (BER) the number of erroneous bits received divided by the total number of bits transmitted Signal to Noise Ratio (SNR) Ratio of a signal power to the noise power corrupting the signal Bit rate vs. Signal rate 4

Some general truths about data rate etc. An increase in data rate the BER An increase in SNR the BER An increase in bandwidth allows an in data rate Increase???? Decrease????? Some general truths about data rate etc. An increase in data rate increases the BER An increase in SNR decreases the BER An increase in bandwidth allows an increase in data rate 5

Digital data, digital signals Digital signal encoding schemes NRZ(-L) Nonreturn to Zero (-Level) Different types: E.g. no voltage = 0, +voltage = 1 NRZ-L: -voltage = 1, +voltage = 0 Data rate = signal rate Constant value during the whole bit duration Problems Lack of synchronization possibilities 6

NRZI Nonreturn to Zero, invert on ones Bits are encoded not through the voltage level itself but through the existance or absense of transitions between the levels ( Differential encoding ) Transition = 1 No transition = 0 Easier to detect transition than a signal level (especially in the presence of noise) Manchester encoding ( Biphase encoding ) Transition in the middle of the bit High to low for 0 Low to high for 1 Offers a chance to clock synchronize at every bit ( selfclocking code ) Offers error detection No transition during a bit -> error Signal rate = 2 x data rate Popular (used e.g. in Ethernet standard) 7

More about the signal rate D=R/L D = signal rate (baud or signal elements/s) R = data rate (bits/s) L = nbr. bits per signal element Signal transition rate 8

Signal transition rate min 101010 max NRZ-L NRZI Manchester 0 (all 0 or 1) 0 (all 0) 1 1 0,5 1 1 1 (all 1) 2 (all 0 or 1) Digital data, analog signals 9

Amplitude Shift Keying (ASK) E.g. used for optical fibers No amplitude = 0 Amplitude = 1 = Acos(2πft ) s( t) 0 Binary Frequency Shift Keying (BPSK) Used frequently 2 different frequencies used to encode 0 and 1 Less susceptible to error than ASK Full duplex possile Use separated frequency bands, one for each transmission direction Acos(2π f1t) s( t) = Acos(2π f2t) 10

Full duplex in BFSK Phase Shift Keying (PSK) Binary Phase Shift Keying (BPSK) A phase denotes 1, another phase denotes 0 Differential PSK (DPSK) A transition denotes 1 No transition denotes 0 Acos(2πft ) s( t) = Acos(2πft + π ) 11

Example DPSK Quadrature Phase Shift Keying (QPSK) 4 different phases used Each phase denotes 2 bits π Acos(2πft + ) 11 4 3π Acos(2πft + ) 01 s( t) = 4 3π Acos(2πft ) 00 4 π Acos(2πft ) 10 4 12

Synchronization Needed between transmitter and receiver Receiver needs to read the incoming stream once a signal Clock drifting leads to synchronization errors Two types of transmission Asynchronous transmission Synchronous transmission Asynchronous transmission New definitions character = block of a couple of bits (5-8) idle = a state where no data is sent (or ready to be sent and the equipment is in a waiting state Synchronization done before every character Start bit at the beginning of each character Stop element ends a character Possible idle state between character transmissions Disadvantages Simple and cheap but much overhead 13

Synchronous transmission Blocks of bits are sent in a steady stream No start and stop bits Synchronization through self-clocking code (e.g. Manchester) Separate clock line between transmitter and receiver Data frame Preamble to let the receiver know that a frame start Block of data Far less overhead than assynchronous transm. 14

Error detection and correction Bit errors occur as Single bit errors Error bursts Large number of bits affected Due to impulse noise Bit errors can be detected by error detecting code or detected and corrected by error correcting code Error detection A function is applied to a block of data The result is sent together with the data The receiver applies the same function to the data and compares the results Transmitter is informed about the erroneous data transmission (and asked for retransmission) Receiver cannot correct the errors Examples: Parity check Cyclic Redundancy Check (CRC) 15

Error detection Parity Check Add a parity bit to the data block Two types Even parity Create an even number of ones by adding a parity bit Odd parity Create an odd number of ones by adding a parity bit Even parity: 1001000111100 1101110100101 Odd parity: 1001000111101 1101110100100 16

Cyclic Redundancy Check (CRC) Commonly used Able to detect most errors Transmitter creates a frame check sequence (FCS) and sends it along with the data The FSC gives no remainder when the data block is divided by it Gives the receiver a chance to check for errors How to create a suitable FCS? Several methods E.g. through XOR with a predetermined bit pattern CRC example Data block: 1101001110100 Bit pattern: 1011 1101001110100 1011 xor 0110001110100 _1011 0011101110100 1011 0000000001110 1011 0000000000101 FCS: 101 17

Error correcting codes Receiver can detect and correct the error by itself No retransmission required Saves resources Codeword is created out of data block Receiver decodes the codeword and sees correctable and non-correctable errors Some errors can be corrected using the codeword Some errors are not detected or only detected without being corrected Always a compromise between error correction abilities and limiting overhead Best error correcting code = sending the whole block of data twice, or multiple times Error correcting codes 18

Block codes Definition: Hamming distance d = number of bits in which two binary sequences disagree Example: S1: 001101 S2: 110000 Hamming distance d = 5 Code rate = k/n (number of bits in the original data / number of bits in the codeword) The code rate is a measurement for how much extra resources (bandwidth) that a certain code requires Block codes k = number of bits in the original data block n = number of bits in the codeword Example: k=2, n= 5 Data block codeword received Most probable 00 00000 00100 01 00111 10 11001 11 11110 Receive wrong (non-existing) codeword must be error Chose codeword with least Hamming distance to recreate correct data Never 100% sure the right codeword is chosen, but you chose the codeword with the highest probability to correspond to the correct data block 19

Key terms Encoder-decoder Modulator-demodulator Signal rate (baud rate, modulation rate) NRZ encoding Manchester encoding Differential coding Amplitude Shift Keying (ASK) Binary Frequency Shift Keying (BFSK) Binary Phase Shift Keying (BPSK) Differential Phase Shift Keying (DPSK) Quadrature Phase Shift Keying (QPSK) Asynchronous transmission Synchronous transmission Error correction vs detection Clock synchronization Idle state Self-clocking code Parity check Odd vs even parity Block coding Codeword Hamming distance Code rate 20