SlideShare a Scribd company logo
1 of 20
* Sushama Deshmukh 1
Course :
Computer Network (CSE 252)
Ms. Sushama Deshmukh
Assistant Professor in Computer Science & Engineering
Course Instructor
Unit III
Data Link Layer
* 3
| Sushama Deshmukh
Index
⮚ Data Link Layer- Services Provided to the Network Layer, Framing,
⮚ Error Control, Flow Control, Error Detection and Correction, Error-Correcting
Codes, Error-Detecting Codes.
⮚ Elementary data link protocol, A Utopian Simplex Protocol,
⮚ A Simplex Stop-and-Wait Protocol for an Error-Free Channel, A Simplex Stop-and-
Wait Protocol for a Noisy Channel,
⮚ Sliding Window Protocols, A One-Bit Sliding Window Protocol,
⮚ A Protocol Using Go-Back-N, A Protocol Using Selective Repeat.
Introduction
Data Link Layer:
* | Sushama Deshmukh 4
⮚uses the services of the physical layer
⮚It has a number of functions, including:
1. Providing a well-defined service interface to the network layer.
2. Dealing with transmission errors.
3. Regulating the flow of data so that slow receivers are not swamped by
fast senders.
Frame management forms the heart of what the data link layer does.
Provide services to the network layer
The principal service is transferring data from the network layer. At the network
layer, these data frames are basically addressed and routed.
Services Provided to the Network Layer
1. Unacknowledged Connectionless Service
2. Acknowledged Connectionless Service
3. Acknowledged Connection-Oriented Service
1. Unacknowledged Connectionless Service:
⮚ The data link layer of the sending machine sends independent frames to the
data link layer of the receiving machine.
⮚ The receiving machine does not acknowledge receiving the frame.
⮚ No logical connection is set up between the host machines..
⮚ Error and data loss is not handled
⮚ applicable in Ethernet services and voice communications
Types of Services
2. Acknowledged Connectionless Service:
⮚ The data link layer of the sending machine sends independent frames to the
data link layer of the receiving machine
⮚ No logical connection is set between host machines, but each frame sent by the
source machine is acknowledged by the destination machine on receiving
⮚ If the source does not receive the acknowledgment within a stipulated time, then
it resends the frame.
⮚ This is used in Wifi (IEEE 802.11) services.
Types of Services
3. Acknowledged Connection oriented Service:
⮚ Best service offered
⮚ A logical connection is set between host machines, and the data is transmitted along
this logical path.
⮚ The frames are numbered, that keeps track of loss of frames and also ensures that
frames are received in correct order.
⮚ The service has three distinct phases −
• Set up of connection
• Sending frames
• Release connection
⮚ It is appropriate for satellite communications and long-distance telephone circuits
Types of Services
https://www.youtube.com/watch?v=iYdW0B1ol
LE
Data Link Layer Working
⮚In the physical layer, data transmission involves
synchronised transmission of bits from the
source to the destination. The DLL packs these
bits into frames.
⮚DLL takes the packets from the Network Layer
and encapsulates them into frames. If the frame
size becomes too large, then the packet may be
divided into small sized frames. Smaller sized
frames makes flow control and error control
more efficient.
⮚Then, it sends each frame bit-by-bit on the
hardware.
⮚At receiver’s end, DLL picks up signals from
hardware and assembles them into frames.
Frame:
o the digital data transmission unit
o Is a straight-forward network packet in the packet-switched systems
o is a repeating structure that supports time-division multiplexing in other types of
telecommunication systems.
o A frame has been defined as a protocol data unit on the data link layer in the
computer networking OSI model.
A frame moves bit-by-bit serially and consists of a trailer field and header field that
frames the information. These frames are understandable only by the data link layer.
What is framing in data link layer?
Framing is a point-to-point connection between two devices that consists of a wire in
which data is transmitted as a stream of bits.
Framing
⮚Finding the Beginning of the frame: All stations should be able to find the frame
when it is transmitted. Station finds many frames by seeing out for a unique series of
bits that points to the starting of the frame such as SFD (Starting Frame Delimeter).
⮚How station finds a frame: All stations listen to connected for SFD style by a
sequential circuit. These sequential circuits inform the station when SFD is found.
Station inspects destination address to reject or accept a frame.
⮚Finding End of the Frame: When to finish reading a frame.
Framing Problems
Parts of a Frame
A frame has the following parts −
Frame Header − It contains the source and the destination addresses of the frame.
Payload field − It contains the message to be delivered.
Trailer − It contains the error detection and error correction bits.
Flag − It marks the beginning and end of the frame.
Types of Frame
Fixed-sized Framing: Here the size of the frame is fixed and so
the frame length acts as delimiter of the frame. Consequently, it
does not require additional boundary bits to identify the start
and end of the frame. Example − ATM cells.(Asynchronous Transfer Mode)
Variable – Sized Framing: Here, the size of each frame to be
transmitted may be different. So additional mechanisms are
kept to mark the end of one frame and the beginning of the
next frame.
It is used in local area networks.
Two ways to define frame delimiters in variable sized framing
are,
Length Field − Here, a length field is used that determines the
size of the frame. It is used in Ethernet (IEEE 802.3).
End Delimiter − Here, a pattern is used as a delimiter to
determine the size of frame. It is used in Token Rings. The
problem with this is that ED can occur in the data, This can be
solved by: Byte Stuffing and Bit Stuffing.
https://www.geeksforgeeks.org/framing-in-data-link-
layer/?ref=lbp
Types of Frame
If the pattern occurs in the message, then two approaches are used to avoid the situation −
Byte – Stuffing − A byte is stuffed in the message to differentiate from the delimiter. This is also called
character-oriented framing.
Bit – Stuffing − A pattern of bits of arbitrary length is stuffed in the message to differentiate from the
delimiter. This is also called bit – oriented framing.
Character/Byte Stuffing: Bit Stuffing
Advantages of Framing in Data Link Layer
⮚ Frames are used continuously in the process of time-division multiplexing.
⮚ It facilitates a form to the sender for transmitting a group of valid bits to a receiver.
⮚ Frames also contain headers that include information such as error-checking
codes.
⮚A Frame relay, token ring, ethernet, and other types of data link layer methods have
their frame structures.
⮚Frames allow the data to be divided into multiple recoverable parts that can be
inspected further for corruption.
⮚ It provides a flow control mechanism that manages the frame flow such that the
data congestion does not occur on slow receivers due to fast senders.
⮚ It provides reliable data transfer services between the layers of the peer network.
Advantages of Framing in DLL
Error Control:
The error control function of the data link layer detects the errors in transmitted
frames and re-transmits all the erroneous frames.
Purpose of Error Control :
The function of error control function of the data link layer helps in dealing with
data frames that are damaged in transit, data frames lost in transit and
acknowledged frames that are lost in transmission.
The method used for error control is called Automatic Repeat Request (ARQ) which
is used for the noisy channel.
Example – Stop & Wait ARQ and Sliding Window ARQ
Error Control and Flow Control
Flow Control: It is an important function of the Data Link Layer. It refers to a set of
procedures that tells the sender how much data it can transmit before waiting for
acknowledgment from the receiver.
Purpose of Flow Control :
Any receiving device has a limited speed at which it can process incoming data and
also a limited amount of memory to store incoming data. If the source is sending the
data at a faster rate than the capacity of the receiver, there is a possibility of the
receiver being swamped. The receiver will keep losing some of the frames simply
because they are arriving too quickly and the buffer is also getting filled up.
This will generate waste frames on the network. Therefore, the receiving device must
have some mechanism to inform the sender to send fewer frames or stop
transmission temporarily. In this way, flow control will control the rate of frame
transmission to a value that can be handled by the receiver.
Example – Stop & Wait Protocol
Error Control and Flow Control
* © Copyright | Sushama Deshmukh 19
Web References
• https://www.tutorialspoint.com/what-are-the-data-link-layer-services-provided-to-the-network-layer
• https://www.youtube.com/watch?v=VBAuzvVzOQU
• https://www.youtube.com/watch?v=N1apF49Ih28
• https://www.youtube.com/watch?v=NhpzBldHOYo (Framing 1)
• https://www.youtube.com/watch?v=ckcRxFxeOs4 (Framing 2)
• https://www.youtube.com/watch?v=8sV_fOzJoqI (Framing 3)
• https://www.youtube.com/watch?v=EMrY-8m8D1E (Error Detection and Correction)
• https://www.codingninjas.com/codestudio/library/framing-in-computer-networking
• https://www.tutorialspoint.com/framing-in-data-link-layer
• https://www.geeksforgeeks.org/framing-in-data-link-layer/
20
Thank You
* © Copyright | Sushama Deshmukh

