CIS 725 Data Link Layer. Physical Layer Figure 3-1 B. Forouzan, TCP/IP Protocol Suite.

Slides:



Advertisements
Similar presentations
Chapter 3 The Data Link Layer.
Advertisements

The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
5-1 Data Link Layer l Objective: to achieve reliable and efficient communication between 2 adjacent machines l Data link layer design issues n services.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
1 Lecture #12: Data Link Layer. Error Control. C o n t e n t s l Services Provided by DLL l DLL data structures l Error Control Mechanisms –Error correcting.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 10 Introduction to Computer Networks.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao Cleveland State University
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
Circuit Switching (a) Circuit switching. (b) Packet switching.
The Data Link Layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
CSC 450/550 Part 2: The Data Link Layer. CSC 450/550 Summary Part A Functions (1)Functions of the data link layer (2)Framing (3)Error control (3.1) Error.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
Adapted from Tanenbaum's Slides for Computer Networking, 4e The Data Link Layer Chapter 3.
Process-to-Process Delivery:
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
Chapter 3 THE DATA LINK LAYER
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Chapt 3 Data Link Layer1 Data Link Layer Functions –Provides services to network layer Well-defined interface –Framing –Flow control – between adjacent.
Review:. Chapter 3: The Data Link Layer –achieve reliable, efficient communication between two physically connected machines. –Example problems to be.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Data Link Layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Data Link Layer : Services, Framing, Error Detection and Correction2.
The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.
The data link layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
The Data Link Layer. Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Error detection.
The Data Link Layer. Functions of the Data Link Layer Provide service interface to the network layer Frame delineation Dealing with transmission errors.
Chapter 3 The Data Link Layer (60 % practical part)
The Data Link Layer Chapter 3 10/28/2015www.noteshit.com1.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 13.
CIS 725 Data Link Layer. Flow Control Producer-consumer problem Sliding window protocol - Go Back N - Selective retransmission.
The Data Link Layer Chapter 3 1/21/2016www.ishuchita.com1.
Error Correction and Flow Control Martin Weiss. Slide 2 Objectives of this Meeting u Describe different flow control techniques u Describe the major error.
CS/EE 145A Reliable Transmission over Unreliable Channel II Netlab.caltech.edu/course.
COMPUTER NETWORKS. Unit -2 Continue... Physical Layer Connection –Oriented Networks : X.25 Relay Frames Types of cables Co-axial Fiber optics Twisted.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.
1 Computer Communication & Networks Lecture 23 & 24 Transport Layer: UDP and TCP Waleed Ejaz
Data Link Layer. Data link layer The communication between two machines that can directly communicate with each other. Basic property – If bit A is sent.
CS 145A Reliable Communication Netlab.caltech.edu/course.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
Data Link Layer.
Computer Networks NYUS FCSIT Spring 2008 Igor TRAJKOVSKI, Ph.D. Associate Professor
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
Chapter 3 The Data Link Layer.
The Data Link Layer.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Data Link Layer.
Chapter 3 The Data Link Layer
Data Link Layer What does it do?
Chapter 3 – Part 1 The Data Link Layer.
Overview Jaringan Komputer (2)
Chapter 3 The Data Link Layer.
Process-to-Process Delivery:
CS412 Introduction to Computer Networking & Telecommunication
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
The Data Link Layer Chapter
Lecture 7 review Consider a link running the Go-Back-N protocol. Suppose the transmission delay and propagation delay are both 1ms, the window size is.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
EEC-484/584 Computer Networks
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Data Link Layer. Position of the data-link layer.
Presentation transcript:

CIS 725 Data Link Layer

Physical Layer

Figure 3-1 B. Forouzan, TCP/IP Protocol Suite

Figure 3-2 B. Forouzan, TCP/IP Protocol Suite

Figure 3-3 B. Forouzan, TCP/IP Protocol Suite

Figure 3-5

Figure 3-7 B. Forouzan, TCP/IP Protocol Suite

Data Link Layer Physical layer provides unreliable bit stream Services provided by DLL: - framing - message corruption - message reordering - message duplication - message insertion

Functions of the Data Link Layer Relationship between packets and frames.

Services Provided to Network Layer (a) Virtual communication. (b) Actual communication.

Services Provided to Network Layer Placement of the data link protocol.

Unacknowledged connectionless service Acknowledged connectionless service Acknowledged connection oriented service

Framing Converting a stream to frames (1) bit-oriented (2) character-oriented

Framing Bit stuffing (a) The original data. (b) The data as they appear on the line. (c) The data as they are stored in receiver’s memory after destuffing.

Framing (a) A frame delimited by flag bytes. (b) Four examples of byte sequences before and after stuffing.

Corruption Error detection Error correction - forward error control - feedback error control

Error codes Parity bit Block codes Hamming distance

Data transmission protocol S: do avail(nl_buff)  sbuff = nl_buff; deliver sbuff to PL; od R: do avail(pl_buff)  rbuff = pl_buff; deliver rbuff to NL od

S: do avail(nl_buff)  sbuff = nl_buff; R ! sbuff od R: do S ? rbuff  deliver rbuff to NL od

Error detection protocol S: sent = false do !sent /\ avail(nl_buff)  sbuff = nl_buff; R ! Sbuff; sent = true [] R ? ack  sent = false [] R ? nack  R ! sbuff od

Error detection protocol R: do S ? rbuff  if error(rbuff) then S ! nack else deliver(rbuff); S ! ack od

Reordering Detection of reordering Correction

Reordering: sender S: ns = 1; do avail(nl_buff[ns])  sbuff[ns] = nl_buff[ns]; R ! (sbuff[ns],ns); ns++ od

Reordering: receiver R: nr = 1; do S ? (D,x)  rbuff[x] = D; Recd[x] = true [] Recd[nr]  deliver(rbuff[nr]); nr++ od

Message Loss Detection of message loss - timeout non-premature timeout: if a timeout occurs then message is indeed lost premature timeout: if a timeout occurs then a message might have been lost

Message Loss detection S: sbit = 0; sent = false do !sent /\ avail(nl_buff)  sbuff = nl_buff; R ! (sbuff, sbit); sent = true [] timeout  R ! (sbuff, sbit) [] R ? (ack,b)  if b = sbit then sent = false; sbit = !sbit od Alternating Bit Protocol - Premature timeouts

R: rbit = 0; do S ? (rbuff, b)  if (b = rbit) then deliver(rbuff); rbit = ! rbit; S ! (ack, b) od

d,0 a,0 d,1 d,0 a,0 rbit sbit 0 1

R: rbit = 0; do S ? (rbuff, b)  if (b = rbit) then deliver(rbuff); rbit = ! rbit; S ! (ack, b) od

Message Loss detection S: sbit = 0; sent = false do !sent /\ avail(nl_buff)  sbuff = nl_buff; R ! (sbuff, sbit); sent = true [] timeout  R ! (sbuff, sbit) [] R ? (ack,b)  if b = sbit then sent = false; sbit = !sbit od Alternating Bit Protocol - Premature timeouts ; start timer ; cancel timer ; start timer cancel timer

d,0 d,1 d,0 d,1 d,0 a,1 a,0 0 sbit 1 1 a,1 d,0 FIFO channels

timeout d0; ST 5 +d0 3 -d1; ST 7 +d1 +d0 2 +a0 6 -a0 +a1 -a1 +d1 ABP with non-premature timeouts

d0; ST +a0 -d1; ST +a1 timeout d0 +d1 +d0-a0 -a1 +d1 +a0 +a1 +d0 +d1 Premature Timeouts