1 K. Salah Module 4.0: Data Link Layer The Logical Link Control (LLC) sublayer –Framing –Flow Control –Error Control The Media Access Control (MAC) sublayer.

Slides:



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

EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
1 Pertemuan 15 Layer Data Link Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
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 Updated: 2/9/2009.
Flow and Error Control. Flow Control Flow control coordinates the amount of data that can be sent before receiving acknowledgement It is one of the most.
8-Reliability and Channel Coding Dr. John P. Abraham Professor UTPA.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Link Control Slide 1 Data Link Control Chapter 7.
Chapter 6 Errors, Error Detection, and Error Control.
Chapter 7 – Data Link Control Protocols
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 12 Introduction to Computer Networks.
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.
Chapter 6: Errors, Error Detection, and Error Control
Chapter 6 Errors, Error Detection, and Error Control
Semester Copyright USM EEE442 Computer Networks The Data Link / Network Layer Functions: Flow Control and Error Control En. Mohd Nazri Mahmud.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
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 Communications and Networking
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
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
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
1 Chapter 6 Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach.
Lecture 3-2: Coding and Error Control (Cont.) ECE
CS3505: DATA LINK LAYER. data link layer  phys. layer subject to errors; not reliable; and only moves information as bits, which alone are not meaningful.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Chapter 6: Errors, Error Detection, and Error Control Data Communications and Computer Networks: A Business User’s Approach Third Edition.
1 CS4550: Computer Networks II Review Data Link Layer.
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.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 5 Data Link Layer.
Telecommunications & Networking Lesson 3. ISO Open System Interconnect (OSI) Application Presentation Session Transport Network Data Link Physical Application.
Data Link Layer. Link Layer The data unit to be transmited at the link layer is called a frame. Why link layer? How can it know where a frame begins and.
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.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
Coding and Error Control
Chapter 9: Data Link Control
The Data Link Layer Supplementery Slides
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Data Link Layer.
Data link layer (LLC).
Chap. 4 Data link layer 2.
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Chapter 10 Data Link Control
William Stallings Data and Computer Communications
Chapter 9: Data Link Control
Data Link Layer. Position of the data-link layer.
Presentation transcript:

1 K. Salah Module 4.0: Data Link Layer The Logical Link Control (LLC) sublayer –Framing –Flow Control –Error Control The Media Access Control (MAC) sublayer –Random Access (CSMA) –Token Passing Ch

2 K. Salah LLC Framing Framing is partitioning a bit stream into discrete units or blocks of data. To distinguish between same bit pattern of real user data and the start-stop, bit stuffing is employed. –E.g., stuff a bit after every 5 th consecutive ones.

3 K. Salah Ethernet/802.3 Frame Preamble is for synchronization Source and destination are 48 bits each and have the MAC address, e.g, 08:00:20:01:D6:2A. The left 3 bytes are vendor specific, and the others are serial number of device assigned by Sun. 00:00:0C is CISCO. This MAC address is different than the IP address !!!

4 K. Salah LLC Flow Control Flow Control is the process that controls the rate at which data is exchanged between two nodes. It involves a feedback mechanism. –Ensuring the sending entity does not overwhelm the receiving entity, and thus preventing buffer overflow. Transmission time: Time taken to emit all bits into medium Propagation time: Time for a bit to traverse the link Two Protocols: –Stop-and-Wait –Sliding Window

5 K. Salah Stop-and-Wait Source transmits frame Destination receives frame and replies with acknowledgement Source waits for ACK before sending next frame Destination can stop flow by not send ACK Works well for a few large frames Only one frame at a time can be in transit. Providing multiple ACKs for one big message is inadequate.

6 K. Salah Sliding Window Allow multiple frames to be in transit Receiver has buffer W long Transmitter can send up to W frames without ACK Each frame is numbered Sequence number bounded by size of field (k) –Frames are numbered modulo 2 k

7 K. Salah

8 Sliding Window Comments If the maximum window size is one, then we have stop-and-wait protocol. If duplex, use piggybacking –Attach ACK with data frames. –If no data to send, use acknowledgement frame –If data but no acknowledgement to send, send last acknowledgement number again.

9 K. Salah LLC Error Control Error correction implies error detection. –Parity bits –CRC Two forms of error correction: –Autonomous error correction (e.g. CRC)  Transmitted frame contains redundancy bits (or check bits) correct bit errors without retransmission.  Using parity bits  Using Hamming code  Expensive operation, especially when having multiple bits. –Error correction through retransmission  Use of ACKs for lost frames  Use of timers for lost ACKs  Use of sequence number for duplicate frames. Few LAN DL do this sequencing.  The concept of error detection, ACK, and retransmission is called automatic repeat request (ARQ).  Stop-and-wait ARQ  Sliding window ARQ »Go-back-n ARQ »Selective reject ARQ

10 K. Salah Stop-and-Wait ARQ For identification, both data and ACK frames are numbered alternately 0 and 1. –Data 0 is acknowledged by ACK 1, meaning Receiver got data 0 and expecting Data 1. –Numbering is important in case of duplicate transmission of data and acks when lost or delayed. 1. Damaged Frames 2. Lost Frames 3. Lost Ack

11 K. Salah Go-back-n Sliding Window ARQ –ACK 3 means frame 0,1, & 2 are received correctly. NAK 3 means frame 3 is lost, in error, and frames 0-2 were received correctly. 1. Damaged Frames2. Lost Frames 3. Lost Ack

12 K. Salah Selective-Reject Sliding Window ARQ Uses ACK as in go-back-n algorithm. Only the specific damaged or lost frame is retransmitted. The frame is resent out of sequence when NAK is received. Better performance –Retransmit only damaged or lost frames. But more complex –Requires storage and search at the receiver. –Extra logic also needed at sender  Need to buffer  Must be able to send frames out of sequence

13 K. Salah Cyclic Redundancy Check (CRC) For a block of k bits transmitter generates n bit sequence Transmit k+n bits which is exactly divisible by some number Receiver divides frame by that number –If no remainder, assume no error Nice animation at:

14 K. Salah CRC Example

15 K. Salah Standard Polynomials (Divisors) CRC-16 used for various file transfers CRC-CCITT serves as an international standard CRC-32 used in Ethernet and token ring LANs. The chances of bad data being received and not detected is 1 in 4.3 billion ( )