SlideShare a Scribd company logo
1
Computer Networks
Data Link Layer Flow Control
Techniques
2
Today’s topic
• Data Link Layer Functions – making sense
of the data
• Framing
• Flow Control
• Error Control
• Link (Media) access
Flow control & Error control
Flow control refers to a set of procedures
used to restrict the amount of data that the
sender can send before waiting for
acknowledgment.
Error control in the data link layer is based
on automatic repeat request (ARQ), which
is the retransmission of data.
Flow control
 To prevent the sender from overwhelming
the receiver
 The receiver should control the flow of
data from the sender
 Stop and wait flow control & ARQ
 Sliding window flow control & ARQ
4
Stop and wait
 Source sends data
 Waits for acknowledgement from receiver
before sending the next frame of data
Very slow and wastes the network
bandwidth !!
5
Stop & wait - operation
Stop & Wait ARQ – Lost frame
Stop & Wait – Lost ACK
Stop & wait – sequencing
In Stop-and-Wait ARQ, numbering frames
prevents the retaining of duplicate frames.
Numbered acknowledgments are needed if
an acknowledgment is delayed and the next
frame is lost.
Stop & wait – delayed Ack
Stop & wait - piggybacking
Stop & wait - Delay
 Round trip time (RTT) =
2 (Transmission time +
Propagation
delay)
 Transmission time = Frame size / data
rate
 Propagation delay = Link length /
Signal speed
 Total time = No. of frames * RTT
Bandwidth utilization in S&W –
Example 1
In a Stop-and-Wait ARQ 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?
Bandwidth utilization in S&W
The bandwidth-delay product is
1  106  20  10-3 = 20,000 bits
The system can send 20,000 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%.
For this reason, for a link with high
bandwidth or long delay, use of Stop-and-
Wait ARQ wastes the capacity of the link.
Sliding window Flow control
 Sender transmits upto n frames without
waiting for ACKs (n = window size )
 As ACKs are received the window is
moved
 Bandwidth is used efficiently by
choosing the value of “n” appropriately
(based on the delay-bandwidth product
& buffer size)
 Sender and receiver decide the value
of “n”
15
Sliding Window Flow
Control…
1 RTT
1
2
3
4
5
6
7
Sliding window Flow control
….
Example : (n=4 say)
Sender transmits frames 0-3
Receiver sends ack for frame 0-1
Sender advances its window to 2-5
and can now send frames 2 to 5
Sliding window - sender
Sliding window - receiver
Sliding window contd
20
Sliding window contd
21
Sliding window – book-
keeping
22
Sliding window – error control
 Go-back n ARQ
 On error, go back and transmit n frames in
sequence. Frames accepted only in order
 Selective repeat ARQ
 Selectively retransmit erroneous frames
 Accept frames in window – out of order
Sliding window – Go back n ARQ
– cumulative ACK
Go-back n ARQ – Lost frame
Window size < seq. no
Selective repeat ARQ
Selective repeat ARQ – window
size
In Selective Repeat ARQ, the size of the
sender and receiver window must be at
most one-half of the maximum
sequence no.
Selective repeat window size
Sliding window – Link utilization
What is the utilization percentage of the
link in Example 1 if the link uses Go-
Back-N ARQ with a 15-frame sequence?
Sliding window – Link utilization
The bandwidth-delay product is still
20,000. The system can send up to 15
frames or 15,000 bits during a round
trip. This means the utilization is
15,000/20,000, or 75 percent.
Of course, if there are damaged frames,
the utilization percentage is much less
because frames have to be resent.
32
Summary
 Flow control & error control
 Stop & wait ARQ
 Operation & performance
 Sliding window flow control
 Go-back n ARQ
 Operation & performance
 Selective repeat ARQ
