Digital Data Communication Techniques

Similar documents
Lecture 3 Data Link Layer - Digital Data Communication Techniques

Data and Computer Communications

Physical-Layer Services and Systems

Wireless Communications

Outline. EECS 122, Lecture 6. Error Control Overview Where are Codes Used? Error Control Overview. Error Control Strategies ARQ versus FEC

Detecting and Correcting Bit Errors. COS 463: Wireless Networks Lecture 8 Kyle Jamieson

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

DIGITAL DATA COMMUNICATION TECHNIQUES

Lecture 6: Reliable Transmission"

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

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

16.36 Communication Systems Engineering

ECE 5325/6325: Wireless Communication Systems Lecture Notes, Spring 2013

Chapter 10 Error Detection and Correction 10.1

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

Page 1. Outline. Basic Idea. Hamming Distance. Hamming Distance Visual: HD=2

Error Protection: Detection and Correction

ECE 5325/6325: Wireless Communication Systems Lecture Notes, Spring 2013

Layering and Controlling Errors

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Chapter 4: Application Protocols. Transport Layer.

Revision of Lecture Eleven

Error Detection and Correction

Computer Networks - Xarxes de Computadors

QUIZ : oversubscription

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

The idea of similarity is through the Hamming

b. When transmitting a message through a transmission medium, the equipment which receives the message should first find out whether it has received

FREDRIK TUFVESSON ELECTRICAL AND INFORMATION TECHNOLOGY

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

Introduction to Wireless Coding and Modulation

Digital Communication Systems ECS 452

Introduction to Wireless Coding and Modulation

RECOMMENDATION 584-1* (Question 12/8, Study Programme 12A/8)

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

SECTION 4 CHANNEL FORMAT TYPES AND RATES. 4.1 General

Two Factor Full Factorial Design with Replications

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

6. FUNDAMENTALS OF CHANNEL CODER

Encapsulation Baseline Proposal for EFM Copper

Introduction to Error Control Coding

Error Correction with Hamming Codes

Digital Transmission using SECC Spring 2010 Lecture #7. (n,k,d) Systematic Block Codes. How many parity bits to use?

Error Detection and Correction: Parity Check Code; Bounds Based on Hamming Distance

2018/11/1 Thursday. YU Xiangyu

RECOMMENDATION ITU-R M *, **

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

Performance of Reed-Solomon Codes in AWGN Channel

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

Digital Television Lecture 5

Digital to Digital Encoding

Implementation of Reed-Solomon RS(255,239) Code

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

King Fahd University of Petroleum & Minerals Computer Engineering Dept

Spreading Codes and Characteristics. Error Correction Codes

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

ECE 6640 Digital Communications

Chapter 10 Error Detection and Correction

The ternary alphabet is used by alternate mark inversion modulation; successive ones in data are represented by alternating ±1.

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

Technical datasheet. The DTXF-xxx supports South Korean ISM band, 424.7MHz, 447.3MHz and Japanese 429MHz as well as European MHz.

Design of Reed Solomon Encoder and Decoder

Computer-Based Project in VLSI Design Co 3/7

Transmission Principles

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

Block code Encoder. In some applications, message bits come in serially rather than in large blocks. WY Tam - EIE POLYU

Wireless Physical Layer Concepts: Part II

Quasi-Zenith Satellite System Interface Specification Positioning Technology Verification Service (IS-QZSS-TV-001)

9.4. Synchronization:

Improved PHR coding of the MR-O-QPSK PHY

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

Burst Error Correction Method Based on Arithmetic Weighted Checksums

Umudike. Abia State, Nigeria

Exercises to Chapter 2 solutions

Wireless Personal Area Networks

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

S Coding Methods (5 cr) P. Prerequisites. Literature (1) Contents

Hybrid ARQ Schemes for Non-Orthogonal Space-Time Block Codes

Implementation of Reed Solomon Encoding Algorithm

Chapter 1 Coding for Reliable Digital Transmission and Storage

ETSI TS V1.1.2 ( )

MULTIPLE CHOICE QUESTIONS

Intuitive Guide to Principles of Communications By Charan Langton Coding Concepts and Block Coding

Simulink Modelling of Reed-Solomon (Rs) Code for Error Detection and Correction

EE521 Analog and Digital Communications

GSM Network and Services

Project: IEEE P Working Group for Wireless Personal Area Networks N

DATA COMMUNICATION (CS601) FINAL TERM MEGA FILE

DESIGN, SETUP AND OPERATION CLALLAM COUNTY AMATEUR RADIO CLUB MAY 9, 2018 BILL PETERSON K7WWP

