Spring 2004 EE4272 Direct Link Networks (I) Hardware Building Blocks (nodes & links) 5 Issues before Exchanging Packets  Encoding  Framing  Error Detection.

Slides:



Advertisements
Similar presentations
CSCI-1680 Link Layer Reliability Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Lecture 3, 1Spring 2003, COM1337/3501CCN: Direct Link Networks Direct Link Networks Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie,
CSCI-1680 Link Layer Reliability Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Spring 2002CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Chapter 2 Designing Reliable Protocols Professor Rick Han University of Colorado at Boulder
The Data Link Layer Chapter 3. Position of the data-link layer.
EE 122: Error detection and reliable transmission Ion Stoica September 16, 2002.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
1 ITC242 – Introduction to Data Communications Week 10 Topic 16 Data link control.
The OSI Reference Model
1 Hardware Building Blocks Five Issues –Encoding –Framing –Error Detection –Reliable delivery –Access Mediation Direct Link Networks.
Spring 2003CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
Networking. Protocol Stack Generally speaking, sending an message is equivalent to copying a file from sender to receiver.
18-Aug-154/598N: Computer Networks Overview Direct link networks –Error detection - Section 2.4 –Reliable transmission - Section 2.5.
CSCI-1680 Link Layer Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
EE 122: Encoding And Framing Ion Stoica September 9, 2002.
William Stallings Data and Computer Communications 7th Edition
ECE 4450:427/527 - Computer Networks Spring 2015 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 5.3: Reliable Transmission Dr. Nghi.
14-Oct-15Computer Networks1 Reliable Transmission.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
CSS CSS432 Point-to-Point Links Textbook Ch2.1.2 – 2.5 Professor: Munehiro Fukuda.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
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.
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 2 HARDWARE BUILDING BLOCK ENCODING FRAMING ERROR DETECTION.
Link Layer Dr. Mozafar Bag-Mohammadi Ilam University.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 12: Reliability Slides used with permissions.
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.
Spring 2001CS 5851 Outline Building Blocks Shannon’s Theorem Encoding 11. Physical Layer.
CSCI-1680 Link Layer Reliability Based partly on lecture notes by David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
An Introduction to Computer Networks
Point-to-Point Links: Framing
Transport Layer: Sliding Window Reliability
1 Chapter 2: Direct Link Networks (Part One) Dr. Rocky K. C. Chang 30 January 2004.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
1 Hardware Building Blocks Five Issues –Encoding –Framing –Error Detection –Reliable delivery –Access Media Direct Link Networks.
1 Direct Link Networks: Reliable Transmission Sections 2.5.
CSE331: Introduction to Networks and Security Lecture 4 Fall 2002.
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Univ. of TehranIntroduction to Computer Network1 An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Computer Networking Lecture 16 – Reliable Transport.
CS380 Int. to Comp. Networks Data Link Networks - Part II1 Reliable Transmission How to fix corrupted frames. –Error correcting codes too expensive –Should.
CS4470 Computer Networking Protocols
Reliable Transmission
Data Link Networks Hardware Building Blocks Nodes & Links CS380
Advanced Computer Networks
Data Link Layer What does it do?
ECE 4450:427/527 - Computer Networks Spring 2017
CSS432 Point-to-Point Links Textbook Ch2.1 – 2.5
Reliable transmission
Point-to-Point Links Outline Encoding Framing Error Detection
Advanced Computer Networks
Fundamentals of Computer Networks
Getting Connected (Chapter 2 Part 3)
Hardware Building Blocks
CSE 461: Framing, Error Detection and Correction
Transport Layer Outline Intro to transport UDP
Dr. Mozafar Bag-Mohammadi Ilam University
Error detection: Outline
EECS 122: EE122: Error Detection and Reliable Transmission
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Spring 2004 EE4272 Direct Link Networks (I) Hardware Building Blocks (nodes & links) 5 Issues before Exchanging Packets  Encoding  Framing  Error Detection  Reliable Transmission  Medial Access Control

Spring 2004 EE4272 Hardware Building Blocks: Nodes  Assume general-purpose (programmable) computers; e.g.,. Sometimes replaced with special- purpose hardware. Finite memory (implies limited buffer space) Connects to network via a. Fast processor, slow memory (bottleneck of computer)

Spring 2004 EE4272 Hardware Building Blocks: Links Sometimes you install your own Sometimes leased from the phone company Reading Assignment: P67-P75

Spring 2004 EE4272 Encoding propagate over a physical medium  modulate electromagnetic waves  e.g., vary voltage

Spring 2004 EE4272 Encoding (Cont): NRZ Encode binary data onto signals  e.g., 0 as low signal and 1 as high signal  known as Non-Return to zero (NRZ) Problem of NRZ code:.  Low signal (0) may be interpreted as no signal  High signal (1) leads to.  Unable to recover.

Spring 2004 EE4272 Alternatives: NRZI and Manchester Non-return to Zero Inverted (NRZI):  Make a transition from the current signal to encode a 1, and stay at the current signal to encode a 0;. Manchester:  Transmits the XOR of the encoded data and the clock; only 50% efficient (baud rate=modulation rate).

