Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.

Slides:



Advertisements
Similar presentations
William Stallings Data and Computer Communications 7th Edition
Advertisements

CH. 7 Data Link Control. Requirements & Objectives of Data Link Control Frame Synchronization Flow Control Error Control Addressing Control and Data on.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Telecommunication Technologies
Data Link Protocols(HDLC & PPP). Data Link Protocols The set of specifications used to implement the DLL. DLL Protocols Synchronous Protocols Character-oriented.
HIGH-LEVEL DATA LINK CONTROL (HDLC) HDLC was defined by ISO for use on both point-to-point and multipoint data links. It supports full-duplex communication.
Chapter 14: Data Link Control
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
Data and Computer Communications Updated: 2/9/2009.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Link Control Slide 1 Data Link Control Chapter 7.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
Piggybacking A method to combine a data frame with ACK. Station A and B both have data to send. Instead of sending separately, station A sends a data frame.
Chapter 7 – Data Link Control Protocols
Data Link Control Protocols Data link control protocol Provides a layer of control between systems on a transmission medium referred to as data link. DLC.
1 Data Link Layer Lesson 6 NETS2150/ Position of the data-link layer McGraw-Hill © The McGraw-Hill Companies, Inc., 2004.
William Stallings Data and Computer Communications 7 th Edition Chapter 7 Data Link Control Protocols.
Chapter 9: Data Link Control Business Data Communications, 4e.
Semester EEE449 Computer Networks The Data Link Layer En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room.
Semester Copyright USM EEE442 Computer Networks The Data Link / Network Layer Functions: Flow Control and Error Control En. Mohd Nazri Mahmud.
Data Communications Data Link Control. What Is Data Link Control? The Data Link layer of a model typically has the following responsibilities: 1. Creates.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
MODULE I NETWORKING CONCEPTS.
Network Technology CSE Network Technology CSE3020 Week 6.
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.
Aegis School of Telecommunication Chapter 7 Data Link Control Protocols Telecom Systems I by Dr. M. G. Sharma, Phd.
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data and Computer Communications, Ninth Edition.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Chapter 3 THE DATA LINK LAYER
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
DATA LINK CONTROL PROTOCOLS. 2 Introduction Data link control layer – often abbreviated simply to data link layer – is concerned with the transfer of.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
1 FIT1005 Topic 6 - Data Link Layer Reference: Chapter 7 -Stallings.
FIT – Monash University High-Level Data Link Control
CSCI 465 D ata Communications and Networks Lecture 11 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data and Computer Communications Data Link Control Protocols.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
Chapter 9: Data Link Control Business Data Communications, 4e.
Data and Computer Communications Data Link Control Protocols.
William Stallings Data and Computer Communications Chapter 7 Data Link Control.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
2.10 Flow and Error Control Before that ...
High level Data Link Layer Protocol - HDLC
Chapter 9: Data Link Control
William Stallings Data and Computer Communications 7th Edition
The Data Link Layer Supplementery Slides
Data and Computer Communications
Chap. 4 Data link layer 2.
CIS 321 Data Communications & Networking
Chapter 14: Data Link Control
Chapter 14: Data Link Control
Chapter 14: Data Link Control
Data and Computer Communications
Chapter 14: Data Link Control
Data and Computer Communications
Data and Computer Communications
EEC4113 Data Communication & Multimedia System Chapter 4: Flow Control by Muhazam Mustapha, August 2010.
William Stallings Data and Computer Communications
Chapter 9: Data Link Control
Protocols and the TCP/IP Suite ECE405- Computer Networks
Presentation transcript:

Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols

Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization ( blocks are called frames) frame synchronization ( blocks are called frames) flow control (sending and receiving at same speed) flow control (sending and receiving at same speed) error control ( what level of errors is acceptable) error control ( what level of errors is acceptable) Addressing (identify of sender and receiver) Addressing (identify of sender and receiver) control and data (what is data what is control info) control and data (what is data what is control info) link management ( initiation, maintenance, and termination of a sustained data exchange over a link). link management ( initiation, maintenance, and termination of a sustained data exchange over a link). sending data over a data communications link.

Flow Control  ensure sending entity does not overwhelm receiving entity by preventing buffer overflow by preventing buffer overflow  influenced by: transmission time transmission time time taken to emit all bits into mediumtime taken to emit all bits into medium propagation time propagation time time for a bit to traverse the linktime for a bit to traverse the link  assume here no errors but varying delays The sending station must not send frames at a rate faster than the receiving station can absorb them.

Model of Frame Transmission data are sent in a sequence of frames, with each frame containing a portion of the data and some control information.

Stop and Wait The simplest form of flow control  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

Stop and Wait Link Utilization the stop- and-wait procedure may be inadequat e, mainly since only one frame at a time can be in transit.

