Part 2: The Data Link Layer
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 detection
(3.2) Error correction
(4) Flow control
Part B Protocols
(1) Definitions
(2) Elementary data link protocols
(3) Sliding window protocols
(4) Example data link protocol - PPP
CSC 450/550
Part A: Functions
CSC 450/550
(1) Functions of the Data Link Layer
•Provide service interface to the network layer
•Dealing with transmission errors
•Regulating data flow
•Slow receivers not swamped by fast senders
CSC 450/550
(2.1) Framing
CSC 450/550
(2.2) 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.
CSC 450/550
(2.4) Framing
Physical Layer Coding Violations:
Used only when physical medium contains some redundancy
1: high-low
0: low-high
high-high and low-low are used for delimiting frames
CSC 450/550
(3.1) Error-Detecting Codes
Calculation of the
polynomial code
checksum.
CSC 450/550
(3.2) Error-Correcting Codes
CSC 450/550
(4) Flow Control
•Feedback-based flow control
CSC 450/550
Part B: Protocols
(1) Definitions
(2) Elementary data link protocols
(3) Sliding window protocols
(4) Example data link protocol - PPP
CSC 450/550
(1.1) Protocol Definitions
Continued
Some definitions
needed in the
protocols to follow.
These are located in
the file protocol.h.
CSC 450/550
(2) Elementary Data Link Protocols
CSC 450/550
(2.1)
Unrestricted
Simplex
Protocol
CSC 450/550
(2.2)
Simplex
Stop-and-
Wait
Protocol
CSC 450/550
(2.3.1)A Simplex Protocol for a Noisy Channel
A positive
acknowledgement
with retransmission
protocol.
CSC 450/550
Continued
(2.3.2) A Simplex Protocol for a Noisy Channel (ctd.)
CSC 450/550
(3) Sliding Window Protocols (2)
CSC 450/550
Continued
(3.1.2) A One-Bit Sliding Window Protocol (ctd.)
CSC 450/550
(3.1.3) A One-Bit Sliding Window Protocol
CSC 450/550
(3.2.1) A Protocol Using Go Back N
CSC 450/550
Continued
(3.2.3) Sliding Window Protocol Using
Go Back N
CSC 450/550
Continued
(3.2.4) Sliding Window Protocol Using Go Back
N
CSC 450/550
Continued
(3.2.5) Sliding Window Protocol Using Go Back
N
CSC 450/550
(3.2.6) Sliding Window Protocol Using Go
Back N
Simulation of multiple timers in software.
CSC 450/550
(3.3.1) A Sliding Window Protocol Using Selective Repeat
CSC 450/550
Continued
(3.3.2) A Sliding Window Protocol Using Selective Repeat
CSC 450/550
Continued
(3.3.3) A Sliding Window Protocol Using Selective Repeat
CSC 450/550
Continued
(3.3.4) A Sliding Window Protocol Using Selective Repeat
CSC 450/550
(3.3.5) A Sliding Window Protocol Using Selective Repeat
CSC 450/550
(4.1) PPP – Point to Point Protocol
The PPP full frame format for unnumbered mode operation.
CSC 450/550
(4.2) PPP – Point to Point Protocol
CSC 450/550