COS 461 Fall 1997 COS 461: Networks and Distributed Computing u Prof. Ed Felten u u.

Slides:



Advertisements
Similar presentations
Data Link Layer Protocols Flow Control in Data Link Layer.
Advertisements

COS 461 Fall 1997 Data Link Layer u Today: LANs other than Ethernet –token rings –switched networks –cellular technology u remaining issues –error detection.
Computer Interfacing and Protocols
Lecture 12 Layer 2 – Data Link Layer Protocols
Introduction to Information Technologies
Reliability & Channel Coding
Chapter 6 Errors, Error Detection, and Error Control.
Spring 2002CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
CSCI 4550/8556 Computer Networks Comer, Chapter 7: Packets, Frames, And Error Detection.
Chapter Six Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach Sixth Edition.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Fundamentals of Computer Networks ECE 478/578 Lecture #3: Encoding and Framing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
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.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
The OSI Reference Model
CS335 Networking & Network Administration Wednesday, April 7 PacketsPackets, Frames, and Error DetectionFramesError Detection.
Spring 2004 EE4272 Direct Link Networks (I) Hardware Building Blocks (nodes & links) 5 Issues before Exchanging Packets  Encoding  Framing  Error Detection.
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
Spring 2003CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
Adapted from Tanenbaum's Slides for Computer Networking, 4e The Data Link Layer Chapter 3.
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
CSE331: Introduction to Networks and Security Lecture 3 Fall 2002.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
Lecture 6: Framing and Error Detection-Data Link Layer Functions
27-Oct-15Computer Networks1 Outline Chapter 2: Direct Link Networks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Review:. Chapter 3: The Data Link Layer –achieve reliable, efficient communication between two physically connected machines. –Example problems to be.
1 Packets, Frames, and Error Detection. 2 The Problem Cannot afford individual network connection per pair of computers Reasons –Installing wires consumes.
Data Link Layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Data Link Layer : Services, Framing, Error Detection and Correction2.
CS 453 Computer Networks Lecture 9 Layer 2 – Data Link Layer.
The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.
Fall 2000Datacom 11 Outline Hardware Building Blocks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
CS3505: DATA LINK LAYER. data link layer  phys. layer subject to errors; not reliable; and only moves information as bits, which alone are not meaningful.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
1 CHAPTER 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
Computer Networks Lecture 2: Data Link Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn 2015 by S.
Wireless and Mobile Networks (ELEC6219) Session 4: Efficiency of a link. Data Link Protocols. Adriana Wilde and Jeff Reeve 22 January 2015.
Transmission Errors Error Detection and Correction.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
CS 457 – Lecture 3 Link Layer Protocols Fall 2011.
Go-Back-N ARQ packets transmitted continuously (when available) without waiting for ACK, up to N outstanding, unACK’ed packets a logically different sender.
CS4470 Computer Networking Protocols
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.
Getting Connected (Chapter 2 Part 1)
Communication Networks: Technology & Protocols
The Three Main Sources of Transmission Errors
Advanced Computer Networks
Data Link Layer What does it do?
Point-to-Point Links Outline Encoding Framing Error Detection
Error Detection Neil Tang 9/26/2008
EEC-484/584 Computer Networks
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Error Detection and Correction
Packets, Frames, Parity, Checksums, and CRCs
CSE 461: Framing, Error Detection and Correction
Switching, Packets, Frames, Parity, Checksums, and CRCs
Error detection: Outline
EECS 122: EE122: Error Detection and Reliable Transmission
Presentation transcript:

COS 461 Fall 1997 COS 461: Networks and Distributed Computing u Prof. Ed Felten u u requirements –programs (in Java) –course project –midterm, final exams u now … on to business

COS 461 Fall 1997 Networking on a Shoestring u have two wires between points A and B u need to communicate (in both directions) –use one wire in each direction u how to do it?