More Related Content

Similar to Data Link Layer Services, Framing, Error Control & Flow Control

Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSDr. SELVAGANESAN S
 
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdfssuser3aa461
 
Dcn ppt by roma
Dcn ppt by romaDcn ppt by roma
Dcn ppt by romaboraroma
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layerroma bora
 
datalinklayermukesh-150130061041-conversion-gate01.pptx
datalinklayermukesh-150130061041-conversion-gate01.pptxdatalinklayermukesh-150130061041-conversion-gate01.pptx
datalinklayermukesh-150130061041-conversion-gate01.pptxlathass5
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxk2w9psdb96
 
Project on wifi ,LTE and Broadband devices
Project on wifi ,LTE and Broadband devicesProject on wifi ,LTE and Broadband devices
Project on wifi ,LTE and Broadband devicesKaran Kumar
 
Osi layer and network protocol
Osi layer and network protocolOsi layer and network protocol
Osi layer and network protocolNayan Sarma
 
Networking and Data Communications
Networking and Data CommunicationsNetworking and Data Communications
Networking and Data Communicationskuramartin
 

Similar to Data Link Layer Services, Framing, Error Control & Flow Control (20)

DLL
DLLDLL
DLL
 
Osi layer model
Osi layer modelOsi layer model
Osi layer model
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdf
 
