CS3502: Data and Computer Networks DATA LINK LAYER - 2 WB version.

Slides:



Advertisements
Similar presentations
CH. 7 Data Link Control. Requirements & Objectives of Data Link Control Frame Synchronization Flow Control Error Control Addressing Control and Data on.
Advertisements

Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
Assume that a file is transferred from a node A to a node B. The file has been fragmented in 5 frames (denoted as f0, f1, f2, f3, f4). Show the flow of.
Assume that a file is transferred from a node A to a node B. The file has been fragmented in 5 frames. Frame 0 is corrupted, the ACK of frame 1 is corrupted,
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
Go-Back-N Improve Stop-and-Wait by not waiting!
Data and Computer Communications Updated: 2/9/2009.
Data link control. Data Link Control –Flow Control how much data may sent –Error Control How can error be detected and corrected.
Flow and Error Control. Flow Control Flow control coordinates the amount of data that can be sent before receiving acknowledgement It is one of the most.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
Chapter 7 – Data Link Control Protocols
Data Link Control Protocols Data link control protocol Provides a layer of control between systems on a transmission medium referred to as data link. DLC.
William Stallings Data and Computer Communications 7 th Edition Chapter 7 Data Link Control Protocols.
Chapter 9: Data Link Control Business Data Communications, 4e.
Data Communications Data Link Control. What Is Data Link Control? The Data Link layer of a model typically has the following responsibilities: 1. Creates.
Lect11.ppt - 03/15/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 11 Link-Level Flow and Error Control by Zornitza Genova Prodanoff.
Link-Level Flow and Error Control
Network Technology CSE Network Technology CSE3020 Week 6.
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.
Data Link Control Protocols
Data Link Control Protocols Dr. Muazzam A. Khan. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow.
Aegis School of Telecommunication Chapter 7 Data Link Control Protocols Telecom Systems I by Dr. M. G. Sharma, Phd.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Data and Computer Communications Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data and Computer Communications, Ninth Edition.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Control and Protocols.
Chapter 3 THE DATA LINK LAYER
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
1 Kyung Hee University Data Link Protocols. 2 Kyung Hee University 11 장 Data Link Control and Protocols 11.1 Flow and Error Control 11.2 Stop-and-Wait.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Computer Networks Module 3: Data Link Layer (Framing) Dr. Vikram Shete St. Francis Institute of Technology.
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 CS4550: Computer Networks II Review Data Link Layer.
Data Link Layer - 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
Data Link Layer Flow and Error Control. Flow Control Flow Control Flow Control Specifies the amount of data can be transmitted by sender before receiving.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Principles of reliable data transfer 0.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1.Flow Control and ARQ Protocols.
Data Link Layer. Link Layer The data unit to be transmited at the link layer is called a frame. Why link layer? How can it know where a frame begins and.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Data Link Layer Part II – Sliding Window Protocols.
Data and Computer Communications Data Link Control Protocols.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Computer Networking Lecture 16 – Reliable Transport.
Chapter 9: Data Link Control Business Data Communications, 4e.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Data and Computer Communications Data Link Control Protocols.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Instructor Mazhar Hussain
3.2 Data Link Layer : Error & Flow Control
CIS 321 Data Communications & Networking
Flow Control.
Chapter 10 Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Flow and Error Control.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Presentation transcript:

CS3502: Data and Computer Networks DATA LINK LAYER - 2 WB version

data link layer : flow and error control u purpose : regulate the flow of data from sender S to receiver R, so that R is neither overwhelmed nor kept idle unnecessarily. u secondary purpose may also be used to avoid swamping the network or link with traffic. u technique : send control information between S and R, synchronizing on buffer space, transmission rates, etc. u protocols: u stop-and-wait, alternating bit u sliding window (go-back-N, selective repeat/reject)

performance analysis of networks u attempts to determine the efficiency of a network; that is, for various traffic loads, how well the network uses its resources to meet the needs of the traffic u examples u stop and wait u alternating bit u more complex networks need the use of probability and queueing theory

data link layer : stop-and -wait protocol send 1 frame, then stop, and wait for an acknowledgment before sending the next. R X data ack data

data link layer : stop and wait u what happens if a message is lost? u to tolerate losses, must add timeouts (TO) and retransmissions u what happens if data is lost? u what happens if ack is lost? u what is the obvious solution? u alternating bit protocol:add a number to data frames, to uniquely identify; enable repeated messages to be safely discarded

