Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.

Slides:



Advertisements
Similar presentations
Computer Interfacing and Protocols
Advertisements

Lecture 12 Layer 2 – Data Link Layer Protocols
Introduction to Information Technologies
Reliability & Channel Coding
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
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.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
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.
CS352- Link Layer Dept. of Computer Science Rutgers University.
Error Detection and Correction
Synchronous - Asynchronous Data Transmission. Asynchronous ► The sender and receiver are not Synchronised. ► The sender sends only one character at a.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Data link layer: services
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.
CS3502: Data and Computer Networks DATA LINK LAYER - 1.
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.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
British Computer Society
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
Data and Computer Communications
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.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
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.
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.
PREPARED BY: ENGR. JO-ANN C. VIÑAS
1 Chapter 7 Switching, Packets, Frames, Parity, Checksums, and CRCs.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
CSCI 465 D ata Communications and Networks Lecture 9 Martin van Bommel CSCI 465 Data Communications & Networks 1.
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.
1 Kyung Hee University Position of the data-link layer.
Error Detection and Correction
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
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.
Part III: Data Link Layer Error Detection and Correction
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
COMPUTER NETWORKS CS610 Lecture-4 Hammad Khalid Khan.
CS4470 Computer Networking Protocols
Introduction to Information Technologies
CIS 321 Data Communications & Networking
Chapter 7 Packets, Frames, and Error Detection
Part III Datalink Layer 10.
Introduction to Information Technologies
COMPUTER NETWORKS CS610 Lecture-6 Hammad Khalid Khan.
Packets, Frames, Parity, Checksums, and CRCs
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
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.
Presentation transcript:

Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols

Packets, frames and error detection Packets and frames Control data and byte stuffing Error detection - parity bits, checksums and cyclic redundancy checks

Packets Most networks transmit data in small blocks called packets –helps to detect transmission errors –gives fair access for a shared connection between many computers These are packet networks or packet switching networks

An example of fair access A wants to send a 5 megabyte file to C B wants to send a 10 kilobyte file to D network speed is 56,000 bits per second

Packets and time division multiplexing Packet networks use a form of TDM

Packets and hardware frames Each type of hardware defines its own format/wrapping for a packet called a frame

Simple example of framing A frame may include “unused” control data values to mark both its beginning and end Advantage is error detection: –transmitter crashes => eot will not arrive –receiver crashes => soh marks next valid frame Disadvantages: –requires two extra characters per frame –cannot carry arbitrary values (e.g, soh and eot)

Byte stuffing So control characters can be included in data Reserve a special character to mark the occurrence of control characters Transmitter scans data block and replaces all occurrences of control characters. Receiver performs the reverse mapping. Character in dataCharacters sent soh esc x eot esc y esc esc z

An example of byte stuffing Frame before byte stuffing Frame after byte stuffing

Transmission Errors Much of the complexity of networks arises from susceptibility to interference that can cause: –transmitted data to be lost or changed –random data to appear Single-bit errors versus burst errors

Error Detection and Correction First we need to detect errors –Sender includes some extra (redundant) information that summarises the original data –Receiver checks this –Various schemes, differing in complexity, data overhead and robustness Then we need to decide what to do –Error correction –Retransmission

Parity bits and parity checking Count number of 1 bits in the data and add an extra parity bit to make this odd or even –even parity - parity bit is set so that total number of 1s is even => parity bit 0 –odd parity - total 1s should be odd => parity bit 1 Transmitter calculates and adds, receiver calculates and checks Introduces additional costs Only detects limited types of errors

Other error detection methods Other methods include checksums and cyclic redundancy checks These can be compared according to: –amount of extra data to be transmitted –amount of extra computation involved –types of errors that are detected Note the difference between detecting that an error occurred and knowing how to fix it

Checksums –Interpret the data as if it were a sequence of integers and add them together to get an integer result called a checksum –Add in any carry bits too –Append the checksum to the frame –16 and 32 bit checksums are common and are usually computed for a whole packet

Example checksum

Evaluation of checksums Data overhead - 16 or 32 bits Computational overhead - simple additions Undetected errors - some periodic reversal of bits (e.g., reversing one bit in each of four data items)

Example failure of checksums data item (binary) totals checksum value data item (binary) totals checksum value

Cyclic redundancy checks (CRCs) Detects more errors than checksums and only requires simple hardware Based on binary division rather than addition

Overview of CRC Uses binary division instead of addition Sender wants to send D, a piece of data d bits long Sender and receiver agree a generator, G, a bit pattern that is r + 1 bits long Sender appends R (an additional sequence of r bits) to D so that the resulting sequence is exactly divisible by G using binary (modulo 2) arithmetic Receiver divides the received bit pattern by G and checks whether the remainder is 0

Can detect burst errors of less than r +1 bits and odd number of bit errors Can detect burst errors of length greater than r + 1 with probability 1 – 0.5 r D: Data bitsR: CRC bits d bitsr bits

CRC - hardware components Exclusive or (xor) unit

CRC - hardware components Shift register

CRC - combining components Combine 3 shift registers and 3 xor units Initialise registers and then feed in the bits of the message one at a time Final state gives the CRC - calculated by both the transmitter and receiver

Evaluation of CRCs Data overhead - 16 or 32 bits Computational overhead - low - combines simple hardware devices Types of errors - good for burst errors - changes to several bits in one location that may be caused by a sudden interference (e.g. by lightening)

Why do CRCs work? Mathematical analysis is beyond our scope Intuition –each single bit of the message dramatically affects the whole CRC (feeds into three places) –the effect of each bit loops through the process several times (the registers are connected into a cycle)

Revised frame format Frames now contain a data block, framing information and error detection information Transmitter does: data -> byte stuffing -> framing -> error detection and receiver does the reverse

Summary Packets and frames Control data and byte stuffing Error detection - parity bits, checksums and cyclic redundancy checks