COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.

Slides:



Advertisements
Similar presentations
Computer Interfacing and Protocols
Advertisements

Lecture 12 Layer 2 – Data Link Layer Protocols
Introduction to Information Technologies
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.
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.
7/2/2015Errors1 Transmission errors are a way of life. In the digital world an error means that a bit value is flipped. An error can be isolated to a single.
Error Detection and Correction
Synchronous - Asynchronous Data Transmission. Asynchronous ► The sender and receiver are not Synchronised. ► The sender sends only one character at a.
CSE331: Introduction to Networks and Security Lecture 3 Fall 2002.
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
CSC 335 Data Communications and Networking Lecture 5: Error Detection, Error Correction, and Data Security Dr. Cheer-Sun Yang.
Integrity in Data Communications Packets, Frames and Error Detection.
British Computer Society
Error Coding Transmission process may introduce errors into a message.  Single bit errors versus burst errors Detection:  Requires a convention that.
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.
1 Part III Packet Transmission Chapter 7 Packets, Frames, and Error Detection.
Lecture 6: Framing and Error Detection-Data Link Layer Functions
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.
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.
Error Detection and Correction
Communication Systems 3.1) Characteristics of a Communication System.
Chapter 7 - Packets, Frames and Error Detection 1. Concepts of Packets 2. Motivation for Packet Switching 3. Framing 4. Frame Formats 5. Transmission Errors.
Lecture 5 Checksum. 10.2CHECKSUM Checksum is an error-detecting technique that can be applied to a message of any length. In the Internet, the checksum.
1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs.
1 © Unitec New Zealand CRC calculation and Hammings code.
Error Detection.
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.
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.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
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.
Introduction to Information Technologies
ERROR DETECTION AND CORRECTION
Data Link Layer.
Error Detection and Correction
DATA COMMUNICATION AND NETWORKINGS
Dr. Clincy Professor of CS
Advanced Computer Networks
CIS 321 Data Communications & Networking
OCR AS Level F451: Data transmission
Chapter 7 Packets, Frames, and Error Detection
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
Introduction to Information Technologies
COMPUTER NETWORKS CS610 Lecture-6 Hammad Khalid Khan.
Error Detection Neil Tang 9/26/2008
Packetizing Error Detection
Protocols and the TCP/IP Suite
Packets, Frames, Parity, Checksums, and CRCs
EEC-484/584 Computer Networks
Error Detection and Correction
Packets, Frames, Parity, Checksums, and CRCs
Error Detection and Correction
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.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan

Review Lecture 4 The Concept of Packets Why use Packets? Packets and Frames Byte Stuffing

Byte Stuffing Sometimes, the special characters (i.e. soh or eot) may appear in the data Problem: soh and eot as part of data will be misinterpreted as framing data Solution: Byte stuffing

Byte Stuffing (cont’d) Byte stuffing translates each reserved byte into two unreserved bytes For example, can use esc as prefix, followed by x for soh, y for eot and z for esc

Byte Stuffing (cont’d) The sender replaces each occurance of special characters with a combination of two characters (i.e.esc x, esc y, esc z) The receiver then replaces each occurence of esc x, esc y, esc z, by the corresponding single character

Byte Stuffing (cont’d)

Byte Stuffing (cont’d)

Transmission Errors Interference or power surges may destroy data during transmission Bits may be lost Bit values may be changed Frames include additional information to detect / correct errors Inserted by the sender Checked by the receiver

Error Detection & Correction Error detection - send additional information so that incorrect data can be detected and rejected Error correction - send additional information so that incorrect data can be corrected and accepted

Parity Checking Parity refers to the number of bits set to 1 in the data item Even parity - An even number of bits are 1 Odd parity - An odd number of bits are 1

Parity Checking A Parity Bit is an extra bit transmitted with a data item, chose to give the resulting bits even or odd parity Even parity - data: 10010001, parity bit 1 Odd parity - data: 10010111, parity bit 0

Parity and Error Detection If noise or other interference introduces an error, one of the bits in the data will be changed from a 1 to a 0 or from a 0 to a 1 Parity of resulting bits will be wrong Original data and parity: 10010001+1 (even parity) Incorrect data: 10110001+1 (odd parity)

Limitations of Parity Checking Parity can only detect errors that change an odd number of bits Original data and parity: 10010001+1 (even parity) Incorrect data: 10110011+1 (even parity!) Parity usually used to catch one-bit errors

Alternative Error Detection Schemes Alternative error detection mechanisms have been introduced Differences among mechanisms: The size of the additional information (transmission overhead) Computational complexity of the algorithm (computational overhead) The number of bit error that can be detected (how well errors are detected)

Checksum Checksum is calculated before transmission Treats data as a sequence of integers Computes their arithmetic sum Carry bits are added into the final sum Calculated checksum is sent along with data Receiver then performs the same calculation

Checksum

Checksum Can be 8-, 16- or 32-bit integers Easy to do - uses only addition May not detect all errors

Cyclic Redundancy Check (CRC) Problem : How can a network system detect more errors without increasing the amount of information in each packet? Answer: Cyclic Redundancy Check (CRC)

Cyclic Redundancy Check (CRC) Consider data in message as coefficients of a polynomial Divide that coefficient set by a known polynomial Transmit remainder as CRC Good error detection properties Easy to implement in hardware

Hardware Components Uses two hardware components: Shift Register Exclusive or (xor) unit

Hardware Components Exclusive OR (XOR) unit

Hardware Components Shift Register: Performs two operations: Initialize : Sets all bits to zero Shift: Moves all bits to the left one position

SUMMARY Byte Stuffing Transmission Errors Error Detection Parity Check Checksum CRC