33
Questions
1. Define flow control.
2. What are the two techniques used for
flow control ?
3. Why is stop and wait slow ?
4. How is sliding window better than stop
and wait ?
5. What is the idea behind sliding window
mechanism ?
Questions
6. What is the difference between go-back
n ARQ and selective repeat ARQ ?
7. What is the relationship between
sequence no. and window size in the
three ARQ schemes ?
8. What happens when an ACK is lost in
selective repeat ARQ ?
Thank you !
36
Acknowledgement
Computer Networking: A Top Down Approach Featuring the
Internet,
2nd edition.
Jim Kurose, Keith Ross
Addison-Wesley, July 2002.
Computer Networks: A systems Approach, 4th edition,
David Peterson, Davie, Morgan Kauffman, 2004.
Thanks to the authors of the following books
for making the slides for their books freely
available. The slides for this course have
been adapted from these sources.

More Related Content

Similar to Networks-part9-DLL-Flowcontrol.pptx

09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
ShaliniKumariGupta1
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocol
eSAT Publishing House
 
Importance of sliding window protocol
Importance of sliding window protocolImportance of sliding window protocol
Importance of sliding window protocol
eSAT Journals
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control
anuragjagetiya
 
Transport layer
Transport layerTransport layer
Transport layer
arvind pandey
 
tcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptx
tcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptxtcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptx
tcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptx
GOKULKANNANMMECLECTC
 
Troubleshooting TCP/IP
Troubleshooting TCP/IPTroubleshooting TCP/IP
Troubleshooting TCP/IP
vijai s
 
Transport layer TCP and UDP.ppt
Transport layer TCP and UDP.pptTransport layer TCP and UDP.ppt
Transport layer TCP and UDP.ppt
AlliVinay1
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)
Hira Awan
 
ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...
ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...
ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...
IRJET Journal
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
JeoffnaRuth
 
UNIT II tramission control
UNIT II tramission controlUNIT II tramission control
UNIT II tramission control
sangusajjan
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
TejasRao8
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
Raji Lakshmi
 
Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...
Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...
Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...
CA Technologies
 
Chap24
Chap24Chap24
Chap24
Waqas !!!!
 
session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.pptsession -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
nanisrikar276711
 
Congestion control
Congestion controlCongestion control
Congestion_Control09.ppt
Congestion_Control09.pptCongestion_Control09.ppt
Congestion_Control09.ppt
tahaniali27
 
Computer networks unit iv
Computer networks    unit ivComputer networks    unit iv
Computer networks unit iv
JAIGANESH SEKAR
 

Similar to Networks-part9-DLL-Flowcontrol.pptx (20)

09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
 
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
 
TCP protocol flow control
TCP protocol flow control TCP protocol flow control
TCP protocol flow control
 
Transport layer
Transport layerTransport layer
Transport layer
 
tcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptx
tcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptxtcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptx
tcpflowcontrolanurag-150513130509-lva1-app6892 (1).pptx
 
Troubleshooting TCP/IP
Troubleshooting TCP/IPTroubleshooting TCP/IP
Troubleshooting TCP/IP
 
Transport layer TCP and UDP.ppt
Transport layer TCP and UDP.pptTransport layer TCP and UDP.ppt
Transport layer TCP and UDP.ppt
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)
 
ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...
ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...
ANALYSIS AND EXPERIMENTAL EVALUATION OF THE TRANSMISSION CONTROL PROTOCOL CON...
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
 
UNIT II tramission control
UNIT II tramission controlUNIT II tramission control
UNIT II tramission control
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...
Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...
Pre-Con Education: Recognizing Your Network's Key Performance Indicators Th...
 
Chap24
Chap24Chap24
Chap24
 
session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.pptsession -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Congestion_Control09.ppt
Congestion_Control09.pptCongestion_Control09.ppt
Congestion_Control09.ppt
 
Computer networks unit iv
Computer networks    unit ivComputer networks    unit iv
Computer networks unit iv
 

Recently uploaded

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 

Recently uploaded (20)

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 

