SlideShare a Scribd company logo
STOP AND WAIT ARQ


 GROUP B
TEAM MEMBERS

GROUP 14: INDIGO
 AMULYA GURURAJ 1MS07IS006
 BHARGAVI C S   1MS07IS013
 MEGHANA N       1MS07IS050
 TANUSHREE A G 1MS07IS139

GROUP 21: DYNAMIC NETWORKS
 AMEET GONDALI 1MS07IS003
 BHUJANG R       1MS07IS016
 KAUSHIK N       1MS07IS037
 PRAMOD M         1MS07IS070
CONTENTS

   Introduction
   Stop And Wait ARQ
   Sender Algorithm.
   Receiver Algorithm
   Efficiency
   Advantages & Disadvantages
   Applications
   Demo
INTRODUCTION

 Data Communication channels are divided
  into two major types :-
 (a)Noisy Channels.
 (b)Noiseless Channels.
 Noiseless Channels :- An ideal case channel
  put forth by Niquest.
 Noisy Channel :- Practical case channels , put
  forth by Shannon.
Continued
 Noiseless Channels :-
 (1) Simplest
(2) Stop and Wait
 Noisy Channels
(1) Stop and wait ARQ
(2) Go Back N ARQ
(3)Selective Repeat ARQ
STOP AND WAIT ARQ



 Design
 Implementation .
SENDER ALGORITHM
Sn =0
cansend = true;
While(true)
{
  WaitForEvent();
   If(event(RequesTtoSend) AND cansend)
   {
       Getdata();
       MakeFrame(Sn);
       StoreFrame(Sn);
       SendFrame(Sn);
       StartTimer();
       Sn =Sn+1;
       Cansend =false;
    }
SENDER ALGORITHM (CONT..)
WaitForEvent();
   if( event ( Arrival notification))
     {
        ReceiveFrame(ackno);
        If(not corrupted AND ackno == Sn)
         {
             Stop Timer();
             PurgeFrame(Sn-1)
             cansend =true;
         }
     }
If(event(Timeout))
{
        StartTimer();
   ResendFrame(Sn-1);
}
}
RECEIVER SIDE ALGORITHM
Rn =0;
While(true)
{
     WaitForEvent();
  If(event(ArrivalNotification))
    {
        ReceiveFrame();
        If( corrupted ( Frame));
         Sleep();
         If ( seqNo ==Rn)
        {
            Extract data();
            Deliver data();
            Rn =Rn+1;
       }
      SendFrame(Rn);
   }
}
EFFICIENCY

Performance Analysis of Stop and
 Wait ARQ
Parameters:
 TRANSF: Frame transmission time at sender side
 TRANSA: ACK transmission time at receiver
  side
 PROP: propagation delay
 PROC: Frame processing time
 p: Probability of frame error at sender side
 q: Probability of frame error at receiver side
 TIMEOUT: Sender time out
Calculations

 Case 1 : Efficiency in transmitting an error free
  packet
Time taken to transmit an error free packet is:
 Ts = TRANSF + TRANSA + 2(PROC+PROP)
In this case efficiency is:
 E = TRANSF/Ts
This occurs with the probability (1-p)*(1-q)
Case 2: Efficiency in transmitting an
error packet
The delivery of an error packet takes
place with the probability:
    r = p + (1-p)*q
The average packet delay in ARQ
scheme is
 D = TS + TIMEOUT(p/(1-p))
In this case efficiency is:
 E = TRANSF/D
ADVANTAGES

 Simple to implement.
 Frames numbering is modulo-2 i.e, only 1 bit
  is required.
 Can be used for noisy channels.
 Has both error and flow control mechanism.
 Has timer implementation.
DISADVANTAGES

 When propagation delay is long, it is extremely
  inefficient.
 Only one frame is sent at a time.
 Timer should be set for each individual frame.
 No pipelining.
 Sender window size is 1( disadvantage over Go
  back n ARQ).
 Receiver window size is 1( disadvantage over
  selective repeat ARQ).
APPLICATIONS

 IBM Binary Synchronous Communications
  protocol (Bisync): character-oriented
  protocol

 XModem: modem file transfer protocol


 Trivial File Transfer Protocol : simple protocol
  for file transfer over UDP
