Data Link Control. Functional requirements for effective data communications between two directly connected transmitting-receiving stations:

Similar documents
Data Link Layer. Flow Control. Flow Control

Stop And Wait. ACK received; transmit frame 2 CS 455 3

Computer Networks. Data Link Layer

Computer Networks. Chapter 5 Transport Protocols

Transport Layer Protocols

CMPE 150 Winter 2009

Data Link Layer(1) Principal service: Transferring data from the network layer of the source machine to the one of the destination machine

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006

ESPA Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION

[Prof. Rupesh G Vaishnav] Page 1

Applied Data Communication Lecture 14

PROPERTY MANAGEMENT SYSTEM

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP)

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Advanced Computer Networks Project 2: File Transfer Application

Protocols and Architecture. Protocol Architecture.

TCP in Wireless Mobile Networks

Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation

TCP in Wireless Networks

TCP for Wireless Networks

DATA COMMUNICATION AND NETWORKS

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

Access Control: Firewalls (1)

This sequence diagram was generated with EventStudio System Designer (

0,2 D(0) A(1) D(1) 1,3 D(2) 0,2 D(0) A(1) D(1) 1,3 D(2) D(3) D(3) D(1) D(1) A(4) D(2) 4,6 D(3) A(4) 4,6 GO BACK 3 SELECTIVE REJECT WINDOW SLIDES

CS6956: Wireless and Mobile Networks Lecture Notes: 2/11/2015. IEEE Wireless Local Area Networks (WLANs)

Simulation-Based Comparisons of Solutions for TCP Packet Reordering in Wireless Network

IEEE Broadband Wireless Access Working Group < Recirculation Letter Ballot 13a Comment 520 Reply

TCP over Wireless Networks

The OSI Model and the TCP/IP Protocol Suite

Improving Effective WAN Throughput for Large Data Flows By Peter Sevcik and Rebecca Wetzel November 2008

It is the thinnest layer in the OSI model. At the time the model was formulated, it was not clear that a session layer was needed.

Lecture 15: Congestion Control. CSE 123: Computer Networks Stefan Savage

Module 5. Broadcast Communication Networks. Version 2 CSE IIT, Kharagpur

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

B-2 Analyzing TCP/IP Networks with Wireshark. Ray Tompkins Founder of Gearbit

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

A Survey on Congestion Control Mechanisms for Performance Improvement of TCP

LANs. Local Area Networks. via the Media Access Control (MAC) SubLayer. Networks: Local Area Networks

EKSAMEN / EXAM TTM

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

CS268 Exam Solutions. 1) End-to-End (20 pts)

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

2 TCP-like Design. Answer

LTE RRC Connection Setup Messaging

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

CSMA/CA. Information Networks p. 1

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

3.4 SLIDING WINDOW PROTOCOLS

EXAMPLES AND PROBLEMS. Competence Based Education Internet Protocols

a. CSMA/CD is a random-access protocol. b. Polling is a controlled-access protocol. c. TDMA is a channelization protocol.

Operating Systems and Computer Networks / Datenverarbeitung 2 / Data Processing 2

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks - III

TCP Flow Control. TCP Receiver Window. Sliding Window. Computer Networks. Lecture 30: Flow Control, Reliable Delivery

AN_2901CE_001 JULY 2005

User Manuals. Connection to Siemens S5 PU (AS511) Part Number: Version: 2. Date:

Networking Test 4 Study Guide

Mobile Computing/ Mobile Networks

Per-Flow Queuing Allot's Approach to Bandwidth Management

Lecture Objectives. Lecture 07 Mobile Networks: TCP in Wireless Networks. Agenda. TCP Flow Control. Flow Control Can Limit Throughput (1)

Dynamic Source Routing in Ad Hoc Wireless Networks

Ring Local Area Network. Ring LANs

Appendix B RCS11 Remote Communications

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Implementing and testing tftp

2 Basic Concepts. Contents

AN IMPROVED SNOOP FOR TCP RENO AND TCP SACK IN WIRED-CUM- WIRELESS NETWORKS

Protocol Data Units and Encapsulation

Mobile Communications Chapter 9: Mobile Transport Layer

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

Ch GSM PENN. Magda El Zarki - Tcom Spring 98

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

point to point and point to multi point calls over IP

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

Based on Computer Networking, 4 th Edition by Kurose and Ross

TCP and Wireless Networks Classical Approaches Optimizations TCP for 2.5G/3G Systems. Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

Level 2 Routing: LAN Bridges and Switches