Dcn ppt by roma
Dcn ppt by romaDcn ppt by roma
Dcn ppt by roma
 
datalinklayermukesh
datalinklayermukeshdatalinklayermukesh
datalinklayermukesh
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layer
 
OSI MODEL
OSI MODEL OSI MODEL
OSI MODEL
 
Data link layer
Data link layer Data link layer
Data link layer
 
datalinklayermukesh-150130061041-conversion-gate01.pptx
datalinklayermukesh-150130061041-conversion-gate01.pptxdatalinklayermukesh-150130061041-conversion-gate01.pptx
datalinklayermukesh-150130061041-conversion-gate01.pptx
 
Gateway and firewall
Gateway and firewallGateway and firewall
Gateway and firewall
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
 
Project on wifi ,LTE and Broadband devices
Project on wifi ,LTE and Broadband devicesProject on wifi ,LTE and Broadband devices
Project on wifi ,LTE and Broadband devices
 
Frame relay
Frame relayFrame relay
Frame relay
 
Osi layer and network protocol
Osi layer and network protocolOsi layer and network protocol
Osi layer and network protocol
 
Networking and Data Communications
Networking and Data CommunicationsNetworking and Data Communications
Networking and Data Communications
 
Network
NetworkNetwork
Network
 
Data link layer
Data link layerData link layer
Data link layer
 
Network layer (Unit 3) part1.pdf
Network  layer (Unit 3) part1.pdfNetwork  layer (Unit 3) part1.pdf
Network layer (Unit 3) part1.pdf
 
Transport laye
Transport laye Transport laye
Transport laye
 

More from ShantanuDharekar

PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptxPROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptxShantanuDharekar
 
Unit-III_External Memory.ppt
Unit-III_External Memory.pptUnit-III_External Memory.ppt
Unit-III_External Memory.pptShantanuDharekar
 
Unit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptxUnit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptxShantanuDharekar
 
