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

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.
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 and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.
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 Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Control and Protocols.
Chapter 3 THE DATA LINK LAYER
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
1 Kyung Hee University Data Link Protocols. 2 Kyung Hee University 11 장 Data Link Control and Protocols 11.1 Flow and Error Control 11.2 Stop-and-Wait.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
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 Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
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.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 9: Data Link Control Business Data Communications, 4e.
Data and Computer Communications Data Link Control Protocols.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
Chapter 9: Data Link Control
William Stallings Data and Computer Communications 7th Edition
The Data Link Layer Supplementery Slides
Data and Computer Communications
CIS 321 Data Communications & Networking
Chapter 14: Data Link Control
Chapter 14: Data Link Control
Chapter 14: Data Link Control
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 Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data and Computer Communications, Ninth Edition by William Stallings, (c) Pearson Education - Prentice Hall, 2011

Data Link Control Protocols “Great and enlightened one,” said Ten-teh, as soon as his stupor was lifted, “has this person delivered his message competently, for his mind was still a seared vision of snow and sand and perchance his tongue has stumbled?” “Bend your ears to the wall,” replied the Emperor, “and be assured.” —Kai Lung's Golden Hours, Earnest Bramah

Data Link Control Protocols  when sending data, to achieve control, a layer of logic is added above the Physical layer data link control or a data link control protocol data link control or a data link control protocol  ** to manage exchange of data over a link: frame synchronization frame synchronization flow control flow control error control error control addressing addressing control and data control and data link management link management

Flow Control  ensure sending entity does not overwhelm receiving entity prevent buffer overflow prevent buffer overflow  Flow Control is 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  assumption is all frames are successfully received with no frames lost or arriving with errors

Model of Frame Transmission

Stop and Wait  simplest form of flow control  works well for a message sent in a few large frames stop and wait becomes inadequate if large block of data is split into small frames by source

Stop and Wait Link Utilization

Sliding Windows Flow Control aaa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 2k giving max window size of up to 2k – 1 receiver can ACK frames without permitting further transmission (Receive Not Ready) must send a normal acknowledge to resume iiiif have full-duplex link, can piggyback ACKs

Sliding Window Diagram

Sliding Window Example

Error Control Techniques error detection positive acknowledgment retransmission after timeout negative acknowledgement & retransmission detection and correction of errors such as: lost frames -a frame fails to arrive at the other side damaged frames -frame arrives but some of the bits are in error

Automatic Repeat Request (ARQ)  collective name أسم جماعي for error control mechanisms  effect of ARQ is to turn an unreliable data link into a reliable one  versions of ARQ are: stop-and-wait stop-and-wait go-back-N go-back-N selective-reject selective-reject

Stop and Wait ARQ  source transmits single frame  waits for ACK no other data can be sent until destination’s reply arrivesno other data can be sent until destination’s reply arrives  if frame received is damaged, discard it transmitter has timeout transmitter has timeout if no ACK within timeout, retransmit if no ACK within timeout, retransmit  if ACK is damaged, transmitter will not recognize transmitter will retransmit transmitter will retransmit receiver gets two copies of frame receiver gets two copies of frame use alternate numbering and ACK0 / ACK1 use alternate numbering and ACK0 / ACK1

Stop and Wait ARQ pros simplistic cons inefficient

Go-Back-N ARQ  most commonly used error control  based on sliding-window  use window size to control number of outstanding frames  if no error, ACK as usual  if error, reply with rejection destination will discard that frame and all future frames until frame in error is received correctly destination will discard that frame and all future frames until frame in error is 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 sequence and rejects frame itransmitter sends i+1 and receiver gets frame i+1 out of sequence and rejects frame i or transmitter times out and sends ACK with P bit set which receiver responds to with ACK ior transmitter times out and sends 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 (ARQ)  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 less widely used less widely used  useful for satellite links with long propagation delays

Go-Back-N vs. Selective Reject

High Level Data Link Control (HDLC) most important data link control protocol specified as ISO 3009, ISO 4335 basis for other data link control protocols station types: Primary - controls operation of link Secondary - under control of primary station Combined - issues commands and responses link configurations Unbalanced - 1 primary, multiple secondary Balanced - 2 combined stations

HDLC Transfer Modes Normal Response Mode (NRM) used with an unbalanced configuration primary initiates transfer Asynchronous Balanced Mode (ABM) used with a balanced configuration either station initiates transmission has no polling overhead most widely used Asynchronous Response Mode (ARM) used with unbalanced configuration secondary may transmit without permission from primary rarely used

HDLC Frame Structure uses synchronous transmission uses synchronous transmission transmissions are in the form of frames transmissions are in the form of frames single frame format used single frame format used

Flag Fields and Bit Stuffing  delimit frame at both ends with  receiver hunts for flag sequence to synchronize  bit stuffing used to avoid confusion with data containing flag sequence 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, accepted as flag if next bit is 1 and seventh bit is 0, accepted 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 transmitted or will receive frame  usually 8 bits long  may be extended to multiples of 7 bits leftmost bit indicates if is the last octet (1) or not (0) leftmost bit indicates if is the last octet (1) or not (0)  address allows primary to broadcast

Control Field  different frame types 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 is not used Supervisory - ARQ when piggyback is not used Unnumbered - supplementary link control functions Unnumbered - supplementary link control functions  first 1-2 bits of control field identify frame type

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

Information and Frame Check Sequence (FCS) Fields Information Field in I-frames and some U-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 Initialization either side may request by issuing one of the six set- mode commands Data Transfer with flow and error control using both I and S- frames (RR, RNR, REJ, SREJ) Disconnect when fault noted or at request of higher- layer user sends a disconnect (DISC) frame  consists of exchange of I-frames, S-frames and U-frames  involves three phases

HDLC Operation Example

Summary  data link protocols frame synchronization frame synchronization flow control flow control stop-and-wait, sliding windowstop-and-wait, sliding window ACK frameACK frame  error control lost frame, damaged frame lost frame, damaged frame stop-and-wait, go-back-N, selective-reject ARQs stop-and-wait, go-back-N, selective-reject ARQs  HDLC NRM, ABM,ARM NRM, ABM,ARM