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

Similar documents
Lecture 6: Reliable Transmission"

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

Chapter 10 Error Detection and Correction 10.1

Digital Data Communication Techniques

Physical-Layer Services and Systems

16.36 Communication Systems Engineering

Error Protection: Detection and Correction

Wireless Communications

Revision of Lecture Eleven

Layering and Controlling Errors

Lecture 3 Data Link Layer - Digital Data Communication Techniques

Chapter 10 Error Detection and Correction

Data and Computer Communications

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

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

Channel Coding/Decoding. Hamming Method

Basics of Error Correcting Codes

Error Detection and Correction

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

Introduction to Error Control Coding

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

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

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

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

Summary of Basic Concepts

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

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

6. FUNDAMENTALS OF CHANNEL CODER

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

Spreading Codes and Characteristics. Error Correction Codes

Reduced Complexity by Incorporating Sphere Decoder with MIMO STBC HARQ Systems

2018/11/1 Thursday. YU Xiangyu

EE521 Analog and Digital Communications

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

Lecture 9b Convolutional Coding/Decoding and Trellis Code modulation

Error Correction with Hamming Codes

Chapter 7. Conclusion and Future Scope

The idea of similarity is through the Hamming

Computer Networks - Xarxes de Computadors

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

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

FREDRIK TUFVESSON ELECTRICAL AND INFORMATION TECHNOLOGY

Performance of Reed-Solomon Codes in AWGN Channel

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

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

Chapter 1 Coding for Reliable Digital Transmission and Storage

Wireless Communication

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

MATHEMATICS IN COMMUNICATIONS: INTRODUCTION TO CODING. A Public Lecture to the Uganda Mathematics Society

1 Introduction. Abstract

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

Lec 19 Error and Loss Control I: FEC

II. FRAME STRUCTURE In this section, we present the downlink frame structure of 3GPP LTE and WiMAX standards. Here, we consider

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

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

IMPERIAL COLLEGE of SCIENCE, TECHNOLOGY and MEDICINE, DEPARTMENT of ELECTRICAL and ELECTRONIC ENGINEERING.

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

Communications Theory and Engineering

EECS 380: Wireless Technologies Week 7-8

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

DIGITAL DATA COMMUNICATION TECHNIQUES

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

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

General Class Digital Modes Presentation

AHA Application Note. Primer: Reed-Solomon Error Correction Codes (ECC)

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

Error Control Codes. Tarmo Anttalainen

UNIT I Source Coding Systems

Design of Reed Solomon Encoder and Decoder

Digital Communication Systems ECS 452

Error-Correcting Codes

An Alamouti-based Hybrid-ARQ Scheme for MIMO Systems

Umudike. Abia State, Nigeria

Outline. Communications Engineering 1

Burst Error Correction Method Based on Arithmetic Weighted Checksums

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

ETSI TS V1.1.2 ( )

Course Developer: Ranjan Bose, IIT Delhi

Digital Television Lecture 5

Volume 2, Issue 9, September 2014 International Journal of Advance Research in Computer Science and Management Studies

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

ECE 6640 Digital Communications

A Novel Approach for Error Detection Using Additive Redundancy Check

Digital to Digital Encoding

Exercises to Chapter 2 solutions

Optimal Power Allocation for Type II H ARQ via Geometric Programming

The throughput analysis of different IR-HARQ schemes based on fountain codes

Punctured vs Rateless Codes for Hybrid ARQ

DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. Subject Name: Information Coding Techniques UNIT I INFORMATION ENTROPY FUNDAMENTALS

Synchronization of Hamming Codes

Error Correcting Code

Intro to coding and convolutional codes

4. Which of the following channel matrices respresent a symmetric channel? [01M02] 5. The capacity of the channel with the channel Matrix

Wireless Communications

HSPA & HSPA+ Introduction

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

Implementation of Reed Solomon Encoding Algorithm

