Errors, Error Detection, and Error Control

Similar documents
Sheet 7 (Chapter 10)

Computer Networks. Data Link Layer

Data Link Layer(1) Principal service: Transferring data from the network layer of the source machine to the one of the destination machine

CMPE 150 Winter 2009

FIREWALLS & NETWORK SECURITY with Intrusion Detection and VPNs, 2 nd ed. Chapter 2 An Introduction to Networking

DATA COMMUNICATION AND NETWORKS

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

Review of Error Detection of Data Link Layer in Computer Network

Stop And Wait. ACK received; transmit frame 2 CS 455 3

Data Link Layer Overview

Data Link Layer. Flow Control. Flow Control

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

Understanding the Electrical Performance of Category Cables

Chapter 3: Sample Questions, Problems and Solutions Bölüm 3: Örnek Sorular, Problemler ve Çözümleri

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Applied Data Communication Lecture 14

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

Application Note AN-00160

Process Control and Automation using Modbus Protocol

Systems I: Computer Organization and Architecture

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

The string of digits in the binary number system represents the quantity

: Instructor

Introduction to Computer Networks and Data Communications

QoS issues in Voice over IP

The finite field with 2 elements The simplest finite field is

Transport Layer Protocols

LANs. Local Area Networks. via the Media Access Control (MAC) SubLayer. Networks: Local Area Networks

LLC: Frame Construction. Layer 2: Division into two Parts. Error-detecting and -correcting Codes. Error-correcting Codes

Nexus Technology Review -- Exhibit A

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

Antennas & Propagation. CS 6710 Spring 2010 Rajmohan Rajaraman

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

MTS Master Custom Communications Protocol APPLICATION NOTES

A study of Skype over IEEE networks: voice quality and bandwidth usage

AN ANALYSIS OF DELAY OF SMALL IP PACKETS IN CELLULAR DATA NETWORKS

IT Data Communication and Networks (Optional)

THE BCS PROFESSIONAL EXAMINATIONS BCS Level 5 Diploma in IT. October 2009 EXAMINERS' REPORT. Computer Networks

Final for ECE374 05/06/13 Solution!!

6.02 Fall 2012 Lecture #5

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

WIRELESS ETHERNET (IEEE )

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

1 Introduction to mobile telecommunications

Network Layer: Network Layer and IP Protocol

Networking Test 4 Study Guide

Wiereless LAN

RS-485 Protocol Manual

CS263: Wireless Communications and Sensor Networks

Module 5. Broadcast Communication Networks. Version 2 CSE IIT, Kharagpur

- Hubs vs. Switches vs. Routers -

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

User Manuals. Connection to Siemens S5 PU (AS511) Part Number: Version: 2. Date:

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

The Answer to the 14 Most Frequently Asked Modbus Questions

This paper will explain some of the more important factors on how UTP wires work; specifically it will cover the following:

VoIP network planning guide

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP)

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

Operating Systems and Computer Networks / Datenverarbeitung 2 / Data Processing 2

Wide Area Networks. Learning Objectives. LAN and WAN. School of Business Eastern Illinois University. (Week 11, Thursday 3/22/2007)

The Impact of QoS Changes towards Network Performance

Introduction to Metropolitan Area Networks and Wide Area Networks

AN INTRODUCTION TO DIGITAL MODULATION

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

4 Digital Video Signal According to ITU-BT.R.601 (CCIR 601) 43

Written examination in Computer Networks

Requirements of Voice in an IP Internetwork

CS6956: Wireless and Mobile Networks Lecture Notes: 2/11/2015. IEEE Wireless Local Area Networks (WLANs)

WAN Data Link Protocols

Multiple Choice Questions

CS268 Exam Solutions. 1) End-to-End (20 pts)

Gigabit Ethernet. Today a number of technologies, such as 10BaseT, Auto-Negotiation

0,2 D(0) A(1) D(1) 1,3 D(2) 0,2 D(0) A(1) D(1) 1,3 D(2) D(3) D(3) D(1) D(1) A(4) D(2) 4,6 D(3) A(4) 4,6 GO BACK 3 SELECTIVE REJECT WINDOW SLIDES

How Digital Communication Works

RARP: Reverse Address Resolution Protocol

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Module 1. Introduction. Version 2 CSE IIT, Kharagpur

PRODUCT MANUAL SKX OPEN SKX ADVANCE ZN1RX-SKXOPEN. Edition 2 Version 1.1

Basics of Digital Recording

Appendix B RCS11 Remote Communications

