SEPT, 2005CSI 41181 Part I.2 Packets, Frames, Parity, Checksums, and CRCs Dr. R.L. Probert, SITE, University of Ottawa.

Slides:



Advertisements
Similar presentations
Computer Interfacing and Protocols
Advertisements

10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 12 Layer 2 – Data Link Layer Protocols
Reliability & Channel Coding
Chapter 6 Errors, Error Detection, and Error Control.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
Long distance communication Multiplexing  Allow multiple signals to travel through one medium  Types Frequency division multiplexing Synchronous time.
CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.
Circuit Switching (a) Circuit switching. (b) Packet switching.
Chapter 6: Errors, Error Detection, and Error Control
1 Part II: Packet Transmission Packets on a Network Packets, Frames, LAN, WAN, Hardware Addresses, Bridges, Switches, Routing and Protocols Fall 2005 Qutaibah.
Data Communications Chapter 7 Error Detection. Despite the best prevention techniques, errors may still happen. To detect an error, something extra has.
Chapter 6 Errors, Error Detection, and Error Control
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Error Detection and Correction
Synchronous - Asynchronous Data Transmission. Asynchronous ► The sender and receiver are not Synchronised. ► The sender sends only one character at a.
Data Link Layer IS250 Spring 2010
SEPT, 2005CSI Part 2.2 Protocols and Protocol Layering Robert Probert, SITE, University of Ottawa.
Data link layer: services
It is physically impossible for any data recording or transmission medium to be 100% perfect 100% of the time over its entire expected useful life. As.
Integrity in Data Communications Packets, Frames and Error Detection.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
1 Part III Packet Transmission Chapter 7 Packets, Frames, and Error Detection.
1 Packets, Frames, and Error Detection. 2 The Problem Cannot afford individual network connection per pair of computers Reasons –Installing wires consumes.
1 ITGN 235: Principles of Networking ITGN 225: Networking Fall 2007/2008.
Computer Networks and Internets 《计算机网络与因特网》课件 林坤辉
Data Link Layer : Services, Framing, Error Detection and Correction2.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
Layer Two Data Link Layer Collects bits from layer 1 and organizes into frames Passes bits that make up frames to layer 1 for transmission Concerned with.
AS Computing Data Transmission and Networks. Transmission error Detecting errors in data transmission is very important for data integrity. There are.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Chapter 7 - Packets, Frames and Error Detection 1. Concepts of Packets 2. Motivation for Packet Switching 3. Framing 4. Frame Formats 5. Transmission Errors.
1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs.
CHAPTER 3: DATA LINK CONTROL Flow control, Error detection – two dimensional parity checks, Internet checksum, CRC, Error control, Transmission efficiency.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
COMPUTER NETWORKS CS610 Lecture-4 Hammad Khalid Khan.
CS4470 Computer Networking Protocols
Dr. Clincy Professor of CS
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.
2.8 Error Detection and Correction
ERROR DETECTION AND CORRECTION
Data Link Layer.
Cyclic Redundancy Check (CRC)
Dr. Clincy Professor of CS
The Three Main Sources of Transmission Errors
Advanced Computer Networks
Chapter 7 Packets, Frames, and Error Detection
Error Detection and Correction
Computer Networks Bhushan Trivedi, Director, MCA Programme, at the GLS Institute of Computer Technology, Ahmadabad.
COMPUTER NETWORKS CS610 Lecture-6 Hammad Khalid Khan.
Packets, Frames, Parity, Checksums, and CRCs
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Protocols and Protocol Layering
Error Detection and Correction
Packets, Frames, Parity, Checksums, and CRCs
Switching, Packets, Frames, Parity, Checksums, and CRCs
Protocols and Protocol Layering
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Error detection: Outline
2.8 Error Detection and Correction
Data Link Layer. Position of the data-link layer.
Presentation transcript:

SEPT, 2005CSI Part I.2 Packets, Frames, Parity, Checksums, and CRCs Dr. R.L. Probert, SITE, University of Ottawa

SEP, 2005CSI The Problem Cannot afford individual network connection per pair of computers Reasons Installing wires consumes time and money Maintaining wires consumes money (esp. long- distance connections)

SEP, 2005CSI Solution Network has Shared central core Many attached stations

SEP, 2005CSI The Problem With Sharing Demand high Some applications have large transfers Some applications cannot wait Need mechanism for fairness

SEP, 2005CSI Packet Switching Principle Solution for fairness Divide data into small units called packets Allow each station opportunity to send a packet before any station sends another Form of time-division multiplexing

SEP, 2005CSI Illustration of Packet Switching Acquire shared medium Send one packet Allow other stations opportunity to send before sending again

SEP, 2005CSI Packet Details Depend on underlying network Minimum / maximum size Format Hardware packet called a frame

SEP, 2005CSI Example Frame Format Used with RS-232 RS-232 is character-oriented Special characters Start of header (soh) End of text (eot)

SEP, 2005CSI When Data Contains Special Characters Translate to alternative form Called byte stuffing Example

SEP, 2005CSI Illustration of Frame With Byte Stuffing Stuffed frame longer than original Necessary evil

SEP, 2005CSI Handling Errors Data can be corrupted during transmission Bits lost Bit values changed Frame includes additional information to detect / correct error Set by sender Checked by receiver Statistical guarantee

SEP, 2005CSI Error Detection And Recovery Techniques Parity bit One additional bit per character Can use Even parity Odd parity Cannot handle error that changes two bits

SEP, 2005CSI Error Detection And Recovery Techniques (continued) Checksum Treat data as sequence of integers Compute and send arithmetic sum Handles multiple bit errors Cannot handle all errors

SEP, 2005CSI Error Detection And Recovery Techniques (continued) Cyclic Redundancy Check (CRC) Mathematical function for data More complex to compute Handles more errors

SEP, 2005CSI Example Checksum Computation Checksum computed over data Checksum appended to frame

SEP, 2005CSI Illustration Of Errors A Checksum Fails to Detect Second bit reversed in each item Checksum is the same

SEP, 2005CSI Building Blocks For CRC Exclusive or Shift register a shows status before shift b shows status after shift Output same as top bit

SEP, 2005CSI Example Of CRC Hardware Computes 16-bit CRC Registers initialized to zero Bits of message shifted in CRC found in registers

SEP, 2005CSI Example CRC Computation Input data is all 1 bits CRC shown after 15, 16, and 17 bits shifted Feedback introduces zeroes in CRC

SEP, 2005CSI Illustration of Frame Using CRC CRC covers data only

SEP, 2005CSI Summary Packet technology Invented to provide fair access in shared network Sender divides data into small packets Hardware packets called frames Can use packet-switching with RS-232 Special characters delimit beginning and end of frame Byte-stuffing needed when special characters appear in data

SEP, 2005CSI Summary (continued) To detect data corruption Sender adds information to packet Receiver checks the added information Techniques Parity bit Checksum Cyclic Redundancy Check (CRC) Provide statistical guarantees