CHAPTER 8 DIGITAL DATA BUS ACQUISITION FORMATTING STANDARD TABLE OF CONTENTS. Paragraph Subject Page

CSCI-1680 Physical Layer Rodrigo Fonseca

Figure 6.1 Modes of transmission: (a) baseband transmission; (b) modulated transmission.

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

RADIO SYSTEMS ETIN15. Channel Coding. Ove Edfors, Department of Electrical and Information Technology

General Class Digital Modes Presentation

ETSI TS V1.1.1 ( ) Technical Specification

3GPP Long Term Evolution LTE

Simple Algorithm in (older) Selection Diversity. Receiver Diversity Can we Do Better? Receiver Diversity Optimization.

Modular arithmetic Math 2320

September, Submission. September, 1998

Summary of Basic Concepts

Transcription:

Digital Data Communication Techniques Raj Jain Washington University Saint Louis, MO 63131 Jain@cse.wustl.edu These slides are available on-line at: http://www.cse.wustl.edu/~jain/cse473-05/ 6-1

Overview 1. Asynchronous vs Synchronous Transmissions 2. Types of Errors 3. Error Detection: Parity, CRC 4. Error Correction 6-2

Clock Synchronization! Suppose, data rate = 1 Mbps One bit = 1 μs! Clock rate is 1% faster, Sampling every 0.99 μs! After 50 bits: 50% away from center Error 6-3

Asynchronous Transmission 6-4

Asynchronous Transmission (Cont)! Used for short bit sequences! Idle = No signal, negative voltage, 1! One Start bit, 7 or 8 data bits! One parity bit: Odd, Even, None! Minimum Gap = Stop bits = 1, 1.5, or 2 bits! Efficiency = data bits/total bits 8N1 = 1 Start bit + 8 Data bits + 1 Stop bit + 1 parity bit (even though the parity is not being used by this site) 8/(1+8+1+1) = 73%! Faster clock: 7% 56% off on 8th bit Error! Framing error False start/end of a frame 6-5

Synchronous Transmission! Used for longer bit sequences! Requires clock transmission Use codes with clock information (Manchester)! Beginning of block indicated by a preamble bit pattern called Syn or flag! End of block indicated by a post-amble bit pattern! Character-oriented transmission: Data in 8-bit units! Bit-oriented transmission: Preamble = Flag! Efficiency: Data bits/(preamble+data+postamble)! High-Level Data Link Control (HDLC) uses bit-oriented synchronous transmission. 6-6

Types of Error! An error occurs when a bit is altered between transmission and reception! Single bit errors! One bit altered! Adjacent bits not affected! White noise! Burst errors! Length B! Contiguous sequence of B bits in which first last and any number of intermediate bits in error! Impulse noise! Fading in wireless! Effect greater at higher data rates 6-7

! Odd Parity Parity Checks 1 0 1 1 1 0 1 0 1 2 3 4 5 6 7 8 9 1 0 1 1 1 0 1 0 0 0 0 1 1 1 0 1 0 0 1 2 3 4 5 6 7 8 91 2 3 4 5 6 7 8 9 1-bit error 0 0 0 1 0 0 1 0 0 1 2 3 4 5 6 7 8 0 91 0 2 0 3 1 4 1 5 0 1 6 0 0 7 8 9 3-bit error 2-bit error! Even Parity 1 0 1 1 1 0 1 1 0 1 2 3 4 5 6 7 8 9 6-8

Check Digit Method! Make number divisible by 9 Example: 823 is to be sent 1. Left-shift: 8230 2. Divide by 9, find remainder: 4 3. Subtract remainder from 9: 9-4=5 4. Add the result of step 3 to step 1: 8235 5. Check that the result is divisible by 9. Detects all single-digit errors: 7235, 8335, 8255, 8237 Detects several multiple-digit errors: 8765, 7346 Does not detect some errors: 7335, 8775,... 6-9

1111 11001 +1010 11 -------- -------- 0101 11001 11001 --------- 101011 Modulo 2 Arithmetic 110 11 1010 / 11 --------- x11 11 -------- x00 00 ----- x0 010 2 011 3 ---- -- 001 1 Mod 2 101 5 Binary 6-10

Cyclic Redundancy Check (CRC)! Binary Check Digit Method! Make number divisible by P=110101 (n+1=6 bits) Example: M=1010001101 is to be sent 1. Left-shift M by n bits 2 n M= 101000110100000 2. Divide 2 n M by P, find remainder: R=01110 3. Subtract remainder from P Not required in Mod 2 4. Add the result of step 2 to step 1 : T=101000110101110 5. Check that the result T is divisible by P. 6-11

