SlideShare una empresa de Scribd logo
1 de 14
Team: 1 
5th A BVBCSE 
2012-2016
Introduction 
o Stop-and-wait ARQ is a method used 
in telecommunications to send 
information between two connected 
devices. 
o It ensures that information is not 
lost due to dropped packets and that 
packets are received in the correct 
order. 
o It is the simplest kind of automatic 
repeat-request (ARQ) method.
Description 
 A stop-and-wait ARQ sender sends 
one frame at a time. 
 It is a special case of the general sliding window 
protocol with both transmit and receive window 
sizes equal to 1. 
 After sending each frame, the sender doesn't 
send any further frames until it receives 
an acknowledgement (ACK) signal. 
 After receiving a good frame, the receiver 
sends an ACK. 
 If the ACK does not reach the sender before a 
certain time, known as the timeout, the sender 
sends the same frame again.
 Typically the transmitter adds 
a redundancy check number to the end of 
each frame. 
 The receiver uses the redundancy check 
number to check for possible damage. If 
the receiver sees that the frame is good, 
it sends an ACK. 
 If the receiver sees that the frame is 
damaged, the receiver discards it and does 
not send an ACK—pretending that the 
frame was completely lost, not merely 
damaged.
Need for sequence numbers 
o 1 bit sequence number in the header of the 
frame, alternating (from 0 to 1) in subsequent 
frames. 
o When the receiver sends an ACK, it includes the 
sequence number of the next packet it expects. 
This way, the receiver can detect duplicated 
frames by checking if the frame sequence 
numbers alternate. 
o If two subsequent frames have the same 
sequence number, they are duplicates, and the 
second frame is discarded. Similarly, if two 
subsequent ACKs reference the same sequence 
number, they are acknowledging the same frame.
Case 1 
 Sender sends the frame 0 to the destination 
and simultaneously a timer is started. 
 The destination accepts the frame since it was 
expecting frame 0. 
 Now the receiver window slides one position 
ahead. 
 Receiver sends an acknowledgement ACK 1 
informing the sender that it has successfully 
received frame 0 and is expecting for frame 1. 
 This acknowledgement reaches sender before 
the timer of frame 0 expires and Sending 
window slides to the next frame and sends 
frame1. 
 See the animation for better understanding.
Request 
Sn 
0 1 0 1 0 1 
0 1 0 1 0 1 
Arrived 
Sn 
0 1 0 1 0 1 
Rn 
Sender Receiver 
Start 
Stop 
Arrived
Case 2 
 Sender sends frame 0 to the destination 
and simultaneously timer is started. 
 Frame 0 is lost before reaching the 
destination. 
 Since destination didn’t receive frame 0 
no acknowledgement is sent. 
 Eventually timer for frame 0 expires and 
sender resends frame 0. 
 This process continues until it reaches 
acknowledgement for frame 1. 
 See the animation in the next slide for 
better understanding.
Request 
0 1 0 1 0 1 
0 1 0 1 0 1 
0 1 0 1 0 1 
0 1 0 1 0 1 
timeout 
Arrived 
Sn 
Sn 
Rn 
Arrived 
Stop
Case 3 
 Sender sends frame 0 to the destination and 
simultaneously timer is started. 
 The destination accepts the frame since it was 
expecting frame 0. 
 Now the receiver window slides one position ahead. 
 Receiver sends an acknowledgement ACK 1 informing 
the sender that it has successfully received frame 0 
and is expecting for frame 1. 
 The acknowledgement gets lost and it doesn’t reach the 
sender. 
 Eventually timer for frame 0 expires and sender 
resends frame 0. 
 Now since the receiver is expecting for frame 1, it will 
safely discard the frame 0 and once again sends 
acknowledgement ACK 1.
Sn Request 
010101 
Start 
Rn 
0 1 0 1 0 1 
Arrived 
ACK 1 
Sn 
010101 Lost 
0 1 0 1 0 1 
Arrived 
Sn 
0 1 0 1 0 1 
Rn 
Discard, Duplicate 
timeout 
Stop
Advantages of stop-and-wait 
ARQ over simple 
stop and wait protocols 
 It can be used for noisy channels. 
 It has both flow and error control 