Wireless LAN Protocol CS 571 Fall Kenneth L. Calvert All rights reserved

File Transfer in H.323 Systems

Configuring TCP Intercept (Preventing Denial-of-Service Attacks)

How To Make A Multi-User Communication Efficient

: Instructor

A Transport Protocol for Multimedia Wireless Sensor Networks

Congestion Control Overview

(Refer Slide Time: 02:17)

CS263: Wireless Communications and Sensor Networks

COMP 361 Computer Communications Networks. Fall Semester Midterm Examination

2.0 System Description

How To Design A Layered Network In A Computer Network

EETS 8316 Wireless Networks Fall 2013

The Quality of Internet Service: AT&T s Global IP Network Performance Measurements

SIM CARD PROTOCOLS. This paper attempts in broad strokes to outline the construction of these protocols and how they are used.

Computer Networks UDP and TCP

Outline. TCP connection setup/data transfer Computer Networking. TCP Reliability. Congestion sources and collapse. Congestion control basics

Project 4: Pseudo USB Simulation Introduction to UNIVERSAL SERIAL BUS (USB) STANDARD

Final Exam. Route Computation: One reason why link state routing is preferable to distance vector style routing.

A study of Skype over IEEE networks: voice quality and bandwidth usage

CPS221 Lecture: Layered Network Architecture

Process Control and Automation using Modbus Protocol

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

Transcription:

Data Link Control Functional requirements for effective data communications between two directly connected transmitting-receiving stations:! Frame Synchronization! Use of a Variety of Line Configurations! Flow Control! Error Control! Addressing! Control and Data on Same Link! Link Management

Frame Synchronization! Character Oriented Frames Base unit of information is a character.! Bit Oriented Frames Base unit of information is a bit.

Data Types and Functions for Subsequent Protocols

An Unrestricted Simplex Protocol

Flow Control & Error Control Mechanisms Flow Control:! Stop-and-Wait! Sliding Window Error Control:! Stop-and-Wait ARQ! Go-Back-N ARQ! Selective-Repeat ARQ

Basic Operation: Stop-and-Wait Flow Control Protocol! Sender transmits a data frame and then, before transmitting any other data frames, w aits for a signal (an ACK) from the receiver, which indicates its w illingness to receive more data. Stop-and-Wait Flow Control Protocol

A Simplex Stop-and-Wait Protocol

Stop-and-Wait Flow Control - Performance! Assume a half-duplex, point-to-point link! It can be shown that the efficiency of the link is U = 1/(1+ 2a) where a = Bit Propagation Time/Frame Transmission Time

Sliding Window Protocol Basic Operation:! The sender and receiver each maintain a window. - Transmit Window: A list of the sequence numbers of frames that a transmitting station may send. - Receive Window: A list of the sequence numbers of frames that a receiving station is w illing to receive.! The windows open and close (slide) as frames are transmitted and received.! The Maximum Transmit Window Size (N) determines how many frames can be in transit simultaneously.! The Window Size can be used as a flow control mechanism.

Sliding Window Protocol

Sliding Window Protocol Characteristics & Performance! The Maximum Transmit Window Size (N) determines how many frames can be in transit simultaneously.! The Window Size can be used as a flow control mechanism.! Efficiency is now a function of both ' N' and ' a'. U = 1 for N > 2a+ 1 U = N/(2a+ 1) for N < 2a+ 1

Error Control Types of Errors:! Lost Frame: The receiver is not aw are that a frame has been transmitted.! Damaged Frame: A recognizable frame arrives at the receiver, however, some of the bits are in error. Error Control Ingredients:! Error Detection: Ascertain that there was an error.! Positive Acknowledgement: The receiver ACKs successfully received, error-free frames.! Retransmission After Timeout: The source retransmits a frame that has not been acknowledged after a predetermined amount of time.! Negative Acknowledgement and Retransmission: The destination NAKs frames in which an error is detected. The source retransmits such frames. Automatic Repeat Request (ARQ) Techniques:! Stop-and-Wait ARQ! Go-Back-N Continuous ARQ! Selective-Repeat Continuous ARQ

