SlideShare a Scribd company logo
1 of 32
Download to read offline
ELEMENTARY DATA LINK
PROTOCOLS
Protocols in the data link layer are designed so that this
layer can perform its basic functions: framing, error
control and flow control. Framing is the process of
dividing bit - streams from physical layer into data
frames whose size ranges from a few hundred to a few
thousand bytes
UNRESTRICTED SIMPLEX PROTOCOL
Data transmission is only done in one direction.
Transmission (Tx) and reception (Rx) are always available;
processing time is irrelevant. This protocol has an infinite buffer
space and no faults, meaning no damaged or lost frames.
The graphic below depicts the Unrestricted Simplex
A SimplexStop-and-Wait Protocol
for an Error-FreeChannel
Stop – and – Wait protocol is data link layer protocol for
transmission of frames over noiseless channels. It provides
unidirectional data transmission with flow control facilities but
without error control facilities. This protocol takes into account the
fact that the receiver has a finite processing speed.
Working of Stop and Wait Protocol
The sender sends the packet, referred to as a data packet if
there is a sender and a receiver. After receiving a data
packet, the receiver sends an acknowledgement. Without
receiving acknowledgement for the first packet, the sender
won't send the second packet.
Primitives Of Stop-and-Wait Protocol
•Sender Side
Send one Data Packet at a
Time.
Send the next packet only after
receiving ACK from the
Previous.
• Receiver Side
 Receive and consume Data
Packet.
 After Consuming packets,
ACK need to be sent (Flow
Control)
SIMPLEX PROTOCOL
FOR NOISY CHANNEL
WHAT IS MEANT BY A
PROTOCOL?
• A protocol refers to a defined set of guidelines and regulations that
control the communication between different devices in a network.
These guidelines specify the way in which data is formatted, timed,
sequenced, and checked for errors during transmission.
NOISY CHANNEL
PROTOCOLS
• A Noisy Channel Protocol is a type of communication
protocol that is used in communication systems where
the transmission channel may introduce errors into
the transmitted data. This type of protocol is designed
to deal with errors in the communication channel and
ensure that the data being transmitted is received
accurately at the receiver end. The main objective of
Noisy Channel Protocols is to minimize the error rate
in the transmitted data by using techniques such as
error detection and correction, flow control, and
retransmission of lost or corrupted data frames.
DIF F E R E N T T Y P E S
• Stop & wait Automatic Repeat Request.
• Go-Back-N Automatic Repeat Request.
• Selective Repeat Automatic Repeat Request.
 Here K=1 at the senders side.
 Then the size of the senders window is,
2k -1
K=1
21 -1 = 2-1 =1
 This is same as the stop and wait protocol.
- A sliding window of size 1, with a 3-bit sequence number-
 Initially.
 After the first frame has been sent.
 After the first frame has been received.
 After the first acknowledgement has received.
