Reliability and Channel Coding

Slides:



Advertisements
Similar presentations
Topics discussed in this section:
Advertisements

10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Information Technologies
Chapter 2 Fundamentals of Data and Signals
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 DATA AND SIGNALS T.Najah Al_Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University.
Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.
1/15 KLKSK Pertemuan III Analog & Digital Data Shannon Theorem xDSL.
CSE 461: Error Detection and Correction. Next Topic  Error detection and correction  Focus: How do we detect and correct messages that are garbled during.
NET0183 Networks and Communications Lectures 13 and 14 Channel Coding 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks Lecture powerpoints.
Reliability & Channel Coding
.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints Adapted from notes By Lami Kaya, © 2009 Pearson Education.
Lab 2 COMMUNICATION TECHNOLOGY II. Capacity of a System The bit rate of a system increases with an increase in the number of signal levels we use to denote.
Chapter 6 Errors, Error Detection, and Error Control
Error Detection and Correction
Chapter 6 Errors, Error Detection, and Error Control.
Transmission Errors Error Detection and Correction
Error Detection and Correction
Error Detection and Correction
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Fundamentals of Computer Networks ECE 478/578 Lecture #3: Encoding and Framing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
Transmission Errors1 Error Detection and Correction.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
1 ITC242 – Introduction to Data Communications Week 10 Topic 16 Data link control.
Chapter 6: Errors, Error Detection, and Error Control
Error detection and correction
Chapter 6 Errors, Error Detection, and Error Control
Information Capacity and Communication Systems By : Mr. Gaurav Verma Asst. Prof. ECE Dept. NIEC.
Transmission Errors Error Detection and Correction
Channel Coding Part 1: Block Coding
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
British Computer Society
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Data Link Layer: Error Detection and Correction
Error Detection and Correction
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Coding Theory. 2 Communication System Channel encoder Source encoder Modulator Demodulator Channel Voice Image Data CRC encoder Interleaver Deinterleaver.
1 Composite Signals and Fourier Series To approximate a square wave with frequency f and amplitude A, the terms of the series are as follows: Frequencies:
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Channel capacity A very important consideration in data communications is how fast we can send data, in bits per second, over a channel.
1 Block Coding Messages are made up of k bits. Transmitted packets have n bits, n > k: k-data bits and r-redundant bits. n = k + r.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
Data Link Layer. Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless.
Error Detection and Correction
1 st semester 1436/  When a signal is transmitted over a communication channel, it is subjected to different types of impairments because of imperfect.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Error Coding Overview (§3.2)
Data Communications and Networking
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
Hamming Distance & Hamming Code
Transmission Errors Error Detection and Correction.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
Powerpoint Templates Computer Communication & Networks Week # 04 1 Lecture only.
Channel Capacity Bandwidth – In cycles per second of Hertz – Constrained by transmitter and medium Data rate – In bits per second – Rate at which data.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
Transmission Media.
Error Detection and Correction
The Three Main Sources of Transmission Errors
Nyquist and Shannon Capacity
Transmission Errors Error Detection and Correction
Sampling Theorems- Nyquist Theorem and Shannon-Hartley Theorem
Fundamentals of Computer Networks
Reliability and Channel Coding
Topics discussed in this section:
Transmission Errors Error Detection and Correction
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Presentation transcript:

Reliability and Channel Coding

How fast can we send information over a link? Key channel properties: The bandwidth (B), single strength (S), and noise strength (N) B limits the rate of transmissions S and N limit how many signal levels we can distinguish Bandwidth B Signal S, Noise N

Nyquist Theorem The maximum symbol rate is 2B Thus, if there are K signal levels, ignoring noise, the maximum bit rate is: 0 1 0 1 0 1 0 1

The Effect of Noise on Communication In practice, the signal levels we can distinguish depends on S/N Or SNR, the Signal-to-Noise Ratio SNR often given on a log-scale in deciBels: dB = 10log10(S/N) Shannon’s Theorem