Wireless LAN Concepts

Voice over IP. Overview. What is VoIP and how it works. Reduction of voice quality. Quality of Service for VoIP

DATA COMMUNICATIONS AND NETWORKING. Solved Examples

EnOcean Radio Protocol 2. September 26, 2013 SPECIFICATION V1.0. Subject to modifications EnOcean Radio Protocol 2 V1.0 Page 1/19

How To Understand How Bandwidth Is Used In A Network With A Realtime Connection

IP - The Internet Protocol

Introduction. Investigation

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Project 4: Pseudo USB Simulation Introduction to UNIVERSAL SERIAL BUS (USB) STANDARD

Micro Motion Modbus Interface Tool

COMPUTER NETWORKS REVIEW QUESTIONS AND PROBLEMS

Modbus and ION Technology

Manchester Encoder-Decoder for Xilinx CPLDs

Signal directionality Lower frequency signals are omnidirectional Higher frequency signals can be focused in a directional beam

PROPERTY MANAGEMENT SYSTEM

1 " %&#'(&#'(&#'(#' ( $) ) *+$ - 0# ,.+ ! "

Transcription:

Errors, Error Detection, and Error Control

Learning Objectives Identify the different types of noise commonly found in computer networks Specify the different error prevention techniques and be able to apply an error prevention technique to a type of noise Compare the different error detection techniques in terms of efficiency and efficacy Perform simple parity and longitudinal parity calculations, and enumerate their strengths and weaknesses Cite the advantages of cyclic redundancy checksum, and specify what types of errors cyclic redundancy checksum will detect Differentiate the three basic forms of error control, and describe under what circumstances each may be used Follow an example of stop-and-wait ARQ, go-back-n ARQ, and selective-reject ARQ.

Introduction All transmitted signals will contain some rate of errors (>0%) because noise is always present If a communications line experiences too much noise, the signal will be lost or corrupted Once an error is detected, a system may perform some action, or may do nothing but simply let the data in error be discarded Popular error detection methods: Simple Parity (add a 1 or 0 to the end of each seven bits) Longitudinal Parity or Longitudinal Redundancy Check (LRC) Cyclic Redundancy Checksum (CRC), or called Polynomial checking

What s an error? Human errors: Incorrect IP address assignment, or subnet mask, or input errors etc. Not what we consider in this class Network errors: Lost data Corrupted data (received, but garbled) Misinformation is worse than no information!

Line Noise and Distortion Errors Source Line outage White noise Impulse noise Cross-talk Echo Jitter Delay distortion Attenuation Likely cause Storm, accident Movement of electrons Random spikes of power Guardbands, wires too close Reflective feedback Timing irregularities Propagation speed Wires too long

Noise and Errors Noise and Errors White Noise Also known as thermal or Gaussian noise Relatively constant and can be reduced. If white noise gets to strong, it can completely disrupt the signal.

Noise and Errors

Noise and Errors Noise and Errors Impulse Noise One of the most disruptive forms of noise. Random spikes of power that can destroy one or more bits of information. Difficult to remove from an analog signal because it may be hard to distinguish from the original signal. Impulse noise can damage more bits if the bits are closer together (transmitted at a faster rate).

Noise and Errors

Noise and Errors

Noise and Errors Noise and Errors - Crosstalk Unwanted coupling between two different signal paths. For example, hearing another conversation while talking on the telephone. Relatively constant and can be reduced with proper measures.

Noise and Errors

Noise and Errors Noise and Errors - Echo The reflective feedback of a transmitted signal as the signal moves through a medium. Most often occurs on coaxial cable. If echo bad enough, it could interfere with original signal. Relatively constant, and can be significantly reduced.

Noise and Errors

Noise and Errors Noise and Errors - Jitter The result of small timing irregularities during the transmission of digital signals. Occurs when a digital signal is repeater over and over. If serious enough, jitter forces systems to slow down their transmission. Steps can be taken to reduce jitter.

Noise and Errors

Noise and Errors Noise and Errors Delay Distortion Occurs because the velocity of propagation of a signal through a medium varies with the frequency of the signal. Can be reduced. Attenuation (not an error, but indirectly affects error) The continuous loss of a signal s strength as it travels through a medium.

Error Prevention To prevent errors from happening, several techniques may be applied: Proper shielding of cables to reduce interference Telephone line conditioning or equalization Replacing older media and equipment with new, possibly digital components Proper use of digital repeaters and analog amplifiers Observe the stated capacities of the media

Error Prevention

