Data Link Control Protocols

Similar documents
Data and Computer Communications

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

INTERNET ARCHITECTURE & PROTOCOLS

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

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

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

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

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

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

3. Data Link Layer 3-2

4. Error correction and link control. Contents

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

HDLC. Telecom Systems Chae Y. Lee

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

DATA LINK CONTROL PROTOCOLS

Data Link Control Protocols

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

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

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

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

CEG3185 TUT6. Prepared by Zhenxia Zhang Revisited by Jiying Zhao

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

HDLC (High level Data Link Control)

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

Data Link Layer (part 2)

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

DATA LINK LAYER: NEED

Chapter 3. The Data Link Layer

The University of Sydney AUSTRALIA. Advanced Communication Networks

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

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

ERROR AND FLOW CONTROL. Lecture: 10 Instructor Mazhar Hussain

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

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

HDLC PROTOCOL. Michel GARDIE

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

Chapter 11 Data Link Control 11.1

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

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

Data Link Layer, Part 4. Exemplary Protocols

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

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

Transmission SIGNALs

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

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

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

Chapter 11 Data Link Control 11.1

CONNECTION-ORIENTED & CONNECTIONLESS NETWORKS

CS422 Computer Networks

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

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

Appendix. Pioneering Protocols

Data Link Layer: Overview, operations

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

Networks: Access Management

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

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

Agenda. Protocol Principles

Request for Comments: 935 January 1985

Data Link Control. Outline. DLC functions

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

Chapter 5 Data-Link Layer: Wired Networks

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

Transport Protocols & TCP TCP

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

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

Transport Protocols and TCP: Review

ETSI TS V7.1.0 ( )

Jaringan Komputer. Data Link Layer. The Data Link Layer. Study the design principles

Local Networks. Lecture 4 6-Apr-2016

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

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

3GPP TS V8.0.0 ( )

Mobile Transport Layer Lesson 10 Timeout Freezing, Selective Retransmission, Transaction Oriented TCP and Explicit Notification Methods

INTERNATIONAL CIVIL AVIATION ORGANIZATION

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

DATA LINK LAYER UNIT 7.

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

Analyzation of Automatic Repeat Request (ARQ) Protocols

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

User Datagram Protocol

Automatic Repeat Request Data Link Layer Traffic Management

ET4254 Communications and Networking 1

10.1 REVIEW QUESTIONS

ISO/IEC INTERNATIONAL STANDARD

Transport Protocols. Raj Jain. Washington University in St. Louis

3GPP TS V7.2.0 ( )

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

Inst: Chris Davison

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.

Chapter 3. The Data Link Layer

06/05/2008. Chapter 3. The Data Link Layer. Data Link Layer Design Issues. Services Provided to the Network Layer. Error Control Flow Control

Data and Computer Communications

23-3 TCP. Topics discussed in this section: TCP Services TCP Features Segment A TCP Connection Flow Control Error Control 23.22

Communication Networks

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

Chapter 11 in Stallings 10 th Edition

Transcription:

Data Link Control Protocols need layer of logic above Physical to manage exchange of data over a link frame synchronization flow control error control addressing control and data link management

Flow Control ensure sending entity does not overwhelm receiving entity by preventing buffer overflow influenced by: 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 there are varying delays However, each transmitted frame suffers an arbitrary and variable amount of delay before reception.

Model of Frame Transmission vertical-time sequence diagram

Stop and Wait source transmits frame destination receives frame and replies with acknowledgement (ACK) source waits for ACK before sending next destination can stop flow by not send ACK works well for a few large frames Stop and wait becomes inadequate if large block of data is split into small frames (because of limited buffer size) Stop-and-wait procedure may be inadequate, for large frames since only one frame at a time can be in transit.

Stop and Wait Link Utilization Figure 7.2 Stop-and-Wait Link Utilization (transmission time = 1; propagation time = a) propagation delay (the time it takes for a bit to travel from sender to receiver) : a = B / L (L: number of bits in the frame; B: bit length B of a link : the number of bits present on the link at an instance in time when a stream of bits fully occupies the link). For a > 1 : Line is under utilized; For a > 1 : Line is inefficiently utilized;

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 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 Figure 7.3 Sliding-Window Depiction

Sliding Window Example Example 7.2: a maximum window size of seven frames. Receive Not Ready (RNR) message, which acknowledges former frames but forbids transfer of future frames. Thus, RNR 5 means I have received all frames up through number 4 but am unable to accept any more at this time.

Error Control detection and correction of errors such as: lost frames damaged frames common techniques use: error detection (parity bit ch 6) +ve acknowledgment (for successfully received frames) retransmission after timeout (source retransmits frame ) -ve acknowledgement & retransmission (error in frame) Collectively, these mechanisms are all referred to as automatic repeat request (ARQ) 3 versions of ARQ: Stop-and-wait ARQ Go-back-N ARQ Selective-reject ARQ

