CS412 Introduction to Computer Networking & Telecommunication

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.
3a. Data Link Layer Protocols
CIS 725 Data Link Layer. Physical Layer Figure 3-1 B. Forouzan, TCP/IP Protocol Suite.
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
CSC 3352 Computer Communications Chapter 3&41 The Link Layer Has 2 main Components The Data Link Layer Medium Access Control (MAC) Examples:SLIP, PPP,
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
Circuit Switching (a) Circuit switching. (b) Packet switching.
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.
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
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.
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 : Services, Framing, Error Detection and Correction2.
CS 453 Computer Networks Lecture 9 Layer 2 – Data Link Layer.
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.
Chapter 3 The Data Link Layer (60 % practical part)
The Data Link Layer Chapter 3 10/28/2015www.noteshit.com1.
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
The Data Link Layer Chapter 3 1/21/2016www.ishuchita.com1.
COMPUTER NETWORKS. Unit -2 Continue... Physical Layer Connection –Oriented Networks : X.25 Relay Frames Types of cables Co-axial Fiber optics Twisted.
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.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
24/11/1013-Datalink1 The Data Link Layer Role Services Functions –Framing –Encapsulation –Addressing –Connection Control –Ordered Delivery –Flow Control.
Computer Communication & Networks
Chapter 3 The Data Link Layer.
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Data Link Layer.
Data link layer (LLC).
Chapter 3 The Data Link Layer
CMPT 371 Data Communications and Networking
Data Link Layer.
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Subject Name: Computer Communication Networks Subject Code: 10EC71
Transport Layer Unit 5.
Chapter 3 – Part 1 The Data Link Layer.
Data Link Layer: Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Overview Jaringan Komputer (2)
Chapter 3 The Data Link Layer.
Process-to-Process Delivery:
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Data Link Layer (cont’d)
The Data Link Layer Chapter
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.
Data Link Layer (cont’d)
UNIT-II The Data Link Layer.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Data Link Control (DLC) Services
Chapter 9: Data Link Control
Data Link Layer. Position of the data-link layer.
Presentation transcript:

CS412 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary Protocols Chi-Cheng Lin, Winona State University

Topics Introduction Framing Error Control Flow Control Elementary Data Link Protocols

Introduction Algorithms to achieve reliable, efficient communication between two adjacent machines at the layer Adjacent: Physically connected by a communication channel

Introduction Issues Services to network layer Framing Error control Determining how bits are grouped into frames Error control Flow control

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

Services to Network Layer Transferring data between network layers of machines

Placement of Data Link Protocol

Services Unacknowledged connectionless service Appropriate for Low error rate, higher layers recover errors Real-time traffic e.g., speech, video Most LANs Acknowledged connectionless service Useful over unreliable channels e.g., wireless systems

Services Acknowledged connection-oriented service Guarantees Each frame sent is received without error All frames sent are received in right order  Network layer always receives correct packets in the order in which the packets were sent Three phases: Connection establishment Variables and counters initialization Frame transmission Connection release Variables, buffers, resources freed up

Framing Fact Data link layer detects/corrects errors Raw bit stream delivered by physical layer is not error free Data link layer detects/corrects errors Framing Computing checksum Handling error if any

Framing How about inserting time gaps? Approaches Trust no time!! Character count Starting/ending character w/ character stuffing Starting/ending flags w/ bit stuffing Physical layer coding violations

Character Count A field in header specifies number of characters in a frame. Problem?

Starting/Ending Characters w/ Character Stuffing A frame delimited by flag bytes. Four examples of byte sequences before and after stuffing.

Starting/Ending Flags w/ bit Stuffing Flag byte (special bit pattern): 01111110 Problem: 6 consecutive 1s in data Solution: Bit Stuffing: Inserting a 0 after 5 consecutive 1s Original Data After Stuffing After received and destuffing

Physical Layer Coding Violations Encoding on physical medium Framing by invalid physical code Use some code that does not represent 0 nor 1 Example Manchester encoding in 802 LAN standard (Ch. 4) Combination of approaches is possible E.g., character count + one other method

Error Control Using acknowledgement Positive Negative Problem: In some cases, sender waits for acknowledgement forever Solution: Timer Problem: Duplicate transmission Solution: Sequence number

Positive Acknowledgement Sender sends a message, waits for acknowledgement from receiver, and then sends next message There’s no free lunch, though  overhead, delay How does it work?

Reliability and Acknowledgement Case 1: no error Sender Receiver Case 2: data lost Sender Receiver Time Data Time Data X Timeout Ack. Data Ack. Timeout and retransmission

Reliability and Acknowledgement Case 3: data error Sender Receiver Case 4: ack. lost Sender Receiver Time Data Time Data Error Timeout Timeout X Data Data Ack. Ack. Timeout and retransmission New problem? Duplicate Solution: Sequence number

Flow Control Needed Problem Solution When frames are transmitted faster than receiver can accept, frames will be lost Solution Flow control by feedback mechanism

Elementary Data Link Protocols Key Assumptions Network, data link, and physical layers are independent processes communicating by sending messages Machine A wants to send a long stream of data to machine B over a reliable, connection-oriented service

Data Structures and Primitives Just think of it as a class containing data only…

Unrestricted Simplex Protocol Utopia protocol Assumptions Unidirectional data transmission Transmitting/receiving network layers are always ready Processing time is ignored Infinite buffer space No errors

Unrestricted Simplex Protocol - Sender

Unrestricted Simplex Protocol - Receiver

Simplex Stop-and-Wait Protocol Assumptions Unidirectional data transmission Transmitting/receiving network layers are always ready Finite processing speed Finite buffer capacity No errors Problem: Sender sends too fast Stop-and-wait Senders sends one frame and then waits for an acknowledgement before processing

Simplex Stop-and-Wait Protocol - Sender

Simplex Stop-and-Wait Protocol - Receiver

Simplex PAR Protocol For noisy channel Positive acknowledgement w/ retransmission Sender waits for a positive acknowledgement before advancing to the next data item A. k. a. ARQ (Automatic Repeat reQuest)

PAR Protocol Assumptions Timer + sequence number Unidirectional data transmission Transmitting/receiving network layers are always ready Finite processing speed Finite buffer capacity Errors, can be detected Timer + sequence number Size (i.e., # bits) of sequence number?

PAR - Sender

PAR - Receiver