SlideShare a Scribd company logo
Data Link Layer Protocols
Done by
Mrs.R.Sabitha
Flow Control: Initial Assumptions
• Simplex Channel
• Infinite buffer capacity with the receiver
• Error free transmission
• Network layer at the senders end is always
ready with data
• No need for flow control
Protocol Definitions
Protocol
Definitions
Unrestricted
Simplex
Protocol
• Infinite capacity in the buffer of the receiver.
• Need for “flow control”
• Stop-n-Wait protocol
– Sender sends a frame
– And waits for a signal in the form of a dummy frame
– No seq no. is required since the line is still error free
Simplex
Stop-and-
Wait
Protocol
• The channel is noisy, frames may be damaged or
lost
• Advantage : data frame reaches intact, ack sent
back and received, next frame sent
• Disadvantage :
– Data frame damaged or lost ..hence no ack – sender
times out and resends .. No problems
– Data frame reaches intact but Ack lost .. Times out
..resends.. Receiver receives duplicate frames..Problem
Problem of Duplicate frames
• Solution :
– Keep a sequence number for each frame to distinguish
between the new frame and a duplicate frame.
• How large should be the sequence number? Or
• What should be minimum number of bits required
for the sequence number?
– The only ambiguity at the receiver is between two
successive frames.. Say m and m+1 and never between
m-1 and m +1 .. Its only after the ack for m-1 reaches
back intact mth frame is sent.. And once mth frame
reaches intact at the receiver’s end .. Story of m-1th
frame is over .. However depending upon whether ack
of mth frame reaches back intact or not either mth or
m+1 th frame is sent .. hence only 1 bit is sufficient
A Simplex Protocol for a Noisy
Channel
A positive
acknowledgement
with retransmission
protocol.
Continued 
A Simplex Protocol for a Noisy Channel
(ctd.)
A positive acknowledgement with retransmission protocol.
• Channel is simplex ..
• So, Now communication is two way .. I.e.
Duplex channel
– Interleave data and ack .. So ..a kind field is
required to specify whether the frame contains
data or ack.
– Piggyback ack on data frame
Sliding Window
Protocol(Duplex)
• At any instant of time, the sender maintains a set
of sequence numbers corresponding to frames it is
permitted to send – this includes
– frames not yet sent
– Frames sent but not yet acknowledged .. May have to
be sent again
This corresponds to the sender’s window. When a packet
comes from the NL ..it is appended in the window and
when an ack arrives for a frame..it is deleted from the
buffer(and from the window)
Sliding Window
Protocol(Duplex)
• Similarly, the receiver also maintains a set of
sequence numbers corresponding to frames it is
permitted to accept.
– When a frame arrives, its seq number is checked..if it
falls in the window it is accepted else discarded .. Once
an ack is sent for a frame it is deleted from the window
so that duplicate frames are not accepted.
• Sliding window gives the DLL the flexibility to
accept the frames in any order but they must be
handed over to the NL in order.
Sliding Window Protocols (2)
A sliding window of size 1, with a 3-bit sequence number.
(a) Initially.
(b) After the first frame has been sent.
(c) After the first frame has been received.
(d) After the first acknowledgement has been received.
Sliding Window Protocols
• A One-Bit Sliding Window
Protocol
• A Protocol Using Go Back N
• A Protocol Using Selective Repeat
A One-Bit Sliding Window
Protocol
Continued 
Data link layer elementry protocols

More Related Content

PDF
Transport layer services
PPT
Chapter 4 data link layer
PPTX
Transport layer
PPTX
HDLC(High level Data Link Control)
PPTX
Destination Sequenced Distance Vector Routing (DSDV)
PDF
IEEE standards 802.3.&802.11
PDF
CSMA /CD PPT ON SLIDESHARE
PPSX
Error control
Transport layer services
Chapter 4 data link layer
Transport layer
HDLC(High level Data Link Control)
Destination Sequenced Distance Vector Routing (DSDV)
IEEE standards 802.3.&802.11
CSMA /CD PPT ON SLIDESHARE
Error control

What's hot (20)

PPTX
Application Layer
PPTX
Computer Network - Network Layer
PPTX
Introduction to data link layer
PPT
Application Layer
PPTX
Data link layer
PPTX
PPTX
Introduction of tcp, ip & udp
PPTX
User datagram protocol (udp)
PPTX
Simple Mail Transfer Protocol
PPT
4. tcp header.ppt
PPTX
Osi reference model
PDF
5. protocol layering
PPTX
Routing protocols
PPTX
TCP/IP Model
PPTX
Transport layer protocol
PPTX
TCP and UDP
PPT
Unit 3 Network Layer PPT
PPT
Circuit and packet_switching
PPT
Lecture 17
PPT
TCP/IP Basics
Application Layer
Computer Network - Network Layer
Introduction to data link layer
Application Layer
Data link layer
Introduction of tcp, ip & udp
User datagram protocol (udp)
Simple Mail Transfer Protocol
4. tcp header.ppt
Osi reference model
5. protocol layering
Routing protocols
TCP/IP Model
Transport layer protocol
TCP and UDP
Unit 3 Network Layer PPT
Circuit and packet_switching
Lecture 17
TCP/IP Basics
Ad

Similar to Data link layer elementry protocols (20)