Error Detection Methods The only way to do error detection and correction is to send extra data with each message Two common error detection methods: Parity checking Simple parity Longitudinal parity or Longitudinal Redundancy Check (LRC) Polynomial Checking Cyclic Redundancy Checksum (CRC)

Simple Parity Occasionally known as vertical redundancy check Add an additional bit to a string of bits: Even parity The 0 or 1 added to the string produces an even number of 1s (including the parity bit) Odd parity The 0 or 1 added an odd number of 1s (including the parity bit) 0 1 0 1 0 1 0 1 Even parity 0 Odd parity

Example Letter 7-bit ASCII Parity bit D 1 0 0 0 1 0 0 1 A T A 1 0 0 0 0 0 1 1 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 1 Even Parity or Odd Parity?

Reliability/Efficiency What happens if the character 10010101 is sent and the first two 0s accidentally become two 1s? Thus, the following character is received: 11110101. Will there be a parity error? Problem: Simple parity only detects odd numbers of bits in error Isolated single-bit errors occur 50-60% of the time Error bursts occur 10-20% of the time Efficiency: 1:7 (parity:data) w/ mediocre errordetection

Longitudinal Parity Sometimes called LRC or Horizontal Parity Add Block Check Character (BCC) after a block of characters: Perform simple parity checking on each row of bits Then create a row of parity bits, or a BCC: each parity bit in this last row is a parity check for all the bits in the column 0 1 0 1 0 1 0 1 1 0 0 1 1 1 0 0 BCC 1 1 0 0 1 0 0 1 Even Parity or Odd Parity?

Example Letter 7-bit ASCII Parity bit D 1 0 0 0 1 0 0 1 A T A BCC 1 0 0 0 0 0 1 1 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 Even Parity or Odd Parity?

Reliability/Efficiency Longitudinal parity is better at catching errors But requires too many check bits added to a block of data But still Efficiency: (n+8) : 7n (check bits: data) w/ a little bit better than mediocre error-detection We need a better error detection method

Polynomial Checking Adds a character to the end of the data based on a mathematical algorithm: Checksum E.g., Sum the data values and divide the sum by 255. The remainder is the checksum D A T A 68 65 84 65 282 255 = 1 remainder 27 Checksum 0 0 1 1 0 1 1 1 27

Cyclical Redundancy Check (CRC) CRC error detection method treats packet of data to be transmitted as a large polynomial Transmitter Using polynomial arithmetic, divides polynomial by a given generating polynomial Quotient is discarded Remainder is attached to the end of data Data (with the remainder) is transmitted to the receiver Receiver divides the (data remainder) by the same generating polynomial If a remainder of zero results no error during transmission If a remainder not equal to zero results error during transmission

Example: CRC 7 6 5 4 3 2 1 0 0 0 1 1 0 1 1 1 Message polynomial x 5 +x 4 +x 2 +x 1 +x 0 x 5 +x 4 +x 2 +x+1 Generating polynomial ATM CRC x 8 + x 2 + x + 1 CRC-16 x 16 + x 15 + x 2 + 1

Error Control Once an error is detected, the receiver can: 1. Do nothing Some newer systems such as frame relay perform this type of error control 2. Return an error message to the transmitter Stop-and-wait ARQ (Automatic Repeat request) Go-back-N ARQ Selective-reject ARQ 3. Fix the error with no further help from the transmitter

Stop-and-wait ARQ A transmitter sends a frame then stops and waits for an acknowledgment If a positive acknowledgment (ACK) is received, the next frame is sent If a negative acknowledgment (NAK) is received, the same frame is transmitted again

Sliding Window Protocol Go-back-N ARQ and Selective-reject are more efficient protocols They assume that multiple frames are in transmission at one time (sliding window) A sliding window protocol allows transmitter to send up to the window size frames before receiving any acknowledgments When a receiver does acknowledge receipt, the returned pack contains the number of the frame expected next

Example of Sliding Window RR: Receive Ready

Go back-n ARQ If a frame arrives in error, the receiver can ask transmitter to go back to the Nth frame, after Nth frame is retransmitted, sender resends all subsequent frames

Selective-reject ARQ Most efficient error control protocol If a frame is received in error, the receiver asks transmitter to resend ONLY the frame that was in error Subsequent frames following the Nth frame are not retransmitted

Correct the Error For a receiver to correct the error with no further help from the transmitter requires a large amount of redundant information accompanying original data This redundant information allows the receiver to determine the error and make corrections This type of error control is often called Forward Error Correction