harshfocppt-161122123738.pdf
harshfocppt-161122123738.pdfharshfocppt-161122123738.pdf
harshfocppt-161122123738.pdfShantanuDharekar
 
5_6203803968120817053.pptx
5_6203803968120817053.pptx5_6203803968120817053.pptx
5_6203803968120817053.pptxShantanuDharekar
 
III_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptxIII_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptxShantanuDharekar
 
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdfroleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdfShantanuDharekar
 
6 Acoustics and Ultrasonics.pdf
6 Acoustics and Ultrasonics.pdf6 Acoustics and Ultrasonics.pdf
6 Acoustics and Ultrasonics.pdfShantanuDharekar
 
cybersecurityprt-131017183506-phpapp02.pdf
cybersecurityprt-131017183506-phpapp02.pdfcybersecurityprt-131017183506-phpapp02.pdf
cybersecurityprt-131017183506-phpapp02.pdfShantanuDharekar
 

More from ShantanuDharekar (19)

PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptxPROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
 
Linear Regression.pptx
Linear Regression.pptxLinear Regression.pptx
Linear Regression.pptx
 
Unit-III_External Memory.ppt
Unit-III_External Memory.pptUnit-III_External Memory.ppt
Unit-III_External Memory.ppt
 
Unit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptxUnit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptx
 
BT1147-A.I.-PPT-CPM.pdf
BT1147-A.I.-PPT-CPM.pdfBT1147-A.I.-PPT-CPM.pdf
BT1147-A.I.-PPT-CPM.pdf
 
Menstrual Cycle.pptx
Menstrual Cycle.pptxMenstrual Cycle.pptx
Menstrual Cycle.pptx
 
harshfocppt-161122123738.pdf
harshfocppt-161122123738.pdfharshfocppt-161122123738.pdf
harshfocppt-161122123738.pdf
 
Microscopy use this.ppt
Microscopy use this.pptMicroscopy use this.ppt
Microscopy use this.ppt
 
5_6203803968120817053.pptx
5_6203803968120817053.pptx5_6203803968120817053.pptx
5_6203803968120817053.pptx
 
IV_UNIT.ppt
IV_UNIT.pptIV_UNIT.ppt
IV_UNIT.ppt
 
III_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptxIII_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptx
 
III_UNIT.pptx
III_UNIT.pptxIII_UNIT.pptx
III_UNIT.pptx
 
Presentation (4).pdf
Presentation (4).pdfPresentation (4).pdf
Presentation (4).pdf
 
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdfroleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
 
Presentation (2).pdf
Presentation (2).pdfPresentation (2).pdf
Presentation (2).pdf
 
6 Acoustics and Ultrasonics.pdf
6 Acoustics and Ultrasonics.pdf6 Acoustics and Ultrasonics.pdf
6 Acoustics and Ultrasonics.pdf
 
cybersecurityprt-131017183506-phpapp02.pdf
cybersecurityprt-131017183506-phpapp02.pdfcybersecurityprt-131017183506-phpapp02.pdf
cybersecurityprt-131017183506-phpapp02.pdf
 
7 X-rays.pdf
7 X-rays.pdf7 X-rays.pdf
7 X-rays.pdf
 
8 Crystal structure.pdf
8 Crystal structure.pdf8 Crystal structure.pdf
8 Crystal structure.pdf
 

Recently uploaded

《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》
《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》
《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》rnrncn29
 
Interimreport1 January–31 March2024 Elo Mutual Pension Insurance Company
Interimreport1 January–31 March2024 Elo Mutual Pension Insurance CompanyInterimreport1 January–31 March2024 Elo Mutual Pension Insurance Company
Interimreport1 January–31 March2024 Elo Mutual Pension Insurance CompanyTyöeläkeyhtiö Elo
 
Ch 4 investment Intermediate financial Accounting
Ch 4 investment Intermediate financial AccountingCh 4 investment Intermediate financial Accounting
Ch 4 investment Intermediate financial AccountingAbdi118682
 
