INTERNET ARCHITECTURE & PROTOCOLS

Similar documents
Data Link Control Protocols

Data and Computer Communications

William Stallings Data and Computer Communications. Chapter 7 Data Link Control

Chapter 7: Data Link Control. CS420/520 Axel Krings Page 1

Chapter 7: Data Link Control. Data Link Control Protocols

Flow control: Ensuring the source sending frames does not overflow the receiver

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection


Data Link Control. Claude Rigault ENST Claude Rigault, ENST 11/3/2002. Data Link control 1

This Lecture. BUS Computer Facilities Network Management. Line Discipline. Data Link Layer

3. Data Link Layer 3-2

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

Data Link Layer (cont.) ( h h h ) (Sicherungsschicht) HDLC - 1.

(Sicherungsschicht) Chapter 5 (part 2) [Wa0001] HDLC - 1.

HDLC. King of the Link 2005/03/11. (C) Herbert Haas

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Data Link Control Protocols

Chapter 11 Data Link Control 11.1

4. Error correction and link control. Contents

Chapter 11 Data Link Control 11.1

HDLC (High level Data Link Control)

Line Protocol Basics. HDLC (High level Data Link Control) Agenda. Additional Issues

Data Link Layer. Learning Objectives. Position of the data-link layer. MCA 207, Data Communication & Networking

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

Data Link Protocols DATA LINK PROTOCOLS. Asynchronous Protocols. Types of Data Link Protocols XMODEM. Asynchronous Protocols.

Data Link Layer (part 2)

ERROR AND FLOW CONTROL. Lecture: 10 Instructor Mazhar Hussain

CEG3185 TUT6. Prepared by Zhenxia Zhang Revisited by Jiying Zhao

HDLC. Telecom Systems Chae Y. Lee

Telecom Systems Chae Y. Lee. Contents. Flow Control Error Detection/Correction Link Control (Error Control) Link Performance (Utility)

Institute of Computer Technology - Vienna University of Technology. L02 - Protocol Principles

HDLC PROTOCOL. Michel GARDIE

DATA LINK CONTROL PROTOCOLS

DATA LINK LAYER: NEED

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

I. INTRODUCTION. each station (i.e., computer, telephone, etc.) directly connected to all other stations

The flow of data must not be allowed to overwhelm the receiver

Other Data Link Protocols: Computer Networks by Prof Kamal K Mehta Associate Professor Dept of Computer Science & Engineering

TYPES OF ERRORS. Data can be corrupted during transmission. Some applications require that errors be detected and corrected.

Agenda. Protocol Principles

1.Describe the layer presentation in the TCPIP model and explain the protocol of each layer. July 2014/Jan 2015

ICS 451: Today's plan. Sliding Window Reliable Transmission Acknowledgements Windows and Bandwidth-Delay Product Retransmission Timers Connections

Chapter 3. The Data Link Layer

DLL: Flow Control DLL. Simplex. Fast sender / slow receiver scenario. Various protocols used. Simplified examples implemented in C.

(Refer Slide Time: 2:20)

Chapter 5 Peer-to-Peer Protocols. School of Info. Sci. & Eng. Shandong Univ..

Chapter 11 Data Link Control 11.1

INTERNATIONAL TELECOMMUNICATION UNION. SERIES X: DATA COMMUNICATION NETWORKS: SERVICES AND FACILITIES, INTERFACES Interfaces

Data Link Layer, Part 5 Sliding Window Protocols. Preface

DATA LINK LAYER UNIT 7.

Lecture 5: Flow Control. CSE 123: Computer Networks Alex C. Snoeren

Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione. Link Layer. Fundamentals of Communication Networks

Outline. EEC-484/584 Computer Networks. Data Link Layer Design Issues. Framing. Lecture 6. Wenbing Zhao Review.

INTERNATIONAL TELECOMMUNICATION UNION. SERIES X: DATA NETWORKS AND OPEN SYSTEM COMMUNICATION Public data networks Interfaces

CS 640 Introduction to Computer Networks. Role of data link layer. Today s lecture. Lecture16

CONNECTION-ORIENTED & CONNECTIONLESS NETWORKS

Analyzation of Automatic Repeat Request (ARQ) Protocols

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Chapter 4: Application Protocols. Transport Layer.

The University of Sydney AUSTRALIA. Advanced Communication Networks

Protocol Principles. Framing, FCS and ARQ 2005/03/11. (C) Herbert Haas

Chapter 5 Data-Link Layer: Wired Networks

10.1 REVIEW QUESTIONS

Data Link Layer, Part 4. Exemplary Protocols