Spring 2004 EE4272 4B/5B Encoding  every 4 bits of data encoded in a code  5-bit codes selected to have no more than one leading 0 and no more than two trailing 0s  thus, never get more than.  resulting 5-bit codes are transmitted using.  achieves 80% efficiency

Spring 2004 EE4272 Framing Break sequence of bits into a. Typically implemented by network.

Spring 2004 EE4272 HeaderBody CRC Beginning sequence Ending sequence Framing Approaches: determine where the frame begins & ends Sentinel-based  delineate frame with special pattern:  e.g., HDLC, SDLC, PPP  problem: special pattern appears in the payload  solution:. sender: insert 0 after five consecutive 1s receiver: delete 0 that follows five consecutive 1s  if next bits are 10: end-of-frame marker  if next bits are 11: error

Spring 2004 EE4272 Framing Approaches (cont) Counter-based  include payload length in header  e.g., DDCMP  problem:.  solution: catch when CRC fails

Spring 2004 EE4272 Framing Approaches (cont) Clock-based  each frame is long  e.g., SONET: Synchronous Optical Network  STS-n (STS-1 = )

Spring 2004 EE4272 Error Detection:Two-Dimensional Parity

Spring 2004 EE4272 Error Detection: Internet Checksum Algorithm Basic Idea:  Add up all the words that are transmitted and then transmit the result of that with the data. The receiver the same way and the result with the received data. One of the implementations:  view message as a. Add these integers together using 16-bit, and then take the ones complement of the result. That 16-bit number is the.

Spring 2004 EE4272 Cyclic Redundancy Check Theoretical Foundation: a branch of mathematics called. Add k bits of redundant data to an n-bit.  want k << n  e.g., k = 32 and n = 12,000 (1500 bytes) Represent n-bit message as n-1 degree.  e.g., MSG= as M(x) = x 7 + x 4 + x 3 + x 1 Let k be the degree of some.  e.g., C(x) = x 3 + x 2 + 1

Spring 2004 EE4272 CRC (cont) Transmit polynomial P(x) that is by C(x)  shift left k bits ( k is the degree of C(x) ), i.e., M(x).k  subtract remainder of M(x).k/C(x) from M(x).k Receiver polynomial P(x) +.  E(x) = 0 implies no errors Divide (P(x) + E(x)) by C(x); remainder zero if:  E(x) was,or  E(x) is exactly by C(x)

Spring 2004 EE4272 Selecting C(x) All single-bit errors, as long as the x k and x 0 terms have. All, as long as C(x) contains a factor with at least. Any, as long as C(x) contains the factor (x + 1) Any error (i.e., sequence of consecutive error bits) for which the length of the burst is less than k bits. Most burst errors of larger than k bits can also be detected See Table 2.5 on page 96 for common C(x)

Spring 2004 EE4272 Reliable Transmission Recover from Corrupt Frames  ;also called Forward Error Correction (FEC)  and Timeouts; also called Automatic Repeat Request (ARQ)

Spring 2004 EE4272 Stop-and-Wait Problem: only one at a time (one frame per RTT) can not keep the pipe full Example  1.5Mbps link x 45ms RTT = 67.5Kb (8KB) (delay X bandwidth product)  1KB frames implies 1/8th link utilization SenderReceiver

Spring 2004 EE4272 Sliding Window SenderReceiver T ime … … … N Basic Idea:  Allow sender to transmit before receiving an, thereby keeping the pipe full. There is an upper limit (called ) on the number of (un-ACKed) frames allowed.

Spring 2004 EE4272 SW: Sender Assign sequence number to each frame (SeqNum) Maintain three state variables:  send window size (SWS)  sequence # of last acknowledgment received (LAR)  sequence # of last frame sent (LFS) Maintain invariant: LFS - LAR <= SWS at all time Advance/update LAR when ACK arrives to allow a new frame be sent Buffer up to SWS frames for retransmission if needed  SWS LAR LFS ……

Spring 2004 EE4272 SW: Receiver Maintain three state variables  (RWS): upper bound on the # of out-of-order frames  sequence # of (LAF)  sequence # of (LFR) Maintain invariant: LAF - LFR <= RWS Frame arrives:  if LFR < SeqNum < = LAF accept  if SeqNum LFA discarded Mechanism of Sending cumulative.  LFR = SeqNumtoAck  LAF = LFR + RWS  RWS LFR LAF ……

Spring 2004 EE4272 SeqNum field is ; sequence numbers wrap around (reuse) Sequence number space must be than number of outstanding frames SWS <= MaxSeqNum-1 is not sufficient  suppose 3-bit SeqNum field (0..7)  SWS=RWS=7  sender transmit frames 0..6  arrive successfully, but ACKs lost  sender retransmits 0..6  receiver expecting 7,0..5, but receives second incarnation of 0..5 SWS < (MaxSeqNum+1)/2 is correct rule when. Sequence Number Space