mechanism. 
 It has timer implementation.
Disadvantages of Stop and 
wait ARQ 
 Efficiency is very less. 
 Only one frame is sent at a time. 
 Timer should be set for each 
individual frame. 
 No pipelining. 
 Sender window size is 
one(disadvantage over go back and 
ARQ). 
 Receiver window size is 
one(disadvantage over selective 
repeat ARQ).
 By- 
 Pushkar D 
 Praneeta Y 
 Amith A 
 Komal S 
 Pallavi D 
 Chaitra H 
 Ambaresh P 
 Ankit R 
Thank you

Más contenido relacionado

La actualidad más candente

Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link controlVishal kakade
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer NetworkAhtesham Ullah khan
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?Simplilearn
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocolManusha Dilan
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocaltes31
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link ControlJeoffnaRuth
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)sonangrai
 
RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION           RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION AMOGHA A K
 

La actualidad más candente (20)

Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link control
 
Flow Control
Flow ControlFlow Control
Flow Control
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
GO BACK N PROTOCOL
GO BACK N PROTOCOLGO BACK N PROTOCOL
GO BACK N PROTOCOL
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer Network
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
 
Data link layer
Data link layer Data link layer
Data link layer
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
 
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Stop And Wait ARQ
Stop And Wait ARQStop And Wait ARQ
Stop And Wait ARQ
 
RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION           RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION
 
Computer networks - Channelization
Computer networks - ChannelizationComputer networks - Channelization
Computer networks - Channelization
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Transport layer
Transport layer Transport layer
Transport layer
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Check sum
Check sumCheck sum
Check sum
 

Similar a Stop-and-Wait ARQ Protocol

Similar a Stop-and-Wait ARQ Protocol (20)

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
 
Flow control main
Flow control mainFlow control main
Flow control main
 
Computer network slides for easy prepration
Computer network slides for easy preprationComputer network slides for easy prepration
Computer network slides for easy prepration
 
8th lec flow and error control
8th lec   flow and error control8th lec   flow and error control
8th lec flow and error control
 
Protocols
ProtocolsProtocols
Protocols
 
PROTOCOL ICT.pptx
PROTOCOL ICT.pptxPROTOCOL ICT.pptx
PROTOCOL ICT.pptx
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
Simplex stop and_wait_protocol
Simplex stop and_wait_protocolSimplex stop and_wait_protocol
Simplex stop and_wait_protocol
 
Flow control & error control
Flow control & error controlFlow control & error control
Flow control & error control
 
Go back.pptx
Go back.pptxGo back.pptx
Go back.pptx
 
Micro project on ARQ
Micro project on ARQMicro project on ARQ
Micro project on ARQ
 
Lecture 20
Lecture 20Lecture 20
Lecture 20
 
Presentation on dll
Presentation on dllPresentation on dll
Presentation on dll
 
Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010
 
Flowctrl
FlowctrlFlowctrl
Flowctrl
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
 
Arq protocol part 2
Arq protocol part 2Arq protocol part 2
Arq protocol part 2
 
Advance Repeat reQuest (ARQ)
Advance Repeat reQuest (ARQ)Advance Repeat reQuest (ARQ)
Advance Repeat reQuest (ARQ)
 
6 data linkcontrol
6  data linkcontrol6  data linkcontrol
6 data linkcontrol
 
Different protocols for data communication networks
Different protocols for data communication networks Different protocols for data communication networks
Different protocols for data communication networks
 

Último

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxchumtiyababu
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 

Último (20)

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 