One Bit Sliding Window Protocol
• The notation is (seq, ack, packet number).
Part (a): If B waits A’s first frame before sending one of its own. Each frame arrival
brings a new packet for the network layer; there are no duplicates.
Part (b): If A and B simultaneously initiate commication, their first frames cross, and
the data link layers gets into a situation. Half of the frames contain duplicates, even
though there are no transmission errors.
Sliding Protocol
Window
• Sliding Window Algorithms are a method of flow control for
network for network data transfers.
• Data Link Layer uses sliding window algorithm, which allows a
sender to have more than one unacknowledged packet “in
flight” at a time, which improves network throughout.
Key Concepts of the Sliding
Window
Both the sender and receiver maintain a
finite size buffer to hold outgoing and
incoming packets from the other side.
Every packet sent by the sender, must be
acknowledged by the receiver. The sender
maintains a timer for every packet sent, and
any packet acknowledged in a certain time,
is resent.
The sender may send a whole window of
packets before receiving an
acknowledgement for the first packet in the
window. This results in higher transfer rates,
as the sender may send multiple packets
without waiting for each packet’s
acknowledgement.
The Receiver advertises a window
size that tells the sender how
much data it can receive, in order
for the sender not to fill up the
receiver buffers.
Efficiency can also be improved by
making use of the full-duplex line.
B
A
GO BACK ‘N”
It is used when the transmission time for frames is large or the bandwidth
is too large.
When either the bandwidth or the round trip delay is large, we need to
increase the size of sending window.
In networking if a task is often began before the previous task ended.
This is known as PIPELING.
Example 1
Assume that, in a Stop-and-Wait AEQ system, the
bandwidth of the line is 1 Mbps, and 1 bit takes 20 ms to
make a round trip. What is the bandwidth-delay
product? If the system data frames are 1000 bits in
length, what is the utilization percentage of the link?
Solution
The bandwidth-delay product is
The system can send 20,00 bits during the time it takes for the data to go
from the sender to the receiver and then back again. However, the system sends only
1000 bits. We can say that the link utilization is only 1000/20,000, or 5 percent.
For this reason, for a link with a high bandwidth or long delay, the use of Stop-and-
Wait ARQ wastes the capacity of the link.
What is Selective Protocol?
The Selective repeat(SR) protocol is a sliding window-
based data link layer protocol. Following are some
features of SR protocol: The sender window size is
always the same as the receiver window size.
Why Selective Repeat Protocol?
SELECTIVE REPEAT PROTOCOL
 In this protocol, both the sender
and receiver maintain a window of
outstanding and acceptable
sequence numbers, respectively.
 The sender’s window size starts
out at 0 and grows to some
predefined maximum.
 The receiver’s window, in contrast,
is always fixed in size and equal to
the predetermined maximum.
 The receiver has a buffer reserved
for each sequence number within
its fixed window.
Example Of Selective Repeat
Receiver must keep track holes’ in the
sequence of delivered frames.
Sender must maintain one timer per
outstanding packet
Nigga.pdf

More Related Content

Similar to Nigga.pdf

Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layermekind
 
Computer network coe351- part4- final
Computer network coe351- part4- finalComputer network coe351- part4- final
Computer network coe351- part4- finalTaymoor Nazmy
 
Transport Layer In Computer Network
Transport Layer In Computer NetworkTransport Layer In Computer Network
Transport Layer In Computer NetworkDestro Destro
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layerroma bora
 
Data communication network ppt_Unit_4.pptx
Data communication network ppt_Unit_4.pptxData communication network ppt_Unit_4.pptx
Data communication network ppt_Unit_4.pptxBHAVYPATEL34
 
Unit-4 (1).pptx
Unit-4 (1).pptxUnit-4 (1).pptx
Unit-4 (1).pptxpoonamsngr
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalKarthikeyan Dhayalan
 
Congestion control algorithms.pptx
Congestion control algorithms.pptxCongestion control algorithms.pptx
Congestion control algorithms.pptxujjwalmatoliya
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocoleSAT Journals
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocoleSAT Publishing House
 
3a data link layer
3a data link layer 3a data link layer
3a data link layer kavish dani
 
group11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressinggroup11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressingAnitha Selvan
 

Similar to Nigga.pdf (20)

Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
 
Computer network coe351- part4- final
Computer network coe351- part4- finalComputer network coe351- part4- final
Computer network coe351- part4- final
 
III_UNIT.pptx
III_UNIT.pptxIII_UNIT.pptx
III_UNIT.pptx
 
III_UNIT.pptx
III_UNIT.pptxIII_UNIT.pptx
III_UNIT.pptx
 
Transport Layer In Computer Network
Transport Layer In Computer NetworkTransport Layer In Computer Network
Transport Layer In Computer Network
 
Dcn ppt on data link layer
Dcn ppt on data link layerDcn ppt on data link layer
Dcn ppt on data link layer
 
