Computer Communication & Networks

Slides:



Advertisements
Similar presentations
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 14 Introduction to Computer Networks.
Advertisements

Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
11-1 FRAMING The data link layer needs to pack bits into frames, so that each frame is distinguishable from another. Our postal system practices a type.
Data Link Control We want to minimize the amount of error correcting and detecting we need to do.
Chapter 11 Data Link Control
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.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 7 – Data Link Control Protocols
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 12 Introduction to Computer Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 13 Introduction to Computer Networks.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
15 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Data Link Control Physical layer is only responsible for data transmission Data link.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
Chapter 3: Channel Coding (part 3). Automatic repeat request (ARQ) protocols ▫Used in combination with error detection/correction ▫Block of data with.
Lecture Focus: Data Communications and Networking  Data Link Layer  Data Link Control Lecture 22 CSCS 311.
11.1 Flow and Error Control Flow Control Error Control.
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.
Part III. Data Link Layer Chapter 11. Data Link Control COMP 3270 Computer Networks Computing Science Thompson Rivers University.
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.
Data Link Layer.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
PROTOCOL BASICS. 2 Introduction In chapter 3: Circuits and techniques can be employed to transmit a frame of information between 2 DTEs Error detection.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
2.10 Flow and Error Control Before that ...
Reliable Transmission
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Part III Datalink Layer 10.
Chapter 11 Data Link Control
Sliding Window Protocol | Go-Back-N
Chapter 23 Introduction To Transport Layer
Data link layer (LLC).
Chapter 11 Data Link Control
Chap. 4 Data link layer 2.
6 Transport Layer Computer Networks Tutun Juhana
Instructor Mazhar Hussain
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Subject Name: Computer Communication Networks Subject Code: 10EC71
Flow Control.
Data Link Layer: Data Link Control
Chapter 10 Data Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
CS412 Introduction to Computer Networking & Telecommunication
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Data Link Layer (cont’d)
CS4470 Computer Networking Protocols
DATA COMMUNICATION Lecture-38.
Chapter 11 Data Link Control
Getting Connected (Chapter 2 Part 3)
Data Link Layer (cont’d)
The Transport Layer Reliability
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Chapter 9: Data Link Control
Presentation transcript:

Computer Communication & Networks Lecture 11 Datalink Layer: Datalink control and protocols http://web.uettaxila.edu.pk/CMS/coeCCNbsSp09/index.asp Waleed Ejaz waleed.ejaz@uettaxila.edu.pk

Data Link Layer

Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless LANs

Flow & Error Control The most important responsibilities of the data link layer are flow control and error control. Collectively, these functions are known as data link control. Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment. Error control in the data link layer is based on automatic repeat request, which is the retransmission of data.

Protocols (Contd.)

Noisy Channels We discuss three protocols in this section that use error control. Stop & Wait Automatic Repeat Request Go-Back-N Automatic Repeat Request Selective Repeat Automatic Repeat Request

Stop-and-Wait Automatic Repeat Request Simplest flow and error control mechanism The sending device keeps a copy of the last frame transmitted until it receives an acknowledgement identification of duplicate transmission (lost or delayed ACK) a damaged or lost frame is treated in the same way timers introduced positive ACK sent only for frames received safe & sound

A Simplex Stop-and-Wait ARQ Normal operation The frame is lost The ACK is lost The ACK is delayed

Stop-and-Wait ARQ -Normal operation- The sender will not send the next piece of data until it is sure that the current one is correctly received sequence number necessary to check for duplicated packets No NACK – when packet is corrupted – duplicate ACKs instead

Stop-and-Wait ARQ -Lost or damaged frame- roundtrip delay + processing in the receiver

Stop-and-Wait ARQ -Lost ACK- Importance of numbering

Stop-and-Wait ARQ -Delayed ACK- Importance of ACK numbering

Duplex Stop-and-Wait ARQ Piggybacking combine data with ACK (less overhead saves bandwidth)

Drawbacks of Stop-and-Wait ARQ After each frame sent the host must wait for an ACK inefficient use of bandwidth To improve efficiency ACK should be sent after multiple frames Alternatives: Sliding Window protocols Go-back-N ARQ Selective Repeat ARQ

Pipelining One task begins before the other one ends increases efficiency in transmission There is no pipelining in Stop-and-Wait ARQ

Sliding Window Protocols Sequence numbers sent frames are numbered sequentially number of frames stored in the header if the number of bits in the header is m than sequence number goes from 0 to 2^m-1 Sliding window to hold the unacknowledged outstanding frames the receiver window size always 1 sequence number frame acknowledged frames

Question What is the consequence of the window size in the receiver on the order of the received packets? Answer: Window size 1 means that the packets are received in order Note: this is not the case for the larger receiver window size

Go-back-N -Control variables- S- holds the sequence number of the recently sent frame SF – holds sequence number of the first frame in the window SL – holds the sequence number of the last frame R – sequence number of the frame expected to be received

The name of Go-back-N: why? Re-sending frame when the frame is damaged the sender goes back and sends a set of frames starting from the last one ACKn’d the number of retransmitted frames is N Example: The window size is 4. A sender has sent frame 6 and the timer expires for frame 3 (frame 3 not ACKn’d). The sender goes back and re-sends the frames 3, 4, 5 and 6.

Go-back-N -normal operation- How many frames can be transmitted without acknowledgment? ACK1 – not necessary if ACK2 is sent Cumulative ACK expected sequence number

Go-back-N -damaged or lost frame- damaged frames are discarded! Why are correctly received packets not buffered? What is the disadvantage of this?

Go-back-N -sender window size- sequence number

Go-back-N Inefficient This is a problem in a noisy link Solution all out of order received packets are discarded This is a problem in a noisy link many frames must be retransmitted -> bandwidth consuming Solution re-send only the damaged frames Selective Repeat ARQ avoid unnecessary retransmissions

Note Stop-and-Wait ARQ is a special case of Go-Back-N ARQ in which the size of the send window is 1.

Selective Repeat ARQ Processing at the receiver more complex The window size is reduced to one half of 2m Both the transmitter and the receiver have the same window size Receiver expects frames within the range of the sequence numbers

Selective Repeat ARQ -lost frame- Note: retransmission triggered with NACK and not with expired timer

Selective Repeat ARQ -sender window size-

Readings Chapter 11 (B.A Forouzan) Section 11.2,11.3, 11.5 (Cover only those contents which are related to topics covered in class)