Stop and Wait source transmits single frame and wait for ACK if received frame damaged, discard it if no ACK within timeout, retransmit if ACK damaged, transmitter will not recognize it transmitter will retransmit receive gets two copies of frame Solution: use alternate numbering and ACK0 / ACK1 Disadvantage: stop-and-wait is inefficient mechanism. Solution: use sliding-window flow control technique in this context, it is referred to as continuous ARQ.

Stop and Wait see example with both types of errors pros and cons simple inefficient Protocol Data Units (PDUs)?

Go Back N based on sliding window ACK RR = receive ready REJ = reject CASE 1: no error, RR as usual use window to control number of outstanding frames CASE 2: error, reply with 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 CASE3: Damaged Frame error in frame i so receiver rejects frame i transmitter retransmits frames from i CASE4: Lost Frame frame i lost and either a) A sends i+1 and B gets frame i+1out of seq and send REJ i b) or A times out and B receives nothing, and B neither sends RR or REJ. Now A send RR with P=1. B interprets the RR frame with a P bit of 1 as a command that must be acknowledged by sending an RR indicating the next frame transmitter then retransmits frames from i

Go Back N - Handling CASE5:Damaged Acknowledgement (RR) LOST RR: B gets frame i, sends RR (i+1) which is lost acks (RRs) are cumulative, so next RR (i+n) may arrive before transmitter times out on frame i A times out, it sends RR with P =1 (similar case 4(b) ) can be repeated a number of times before a reset procedure is initiated CASE6: Damaged REJ Similar to case 4(b)

Selective Reject also called selective retransmission only rejected frames are retransmitted subsequent frames are accepted by the receiver and buffered minimizes retransmission receiver must maintain large enough buffer more complex logic in transmitter hence less widely used useful for satellite links with long propagation delays

Go Back N vs Selective Reject

High Level Data Link Control (HDLC) Application Layer 1 Presentation Layer 2 Session Layer 3 Transport Layer 4 Network Layer 5 Data Link Layer 6 Physical Layer 7 Advance Data Communication Control Procedure(ADCCP: ANSI) <-- HDLC Synchronous Data Link Control (SDLC: IBM) High Level Data Link Control (HDLC: ISO) Link Access Procedure (LAP: CCITT) Link Access Procedure, Balanced ANSI : American National Standards Institute (LAPB: ISO) ISO : International Organization for Standardization CCITT : Consultative Committee for International Telephony and Telegraphy

High Level Data Link Control (HDLC) an important data link control protocol specified as ISO 33009, ISO 4335 station types: Primary - controls other secondary statons Secondary - under control of primary station Combined - controls link only! link configurations Unbalanced - 1 primary, multiple secondary Balanced - 2 combined stations supports almost all kinds of functionalities like half duplex, full duplex, point to point and multi-point networks.

Balance / Unbalanced Config.

HDLC Transfer Modes Normal Response Mode (NRM) unbalanced config, primary initiates transfer used on multi-drop lines, eg host + terminals Asynchronous Balanced Mode (ABM) balanced config, either station initiates transmission, has no polling overhead, widely used Asynchronous Response Mode (ARM) unbalanced config, secondary may initiate transmit without permission from primary, rarely used

HDLC Frame Structure synchronous transmission of frames single frame format used

Flag Fields and Bit Stuffing delimit frame at both ends with 01111110 seq receiver hunts for flag sequence to synchronize bit stuffing used to avoid confusion with data containing flag seq 01111110 0 inserted after every sequence of five 1s if receiver detects five 1s it checks next bit if next bit is 0, it is deleted (was stuffed bit) if next bit is 1 and seventh bit is 0, accept as flag if sixth and seventh bits 1, sender is indicating abort

Address Field identifies secondary station that sent or will receive frame usually 8 bits long may be extended to multiples of 7 bits LSB indicates if is the last octet (1) or not (0) all ones address 11111111 is broadcast

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 first 1-2 bits of control field identify frame type

Control Field use of Poll/Final bit depends on context in command frame is P bit set to1 to solicit (poll) response from peer in response frame is F bit set to 1 to indicate response to soliciting command seq number usually 3 bits can extend to 8 bits as shown below

Information & FCS Fields Information Field in information and some unnumbered frames must contain integral number of octets variable length Frame Check Sequence Field (FCS) used for error detection either 16 bit CRC or 32 bit CRC

HDLC Operation consists of exchange of information, supervisory and unnumbered frames have three phases initialization by either side, set mode & seq data transfer with flow and error control using both I & S-frames (RR, RNR, REJ, SREJ) disconnect when ready or fault noted

HDLC Operation Example