SlideShare a Scribd company logo
5/24/2023 © Copyright | Sushama Deshmukh 1
Course :
Computer Network (CSE 252)
Ms. Sushama Deshmukh
Assistant Professor in Computer Science & Engineering
Course Instructor
Unit III
Data Link Layer
5/24/2023 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:
5/24/2023 | 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=iYdW0B1olLE
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
o 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.
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.
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.
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
5/24/2023 © 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
5/24/2023 © Copyright | Sushama Deshmukh

More Related Content

PPTX
III_UNIT.pptx
PPTX
III_UNIT.pptx
PPTX
A computer network is a system of interconnected devices that can share resou...
PPTX
Unit 3 - Data Link Layer - Part A
PPTX
Computer Networks (Computer Engineering) Unit-3 Data Link Layer & its Protoco...
PPTX
Data Link Layer_Data Communications&Computer Neworks.pptx
PDF
CN R16 -UNIT-3.pdf
PDF
Data link layer in computer networking.Layer of computer network
III_UNIT.pptx
III_UNIT.pptx
A computer network is a system of interconnected devices that can share resou...
Unit 3 - Data Link Layer - Part A
Computer Networks (Computer Engineering) Unit-3 Data Link Layer & its Protoco...
Data Link Layer_Data Communications&Computer Neworks.pptx
CN R16 -UNIT-3.pdf
Data link layer in computer networking.Layer of computer network

Similar to III_UNIT.ppt (20)

PPTX
Data communication network ppt_Unit_4.pptx
PPTX
Data Communication Unit - II Data Link Layer.pptx
PDF
PPTX
Data Link layer in computer netwroks.pptx
PPTX
DLL services from the computer networks.pptx
PPTX
Gateway and firewall
PDF
Data Communication and Computer Networks unit 2
PPTX
Unit 2
PDF
unit2-210710110327.pdf
PPTX
Data link layer
PPTX
Frame relay
PPTX
datalinklayermukesh-150130061041-conversion-gate01.pptx
PDF
datalinklayermukesh
PPTX
Computer networks unit three presentation
PPTX
Data link layer
PPTX
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
PPT
computer_network_completenotes_unit2.ppt
PPTX
Project on wifi ,LTE and Broadband devices
PPT
Unit 2 ppt 3.ppt
PDF
"Exploring Segment Trees: Concepts and Applications" If you'd like something...
Data communication network ppt_Unit_4.pptx
Data Communication Unit - II Data Link Layer.pptx
Data Link layer in computer netwroks.pptx
DLL services from the computer networks.pptx
Gateway and firewall
Data Communication and Computer Networks unit 2
Unit 2
unit2-210710110327.pdf
Data link layer
Frame relay
datalinklayermukesh-150130061041-conversion-gate01.pptx
datalinklayermukesh
Computer networks unit three presentation
Data link layer
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
computer_network_completenotes_unit2.ppt
Project on wifi ,LTE and Broadband devices
Unit 2 ppt 3.ppt
"Exploring Segment Trees: Concepts and Applications" If you'd like something...
Ad

More from ShantanuDharekar (19)

PPTX
Low-Code Development presentation ppt .pptx
PPTX
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
PPTX
Linear Regression.pptx
PPT
Unit-III_External Memory.ppt
PPTX
Unit 5 Activity and Activity Life Cycle.pptx
PDF
BT1147-A.I.-PPT-CPM.pdf
PPTX
Menstrual Cycle.pptx
PDF
harshfocppt-161122123738.pdf
PPT
Microscopy use this.ppt
PPTX
5_6203803968120817053.pptx
PPT
IV_UNIT.ppt
PPTX
III_UNIT_ErrorCorrecting.pptx
PDF
Presentation (4).pdf
PDF
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
PDF
Presentation (2).pdf
PDF
6 Acoustics and Ultrasonics.pdf
PDF
cybersecurityprt-131017183506-phpapp02.pdf
PDF
7 X-rays.pdf
PDF
8 Crystal structure.pdf
Low-Code Development presentation ppt .pptx
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
Linear Regression.pptx
Unit-III_External Memory.ppt
Unit 5 Activity and Activity Life Cycle.pptx
BT1147-A.I.-PPT-CPM.pdf
Menstrual Cycle.pptx
harshfocppt-161122123738.pdf
Microscopy use this.ppt
5_6203803968120817053.pptx
IV_UNIT.ppt
III_UNIT_ErrorCorrecting.pptx
Presentation (4).pdf
roleofcomputerscienceinbiotechnologyautosaved-201020083249.pdf
Presentation (2).pdf
6 Acoustics and Ultrasonics.pdf
cybersecurityprt-131017183506-phpapp02.pdf
7 X-rays.pdf
8 Crystal structure.pdf
Ad

Recently uploaded (20)

PPTX
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
PPTX
PLC ANALOGUE DONE BY KISMEC KULIM TD 5 .0
PPTX
New professional education PROF-ED-7_103359.pptx
PDF
How NGOs Save Costs with Affordable IT Rentals
PPT
Lines and angles cbse class 9 math chemistry
DOCX
Edukasi kultural untuk kita semua maka c
PPTX
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
PPTX
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
PPT
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
PDF
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
PDF
2_STM32&SecureElements2_STM32&SecureElements
PDF
-DIGITAL-INDIA.pdf one of the most prominent
DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
PPT
Hypersensitivity Namisha1111111111-WPS.ppt
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPTX
Embeded System for Artificial intelligence 2.pptx
PPT
FABRICATION OF MOS FET BJT DEVICES IN NANOMETER
PPTX
A Clear View_ Interpreting Scope Numbers and Features
PPTX
Operating System Processes_Scheduler OSS
PDF
Dynamic Checkweighers and Automatic Weighing Machine Solutions
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
PLC ANALOGUE DONE BY KISMEC KULIM TD 5 .0
New professional education PROF-ED-7_103359.pptx
How NGOs Save Costs with Affordable IT Rentals
Lines and angles cbse class 9 math chemistry
Edukasi kultural untuk kita semua maka c
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
2_STM32&SecureElements2_STM32&SecureElements
-DIGITAL-INDIA.pdf one of the most prominent
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
Hypersensitivity Namisha1111111111-WPS.ppt
Lecture-3-Computer-programming for BS InfoTech
Embeded System for Artificial intelligence 2.pptx
FABRICATION OF MOS FET BJT DEVICES IN NANOMETER
A Clear View_ Interpreting Scope Numbers and Features
Operating System Processes_Scheduler OSS
Dynamic Checkweighers and Automatic Weighing Machine Solutions

III_UNIT.ppt

  • 1. 5/24/2023 © Copyright | Sushama Deshmukh 1 Course : Computer Network (CSE 252) Ms. Sushama Deshmukh Assistant Professor in Computer Science & Engineering Course Instructor
  • 3. 5/24/2023 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: 5/24/2023 | 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=iYdW0B1olLE 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 o 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. 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. 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.
  • 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. 5/24/2023 © 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 5/24/2023 © Copyright | Sushama Deshmukh