COS 461 Fall 1997 Signaling u use voltage to represent ones and zeroes u two problems –no common ground level –timing

COS 461 Fall 1997 Ground u take average of recent voltage level –0 if much below average –1 if much above average

COS 461 Fall 1997 Timing u ideal: synchronized clocks u reality: can’t synchronize; clocks drift

COS 461 Fall 1997 Timing –strategy: run at approximately same speed »How close do we have to be? (Answer later.) –on seeing a transition, receiver re-adjusts its clock to the nearest half-tick –adjust clock forward or backward, whichever is shorter

COS 461 Fall 1997 Choosing Clock Speed u electrical effects flatten and spread waveform as it travels down wire u run as fast as possible without missing any transitions

COS 461 Fall 1997 Coping with Clock Drift u for correctness, receiver must not drift by more than half a cycle between transitions. u if max time between transitions is K cycles, clock speed must be within factor of 1+1/2K. u if no limit on K, no tolerance for drift

COS 461 Fall 1997 Forcing Transitions u idea: encode data before transmitting –code forces frequent transitions u example: Manchester encoding u tolerates 25% clock drift, but “wastes” half of bandwidth 01

COS 461 Fall 1997 Other Encodings u waste less bandwidth, but tolerate less drift –5/4 encoding in book –generally a good trade u other advantages of forcing transitions –keeps baseline voltage from drifting –detects broken wires

COS 461 Fall 1997 Framing u need to divide data stream into packets –variable length better than constant length »avoid wasting bandwidth »doesn’t add much complexity –two approaches »length field »end marker

COS 461 Fall 1997 Length Field Approach u first 16 bits of packet give the length u problem: error recovery

COS 461 Fall 1997 End-Marker Approach u special value marks end of packet –say it’s u solves synchronization problems u but what if occurs in data? u solution: bit stuffing –if sender sees seven 1’s in a row, insert a 0 –receiver deletes a 0 that follows seven 1’s

COS 461 Fall 1997 Error Control u real wires don’t always transmit data correctly –electrical glitches –physical stresses and damage u dealing with errors –detection –recovery

COS 461 Fall 1997 Error Detection u sender computes checksum, appends to packet u receiver verifies checksum u properties of a good checksum –always signal error if only a few bits corrupted –low probability of coincidental match if many bits corrupted –signals error if signal stuck on 0 or 1

COS 461 Fall 1997 Checksums in Practice u internet scheme –(roughly) take sum of 16-bit words in message –not very good, but fast to compute in software u CRC (cyclic redundancy code) –based on polynomial arithmetic in finite fields –implement in hardware with shift register and a few XOR gates

COS 461 Fall 1997 Error Correcting Codes u code message redundantly u detect/correct errors that affect a few bits u seldom used in practice –good at correcting a few bad bits, but errors tend to come in bunches –must be ready to recover from uncorrectable errors anyway –if errors are rare, better to handle other ways

COS 461 Fall 1997 Recovering from Errors u first try: ask sender to retransmit message –but: if wire breaks, sender thinks things are OK u second try: acknowledgements –receiver tells sender packet arrived safely –if no acknowledgement within a timeout period, sender retransmits packet

COS 461 Fall 1997 Retransmission Scenario 1 senderreceiver data ack

COS 461 Fall 1997 Retransmission Scenario 2 senderreceiver ack data

COS 461 Fall 1997 Retransmission Scenario 3 senderreceiver ack data ack data

COS 461 Fall 1997 Details u sequence number to identify packets –how big are sequence numbers? –one bit is enough (alternating bit protocol) u sender remembers packet until ack u packet type distinguishes ack from data –or piggyback ack on data packet u fancier schemes in another lecture

COS 461 Fall 1997 Review u speed limited by wire physics u approximately synchronized clocks u encoding to force frequent transitions u sentinel value marks end of packet –bit stuffing if sentinel occurs in data u checksum to detect errors u timeout and retransmission to recover from errors