THANK YOU

More Related Content

PPT
Stop and Wait arq
PPTX
Go Back N Arq1
PPTX
Stop And Wait
PPTX
Go back-n protocol
PPTX
go back n protocol
PPTX
Advance Repeat reQuest (ARQ)
PPTX
Stop And Wait ARQ
PDF
Stop and-wait protocol
Stop and Wait arq
Go Back N Arq1
Stop And Wait
Go back-n protocol
go back n protocol
Advance Repeat reQuest (ARQ)
Stop And Wait ARQ
Stop and-wait protocol

What's hot (20)

PPTX
Simplex stop and_wait_protocol
PPTX
GO BACK N PROTOCOL
PPT
Chapter 11
PPTX
Stop-and-Wait ARQ Protocol
PPT
3a data link layer continued
PDF
Sliding window protocol
PPTX
Sliding window protocol(ARQ technique)
PDF
Cse3213 11 flow_errorcontrol_f2010
PDF
Importance of sliding window protocol
PPT
Data link control
PPT
csma ca
PPT
Module15: Sliding Windows Protocol and Error Control
PPT
Computer network
PPT
PPT
Sliding window and error control
PDF
Importance of sliding window protocol
PPT
Flow & Error Control
PPT
Selective repeat protocol
PPT
Chapter 12
Simplex stop and_wait_protocol
GO BACK N PROTOCOL
Chapter 11
Stop-and-Wait ARQ Protocol
3a data link layer continued
Sliding window protocol
Sliding window protocol(ARQ technique)
Cse3213 11 flow_errorcontrol_f2010
Importance of sliding window protocol
Data link control
csma ca
Module15: Sliding Windows Protocol and Error Control
Computer network
Sliding window and error control
Importance of sliding window protocol
Flow & Error Control
Selective repeat protocol
Chapter 12
Ad

Viewers also liked (6)

PPTX
Frequency Hopping Network
PPTX
Vanet routing protocols issues and challenges
PPT
VANET, Security and Trust
PPTX
Go Back N ARQ
PPT
Introduction To Wireless Fading Channels
PPTX
Slideshare ppt
Frequency Hopping Network
Vanet routing protocols issues and challenges
VANET, Security and Trust
Go Back N ARQ
Introduction To Wireless Fading Channels
Slideshare ppt
Ad

Similar to Group B Ppt (20)

PPT
Group B
PPTX
Reliablt transmission
PPTX
Chapter 11: Data Link Control
PDF
14-Error Detection Techniques-22-01-2025.pdf
PPTX
DLC_23 (3).pptx
PPTX
Unit 2 data link control
PPTX
Data link control & protocol concepts
PPTX
Flow control & error control
PPT
Flow Control & Error control in Data Link Layer .ppt
PPTX
jjjjjjjjjjjjjjjjjjjjjjjjjjjLecture 11.pptx
PPT
SYBSC IT COMPUTER NETWORKS UNIT III Data Link Control
PPT
3a data link layer
PPTX
Datalink control(framing,protocols)
PPTX
Flow Control and Error Control
PPT
DLL Part_1.ppt
PPT
Dcn unit 2 ppt
PDF
document.pdf
PPT
stop and wait
PPT
14-Data Link Control.ppt 14-Data Link Control.ppt 14-Data Link Control.pp
PPT
Flow Control (1).ppt
Group B
Reliablt transmission
Chapter 11: Data Link Control
14-Error Detection Techniques-22-01-2025.pdf
DLC_23 (3).pptx
Unit 2 data link control
Data link control & protocol concepts
Flow control & error control
Flow Control & Error control in Data Link Layer .ppt
jjjjjjjjjjjjjjjjjjjjjjjjjjjLecture 11.pptx
SYBSC IT COMPUTER NETWORKS UNIT III Data Link Control
3a data link layer
Datalink control(framing,protocols)
Flow Control and Error Control
DLL Part_1.ppt
Dcn unit 2 ppt
document.pdf
stop and wait
14-Data Link Control.ppt 14-Data Link Control.ppt 14-Data Link Control.pp
Flow Control (1).ppt

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Group 1 Presentation -Planning and Decision Making .pptx
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
A comparative analysis of optical character recognition models for extracting...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
20250228 LYD VKU AI Blended-Learning.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing

