The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.

Slides:



Advertisements
Similar presentations
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.
Advertisements

EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
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.
Framing and Stuffing Advanced Computer Networks. Framing & Stuffing Outline  Synchronous vs Asynchronous Transmissions  Asynchronous Character Transmissions.
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
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,
PART III DATA LINK LAYER. Position of the Data-Link Layer.
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 11 Introduction to Computer Networks.
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.
Bit and Byte Stuffing1. 2 Synchronous versus Asynchronous Transmissions There exists a hierarchy of synchronization tasks: –Bit level : recognizing the.
Circuit Switching (a) Circuit switching. (b) Packet switching.
Institute for Experimental Mathematics Ellernstrasse Essen - Germany packet transmission A.J. Han Vinck January 19, 2010.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao (Part of the slides are based on materials supplied by Dr. Louise Moser at UCSB and.
Networks: Bit and Byte Stuffing
Computer Networks: Bit and Byte Stuffing 1 Bit and Byte Stuffing.
NETWORKING CONCEPTS. DATA LINK LAYER Data Link Control main functions of the data link layer are Data link control media access control. Data link control.
Data Communications and Networking
Data and Computer Communications. The Data Link Layer.
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
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.
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.
Chapter 3 The Data Link Layer (60 % practical part)
UNIT-II Computer Network Data Link Layer. Data Link Layer Prepared by - ROHIT KOSHTA Data Link Layer is second layer of OSI reference model and is placed.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
Layer Two Data Link Layer Collects bits from layer 1 and organizes into frames Passes bits that make up frames to layer 1 for transmission Concerned with.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
COMPUTER NETWORKS Ms. Mrinmoyee Mukherjee Assistant Professor St. Francis Institute of Technology, Mount Poinsur, S.V.P Road, Borivli (west), Mumbai
Framing and Stuffing Advanced Computer Networks. Framing & Stuffing Outline  Synchronous vs Asynchronous Transmissions  Asynchronous Character Transmissions.
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 6 – Digital Data Communications Techniques.
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
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,
24/11/1013-Datalink1 The Data Link Layer Role Services Functions –Framing –Encapsulation –Addressing –Connection Control –Ordered Delivery –Flow Control.
Coding and Error 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.
Part III. Data Link Layer
Data link layer (LLC).
Where we are in the Course
CIS 321 Data Communications & Networking
Chapter 3 The Data Link Layer
Data Link Layer What does it do?
Part III Datalink Layer 10.
Digital data communication (Error control)
Net 221D : Computer Networks Fundamentals
Chapter 3 The Data Link Layer.
CS412 Introduction to Computer Networking & Telecommunication
Chapter 7 Error Detection and Correction
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
Error Detection and Correction
UNIT-II The Data Link Layer.
Networks: Bit and Byte Stuffing
Data Link Layer. Position of the data-link layer.
Presentation transcript:

The Data Link Layer Chapter 3

Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control

Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Regulating data flow

Services Provided to Network Layer (a) Virtual communication. (b) Actual communication. Three Types of Communication 1.Unacknowledged connection less service 2.acknowledged connection less service 3.acknowledged connection Oriented service

Design Issues / Functions of DL Layer  Service Provide To Network layer :  Transfer data from one network layer to another network layer.  Frame Synchronization :  the beginning and End of the frame should be recognized.  Flow Control :  The sender should not send frames faster then the speed of receiver.  Error Control :  Error during transmission in bits must be corrected.  Addressing :  On multipoint link the identity of sender and receiver must be specified.

Design Issues / Functions of DL Layer  Control and data on same link :  The receiver must be able to distinguish control information from the data being transmitted.  Link management :  Procedures for the management of initiation, maintenance and termination of the link between sender and receiver.

Framing  Large block of data may be broken up into small frames at the source because:  limited buffer size at the receiver  A larger block of data has higher probability of error  With smaller frames, errors are detected sooner, and only a smaller amount of data needs to be retransmitted  On a shared medium, such as Ethernet and Wireless LAN, small frame size can prevent one station from occupying medium for long periods

Questions ????  Design Issues for DLL ?  What is flow control ?  What is addressing ?  What is link management ?  What is control and data on same link ?  Three types of services provided by DLL  What is framing ?  What is time based framing ?  Why time based framing is not successful ?  What is char count method for framing ?

Character Count Method A character stream. (a) Without errors. (b) With one error.

Byte Stuffing  Also referred to as character stuffing.  ASCII characters are used as framing delimiters (e.g. DLE STX and DLE ETX) DLESTXDLEETXTransparent Data

Byte Stuffing  The problem occurs when these character patterns occur within the “transparent” data.  Solution: sender stuffs an extra DLE into the data stream just before each occurrence of an “accidental” DLE in the data stream.  The data link layer on the receiving end unstuffs the DLE before giving the data to the network layer. DLESTXDLEETXABDLEHW STXDLEETXABDLEHW

Bit Stuffing  Each frame begins and ends with a special bit pattern called a flag byte [ ].  Whenever sender data link layer encounters five consecutive ones in the data stream, it automatically stuffs a 0 bit into the outgoing stream.  When the receiver sees five consecutive incoming ones followed by a 0 bit, it automatically destuffs the 0 bit before sending the data to the network layer.

Input Stream Stuffed Stream Unstuffed Stream Stuffed bits Bit Stuffing

Error Control  When Sender Sends frames to receiver he will reply either positive or negative.  But the receiver will give reply only if It gets the frames  If because of noise frame lost then ???  So the concept of time was introduce it will manage  Time required to reach to destination  Time required to process it  Time required to reply  If acknowledgement is not received in the time the sender will re transmit frame.

Error Detection: Types of Error  An error occurs when a bit is altered between transmission and reception  Single bit errors  One bit is altered  Adjacent bits are not affected  Burst errors  A cluster of bits with Length B  the first and the last and a number of intermediate bits in error (not necessarily all the bits in the cluster suffer an error)  More common and more difficult to deal with

Flow Control  Handles mismatch between sender’s and receiver’s speed.  Receiver’s buffer limitation.  Feedback-based flow control.  Explicit permission from receiver.  Rate-based flow control.  Implicit mechanism for limiting sending rate.  DLL typically uses feedback-based flow control.

Important Definitions  Code Words :  It is the n bits encoded block that contains message bits and also parity bits  Code Rate :  It is the ratio of the no of Message bits to total no of bits.  Code rate R = k/n  Hamming weight [W(x)] :  X is defined as the no of non zero elements in codeword.  Hamming Distance :  The no of location in which their respective element differs  Codeword 1  Codeword 2

Example  Hamming weight for X =  Ans is = 5  Hamming Distance For    Ans is : 4

Error Detection  When data is transmitted there is a chance of error in bits.  We can get error bits by comparing the codeword  There are several methods for error detection  Parity check  Checksum Error Detection  Cyclic Redundancy Check

Parity Check  Append a parity bit to the end of a block of data  Value of parity bit is such that the new data has even (even parity) or odd (odd parity) number of ones  E.g., original data > (odd parity)  Even number of bit errors goes undetected  E.g., > (undetected!)