Project. Title. Submitted Sources: {se.park,

QUIZ : oversubscription

Running head: ERROR CORRECTION 1. Studies in Error Correction Coding. Hannah Kirse

Transcription:

Outline, Lecture 6 Kevin Fall kfall@cs.berkeley.edu Jean Walrand wlr@eecs.berkeley.edu Error Control Overview : n ARQ vs. FEC n Link vs. End-to-End : n Objectives n How Codes Work Code Examples: n Parity n CRC - Fall & Walrand 166 Error Control Overview Errors occur due to noise or interference on a communication channel Two strategies to control errors: n Error detection + retransmission (ARQ) n Error correcting codes (Forward Error Correction) Most networks use ARQ Error Control Overview Where are Codes Used? Used on storage media (magnetic tape, CDs, etc) Common examples n Parity bits n Cyclic redundancy check (CRC) n Internet checksum (we will look briefly at block codes) - Fall & Walrand 167 - Fall & Walrand 168 Link vs. End-to-end ARQ FEC: Forward Error Correction ARQ: Automatic Repeat Request # data ED Network Seq # ACK ED data EC - Fall & Walrand 169 Network - Fall & Walrand 170

Comparison: ARQ FEC Longer delays More extra bits - Fall & Walrand 171 Tradeoff: Efficiency vs. Delay n FEC requires more extra bits than ARQ n FEC has smaller delays than ARQ Example n PER = 1%, RTT = 40ms, R = 1Mbps n FEC = % extra bits w FEC = about 90% efficient, delay = 20ms n ARQ = 2% extra bits (e.g.) w ARQ = about 99% efficient, delay = 20ms (99%) or 60ms (1%) - Fall & Walrand 172 Question: Should every link perform ARQ? n Link ARQ: n End-to-End ARQ: - Fall & Walrand 173 - Fall & Walrand 174 Two Extreme Cases. Case (1): Noisy Links Case (2): Reliable Links Link ARQ is faster than E-2-E ARQ when there are many errors - Fall & Walrand 175 Link ARQ is slower than E-2-E ARQ when there are few errors - Fall & Walrand 176

Objectives How Codes Work Objectives Codes to correct for errors in channel (versus source coding--compression) Benefits due to these phenomena n Redundancy n Noise averaging (over long time spans) Types of codes n block codes, tree codes - Fall & Walrand 177 - Fall & Walrand 178 y z How Codes Work: and Codewords x Code = subset of possible words: Codewords Example: n 3 bits => 8 words; codewords: subset 0 xyz = 1 1 1 1 :, 0, 0, 1 1, 1, 0, 1 Code:, 1, 1, 0 Send only codewords 0 - Fall & Walrand 0 179 How Codes Work: Code = all words No protection If we use all words: no error protection Sent Channel Error - Fall & Walrand 180 How Codes Work: Few Codewords Protection How Codes Work: Distance Few codewords: error protection Channel Error (2) (1) Sent Distance d = minimum Hamming distance between any two codewords Hamming distance = number of bits where two words differ. E.g., d(0, 1) = 2, d(1, 1) = 3. Codewords Error Detection: is not a codeword Error Correction: Find codeword closest to - Fall & Walrand 181 d = 1 d = 2 d = 3 - Fall & Walrand 182

How Codes Work: Protection Power Code with distance d n Error detection of up to d 1 bit errors n Error correction of up to d/2 bit errors Good Codes; Coding/Decoding Polynomial Codes Convolutional Codes Detected, not corrected d = 5 Detected and corrected - Fall & Walrand 183 - Fall & Walrand 184 Good Code; Coding/Decoding Good Code: n Large Distance; Easy to Encode and Decode n Efficient: Few extra bits Coding/Decoding: Sourceword CODING Codeword CHANNEL Word Decoded Word DECODING - Fall & Walrand 185 Coding/Decoding: Example Parity Bit Code separates the transmitted words 1 DECODING CODING 0 1 1 Sourcewords 0 0 - Fall & Walrand 186 1 others error Coding/Decoding: Example Parity Bit CODING Sourcewords 1 1 0 Sent Codewords Rate of code: 2/3 (2 source bits for 3 transmitted bits) CHANNEL 1 1 0 other DECODING error Decoded - Fall & Walrand 187 Coding/Decoding: Example Replication 0 1 CODING 1 Sourcewords Sent Codewords Rate of code: 1/3 (1 source bits for 3 transmitted bits) CHANNEL 1 0 0 1 1 1 0 DECODING 1 Closest codeword - Fall & Walrand 188 0 1 Decoded

CRC: Cyclic Redundancy Code M = [ 0] C = [..01] Extra bits = CRC bits CRC bits (r bits) calculated from M so that C = A*G where Message (sourceword) Codeword G = given r+1 bit word (e.g., 11) = generator of code (standardized) * = operations modulo 2 without carry - Fall & Walrand 189 CRC: Cyclic Redundancy Code: Calculation 7 6 5 4 3 2 1 0 M = = x 7 + x 4 + x 3 + x 1 2 1 0 R = 1 7 6 5 4 3 2 1 0 [MR] = 1 = M*x 3 + R G = = x 3 + x 2 + 1 M*x 3 = = x + x 7 + x 6 + x 4 Find A and R (3 bits) so that M*x 3 = A*G + R Then [MR] = M*x 3 + R = A*G + R + R = A*G - Fall & Walrand 190 CRC: Cyclic Redundancy Code: Calculation M = G = Find A and R (3 bits) so that M*x 3 = A*G + R Long division of M*x 3 by G [Operations mod2, no carry] 1 1 1 - Fall & Walrand 191 G M*x 3 CRC: Cyclic Redundancy Code: G(x) G(x) is standardized to be small but typically produce remainders. Detects: n all single bit errors n all double-bit errors if G(x) has a factor with at least 3 terms n any odd number of errors, if (x+1) divides G(x) n any burst error of length < len of FCS n most large burst errors - Fall & Walrand 192 CRC: Cyclic Redundancy Code: Standard G CRC-8: CRC-: 01 CRC-12: 1 (text is wrong) CRC-16: 1 CRC-CCITT: 1 CRC-32: 1 Internet Used in IP, ICMP, TCP, UDP, Alg: 1 s complement of the 1 s complement sum of data interpreted 16 bits at a time. In 1 s comp., two zeros! 1 s complement addition is end-roundcarry addition. Why? n 2 s complement carry is a zero-crossing; account for -0 by adding one - Fall & Walrand 193 - Fall & Walrand 194

Internet Examples Message: e3 4f 23 96 44 27 99 f3 2 s comp sum is: 1e4ff 1 s comp sum is: e4ff + 1 = e5 So, Internet cksum is 1aff Note that message + cksum = ffff Thus, cksum(msg+cksum) = 0 Internet: Incremental Updates Possible to determine new cksum without touching all data only need sum of areas being changed (from and to) Why useful? [for small changes] n Network Address Translation (NAT) n IP forwarding (TTL decrement) - Fall & Walrand 195 - Fall & Walrand 196