Stop-and-Wait ARQ Uses a Simple Stop-and-Wait Acknow ledgement Scheme: Receiver sends either an ACK or a NAK (see code). Questions & Problems: 1. What if the transmitted frame is lost? Answ er: Must equip the transmitter w ith a TIMER. 2. What if the ACK gets lost (receiver may get a duplicate)? Answ er: Must put SEQUENCE NUMBERS (names) within the transmitted frames to allow the receiver to detect duplicates. 3. a) The transmitter sends out frame 0 which is properly received. b) The ACK is slow in getting back to the transmitter. The timer goes off causing the transmitter to send a duplicate of frame 0 which is also received correctly. c) The receiver sends back a second ACK. d) The first ACK arrives at the transmitter which then sends out frame 1 w hich gets lost. e) Here comes the second ACK. Answ er: Must sequence the ACKs (e.g. ACK0 - ACK1).

Stop-and-Wait ARQ Stop-and-Wait ARQ

A Simplex Stop-and-Wait ARQ Protocol

Go-back-N ARQ! A station may send a series of frames determined by the window size, using the sliding window flow control technique.! While no errors occur, the destination station w ill ACK incoming frames as usual. Error Control: Assume that A is sending frames to B. 1. Damaged or Lost Frames: a. A transmits frame i. B detects an error in frame i and has previously successfully received frame i-1. B sends a NAK i, indicating that frame i is rejected. When A receives this NAK, it must go back and retransmit frame i and all subsequent frames that it has transmitted. b. Frame i is lost in transit. A subsequently sends frame i+ 1. B receives frame i+ 1 out of order, and sends a NAK i. Upon receipt of the NAK, A proceeds as above.

c. Frame i is lost in transit and A does not soon send additional frames. B receives nothing and returns neither an ACK nor a NAK. A will time out and retransmit frame i. 2. Damaged or Lost ACK: a. B receives frame i and sends ACK (i+ 1), which is lost in transit. Since ACKs are cumulative (e.g., ACK 6 means that all frames through 5 are acknowledged,) it may be that A will receive a subsequent ACK to a subsequent frame that will do the job of the lost ACK before the associated timer expires. b. If A' s timer expires, A retransmits frame i and all subsequent frames (or alternately, A can create a checkpoint by requesting an ACK). 3. Damaged or Lost NAK: If a NAK is lost, A will eventually time out on the associated frame and retransmit that frame and all subsequent frames.

Go-Back-N ARQ Go-Back-N ARQ

Go-Back-N ARQ Questions & Problems: 1. What is the maximum size of the receive window? Ans. 1 2. What is the maximum size of the transmit window? n Ans. 2-1 Proof: n a) Assume w indow size is 2. n b) Sender transmits all 2 frames. n c) An ACK comes in for frame 2. d) There is no w ay to tell if all the frames have arrived correctly or none of the frames have arrived correctly.

A Bidirectional Sliding Window Protocol

A Bidirectional Go-Back-N ARQ Protocol

A Bidirectional Go-Back-N ARQ Protocol cont.

Selective-Repeat ARQ! A station may send a series of frames determined by the window size, using the sliding window flow control technique.! While no errors occur, the destination station w ill ACK incoming frames as usual. Error Control: Assume that A is sending frames to B. 1. Damaged or Lost Frames: a. A transmits frame i. B detects an error in frame i and has previously successfully received frame i-1. B sends a NAK i, indicating that frame i is rejected. B buffers any subsequent frames received that are within its receiving window. When A receives this NAK, it retransmits frame i only. b. Frame i is lost in transit. A subsequently sends frame i+ 1. B receives frame i+ 1 out of order, and sends a NAK i. B buffers frame i+ 1 and all subsequent frames within its receiving window. When A receives the NAK, it retransmits frame i only.

c. Frame i is lost in transit and A does not soon send additional frames. B receives nothing and returns neither an ACK nor a NAK. A will time out and retransmit frame i only. 2. Damaged or Lost ACK: a. B receives frame i and sends ACK (i+ 1), which is lost in transit. Since ACKs are cumulative, it may be that A will receive a subsequent ACK to a subsequent frame that w ill do the job of the lost ACK before the associated timer expires. b. If A' s timer expires, A retransmits frame i only (or alternately, A can create a checkpoint by requesting an ACK). 3. Damaged or Lost NAK: If a NAK is lost, A will eventually time out on the associated frame and retransmit that frame only.

Selective-Repeat ARQ Selective-Repeat ARQ

Questions & Problems: 1. What is the maximum size of the receive window? Answer: The maximum receive w indow size should be no more than half the range of sequence numbers. 2. What is the maximum size of the transmit window? Answer: Transmit window size + Receive window size 2 n

A Bidirectional Selective Repeat ARQ Protocol

A Bidirectional Selective Repeat ARQ Protocol cont.