SlideShare a Scribd company logo
1 of 20
STOP AND WAIT ARQ STOP WAIT AND
Team members DNAA abc Nishita Ananya Archana Dhanusha ,[object Object]
Aayush
HimanshuAwesum4sum ,[object Object],Lisha Anita Prabha Caroline
Noiseless and Noisy Channels
STOP AND WAIT
Automatic Repeat reQuest ,[object Object]
 uses acknowledgements and timeouts to achieve reliable data transmission over an unreliable service.,[object Object]
Frames Packet Error Free Packet Information Frame Transmitter Receiver  Control Frame Timer is set after each frame transmission
Information Frame header Information Packet CRC Header CRC Acknowledgement Frame
Sender-site algorithm for stop and wait ARQ Sn=0; Cansend=true; While(true) { 	Waitforevent() 	If(event(requesttosend)AND cansend) 	{ Getdata(); Makeframe(Sn); Storeframe(Sn) Sendframe(Sn); Starttimer() Cansend=false 	}
Contd Waitforevent(); 	if(event(arrivalnotification) 	{ Receiveframe(ackno); 		If(ackno==Sn) 		{ Stoptimer(); 		Purge(Sn-1); Cansend=true; 		} 	}	 	If(event(timeout)) 	{ Starttimer(); Resendframe(Sn-1); 	} }
Receiver-site algorithm for Stop and Wait ARQ Rn = 0; While (true) { WaitForEvent ( ); 	If (Event (ArrivalNotification) ) 	{ ReceiveFrame ( ); 		If (corrupted (frame) ); 		sleep  ( ); 		{ ExtractData ( ); DelieverData ( ); Rn = Rn + 1; 		} SendFrame (Rn); 	} }
0    1 0    1 0    1 0    1 0    1 0    1 0    1 0    1 Rnext Slast Timer Slast Receiver B Transmitter A Rnext 1-Bit Sequence Numbering Suffices  Global State: (Slast, Rnext) Error-free frame 0 arrives at receiver (0,0) (0,1) ACK for frame 0 arrives at transmitter ACK for frame 1 arrives at transmitter Error-free frame 1 arrives at receiver (1,0) (1,1)
(a)  Frame 1 lost Time-out Time  A Frame    1 Frame    1 Frame   2 Frame     0 ACK ACK  B (b)  ACK lost Time-out Time A Frame      0 Frame     1 Frame      1 Frame    2 ACK ACK ACK B Need for Sequence Numbers
Sequence Numbers Time-out Time A Frame    0 Frame    2  Frame       0 Frame 1 ACK ACK B (c)  Premature Time-out
Advantages and disadvantages of Stop and Wait ARQ
Advantages of Stop and Wait ARQ over simple Stop and Wait protocol It can be used for noisy channels It has both error and flow control mechanism It has a timer implementation
Disadvantages of Stop and Wait ARQ ,[object Object]

More Related Content

What's hot

Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
tameemyousaf
ย 
Stop And Wait ARQ
Stop And Wait ARQStop And Wait ARQ
Stop And Wait ARQ
Anitha Selvan
ย 
Go Back N ARQ
Go  Back N ARQGo  Back N ARQ
Go Back N ARQ
guesta1b35273
ย 
Analog Transmissions
Analog TransmissionsAnalog Transmissions
Analog Transmissions
TechiNerd
ย 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
Abhishek Wadhwa
ย 
Chapter 2 - Network Models
Chapter 2 - Network ModelsChapter 2 - Network Models
Chapter 2 - Network Models
Wayne Jones Jnr
ย 

What's hot (20)

Application Layer
Application LayerApplication Layer
Application Layer
ย 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
ย 
Multiple access control protocol
Multiple access control protocol Multiple access control protocol
Multiple access control protocol
ย 
Stop And Wait ARQ
Stop And Wait ARQStop And Wait ARQ
Stop And Wait ARQ
ย 
Application Layer
Application Layer Application Layer
Application Layer
ย 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
ย 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?
ย 
Go Back N ARQ
Go  Back N ARQGo  Back N ARQ
Go Back N ARQ
ย 
Analog Transmissions
Analog TransmissionsAnalog Transmissions
Analog Transmissions
ย 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
ย 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
ย 
Chapter 2 - Network Models
Chapter 2 - Network ModelsChapter 2 - Network Models
Chapter 2 - Network Models
ย 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
ย 
TCP - Transmission Control Protocol
TCP - Transmission Control ProtocolTCP - Transmission Control Protocol
TCP - Transmission Control Protocol
ย 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
ย 
ALOHA Protocol (in detail)
ALOHA Protocol (in detail)ALOHA Protocol (in detail)
ALOHA Protocol (in detail)
ย 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
ย 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
ย 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
ย 
CS8591 Computer Networks - Unit IV
CS8591 Computer Networks - Unit IVCS8591 Computer Networks - Unit IV
CS8591 Computer Networks - Unit IV
ย 

Similar to Stop And Wait

Group B Ppt
Group B PptGroup B Ppt
Group B Ppt
guestb4ff06
ย 
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
ย 
Computer network (13)
Computer network (13)Computer network (13)
Computer network (13)
NYversity
ย 
Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010
namokar
ย 
6 data linkcontrol
6  data linkcontrol6  data linkcontrol
6 data linkcontrol
Hattori Sidek
ย 
sliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.pptsliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.ppt
ManimegalaM3
ย 
Chapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eChapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9e
adpeer
ย 

Similar to Stop And Wait (20)

Group B Ppt
Group B PptGroup B Ppt
Group B Ppt
ย 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
ย 
Lte protocols
Lte protocolsLte protocols
Lte protocols
ย 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrol
ย 
Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control
ย 
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
ย 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
ย 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)
ย 
Lte imp
Lte impLte imp
Lte imp
ย 
Computer network (13)
Computer network (13)Computer network (13)
Computer network (13)
ย 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
ย 
Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010
ย 
6 data linkcontrol
6  data linkcontrol6  data linkcontrol
6 data linkcontrol
ย 
XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...
XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...
XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...
ย 
Stop and-wait protocol
Stop and-wait protocolStop and-wait protocol
Stop and-wait protocol
ย 
Transport layer
Transport layerTransport layer
Transport layer
ย 
sliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.pptsliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.ppt
ย 
Chapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eChapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9e
ย 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
ย 
Networks-part9-DLL-Flowcontrol.pptx
Networks-part9-DLL-Flowcontrol.pptxNetworks-part9-DLL-Flowcontrol.pptx
Networks-part9-DLL-Flowcontrol.pptx
ย 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
ย 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
ย 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
ย 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
ย 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
ย 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
ย 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
ย 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
ย 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
ย 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
ย 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
ย 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
ย 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
ย 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
ย 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
ย 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
ย 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
ย 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
ย 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
ย 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
ย 

