1 Packets, Frames, and Error Detection. 2 The Problem Cannot afford individual network connection per pair of computers Reasons –Installing wires consumes.

Slides:



Advertisements
Similar presentations
Computer Interfacing and Protocols
Advertisements

Lecture 12 Layer 2 – Data Link Layer Protocols
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Packets, Frames & Error Detection. Packet Concepts A packet is a small block of data. Networks which use packets are called packet networks or packet-
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.
Data Transmission Most digital messages are longer than just a few bits. It is neither practical nor economical to transfer all bits of a long message.
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
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.
Lecture 6: Framing and Error Detection-Data Link Layer Functions
Chapter 12 - Packet Switching Introduction Sharing Saves Money –Arranging for multiple devices to share a single transmission path lowers cost because.
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.
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
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.
SEPT, 2005CSI Part I.2 Packets, Frames, Parity, Checksums, and CRCs Dr. R.L. Probert, SITE, University of Ottawa.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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
The University of Adelaide, School of Computer Science
ERROR DETECTION AND CORRECTION
Data Link Layer.
DATA COMMUNICATION AND NETWORKINGS
The Three Main Sources of Transmission Errors
Chapter 7 Packets, Frames, and Error Detection
Error Detection and Correction
Data Link Layer What does it do?
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.
Exercise 3 1. Describe what are the packet, the packet communication, and motivations using the packet in computer communications. 2. (1) An ASCII coded.
Error Detection and Correction
Packets, Frames, Parity, Checksums, and CRCs
Switching, Packets, Frames, Parity, Checksums, and CRCs
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:

1 Packets, Frames, and Error Detection

2 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)

3 Solution Network has –Shared central core –Many attached stations

4 The Problem with Sharing Demand high Some applications have large transfer Some applications cannot wait Need mechanisms for fairness

5 Packet Switching Principle Solution for fairness –Divide data into small units called packets –All each station opportunity to send packet before any station sends another Form of time-division multiplexing

6 Illustration of Packet Switching Acquire shared medium Send one packet Allow other stations opportunity to send before sending again

7 Packet Details Depend on underlying networks –Minimum/maximum size –Format Hardware packet called a frame

8 Example Frame Format used with RS-232 RS-232 is character-oriented Special character –Start of header (soh) –End of text (eot)

9 When data contains special Characters Translate to alternative form Called byte stuffing Example

10 Illustration of Frame with Byte Stuffing Stuffed frame longer than original Necessary evil

11 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

12 Error Detection And Recovery Technique Parity bit –One additional bit per character –Can use Even parity Odd parity –Cannot handle error that changes two bits

13 Error Detection And Recovery Technique – Con’t Checksum –Treat data as sequence of integers –Compute and send arithmetic sum –Handles multiple bit errors –Cannot handle all errors

14 Error Detection And Recovery Technique – Con’t Cyclic Redundancy Check (CRC) –Mathematical function for data –More complex to compute –Handles more errors

15 Example Checksum Computation Checksum computed over data Checksum appended to frame

16 Illustration Of Errors A Checksum Fails To Detect Second bit reversed in each item Checksum is the same

17 Building blocks for CRC Exclusive or Shift register –a shows status before shift –b shows status after shift

18 Example of CRC Hardware Compute 16-bit CRC Registers initialized to zero Bits of messages shifted in CRC found in registers

19 Example CRC Computation Input data is all 1 bits CRC shown after 15, 16, and 17 bits shifted Feedback introduces zeros in CRC

20 Illustration of Frame using CRC CRC covers data only

21 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

22 Summary – Con’t To detect data corruption –Sender adds information to packet –Receiver checks Techniques –Parity bit –Checksum –Cyclic Redundancy Check (CRC) –Provide statistical guarantees