PPT
CN_unit2.ppt Data Link Layer characteristics, categories
PPT
14-Data Link Control.ppt 14-Data Link Control.ppt 14-Data Link Control.pp
PPT
Data Link Control Protocols
PDF
14-Error Detection Techniques-22-01-2025.pdf
PPT
14 data link control
PPT
High Data Link Control Protocol in Data Link Layer
PPT
Data Link Control.ppt
PPTX
New framing-protocols
PPT
Sliding window protocol
PPT
a_presentation_on_hdlc_and_dlc_computer.ppt
PPTX
Datalink control(framing,protocols)
PPTX
Unit IV_Flow.pptx
PPT
slide_for_HDLC_and_DLC_in_Chapter_Four.ppt
PPT
Introduction to Computer Networks
PPT
JNTUHS-18-12-2024 - Copy.ppt computer networks notes
PPTX
Different protocols for data communication networks
PDF
Introduction to TCP
PPTX
Lecture 36-43_DATA_COMMUNICATION_PPT.pptx
PPTX
Dcn ppt by roma
PPTX
Dcn ppt on data link layer
CN_unit2.ppt Data Link Layer characteristics, categories
14-Data Link Control.ppt 14-Data Link Control.ppt 14-Data Link Control.pp
Data Link Control Protocols
14-Error Detection Techniques-22-01-2025.pdf
14 data link control
High Data Link Control Protocol in Data Link Layer
Data Link Control.ppt
New framing-protocols
Sliding window protocol
a_presentation_on_hdlc_and_dlc_computer.ppt
Datalink control(framing,protocols)
Unit IV_Flow.pptx
slide_for_HDLC_and_DLC_in_Chapter_Four.ppt
Introduction to Computer Networks
JNTUHS-18-12-2024 - Copy.ppt computer networks notes
Different protocols for data communication networks
Introduction to TCP
Lecture 36-43_DATA_COMMUNICATION_PPT.pptx
Dcn ppt by roma
Dcn ppt on data link layer
Ad

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
master seminar digital applications in india
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Basic Mud Logging Guide for educational purpose
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
master seminar digital applications in india
Anesthesia in Laparoscopic Surgery in India
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
O5-L3 Freight Transport Ops (International) V1.pdf
O7-L3 Supply Chain Operations - ICLT Program
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Microbial diseases, their pathogenesis and prophylaxis
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial disease of the cardiovascular and lymphatic systems
Basic Mud Logging Guide for educational purpose
VCE English Exam - Section C Student Revision Booklet
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf

Data link layer elementry protocols

  • 1. Data Link Layer Protocols Done by Mrs.R.Sabitha
  • 2. Flow Control: Initial Assumptions • Simplex Channel • Infinite buffer capacity with the receiver • Error free transmission • Network layer at the senders end is always ready with data • No need for flow control
  • 6. • Infinite capacity in the buffer of the receiver. • Need for “flow control” • Stop-n-Wait protocol – Sender sends a frame – And waits for a signal in the form of a dummy frame – No seq no. is required since the line is still error free
  • 8. • The channel is noisy, frames may be damaged or lost • Advantage : data frame reaches intact, ack sent back and received, next frame sent • Disadvantage : – Data frame damaged or lost ..hence no ack – sender times out and resends .. No problems – Data frame reaches intact but Ack lost .. Times out ..resends.. Receiver receives duplicate frames..Problem
  • 9. Problem of Duplicate frames • Solution : – Keep a sequence number for each frame to distinguish between the new frame and a duplicate frame. • How large should be the sequence number? Or • What should be minimum number of bits required for the sequence number? – The only ambiguity at the receiver is between two successive frames.. Say m and m+1 and never between m-1 and m +1 .. Its only after the ack for m-1 reaches back intact mth frame is sent.. And once mth frame reaches intact at the receiver’s end .. Story of m-1th frame is over .. However depending upon whether ack of mth frame reaches back intact or not either mth or m+1 th frame is sent .. hence only 1 bit is sufficient
  • 10. A Simplex Protocol for a Noisy Channel A positive acknowledgement with retransmission protocol. Continued 
  • 11. A Simplex Protocol for a Noisy Channel (ctd.) A positive acknowledgement with retransmission protocol.
  • 12. • Channel is simplex .. • So, Now communication is two way .. I.e. Duplex channel – Interleave data and ack .. So ..a kind field is required to specify whether the frame contains data or ack. – Piggyback ack on data frame
  • 13. Sliding Window Protocol(Duplex) • At any instant of time, the sender maintains a set of sequence numbers corresponding to frames it is permitted to send – this includes – frames not yet sent – Frames sent but not yet acknowledged .. May have to be sent again This corresponds to the sender’s window. When a packet comes from the NL ..it is appended in the window and when an ack arrives for a frame..it is deleted from the buffer(and from the window)
  • 14. Sliding Window Protocol(Duplex) • Similarly, the receiver also maintains a set of sequence numbers corresponding to frames it is permitted to accept. – When a frame arrives, its seq number is checked..if it falls in the window it is accepted else discarded .. Once an ack is sent for a frame it is deleted from the window so that duplicate frames are not accepted. • Sliding window gives the DLL the flexibility to accept the frames in any order but they must be handed over to the NL in order.
  • 15. Sliding Window Protocols (2) A sliding window of size 1, with a 3-bit sequence number. (a) Initially. (b) After the first frame has been sent. (c) After the first frame has been received. (d) After the first acknowledgement has been received.
  • 16. Sliding Window Protocols • A One-Bit Sliding Window Protocol • A Protocol Using Go Back N • A Protocol Using Selective Repeat
  • 17. A One-Bit Sliding Window Protocol Continued 