The Data Link Layer Chapter 3

Data Link Control. Outline. DLC functions

Appendix. Pioneering Protocols

Chapter 3. The Data Link Layer

Lecture 7: Flow Control"

Automatic Repeat Request Data Link Layer Traffic Management

3GPP TS V7.2.0 ( )

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

3GPP TS V8.0.0 ( )

Peer-to-Peer Protocols and Data Link Layer. Chapter 5 from Communication Networks Leon-Gracia and Widjaja

Transport Protocols and TCP: Review

Your favorite blog : (popularly known as VIJAY JOTANI S BLOG..now in facebook.join ON FB VIJAY

Line Protocols. Protocol Principles. Two Important Principles for Data Communication. Agenda

User Datagram Protocol

Transport Protocols & TCP TCP

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

Discussion Chapter#11

Data Link Control. Surasak Sanguanpong Last updated: 11 July 2000

3GPP TS V ( )

AX.25 Link Access Protocol. for Amateur Packet Radio. Version 2.2 Revision: 28 August 2017

Computer Network : Lecture Notes Nepal Engineering College Compiled by: Junior Professor: Daya Ram Budhathoki Nepal Engineering college, Changunarayan

Sequence Number. Acknowledgment Number. Data

INTERNATIONAL TELECOMMUNICATION UNION. SERIES Q: DIGITAL SUBSCRIBER SIGNALLING SYSTEM No. 1 (DSS 1), DATA LINK LAYER

CS422 Computer Networks

Transmission SIGNALs

POS SDLC EXPLAINED WHAT IS SDLC? SDLC on POS terminals SYNCHRONOUS DATA LINK CONTROL ON PAYMENT TERMINAL NETWORKS

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

! High Data Rates (0.1 Mbps to 10 Gbps)! Short Distances (0.1 to 40 km) ! Low Error Rate (10 to 10 ) Local Area Networks

ET4254 Communications and Networking 1

ETSI TS V7.1.0 ( )

Communication Networks

TCP = Transmission Control Protocol Connection-oriented protocol Provides a reliable unicast end-to-end byte stream over an unreliable internetwork.

ISO/IEC INTERNATIONAL STANDARD

Data Link layer (CN chap 3.1, 3.4, 3.6)

Chapter 11 in Stallings 10 th Edition

Packet Switching. Communication Networks Chapter 10: Connection-Oriented PDNs

ETSI TS V4.1.0 ( )

Transcription:

INTERNET ARCHITECTURE & PROTOCOLS Set # 02 Delivered By: Engr Tahir Niazi

Need for Data Link Layer possibility of transmission errors receiver need to regulate the rate at which data arrive that's why synchronization interfacing techniques are insufficient by themselves. It is necessary to impose a layer of control in each communicating device known as Data Link Control Protocol.

Data Link services Data Link Layer Services are as follows: frame synchronization flow control error control addressing control and data link management

Data Link Layer 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 refers to error detection and retransmission. Error control in the data link layer is based on automatic repeat request (ARQ).

Flow Control Enables receiver to regulate the flow of data from a sender by preventing buffer overflow data is in form of frames and some control information transmission time time taken to emit all bits into medium propagation time time for a bit to traverse the link assume here no errors but varying delays

Model of Frame Transmission

Flow and Error control There are three mechanisms Stop-and-Wait ARQ Go-Back-N ARQ Selective Reject ARQ

Stop and Wait ARQ source transmits single frame wait for ACK if received frame damaged, discard it transmitter has timeout if no ACK within timeout, retransmit if ACK damaged, transmitter will not recognize it transmitter will retransmit receive gets two copies of frame use alternate numbering and ACK0 / ACK1

Stop-and-Wait Operations Normal operation The frame is lost The ACK is lost The ACK is delayed

Stop-and-Wait ARQ

Stop-and-Wait ARQ

Stop-and-Wait ARQ

Stop-and-Wait ARQ

Duplex Stop-and-Wait ARQ

Stop-and-Wait ARQ Inefficient use of bandwidth. After sending each frame,sender must wait for the ACK. It works well for few large frames. large block of data is split into small frames. On a shared medium, such as a LAN, medium cannot be occupied by one station for longer time, causing long delays for other stations.

Sliding Windows Flow control allows multiple numbered frames to be in transit receiver has buffer W long transmitter sends up to W frames without ACK ACK includes number of next frame expected sequence number is bounded by size of field (k) frames are numbered modulo 2 k giving max window size of up to 2 k 1 (why?) receiver can ack frames without permitting further transmission (Receive Not Ready) must send a normal acknowledge to resume if have full-duplex link, can piggyback ACKs

Sliding Window Diagram 3-bit seq. #, Win size = 7

Sliding Windows example

Go-Back- N ARQ based on sliding window if no error, ACK as usual use window to control number of outstanding frames if error, reply with rejection(rej) discard that frame and all future frames until error frame received correctly transmitter must go back and retransmit that frame and all subsequent frames

Go Back N - Handling Damaged Frame error in frame i so receiver rejects frame i transmitter retransmits frames from i Lost Frame frame i lost and either transmitter sends i+1 and receiver gets frame i+1 out of seq and sends REJ i or transmitter times out and send ACK with P bit set which receiver responds to with ACK i transmitter then retransmits frames from i

Go Back N - Handling Damaged Acknowledgement receiver gets frame i, sends ack (i+1) which is lost acks are cumulative, so next ack (i+n) may arrive before transmitter times out on frame i if transmitter times out, it sends ack with P bit set can be repeated a number of times before a reset procedure is initiated Damaged Rejection reject for damaged frame is lost handled as for lost frame when transmitter times out

Go-Back- N ARQ:

Go-Back-N ARQ

Go Back N

Go-Back-N ARQ

Go-Back-N ARQ Inefficient all out of order frames are discarded. Many frames are needed to retransmit,hence inefficiently uses the bandwidth. Solution Retransmit only damaged frames. Selective-Reject ARQ is the solution.

Selective Reject also called selective retransmission only rejected frames are retransmitted subsequent frames are accepted by the receiver and buffered receiver must maintain large enough buffer to save post- SREJ frames until frames retransmitted. Receiver need to put that frame in right order hence less widely used useful for satellite links with long propagation delays

Select Reject:

High Level Data Link Control (HDLC) an important data link control protocol Supports both half-duplex and full-duplex over point-topoint and multipoint links. Implements ARQ mechanisms Topics discussed in this section: Configuration Transfer modes Frames HDLC operation

HDLC Station types: Primary - controls operation of link. Frames issued are called commands. Secondary - under control of primary station. Frames issued are called responses. Combined - issues commands and responses. It defines 2 link configurations. link configurations Unbalanced - 1 primary, multiple secondary Balanced - 2 combined stations

Primary & secondary Stations

Combined Station

HDLC Data Transfer:

HDLC Transfer Modes Normal Response Mode (NRM) unbalanced config, primary initiates transfer Secondary only transmit in response to command by primary. used on multi-drop lines, in which a number of terminals are connected to a host computer. Asynchronous Balanced Mode (ABM) balanced config, either station initiates transmission. Most widely used of the three modes. Efficient use of full-duplex point-to-point link.

HDLC Transfer(cont.) Asynchronous Response Mode (ARM) unbalanced config, secondary may initiate transmit without permission from primary. Primary still responsible for initialization, error recovery and logical disconnection. ARM is rarely used; it is applicable to some special situations in which a secondary may need to initiate transmission.

HDLC Frame Structure

Types of HDLC Frames I-frames (Information-frames) carry user data from the network layer U-frame (Unnumbered Frames) U-frames are used to exchange session management and control information between connected devices. S-frame (Supervisory frames) S-frames are used for flow and error control.

HDLC Frames

Flag Fields delimit frame at both ends with 01111110 seq receiver hunts for flag sequence to synchronize Start and end of the frame Address Field: identifies station that sent or will receive frame Not needed for point-to-point link but added for uniformity

Control Field different for different frame type Information - data transmitted to user (next layer up) Flow and error control piggybacked on information frames Supervisory - ARQ when piggyback not used Unnumbered - supplementary link control

Information & FCS Fields Information Field The information field is present only in I-frames and some U-frames. User data for I frame Management information for U frame Frame Check Sequence Field (FCS) used for error detection either 16 bit CRC or 32 bit CRC

HDLC Operation exchange of 3 types of frames between 2 stations Operation consists of three phases Initialization either side initialize the data link and need to agree on three modes(nrm,abm,arm) Data transfer with flow and error control using both I & S-frames (RR, RNR, REJ, SREJ) Disconnection when requested or fault noted

Connection & disconnection

HDLC Operation Figure shows how U-frames can be used for connection establishment and connection release. Node A asks for a connection with a set asynchronous balanced mode (SABM) frame; node B gives a positive response with an unnumbered acknowledgment (UA) frame. After these two exchanges, data can be transferred between the two nodes (not shown in the figure). After data transfer, node A sends a DISC (disconnect) frame to release the connection; it is confirmed by node B responding with a UA (unnumbered acknowledgment).

Q & A IAP, University of Sargodha, CS & IT Dept