Representing characters

Slides:



Advertisements
Similar presentations
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Advertisements

Hamming Code.
parity bit is 1: data should have an odd number of 1's
Applied Algorithmics - week7
Computer Science 101 Data Encryption And Computer Networks.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
Practical Session 11 Codes. Hamming Distance General case: The distance between two code words is the amount of 1-bit changes required to reach from one.
Data Communications Chapter 7 Error Detection. Despite the best prevention techniques, errors may still happen. To detect an error, something extra has.
EECC341 - Shaaban #1 Lec # 3 Winter Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
Error Detection and Correction.  Corrupted files  Attachments that won’t open  Files that won’t download  Videos that won’t play Errors occur when.
Rutvi Shah1 ERROR CORRECTION & ERROR DETECTION Rutvi Shah2 Data can be corrupted during transmission. For reliable communication, errors must be detected.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture 6 Topics Character codes Error Detection and Correction
Error Detection and Correction
PART III DATA LINK LAYER. Position of the Data-Link Layer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Practical Session 10 Error Detecting and Correcting Codes.
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Error Detection Techniques:
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Error Detection and Correction
Overview All data can be corrupted, for reliable communications we must be able to detect and correct errors implemented at the data link and transport.
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
1 © Unitec New Zealand CRC calculation and Hammings code.
CS 111 – Sept. 13 Error detection Error correction Review/practice chapter 1 questions Commitment: –Please read sections 2.1 and 2.2.
Module –I Codes: Weighted and non-weighted codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Transmission Errors Error Detection and Correction.
1 Product Codes An extension of the concept of parity to a large number of words of data 0110… … … … … … …101.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
Data Transmission and Networks Transmission error checking & correcting.
Hamming Codes The Hamming Code is a Forward Error-correcting Code (FEC) that uses redundant bits to correct a single bit error For 4 bit codes, 3 redundant.
Simple Parity Check The simplest form of error detection is the parity check used with ASCII codes, originally on asynchronous modem links Each 7 bit ASCII.
Computer Architecture and Assembly Language
ERROR DETECTION AND CORRECTION
Cyclic Redundancy Check (CRC)
ERROR CORRECTING CODES
Character coding schemes
Error Correcting Code.
CIS 321 Data Communications & Networking
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Part III Datalink Layer 10.
Error Detection Bit Error Rate(BER): It is the ratio of number Ne of errors appearing over a certain time interval t to the number Nt of 1 and 0 pulses.

Packetizing Error Detection
Packetizing Error Detection
Chapter 7 Error Detection and Correction
Dr. Clincy Professor of CS
Packetizing Error Detection
DATA COMMUNICATION Lecture-33.
Chapter 9 Error Detection and Correction
CS 325: CS Hardware and Software Organization and Architecture
Error Detection and Correction
Computer Architecture and Assembly Language
Reliability and Channel Coding
Lesson 3.7 Parity Error Checking
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Error Detection Learning Objectives:
Presentation transcript:

Representing characters

Representing characters Characters include 0, 1, 2, a, b, c, &, :, ) etc. Encode each character by an integer code number Numeric character code values specified by ASCII American Standard Code for Information Interchange

ASCII Character Code Table Table from Tim's Amstrad NC Users' Site: http://www.ncus.org.uk/dschars.htm

Error Correction & Parity Bits Play “magic trick” using a 6 x 6 grid of cards Student lays out 5 x 5 grid with each card face up or down Add sixth row and column to make the trick “harder” Ask student to flip one card while back is turned Use even parity to identify the erroneous bit From “Computer Science Unplugged” © Bell, Witten, and Fellows, 1998 Page 33

Error Detection & Parity Bits Computers routinely transmit data (in binary form) Transmission errors may occur causing bit(s) to be changed Add an extra bit the so-called parity bit to a bit string Choose the parity bit so that the number of 1’s is even Transmit the data If the number of 1’s in the received bit string is odd, then an error occurred and we must re-transmit that chunk of data

Error Detection & Parity Bits: Example Transmit 8-data bits: 10010010 Apply even parity bit before transmission: 100100101 If we receive: 100000101 We detect an error by noting that the number of 1’s is odd Note: You could also implement an odd parity method in which the parity bit is set so the number of 1’s is odd

Experimenting with Parity Bits Transmit 8-data bits: 10010010 Apply even parity bit before transmission: 100100101 What happens if two bits are inverted due to a transmission error? Answer: The parity would be even so no error would be detected

Experimenting with Parity Bits Reconsider the 6 x 6 grid of cards Suppose we have an error with two cards being flipped? Answer: Parity bits could only tell there was an error Suppose we have an error with three cards being flipped? Suppose we have an error with four cards being flipped? Answer: Parity bits would not reveal an error

Other Error Detection & Recovery Methods Computers can add a row and column of parity bits as in the card trick ECC RAM modules designed for server computers have built-in parity bits For example 1 parity bit for every 8-bits of actual data Adding more than one parity bit can help detect and correct multiple bit errors Other techniques include CRC (Cyclic Redundancy Checking) and Hamming Codes