Sliding Windows Flow Control  The problem described so far is that only one frame at a time can be in transit at the same time  Efficiency can be greatly improved by allowing multiple frames to be in transit at the same  Animation process shockwave : ulation.html

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 frames are numbered modulo 2 k giving max window size of up to 2 k - 1 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 Each data frame includes a field that holds the sequence number of that frame plus a field that holds the sequence number used for acknowledgment

Sliding Window Diagram

Sliding Window Example

Error Control  detection and correction of errors such as: lost frames lost frames damaged frames damaged frames  common techniques use: error detection error detection positive acknowledgment positive acknowledgment retransmission after timeout retransmission after timeout negative acknowledgement & retransmission negative acknowledgement & retransmission Bit errors introduced by the transmission system should be corrected.

Automatic Repeat Request (ARQ)  collective name for such error control mechanisms, including:  stop and wait  go back N  selective reject (selective retransmission)

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

Stop and Wait  see example with both types of errors  pros and cons simple simple inefficient inefficient

Go Back N  referred to as continuous ARQ.  based on sliding window  if no error, ACK as usual  use window to control number of outstanding frames  if error, reply with rejection discard that frame and all future frames until error frame received correctly discard that frame and all future frames until error frame received correctly transmitter must go back and retransmit that frame and all subsequent frames 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 error in frame i so receiver rejects frame i transmitter retransmits frames from i transmitter retransmits frames from i  Lost Frame frame i lost and either frame i lost and either transmitter sends i+1 and receiver gets frame i+1 out of seq and rejects frame itransmitter sends i+1 and receiver gets frame i+1 out of seq and rejects frame i or transmitter times out and send ACK with P bit set which receiver responds to with ACK ior transmitter times out and send ACK with P bit set which receiver responds to with ACK i transmitter then retransmits frames from 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 lost frame when transmitter times out

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)  an important data link control protocol  specified as ISO 33009, ISO 4335  station types To satisfy a variety of applications : Primary - controls operation of link ( frames are commands ) Primary - controls operation of link ( frames are commands ) Secondary - under control of primary station (issues response) Secondary - under control of primary station (issues response) Combined - issues commands and responses Combined - issues commands and responses a station may issue both commands and responses. a station may issue both commands and responses.

High Level Data Link Control (HDLC) HDLC also defines 2 link configurations. HDLC also defines 2 link configurations.  Unbalanced - 1 primary, 1 secondary supports both full-duplex and half-duplex transmission. supports both full-duplex and half-duplex transmission.  Balanced - 2 combined stations supports both full-duplex and half-duplex transmission supports both full-duplex and half-duplex transmission

HDLC Transfer Modes HDLC defines three data transfer modes:  Normal Response Mode (NRM) Used with unbalanced config Used with unbalanced config primary initiates transfer primary initiates transfer secondary may only transmit data in response to a command from the primary secondary may only transmit data in response to a command from the primary used on multi-drop lines, eg host + terminals used on multi-drop lines, eg host + terminals  Asynchronous Balanced Mode (ABM) balanced config, either station initiates transmission, has no polling overhead, widely used 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 unbalanced config, secondary may initiate transmit without permission from primary, rarely used

HDLC Frame Structure  HDLC uses synchronous transmission of frames  single frame format used

Flag Fields and Bit Stuffing  delimit frame at both ends with seq  A single flag may be used as the closing flag for one frame and the opening flag for the next.  receiver hunts for flag sequence to synchronize  bit stuffing used to avoid confusion with data containing flag seq inserted after every sequence of five 1s 0 inserted after every sequence of five 1s if receiver detects five 1s it checks next bit if receiver detects five 1s it checks next bit if next bit is 0, it is deleted (was stuffed 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 next bit is 1 and seventh bit is 0, accept as flag if sixth and seventh bits 1, sender is indicating abort 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) LSB indicates if is the last octet (1) or not (0)  all ones address is broadcast On a shared link, such as (LAN), the identity of the two stations involved in a transmission must be specified On a shared link, such as (LAN), the identity of the two stations involved in a transmission must be specified.

Control Field  different for different frame type Information - data transmitted to user (next layer up) Information - data transmitted to user (next layer up) Flow and error control piggybacked on information framesFlow and error control piggybacked on information frames Supervisory - ARQ when piggyback not used Supervisory - ARQ when piggyback not used Unnumbered - supplementary link control Unnumbered - supplementary link control  first 1-2 bits of control field identify frame type the receiver must be able to distinguish control information from the data being transmitted.

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 can extend to 8 bits as shown below

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

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

HDLC Operation Example Procedures for the management of initiation, maintenance, and termination of a sustained data exchange over a link. Handshake process

HDLC Operation Example

Summary  introduced need for data link protocols  flow control  error control  HDLC