Group B Ppt

  • 1. STOP AND WAIT ARQ GROUP B
  • 2. TEAM MEMBERS GROUP 14: INDIGO  AMULYA GURURAJ 1MS07IS006  BHARGAVI C S 1MS07IS013  MEGHANA N 1MS07IS050  TANUSHREE A G 1MS07IS139 GROUP 21: DYNAMIC NETWORKS  AMEET GONDALI 1MS07IS003  BHUJANG R 1MS07IS016  KAUSHIK N 1MS07IS037  PRAMOD M 1MS07IS070
  • 3. CONTENTS  Introduction  Stop And Wait ARQ  Sender Algorithm.  Receiver Algorithm  Efficiency  Advantages & Disadvantages  Applications  Demo
  • 4. INTRODUCTION  Data Communication channels are divided into two major types :-  (a)Noisy Channels.  (b)Noiseless Channels.  Noiseless Channels :- An ideal case channel put forth by Niquest.  Noisy Channel :- Practical case channels , put forth by Shannon.
  • 5. Continued  Noiseless Channels :- (1) Simplest (2) Stop and Wait  Noisy Channels (1) Stop and wait ARQ (2) Go Back N ARQ (3)Selective Repeat ARQ
  • 6. STOP AND WAIT ARQ  Design  Implementation .
  • 7. SENDER ALGORITHM Sn =0 cansend = true; While(true) { WaitForEvent(); If(event(RequesTtoSend) AND cansend) { Getdata(); MakeFrame(Sn); StoreFrame(Sn); SendFrame(Sn); StartTimer(); Sn =Sn+1; Cansend =false; }
  • 8. SENDER ALGORITHM (CONT..) WaitForEvent(); if( event ( Arrival notification)) { ReceiveFrame(ackno); If(not corrupted AND ackno == Sn) { Stop Timer(); PurgeFrame(Sn-1) cansend =true; } } If(event(Timeout)) { StartTimer(); ResendFrame(Sn-1); } }
  • 9. RECEIVER SIDE ALGORITHM Rn =0; While(true) { WaitForEvent(); If(event(ArrivalNotification)) { ReceiveFrame(); If( corrupted ( Frame)); Sleep(); If ( seqNo ==Rn) { Extract data(); Deliver data(); Rn =Rn+1; } SendFrame(Rn); } }
  • 10. EFFICIENCY Performance Analysis of Stop and Wait ARQ Parameters:  TRANSF: Frame transmission time at sender side  TRANSA: ACK transmission time at receiver side  PROP: propagation delay  PROC: Frame processing time  p: Probability of frame error at sender side  q: Probability of frame error at receiver side  TIMEOUT: Sender time out
  • 11. Calculations  Case 1 : Efficiency in transmitting an error free packet Time taken to transmit an error free packet is: Ts = TRANSF + TRANSA + 2(PROC+PROP) In this case efficiency is: E = TRANSF/Ts This occurs with the probability (1-p)*(1-q)
  • 12. Case 2: Efficiency in transmitting an error packet The delivery of an error packet takes place with the probability: r = p + (1-p)*q The average packet delay in ARQ scheme is D = TS + TIMEOUT(p/(1-p)) In this case efficiency is: E = TRANSF/D
  • 13. ADVANTAGES  Simple to implement.  Frames numbering is modulo-2 i.e, only 1 bit is required.  Can be used for noisy channels.  Has both error and flow control mechanism.  Has timer implementation.
  • 14. DISADVANTAGES  When propagation delay is long, it is extremely inefficient.  Only one frame is sent at a time.  Timer should be set for each individual frame.  No pipelining.  Sender window size is 1( disadvantage over Go back n ARQ).  Receiver window size is 1( disadvantage over selective repeat ARQ).
  • 15. APPLICATIONS  IBM Binary Synchronous Communications protocol (Bisync): character-oriented protocol  XModem: modem file transfer protocol  Trivial File Transfer Protocol : simple protocol for file transfer over UDP