Calculate Channel Capacity with S/N in dB The voice telephone system: Signal-to-noise ratio: about 30 dB An analog bandwidth: about 3 kHz Calculation Step 1: Converting the S/N in dB into a simple fraction: S/N = 10(dB/10) 30dB  1000 Step 2: Applying Shannon's Theorem about 30,000 bps dB = 10log10(S/N)

Exercise If two signal levels are used, what is the data rate that can be sent over a coaxial cable that has an analog bandwidth of 6.2 MHz? If a system has an average power level of 100, an average noise level of 33.33, and a bandwidth of 100 MHz, what is the effective limit on channel capacity? If a telephone system can be created with a signal-to-noise ratio of 40 dB and an analog bandwidth of 3000 Hz, how many bits per second could be transmitted?

The Significance of Channel Capacity Nyquist's work has provided an incentive to explore complex ways to encode bits on signals. Shannon's Theorem is more fundamental because it represents an absolute limit derived from the laws of physics. Engineers recognize that faster transmission speeds will only be possible if the signal-to-noise ratio can be improved.

Errors Happen! Illustration of a burst error that results from interference

Channel Coding: Strategies to Handle Channel Errors Forward Error Correction (FEC) Adding informaion on the sender side Detecting and correcting errors on the receiver side Automatic Repeat reQuest (ARQ) Requiring cooperation and further message exchanges between the sender and receiver.

Forward Error Correction

Using Error Codes Codeword consists of dataword D plus check bits R R=fn(D) Sender: Compute check bits R based on the dataword D; send the codeword D+R

Using Error Codes Receiver: D’ R’ R=fn(D’) Receive codeword D’+R’ with unknown errors The check bits could contain errors, too! Recompute R check bits based on the dataword D’; error if R does not match R’ Dataword Check bits D’ R’ =? R=fn(D’)

Example: Single Parity Checking Adding an extra bit to each byte to make the number of 1 bits even (Even Parity) or odd (Odd Parity)

How well does parity work? If one of the nine bits is changed, will the error be detected? How about if two bits are changed? What about larger errors (3, 4, 5,… bits are changed)? Can detect if odd number of bits are changed

How to Choose Coding Schemes? An ideal coding scheme: Any change of bits in a valid data leads to an invalid result. In practice: What is the minimum number of bits of a valid codeword that must be changed to produce another valid codeword?

Hamming distance Distance between two codewords D and D’ is the number of bit flips needed the change D to D’

Hamming distance Hamming distance of a code is the minimum distance between any pair of codewords Example: Single parity checking: Hamming distance = 2

Hamming Distance Error detection: Error correction: For a code of distance d+1, up to d errors will always be detected Error correction: For a code distance 2d+1, up to d errors can always corrected by mapping to the closest codeword

Error Correction with Row and Column (RAC) Parity If an error is detected, how do we know which bit went wrong? Adding bits for both rows and columns .

Correcting a Single-Bit Error .

Row and Column (RAC) Parity If one of the nine bits is changed, will the error be detected? How about if two bits are changed? What about larger errors (3, 4, 5,… bits are changed)? Can detect if odd number of bits are changed

The 16-Bit Checksum Used in the Internet The Internet checksum treats data in a message as a series of 16-bit integers. The size of a dataword can vary. Adding 0s if the data is not an exact multiple of 16 bits.

The 16-Bit Checksum Used in the Internet 0100 1000 0110 0101 0110 1100 0110 1100 + 0110 1111 0010 0001 1 0010 0011 1111 0010 Step 1: add 16-bit values Overflow 0010 0011 1111 0010 + 1 0010 0011 1111 0011 Step 2: add overflow 1101 1100 0000 1100 Step 3: invert result

The 16-Bit Checksum Used in the Internet How well does the checksum work? What is the Hamming distance of the code? How many errors will it detect/correct? What about larger errors? Correct all burst errors up to 16 bits!