Stock Market Brief Deck FOR 4/17 video.pdf
Stock Market Brief Deck FOR 4/17 video.pdfStock Market Brief Deck FOR 4/17 video.pdf
Stock Market Brief Deck FOR 4/17 video.pdfMichael Silva
 
Stock Market Brief Deck for 4/24/24 .pdf
Stock Market Brief Deck for 4/24/24 .pdfStock Market Brief Deck for 4/24/24 .pdf
Stock Market Brief Deck for 4/24/24 .pdfMichael Silva
 
Current Economic situation of Pakistan .pptx
Current Economic situation of Pakistan .pptxCurrent Economic situation of Pakistan .pptx
Current Economic situation of Pakistan .pptxuzma244191
 
NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...
NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...
NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...Amil baba
 
NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...
NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...
NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...Amil Baba Dawood bangali
 
Vp Girls near me Delhi Call Now or WhatsApp
Vp Girls near me Delhi Call Now or WhatsAppVp Girls near me Delhi Call Now or WhatsApp
Vp Girls near me Delhi Call Now or WhatsAppmiss dipika
 
Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex
 
BPPG response - Options for Defined Benefit schemes - 19Apr24.pdf
BPPG response - Options for Defined Benefit schemes - 19Apr24.pdfBPPG response - Options for Defined Benefit schemes - 19Apr24.pdf
BPPG response - Options for Defined Benefit schemes - 19Apr24.pdfHenry Tapper
 
chapter_2.ppt The labour market definitions and trends
chapter_2.ppt The labour market definitions and trendschapter_2.ppt The labour market definitions and trends
chapter_2.ppt The labour market definitions and trendslemlemtesfaye192
 
(中央兰开夏大学毕业证学位证成绩单-案例)
(中央兰开夏大学毕业证学位证成绩单-案例)(中央兰开夏大学毕业证学位证成绩单-案例)
(中央兰开夏大学毕业证学位证成绩单-案例)twfkn8xj
 
Economic Risk Factor Update: April 2024 [SlideShare]
Economic Risk Factor Update: April 2024 [SlideShare]Economic Risk Factor Update: April 2024 [SlideShare]
Economic Risk Factor Update: April 2024 [SlideShare]Commonwealth
 
SBP-Market-Operations and market managment
SBP-Market-Operations and market managmentSBP-Market-Operations and market managment
SBP-Market-Operations and market managmentfactical
 
(办理学位证)加拿大萨省大学毕业证成绩单原版一比一
(办理学位证)加拿大萨省大学毕业证成绩单原版一比一(办理学位证)加拿大萨省大学毕业证成绩单原版一比一
(办理学位证)加拿大萨省大学毕业证成绩单原版一比一S SDS
 
NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...
NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...
NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...Amil Baba Dawood bangali
 
Financial Leverage Definition, Advantages, and Disadvantages
Financial Leverage Definition, Advantages, and DisadvantagesFinancial Leverage Definition, Advantages, and Disadvantages
Financial Leverage Definition, Advantages, and Disadvantagesjayjaymabutot13
 
magnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdf
magnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdfmagnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdf
magnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdfHenry Tapper
 
fca-bsps-decision-letter-redacted (1).pdf
fca-bsps-decision-letter-redacted (1).pdffca-bsps-decision-letter-redacted (1).pdf
fca-bsps-decision-letter-redacted (1).pdfHenry Tapper
 

Recently uploaded (20)

《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》
《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》
《加拿大本地办假证-寻找办理Dalhousie毕业证和达尔豪斯大学毕业证书的中介代理》
 
Interimreport1 January–31 March2024 Elo Mutual Pension Insurance Company
Interimreport1 January–31 March2024 Elo Mutual Pension Insurance CompanyInterimreport1 January–31 March2024 Elo Mutual Pension Insurance Company
Interimreport1 January–31 March2024 Elo Mutual Pension Insurance Company
 
Ch 4 investment Intermediate financial Accounting
Ch 4 investment Intermediate financial AccountingCh 4 investment Intermediate financial Accounting
Ch 4 investment Intermediate financial Accounting
 