Data communication network ppt_Unit_4.pptx
Data communication network ppt_Unit_4.pptxData communication network ppt_Unit_4.pptx
Data communication network ppt_Unit_4.pptx
 
Unit-4 (1).pptx
Unit-4 (1).pptxUnit-4 (1).pptx
Unit-4 (1).pptx
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network Fundamental
 
Congestion control algorithms.pptx
Congestion control algorithms.pptxCongestion control algorithms.pptx
Congestion control algorithms.pptx
 
Ba25315321
Ba25315321Ba25315321
Ba25315321
 
DLL
DLLDLL
DLL
 
Unit 2
Unit 2Unit 2
Unit 2
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocol
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocol
 
Data link layer
Data link layer Data link layer
Data link layer
 
3a data link layer
3a data link layer 3a data link layer
3a data link layer
 
group11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressinggroup11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressing
 
datalinklayermukesh
datalinklayermukeshdatalinklayermukesh
datalinklayermukesh
 

Recently uploaded

VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service JamshedpurVIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service JamshedpurSuhani Kapoor
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...lizamodels9
 
Catalogue ONG NUOC PPR DE NHAT .pdf
Catalogue ONG NUOC PPR DE NHAT      .pdfCatalogue ONG NUOC PPR DE NHAT      .pdf
Catalogue ONG NUOC PPR DE NHAT .pdfOrient Homes
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Timedelhimodelshub1
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCRsoniya singh
 
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCRsoniya singh
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creationsnakalysalcedo61
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessAggregage
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024christinemoorman
 

Recently uploaded (20)

KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)
 
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service JamshedpurVIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
VIP Call Girl Jamshedpur Aashi 8250192130 Independent Escort Service Jamshedpur
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
 
Catalogue ONG NUOC PPR DE NHAT .pdf
Catalogue ONG NUOC PPR DE NHAT      .pdfCatalogue ONG NUOC PPR DE NHAT      .pdf
Catalogue ONG NUOC PPR DE NHAT .pdf
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Time
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Keshav Puram 🔝 Delhi NCR
 
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Mahipalpur 🔝 Delhi NCR
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creations
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for Success
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024
 

