1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs.

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
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Reliability & Channel Coding
Chapter 6 Errors, Error Detection, and Error Control.
Chapter 10 Error Detection and Correction
Data Link Layer – Part 1 V.T.Raja Oregon State University.
© 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.
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
Review on Networking Technologies Linda Wu (CMPT )
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
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.
Chapter 2 – X.25, Frame Relay & ATM. Switched Network Stations are not connected together necessarily by a single link Stations are typically far apart.
Integrity in Data Communications Packets, Frames and Error Detection.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
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.
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 《计算机网络与因特网》课件 林坤辉
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.
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.
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.
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.
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
Chapter 9: Data Link Control
The University of Adelaide, School of Computer Science
Data Link Layer.
Cyclic Redundancy Check (CRC)
DATA COMMUNICATION AND NETWORKINGS
The Three Main Sources of Transmission Errors
Chapter 7 Packets, Frames, and Error Detection
Error Detection and Correction
Chapter 4 Data Link Layer
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.
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
Chapter 9: Data Link Control
Data Link Layer. Position of the data-link layer.
Presentation transcript:

1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs

2 Smallest piece of information  When you send a message between two hosts, the smallest piece of information may be:  Bit  Character (e.g. RS232)

3 Switching  When should this piece of information be sent?  As soon as it is available -> circuit switching  When the entire message is ready -> message switching  After X number of bits/characters -> packet switching

4 Switching cont. Circuit sw. Message sw. Packet switching

5 Connecting to the Network 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)

6 Solution  Network has  Shared central core  Many attached stations

7 The Problem With Sharing  Demand high  Some applications have large transfers  Some applications cannot wait  Need mechanism for fairness

8 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

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

10 Packet Details  Depend on underlying network  Minimum / maximum size  Format  Hardware packet called a frame

11 Example Frame Format Used with RS-232  RS-232 is character-oriented  Special characters  Start of header ( soh )  End of text ( eot )

12 When Data Contains Special Characters  Translate to alternative form  Called byte stuffing  Example

13 Illustration of Frame With Byte Stuffing  Stuffed frame longer than original  Necessary evil

14 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

15 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

16 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

17 Error Detection And Recovery Techniques (continued)  Cyclic Redundancy Check ( CRC )  Mathematical function for data  More complex to compute  Handles more errors

18 Example Checksum Computation  Checksum computed over data  Checksum appended to frame

19 Illustration Of Errors A Checksum Fails to Detect  Second bit reversed in each item  Checksum is the same

20 Building Blocks For CRC  Exclusive or  Shift register  a shows status before shift  b shows status after shift  Output same as top bit

21 Example Of CRC Hardware  Computes 16-bit CRC  Registers initialized to zero  Bits of message shifted in  CRC found in registers

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

23 Illustration of Frame Using CRC  CRC covers data only

24 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

25 Summary (continued)  To detect data corruption  Sender adds information to packet  Receiver checks  Techniques  Parity bit  Checksum  Cyclic Redundancy Check (CRC)  Provide statistical guarantees