Stock Market Brief Deck FOR 4/17 video.pdf
Stock Market Brief Deck FOR 4/17 video.pdfStock Market Brief Deck FOR 4/17 video.pdf
Stock Market Brief Deck FOR 4/17 video.pdf
 
Stock Market Brief Deck for 4/24/24 .pdf
Stock Market Brief Deck for 4/24/24 .pdfStock Market Brief Deck for 4/24/24 .pdf
Stock Market Brief Deck for 4/24/24 .pdf
 
Current Economic situation of Pakistan .pptx
Current Economic situation of Pakistan .pptxCurrent Economic situation of Pakistan .pptx
Current Economic situation of Pakistan .pptx
 
NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...
NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...
NO1 WorldWide Genuine vashikaran specialist Vashikaran baba near Lahore Vashi...
 
NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...
NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...
NO1 WorldWide online istikhara for love marriage vashikaran specialist love p...
 
Vp Girls near me Delhi Call Now or WhatsApp
Vp Girls near me Delhi Call Now or WhatsAppVp Girls near me Delhi Call Now or WhatsApp
Vp Girls near me Delhi Call Now or WhatsApp
 
Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024
 
BPPG response - Options for Defined Benefit schemes - 19Apr24.pdf
BPPG response - Options for Defined Benefit schemes - 19Apr24.pdfBPPG response - Options for Defined Benefit schemes - 19Apr24.pdf
BPPG response - Options for Defined Benefit schemes - 19Apr24.pdf
 
chapter_2.ppt The labour market definitions and trends
chapter_2.ppt The labour market definitions and trendschapter_2.ppt The labour market definitions and trends
chapter_2.ppt The labour market definitions and trends
 
(中央兰开夏大学毕业证学位证成绩单-案例)
(中央兰开夏大学毕业证学位证成绩单-案例)(中央兰开夏大学毕业证学位证成绩单-案例)
(中央兰开夏大学毕业证学位证成绩单-案例)
 
Economic Risk Factor Update: April 2024 [SlideShare]
Economic Risk Factor Update: April 2024 [SlideShare]Economic Risk Factor Update: April 2024 [SlideShare]
Economic Risk Factor Update: April 2024 [SlideShare]
 
SBP-Market-Operations and market managment
SBP-Market-Operations and market managmentSBP-Market-Operations and market managment
SBP-Market-Operations and market managment
 
(办理学位证)加拿大萨省大学毕业证成绩单原版一比一
(办理学位证)加拿大萨省大学毕业证成绩单原版一比一(办理学位证)加拿大萨省大学毕业证成绩单原版一比一
(办理学位证)加拿大萨省大学毕业证成绩单原版一比一
 
NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...
NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...
NO1 Certified Ilam kala Jadu Specialist Expert In Bahawalpur, Sargodha, Sialk...
 
Financial Leverage Definition, Advantages, and Disadvantages
Financial Leverage Definition, Advantages, and DisadvantagesFinancial Leverage Definition, Advantages, and Disadvantages
Financial Leverage Definition, Advantages, and Disadvantages
 
magnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdf
magnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdfmagnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdf
magnetic-pensions-a-new-blueprint-for-the-dc-landscape.pdf
 
fca-bsps-decision-letter-redacted (1).pdf
fca-bsps-decision-letter-redacted (1).pdffca-bsps-decision-letter-redacted (1).pdf
fca-bsps-decision-letter-redacted (1).pdf
 