Networks-part9-DLL-Flowcontrol.pptx

  • 1. 1 Computer Networks Data Link Layer Flow Control Techniques
  • 2. 2 Today’s topic • Data Link Layer Functions – making sense of the data • Framing • Flow Control • Error Control • Link (Media) access
  • 3. Flow control & Error control Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment. Error control in the data link layer is based on automatic repeat request (ARQ), which is the retransmission of data.
  • 4. Flow control  To prevent the sender from overwhelming the receiver  The receiver should control the flow of data from the sender  Stop and wait flow control & ARQ  Sliding window flow control & ARQ 4
  • 5. Stop and wait  Source sends data  Waits for acknowledgement from receiver before sending the next frame of data Very slow and wastes the network bandwidth !! 5
  • 6. Stop & wait - operation
  • 7. Stop & Wait ARQ – Lost frame
  • 8. Stop & Wait – Lost ACK
  • 9. Stop & wait – sequencing In Stop-and-Wait ARQ, numbering frames prevents the retaining of duplicate frames. Numbered acknowledgments are needed if an acknowledgment is delayed and the next frame is lost.
  • 10. Stop & wait – delayed Ack
  • 11. Stop & wait - piggybacking
  • 12. Stop & wait - Delay  Round trip time (RTT) = 2 (Transmission time + Propagation delay)  Transmission time = Frame size / data rate  Propagation delay = Link length / Signal speed  Total time = No. of frames * RTT
  • 13. Bandwidth utilization in S&W – Example 1 In a Stop-and-Wait ARQ 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?
  • 14. Bandwidth utilization in S&W The bandwidth-delay product is 1  106  20  10-3 = 20,000 bits The system can send 20,000 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%. For this reason, for a link with high bandwidth or long delay, use of Stop-and- Wait ARQ wastes the capacity of the link.
  • 15. Sliding window Flow control  Sender transmits upto n frames without waiting for ACKs (n = window size )  As ACKs are received the window is moved  Bandwidth is used efficiently by choosing the value of “n” appropriately (based on the delay-bandwidth product & buffer size)  Sender and receiver decide the value of “n” 15
  • 16. Sliding Window Flow Control… 1 RTT 1 2 3 4 5 6 7
  • 17. Sliding window Flow control …. Example : (n=4 say) Sender transmits frames 0-3 Receiver sends ack for frame 0-1 Sender advances its window to 2-5 and can now send frames 2 to 5
  • 19. Sliding window - receiver
  • 22. Sliding window – book- keeping 22
  • 23. Sliding window – error control  Go-back n ARQ  On error, go back and transmit n frames in sequence. Frames accepted only in order  Selective repeat ARQ  Selectively retransmit erroneous frames  Accept frames in window – out of order
  • 24. Sliding window – Go back n ARQ – cumulative ACK
  • 25. Go-back n ARQ – Lost frame
  • 26. Window size < seq. no
  • 28. Selective repeat ARQ – window size In Selective Repeat ARQ, the size of the sender and receiver window must be at most one-half of the maximum sequence no.
  • 30. Sliding window – Link utilization What is the utilization percentage of the link in Example 1 if the link uses Go- Back-N ARQ with a 15-frame sequence?
  • 31. Sliding window – Link utilization The bandwidth-delay product is still 20,000. The system can send up to 15 frames or 15,000 bits during a round trip. This means the utilization is 15,000/20,000, or 75 percent. Of course, if there are damaged frames, the utilization percentage is much less because frames have to be resent.
  • 32. 32 Summary  Flow control & error control  Stop & wait ARQ  Operation & performance  Sliding window flow control  Go-back n ARQ  Operation & performance  Selective repeat ARQ
  • 33. 33 Questions 1. Define flow control. 2. What are the two techniques used for flow control ? 3. Why is stop and wait slow ? 4. How is sliding window better than stop and wait ? 5. What is the idea behind sliding window mechanism ?
  • 34. Questions 6. What is the difference between go-back n ARQ and selective repeat ARQ ? 7. What is the relationship between sequence no. and window size in the three ARQ schemes ? 8. What happens when an ACK is lost in selective repeat ARQ ?
  • 36. 36 Acknowledgement Computer Networking: A Top Down Approach Featuring the Internet, 2nd edition. Jim Kurose, Keith Ross Addison-Wesley, July 2002. Computer Networks: A systems Approach, 4th edition, David Peterson, Davie, Morgan Kauffman, 2004. Thanks to the authors of the following books for making the slides for their books freely available. The slides for this course have been adapted from these sources.