data link layer : stop and wait protocols u what is the efficiency of this S&W protocol? i.e., of the total time spent, how much is actually spent sending the data? u variables t d, time spent transmitting the data t p, propagation delay t proc, processing time t ack, time spent transmitting the ack. U, utilization or efficiency of the protocol

performance of A-B protocol u AB protocol U = t d /( t d + 2 t prop ), error free case or U = (1-P E )t d /( t d + 2 t prop, )error case tdtptptdtptp

link utilization of AB protocol u suppose we use a satellite link, t prop = 250ms; data frame is 16K bits; transmission rate is 1 Mbps. What is U ? Assume negligible error rate. u how might this be improved? eart h

sliding window protocols: no error u send a series of data frames, without waiting for acknowledgments 1 at a time u window W : the number of frames in transit between sender and receiver (max, current) u each frame numbered from 0, 1, 2,..., w u receiver may ack 1 or more frames at a time u X sends up to max window, then waits for acks; u R uses acks to control and maximize utilization

sliding window protocol : no error suppose w = 3: NOTE: By Convention ack# = sequence # of next frame expected by receiver d0 d1 d2 ack3

sliding window protocol u sequencing for w = 3: u d0, d1, d2 u wait for ack3 u d3, d0, d1 u wait for ack2 u etc. u exercise: show all sequences possible on timing diagram for w=3. (include 3 at a time, 2 at a time, 1 at a time)

sliding window protocol : no error u what is the efficiency of the protocol? ie, what is the best utilization possible? (assume no errors in the channel) u sliding window: no channel errors U = W t d /( t d + 2 t prop ), if less than 1, U = 1, otherwise.

Why sliding window protocol? u for large windows, what if a message is lost? what problem do you see with this? u suppose w = 63: what if d61 lost? d0 d1 d62 d61 ack61 TwTw d6 1

sliding window: variables, nacks u standard variables N S and N R : used to keep track of sequence numbers u N S : send sequence number; seq. number of the next data frame to be sent. Increments modulo W max +1. u N R : receive sequence number; seq. number of the last (most recent) nack. frame received u both are local variables of the sender u current window in sender is found by subtracting the difference, N S _ - N R, from maximum window size -- W current = W max - [ N S _ - N R ]

sliding window: variables, nacks u go-back-N nacks: if a frame lost, it and all subsequent frames retransmitted u nack : (1) acknowledges previous frames, and (2) rejects numbered frame and all subsequent frames. Sequence numbers convention same as acks# ie. Next frame expected. u when sender gets a nack, N S must be rolled back to the value of the nack, and u N R must be rolled forward to the nack u examples

sliding window: variables, nacks u Initially, N S = N R = 0 u N S incremented each time a frame sent u N R updated each time a nack frame received u example: suppose Wmax = 5; show values after each of following: u send d0, d1, d2 u receive nack1 u send d1, d2, d3, d4, d5 u receive nack4 u send d4, d5, d0 u what is current window size? Calculated modulo Wmax +1

sliding window protocol u Go-back-n needlessly repeats frames u sliding window: selective repeat (also called selective reject) u only retransmit messages which were lost u window size at most half the range of sequence numbers (why?) u timing diagrams u disadvantage u more buffers, more complex algorithm, costs more u advantage u higher efficiency in noisy channels

data link protocol performance u go-back-N, selective repeat : no channel errors U = W t d /( t d + 2 t prop ),if less than 1, U = 1, otherwise.

performance of data link protocols u selective repeat: with errors U = 1 - P, for Wt d > t d + 2 t prop = (1 - P) Wt d / t d + 2 t prop, otherwise u go-back-N, with errors U = (1 - P)t d /(t d + 2t p P), W > 2t p /t d + 1, = W(1 - P)t d / (2t p + t d )(1 - P + WP), O.W. u see Stallings Appendix 6A

HDLC: high level data link control u ISO standard for a data link protocol u other DL standards exist, but are very similar; e.g., PPP u HDLC combines various functions of the DL layer - flow control, error control, sequencing, framing, etc. - into a single protocol standard u HDLC standard is broad, covering several different cases u 3 general classes: u station type u link configuration u mode of operation

HDLC u station types u primary P u secondary S u combined C u types P and S are for multipoint network with polling u hub polling, etc. --> master/slave network u type C for point-to-point link u link configurations u balanced : 2 combined stations on 1 direct link u unbalanced : 1 P, n S ’s directly connected (e.g., bus)

HDLC u frame types and formats u I-frame(information/data) u S-frame (supervisory) u U-frame (data)