Nigga.pdf

  • 1.
  • 3. Protocols in the data link layer are designed so that this layer can perform its basic functions: framing, error control and flow control. Framing is the process of dividing bit - streams from physical layer into data frames whose size ranges from a few hundred to a few thousand bytes
  • 4. UNRESTRICTED SIMPLEX PROTOCOL Data transmission is only done in one direction. Transmission (Tx) and reception (Rx) are always available; processing time is irrelevant. This protocol has an infinite buffer space and no faults, meaning no damaged or lost frames. The graphic below depicts the Unrestricted Simplex
  • 5.
  • 6. A SimplexStop-and-Wait Protocol for an Error-FreeChannel
  • 7. Stop – and – Wait protocol is data link layer protocol for transmission of frames over noiseless channels. It provides unidirectional data transmission with flow control facilities but without error control facilities. This protocol takes into account the fact that the receiver has a finite processing speed.
  • 8. Working of Stop and Wait Protocol The sender sends the packet, referred to as a data packet if there is a sender and a receiver. After receiving a data packet, the receiver sends an acknowledgement. Without receiving acknowledgement for the first packet, the sender won't send the second packet.
  • 9. Primitives Of Stop-and-Wait Protocol •Sender Side Send one Data Packet at a Time. Send the next packet only after receiving ACK from the Previous. • Receiver Side  Receive and consume Data Packet.  After Consuming packets, ACK need to be sent (Flow Control)
  • 11. WHAT IS MEANT BY A PROTOCOL? • A protocol refers to a defined set of guidelines and regulations that control the communication between different devices in a network. These guidelines specify the way in which data is formatted, timed, sequenced, and checked for errors during transmission.
  • 12.
  • 13. NOISY CHANNEL PROTOCOLS • A Noisy Channel Protocol is a type of communication protocol that is used in communication systems where the transmission channel may introduce errors into the transmitted data. This type of protocol is designed to deal with errors in the communication channel and ensure that the data being transmitted is received accurately at the receiver end. The main objective of Noisy Channel Protocols is to minimize the error rate in the transmitted data by using techniques such as error detection and correction, flow control, and retransmission of lost or corrupted data frames.
  • 14. DIF F E R E N T T Y P E S • Stop & wait Automatic Repeat Request. • Go-Back-N Automatic Repeat Request. • Selective Repeat Automatic Repeat Request.
  • 15.
  • 16.  Here K=1 at the senders side.  Then the size of the senders window is, 2k -1 K=1 21 -1 = 2-1 =1  This is same as the stop and wait protocol.
  • 17. - A sliding window of size 1, with a 3-bit sequence number-  Initially.  After the first frame has been sent.  After the first frame has been received.  After the first acknowledgement has received.
  • 18. One Bit Sliding Window Protocol • The notation is (seq, ack, packet number). Part (a): If B waits A’s first frame before sending one of its own. Each frame arrival brings a new packet for the network layer; there are no duplicates. Part (b): If A and B simultaneously initiate commication, their first frames cross, and the data link layers gets into a situation. Half of the frames contain duplicates, even though there are no transmission errors.
  • 19.
  • 21. • Sliding Window Algorithms are a method of flow control for network for network data transfers. • Data Link Layer uses sliding window algorithm, which allows a sender to have more than one unacknowledged packet “in flight” at a time, which improves network throughout.
  • 22. Key Concepts of the Sliding Window Both the sender and receiver maintain a finite size buffer to hold outgoing and incoming packets from the other side. Every packet sent by the sender, must be acknowledged by the receiver. The sender maintains a timer for every packet sent, and any packet acknowledged in a certain time, is resent. The sender may send a whole window of packets before receiving an acknowledgement for the first packet in the window. This results in higher transfer rates, as the sender may send multiple packets without waiting for each packet’s acknowledgement. The Receiver advertises a window size that tells the sender how much data it can receive, in order for the sender not to fill up the receiver buffers. Efficiency can also be improved by making use of the full-duplex line. B A
  • 23.
  • 24. GO BACK ‘N” It is used when the transmission time for frames is large or the bandwidth is too large. When either the bandwidth or the round trip delay is large, we need to increase the size of sending window. In networking if a task is often began before the previous task ended. This is known as PIPELING.
  • 25. Example 1 Assume that, in a Stop-and-Wait AEQ system, the bandwidth of the line is 1 Mbps, and 1 bit takes 20 ms to make a round trip. What is the bandwidth-delay product? If the system data frames are 1000 bits in length, what is the utilization percentage of the link?
  • 26. Solution The bandwidth-delay product is The system can send 20,00 bits during the time it takes for the data to go from the sender to the receiver and then back again. However, the system sends only 1000 bits. We can say that the link utilization is only 1000/20,000, or 5 percent. For this reason, for a link with a high bandwidth or long delay, the use of Stop-and- Wait ARQ wastes the capacity of the link.
  • 27.
  • 28. What is Selective Protocol? The Selective repeat(SR) protocol is a sliding window- based data link layer protocol. Following are some features of SR protocol: The sender window size is always the same as the receiver window size.
  • 29. Why Selective Repeat Protocol?
  • 30. SELECTIVE REPEAT PROTOCOL  In this protocol, both the sender and receiver maintain a window of outstanding and acceptable sequence numbers, respectively.  The sender’s window size starts out at 0 and grows to some predefined maximum.  The receiver’s window, in contrast, is always fixed in size and equal to the predetermined maximum.  The receiver has a buffer reserved for each sequence number within its fixed window.
  • 31. Example Of Selective Repeat Receiver must keep track holes’ in the sequence of delivered frames. Sender must maintain one timer per outstanding packet