Stop And Wait

  • 1. STOP AND WAIT ARQ STOP WAIT AND
  • 2.
  • 4.
  • 7.
  • 8.
  • 9. Frames Packet Error Free Packet Information Frame Transmitter Receiver Control Frame Timer is set after each frame transmission
  • 10. Information Frame header Information Packet CRC Header CRC Acknowledgement Frame
  • 11. Sender-site algorithm for stop and wait ARQ Sn=0; Cansend=true; While(true) { Waitforevent() If(event(requesttosend)AND cansend) { Getdata(); Makeframe(Sn); Storeframe(Sn) Sendframe(Sn); Starttimer() Cansend=false }
  • 12. Contd Waitforevent(); if(event(arrivalnotification) { Receiveframe(ackno); If(ackno==Sn) { Stoptimer(); Purge(Sn-1); Cansend=true; } } If(event(timeout)) { Starttimer(); Resendframe(Sn-1); } }
  • 13. Receiver-site algorithm for Stop and Wait ARQ Rn = 0; While (true) { WaitForEvent ( ); If (Event (ArrivalNotification) ) { ReceiveFrame ( ); If (corrupted (frame) ); sleep ( ); { ExtractData ( ); DelieverData ( ); Rn = Rn + 1; } SendFrame (Rn); } }
  • 14. 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Rnext Slast Timer Slast Receiver B Transmitter A Rnext 1-Bit Sequence Numbering Suffices Global State: (Slast, Rnext) Error-free frame 0 arrives at receiver (0,0) (0,1) ACK for frame 0 arrives at transmitter ACK for frame 1 arrives at transmitter Error-free frame 1 arrives at receiver (1,0) (1,1)
  • 15.
  • 16. (a) Frame 1 lost Time-out Time A Frame 1 Frame 1 Frame 2 Frame 0 ACK ACK B (b) ACK lost Time-out Time A Frame 0 Frame 1 Frame 1 Frame 2 ACK ACK ACK B Need for Sequence Numbers
  • 17. Sequence Numbers Time-out Time A Frame 0 Frame 2 Frame 0 Frame 1 ACK ACK B (c) Premature Time-out
  • 18. Advantages and disadvantages of Stop and Wait ARQ
  • 19. Advantages of Stop and Wait ARQ over simple Stop and Wait protocol It can be used for noisy channels It has both error and flow control mechanism It has a timer implementation
  • 20.
  • 21. Only 1 frame is sent at a time.
  • 22.
  • 23.
  • 24. Applications IBM Binary Synchronous Communication Protocol (Bisync): Character-oriented data link control. Xmodem: Modem file transfer protocol. Trivial file transfer protocol (RFC 1350): simple protocol for file transfer over UDP.