Modulo 2 Division Q=1101010110 P=110101)101000110100000=2 n M 110101 111011 110101 011101 000000 111010 110101 011111 000000 111110 110101 010110 000000 101100 110101 110010 110101 001110 000000 01110 = R 6-12

Checking At The Receiver 1101010110 110101)101000110101110 110101 111011 110101 011101 000000 111010 110101 011111 000000 111110 110101 010111 000000 101111 110101 110101 110101 00000 6-13

Polynomial Representation! Number the bits 0, 1,..., from right b n b n-1 b n-2...b 3 b 2 b 1 b 0 b n x n +b n-1 x n-1 +b n-2 x n-2 +...+b 3 x 3 +b 2 x 2 +b 1 x+b 0! Example: 543210 110101 = x 5 +x 4 +x 2 +1 1101 1001 0011 = x 11 +x 10 +x 8 +x 7 +x 4 +x+1 11 10 9 8 1 0 6-14

Cyclic Redundancy Check (CRC) Polynomial Division Method Make T(x) divisible by P(x) =x 5 +x 4 +x 2 +1 (Note: n=5) Example: M=1010001101 is to be sent M(x) = x 9 +x 7 +x 3 +x 2 +1 1. Multiply M(x) by x n, x n M(x)= x 14 +x 12 +x 8 +x 7 +x 5 +... 2. Divide x n M(x) by P(x), find remainder: R(x)=01110=x 3 +x 2 +x 6-15

CRC (Cont) 3. Add the remainder R(x) to x n M(x) : T(x)= x 14 +x 12 +x 8 +x 7 +x 5 +x 3 +x 2 +x 4. Check that the result T(x) is divisible by P(x). Transmit the bit pattern corresponding to T(x): 101000110101110 6-16

Popular CRC Polynomials! CRC-12: x 12 +x 11 +x 3 +x 2 +x+1! CRC-16: x 16 +x 15 +x 2 +1! CRC-CCITT: x 16 +x 12 +x 5 +1! CRC-32: Ethernet, FDDI,... x 32 +x 26 +x 23 +x 22 +x 16 +x 12 +x 11 +x 10 +x 8 +x 7 +x 5 +x 4 +x 2 +x+1 Even number of terms in the polynomial Polynomial is divisible by 1+x Will detect all odd number of bit errors 6-17

! All single bit errors Errors Detected by CRC! Any burst error of length n bits or less, n=degree of the polynomial! Most larger burst errors P(undetected burst errors error has ocurred) = 2 -n! Any odd number of errors if P(x) has 1+x as a factor, i.e., has even number of terms! Any double bit errors as long as P(x) has a factor with 3 terms, e.g., (1+x 4 +x 9 )(...) 6-18

Shift-Register Implementation x 5 +x 4 +x 2 +1 = And 6-19

Hamming Distance! Hamming Distance between two sequences = Number of bits in which they disagree! Example: 011011 110001 --------- Difference 101010 Distance =3 6-20

Error Correction! Appropriate for wireless applications! Bit error rate is high Lots of retransmissions! Appropriate for satellite! Propagation delay can be long Retransmission is inefficient.! Need to correct errors on basis of bits received 6-21

Error Correction Process! Each k bit block mapped to an n bit block (n>k)! Received code word passed to FEC decoder! If no errors, original data block output! Some error patterns can be detected and corrected! Some error patterns can be detected but not corrected! Some (rare) error patterns are not detected Results in incorrect data output from FEC 6-22

Error Correction Example! 2-bit words transmitted as 5-bit/word Data Codeword 00 00000 01 00111 10 11001 11 11110 Received = 00100 Not one of the code words Error Distance (00100,00000) = 1 Distance (00100,00111) = 2 Distance (00100,11001) = 4 Distance (00100,11110) = 3 Most likely 00000 was sent. Corrected data = 00 b. Received = 01010 Distance(,00000) = 2 = Distance(,11110) Error detected but cannot be corrected c. Three bit errors will not be detected. Sent 00000, Received 00111. 6-23

Summary! Asynchronous and Synchronous transmission! Parity, CRC! CRC Polynomials! Hamming Distance! Error Correction 6-24

Reading Assignment! Read sections 6.1 through 6.4 of Stallings 7 th edition 6-25

Homework! Submit solution to Exercise 6.12 (CRC) in Stallings 7 th edition. Use a polynomial representation for all bit sequences. 6-26