Data Link Layer Services, Framing, Error Control & Flow Control

  • 1. * Sushama Deshmukh 1 Course : Computer Network (CSE 252) Ms. Sushama Deshmukh Assistant Professor in Computer Science & Engineering Course Instructor
  • 3. * 3 | Sushama Deshmukh Index ⮚ Data Link Layer- Services Provided to the Network Layer, Framing, ⮚ Error Control, Flow Control, Error Detection and Correction, Error-Correcting Codes, Error-Detecting Codes. ⮚ Elementary data link protocol, A Utopian Simplex Protocol, ⮚ A Simplex Stop-and-Wait Protocol for an Error-Free Channel, A Simplex Stop-and- Wait Protocol for a Noisy Channel, ⮚ Sliding Window Protocols, A One-Bit Sliding Window Protocol, ⮚ A Protocol Using Go-Back-N, A Protocol Using Selective Repeat.
  • 4. Introduction Data Link Layer: * | Sushama Deshmukh 4 ⮚uses the services of the physical layer ⮚It has a number of functions, including: 1. Providing a well-defined service interface to the network layer. 2. Dealing with transmission errors. 3. Regulating the flow of data so that slow receivers are not swamped by fast senders.
  • 5. Frame management forms the heart of what the data link layer does.
  • 6. Provide services to the network layer The principal service is transferring data from the network layer. At the network layer, these data frames are basically addressed and routed. Services Provided to the Network Layer
  • 7. 1. Unacknowledged Connectionless Service 2. Acknowledged Connectionless Service 3. Acknowledged Connection-Oriented Service 1. Unacknowledged Connectionless Service: ⮚ The data link layer of the sending machine sends independent frames to the data link layer of the receiving machine. ⮚ The receiving machine does not acknowledge receiving the frame. ⮚ No logical connection is set up between the host machines.. ⮚ Error and data loss is not handled ⮚ applicable in Ethernet services and voice communications Types of Services
  • 8. 2. Acknowledged Connectionless Service: ⮚ The data link layer of the sending machine sends independent frames to the data link layer of the receiving machine ⮚ No logical connection is set between host machines, but each frame sent by the source machine is acknowledged by the destination machine on receiving ⮚ If the source does not receive the acknowledgment within a stipulated time, then it resends the frame. ⮚ This is used in Wifi (IEEE 802.11) services. Types of Services
  • 9. 3. Acknowledged Connection oriented Service: ⮚ Best service offered ⮚ A logical connection is set between host machines, and the data is transmitted along this logical path. ⮚ The frames are numbered, that keeps track of loss of frames and also ensures that frames are received in correct order. ⮚ The service has three distinct phases − • Set up of connection • Sending frames • Release connection ⮚ It is appropriate for satellite communications and long-distance telephone circuits Types of Services
  • 10. https://www.youtube.com/watch?v=iYdW0B1ol LE Data Link Layer Working ⮚In the physical layer, data transmission involves synchronised transmission of bits from the source to the destination. The DLL packs these bits into frames. ⮚DLL takes the packets from the Network Layer and encapsulates them into frames. If the frame size becomes too large, then the packet may be divided into small sized frames. Smaller sized frames makes flow control and error control more efficient. ⮚Then, it sends each frame bit-by-bit on the hardware. ⮚At receiver’s end, DLL picks up signals from hardware and assembles them into frames.
  • 11. Frame: o the digital data transmission unit o Is a straight-forward network packet in the packet-switched systems o is a repeating structure that supports time-division multiplexing in other types of telecommunication systems. o A frame has been defined as a protocol data unit on the data link layer in the computer networking OSI model. A frame moves bit-by-bit serially and consists of a trailer field and header field that frames the information. These frames are understandable only by the data link layer. What is framing in data link layer? Framing is a point-to-point connection between two devices that consists of a wire in which data is transmitted as a stream of bits. Framing
  • 12. ⮚Finding the Beginning of the frame: All stations should be able to find the frame when it is transmitted. Station finds many frames by seeing out for a unique series of bits that points to the starting of the frame such as SFD (Starting Frame Delimeter). ⮚How station finds a frame: All stations listen to connected for SFD style by a sequential circuit. These sequential circuits inform the station when SFD is found. Station inspects destination address to reject or accept a frame. ⮚Finding End of the Frame: When to finish reading a frame. Framing Problems
  • 13. Parts of a Frame A frame has the following parts − Frame Header − It contains the source and the destination addresses of the frame. Payload field − It contains the message to be delivered. Trailer − It contains the error detection and error correction bits. Flag − It marks the beginning and end of the frame.
  • 14. Types of Frame Fixed-sized Framing: Here the size of the frame is fixed and so the frame length acts as delimiter of the frame. Consequently, it does not require additional boundary bits to identify the start and end of the frame. Example − ATM cells.(Asynchronous Transfer Mode) Variable – Sized Framing: Here, the size of each frame to be transmitted may be different. So additional mechanisms are kept to mark the end of one frame and the beginning of the next frame. It is used in local area networks. Two ways to define frame delimiters in variable sized framing are, Length Field − Here, a length field is used that determines the size of the frame. It is used in Ethernet (IEEE 802.3). End Delimiter − Here, a pattern is used as a delimiter to determine the size of frame. It is used in Token Rings. The problem with this is that ED can occur in the data, This can be solved by: Byte Stuffing and Bit Stuffing. https://www.geeksforgeeks.org/framing-in-data-link- layer/?ref=lbp
  • 15. Types of Frame If the pattern occurs in the message, then two approaches are used to avoid the situation − Byte – Stuffing − A byte is stuffed in the message to differentiate from the delimiter. This is also called character-oriented framing. Bit – Stuffing − A pattern of bits of arbitrary length is stuffed in the message to differentiate from the delimiter. This is also called bit – oriented framing. Character/Byte Stuffing: Bit Stuffing
  • 16. Advantages of Framing in Data Link Layer ⮚ Frames are used continuously in the process of time-division multiplexing. ⮚ It facilitates a form to the sender for transmitting a group of valid bits to a receiver. ⮚ Frames also contain headers that include information such as error-checking codes. ⮚A Frame relay, token ring, ethernet, and other types of data link layer methods have their frame structures. ⮚Frames allow the data to be divided into multiple recoverable parts that can be inspected further for corruption. ⮚ It provides a flow control mechanism that manages the frame flow such that the data congestion does not occur on slow receivers due to fast senders. ⮚ It provides reliable data transfer services between the layers of the peer network. Advantages of Framing in DLL
  • 17. Error Control: The error control function of the data link layer detects the errors in transmitted frames and re-transmits all the erroneous frames. Purpose of Error Control : The function of error control function of the data link layer helps in dealing with data frames that are damaged in transit, data frames lost in transit and acknowledged frames that are lost in transmission. The method used for error control is called Automatic Repeat Request (ARQ) which is used for the noisy channel. Example – Stop & Wait ARQ and Sliding Window ARQ Error Control and Flow Control
  • 18. Flow Control: It is an important function of the Data Link Layer. It refers to a set of procedures that tells the sender how much data it can transmit before waiting for acknowledgment from the receiver. Purpose of Flow Control : Any receiving device has a limited speed at which it can process incoming data and also a limited amount of memory to store incoming data. If the source is sending the data at a faster rate than the capacity of the receiver, there is a possibility of the receiver being swamped. The receiver will keep losing some of the frames simply because they are arriving too quickly and the buffer is also getting filled up. This will generate waste frames on the network. Therefore, the receiving device must have some mechanism to inform the sender to send fewer frames or stop transmission temporarily. In this way, flow control will control the rate of frame transmission to a value that can be handled by the receiver. Example – Stop & Wait Protocol Error Control and Flow Control
  • 19. * © Copyright | Sushama Deshmukh 19 Web References • https://www.tutorialspoint.com/what-are-the-data-link-layer-services-provided-to-the-network-layer • https://www.youtube.com/watch?v=VBAuzvVzOQU • https://www.youtube.com/watch?v=N1apF49Ih28 • https://www.youtube.com/watch?v=NhpzBldHOYo (Framing 1) • https://www.youtube.com/watch?v=ckcRxFxeOs4 (Framing 2) • https://www.youtube.com/watch?v=8sV_fOzJoqI (Framing 3) • https://www.youtube.com/watch?v=EMrY-8m8D1E (Error Detection and Correction) • https://www.codingninjas.com/codestudio/library/framing-in-computer-networking • https://www.tutorialspoint.com/framing-in-data-link-layer • https://www.geeksforgeeks.org/framing-in-data-link-layer/
  • 20. 20 Thank You * © Copyright | Sushama Deshmukh