Stop-and-Wait ARQ Protocol

  • 1. Team: 1 5th A BVBCSE 2012-2016
  • 2. Introduction o Stop-and-wait ARQ is a method used in telecommunications to send information between two connected devices. o It ensures that information is not lost due to dropped packets and that packets are received in the correct order. o It is the simplest kind of automatic repeat-request (ARQ) method.
  • 3. Description  A stop-and-wait ARQ sender sends one frame at a time.  It is a special case of the general sliding window protocol with both transmit and receive window sizes equal to 1.  After sending each frame, the sender doesn't send any further frames until it receives an acknowledgement (ACK) signal.  After receiving a good frame, the receiver sends an ACK.  If the ACK does not reach the sender before a certain time, known as the timeout, the sender sends the same frame again.
  • 4.  Typically the transmitter adds a redundancy check number to the end of each frame.  The receiver uses the redundancy check number to check for possible damage. If the receiver sees that the frame is good, it sends an ACK.  If the receiver sees that the frame is damaged, the receiver discards it and does not send an ACK—pretending that the frame was completely lost, not merely damaged.
  • 5. Need for sequence numbers o 1 bit sequence number in the header of the frame, alternating (from 0 to 1) in subsequent frames. o When the receiver sends an ACK, it includes the sequence number of the next packet it expects. This way, the receiver can detect duplicated frames by checking if the frame sequence numbers alternate. o If two subsequent frames have the same sequence number, they are duplicates, and the second frame is discarded. Similarly, if two subsequent ACKs reference the same sequence number, they are acknowledging the same frame.
  • 6. Case 1  Sender sends the frame 0 to the destination and simultaneously a timer is started.  The destination accepts the frame since it was expecting frame 0.  Now the receiver window slides one position ahead.  Receiver sends an acknowledgement ACK 1 informing the sender that it has successfully received frame 0 and is expecting for frame 1.  This acknowledgement reaches sender before the timer of frame 0 expires and Sending window slides to the next frame and sends frame1.  See the animation for better understanding.
  • 7. Request Sn 0 1 0 1 0 1 0 1 0 1 0 1 Arrived Sn 0 1 0 1 0 1 Rn Sender Receiver Start Stop Arrived
  • 8. Case 2  Sender sends frame 0 to the destination and simultaneously timer is started.  Frame 0 is lost before reaching the destination.  Since destination didn’t receive frame 0 no acknowledgement is sent.  Eventually timer for frame 0 expires and sender resends frame 0.  This process continues until it reaches acknowledgement for frame 1.  See the animation in the next slide for better understanding.
  • 9. Request 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 timeout Arrived Sn Sn Rn Arrived Stop
  • 10. Case 3  Sender sends frame 0 to the destination and simultaneously timer is started.  The destination accepts the frame since it was expecting frame 0.  Now the receiver window slides one position ahead.  Receiver sends an acknowledgement ACK 1 informing the sender that it has successfully received frame 0 and is expecting for frame 1.  The acknowledgement gets lost and it doesn’t reach the sender.  Eventually timer for frame 0 expires and sender resends frame 0.  Now since the receiver is expecting for frame 1, it will safely discard the frame 0 and once again sends acknowledgement ACK 1.
  • 11. Sn Request 010101 Start Rn 0 1 0 1 0 1 Arrived ACK 1 Sn 010101 Lost 0 1 0 1 0 1 Arrived Sn 0 1 0 1 0 1 Rn Discard, Duplicate timeout Stop
  • 12. Advantages of stop-and-wait ARQ over simple stop and wait protocols  It can be used for noisy channels.  It has both flow and error control mechanism.  It has timer implementation.
  • 13. Disadvantages of Stop and wait ARQ  Efficiency is very less.  Only one frame is sent at a time.  Timer should be set for each individual frame.  No pipelining.  Sender window size is one(disadvantage over go back and ARQ).  Receiver window size is one(disadvantage over selective repeat ARQ).
  • 14.  By-  Pushkar D  Praneeta Y  Amith A  Komal S  Pallavi D  Chaitra H  Ambaresh P  Ankit R Thank you