Communication Networks NETW 501

Slides:



Advertisements
Similar presentations
Networks : TCP Sliding Windows1 TCP Sliding Windows, Flow Control, and Congestion Control Lecture material taken from Computer Networks A Systems Approach,
Advertisements

CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 14 Introduction to Computer Networks.
Data Link Layer (cont’d)
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,
ICSA341 Data Communications and Computer Networks 1 Data Link Control •General principles.
Go-Back-N Improve Stop-and-Wait by not waiting!
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.
I N THE N AME OF G OD C OMPUTER N ETWORKS C HAPTER 3: T HE D ATA L INK L AYER ( PART 3) Dr. Shahriar Bijani Shahed University March 2014.
ELEN 602 Lecture 5 Review of last lecture –Error Detection -- parity/CRC etc. Automatic Retransmission Request (ARQ) Reading: Chap
Data Link Layer Review Advanced Computer Networks.
Networks: Data Link Layer1 Data Link Layer. Networks: Data Link Layer2 Data Link Layer Provides a well-defined service interface to the network layer.
Networks: Data Link Layer1 Data Link Layer. Networks: Data Link Layer2 Data Link Layer Provides a well-defined service interface to the network layer.
Computer Networks: Data Link Layer 1 Data Link Layer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 13 Introduction to Computer Networks.
Networks: Data Link Layer1 Data Link Layer. Networks: Data Link Layer2 Data Link Layer Provides a well-defined service interface to the network layer.
Networks: Data Link Layer1 Data Link Layer. Networks: Data Link Layer2 Data Link Layer Provides a well-defined service interface to the network layer.
Data Link Control Line Discipline Flow Control Error Control.
ARQ Mechanisms Rudra Dutta ECE/CSC Fall 2010, Section 001, 601.
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.
Error/Flow Control Modeling (ARQ Modeling). Modeling of Go Back N.
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.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1.Flow Control and ARQ Protocols.
1 Flow&Error Control R. Supakorn. 2 Flow Control Flow control refers to a set of procedure used to restrict the amount of data that the sender can send.
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.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
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.
Part III Datalink Layer 10.
UNIT 4 Data Link Control Line Discipline Flow Control Error Control
Advanced Computer Networks D12
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
CIS 321 Data Communications & Networking
Flow Control.
Communication Networks NETW 501
Chapter 10 Data Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
Communication Networks NETW 501
Communication Networks NETW 501
Data Link Layer as a Reliable Data Transport Protocol
Communication Networks NETW 501
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
DATA COMMUNICATION Lecture-39.
Data Link Layer (cont’d)
Communication Networks NETW 501
Communication Networks NETW 501
Communication Networks NETW 501
Communication Networks NETW 501
Communication Networks NETW 501
Communication Networks NETW 501
Lecture 7 review Consider a link running the Go-Back-N protocol. Suppose the transmission delay and propagation delay are both 1ms, the window size is.
Advanced Computer Networks
DATA COMMUNICATION Lecture-38.
Chapter 11 Data Link Control
Getting Connected (Chapter 2 Part 3)
Data Link Layer (cont’d)
The Transport Layer Reliability
Assume that a file is transferred from a node A to a node B
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Presentation transcript:

Communication Networks NETW 501 Lecture 9 Data Link Layer: Error Control & Flow Control Course Instructor: Dr.-Ing. Maggie Mashaly maggie.ezzat@guc.edu.eg C3.220

Selective Repeat ARQ Protocol

Selective Repeat ARQ Basics What is the problem of Go-Back N? Go Back-N retransmits the erroneous frame and all subsequent frames This reduces efficiency especially for High Error Channels Selective Repeat ARQ Introduce a receive window to store CORRECT out of sequence frames Retransmit individual frames TCP uses a form of selective repeat

Error Recovery in Selective Repeat ARQ Receiver Sender Fr_0 ACK_1 Fr_1 ACK_2 Fr_2 Fr_3 Fr_4 NAK_2 ACK_2 Fr_2 ACK_5 Fr_5 ACK_6

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_0 Fr_0 Fr_0 Fr_1 Fr_1 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_0 Fr_0 Fr_0 Fr_1 Fr_1 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_0 Fr_0 Fr_0 Fr_1 Fr_1 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_0 Fr_0 Fr_0 Fr_1 Fr_1 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_0 Fr_0 Fr_0 Fr_1 Fr_1 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_0 Fr_2 Fr_0 Fr_1 Fr_3 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_2 Fr_2 Fr_0 Fr_3 Fr_3 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_2 Fr_2 Fr_0 Fr_3 Fr_3 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_2 Fr_3 Fr_0 Fr_3 Fr_0 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Operation of Selective Repeat WS=WR=2 , m=2 Receiver Sender Fr_0 Sending Window Fr_1 Receiving Window NAK_0 Fr_2 Fr_3 Fr_0 Fr_3 Fr_0 ACK_2 Fr_2 Fr_3 ACK_3 ACK_0 Frame Sequences that are allowed to be sent Frame Sequences that are allowed to be received Outstanding Frame Sequences Frame Sequences that are received correctly and buffered

Send and Receive Window Size m=2 WS=WR=3 WS=WR=2 Receiver Receiver Sender Sender Fr_0 Fr_0 ACK_1 ACK_1 Fr_1 Fr_1 ACK_2 ACK_0 Fr_2 Fr_0 Receive Window {2,3} Fr_0 ACK_3 Fr_0 rejected Receive Window {3,0,1} GENERAL RULE: WS+ WR ≤2m

Efficiency Plots Frame Size 1024, R=1.5 Mbps, tprop=5 ms, Window Size = 4

References NETW 501 Lectures slides by Assoc. Prof. Tallal El-Shabrawy “Communication Networks 2nd Edition”, A. Leon-Garcia and I. Widjaja, McGraw Hill, 2013 “Computer Networks 4th Edition”, A. S. Tanenbaum, Pearson International