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

Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
asimnawaz54
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
mekind
 

What's hot (20)

Application layer
Application layerApplication layer
Application layer
 
Transmission control protocol
Transmission control protocolTransmission control protocol
Transmission control protocol
 
Congestion control
Congestion controlCongestion control
Congestion control
 
QOS (Quality of Services) - Computer Networks
 QOS (Quality of Services) - Computer Networks QOS (Quality of Services) - Computer Networks
QOS (Quality of Services) - Computer Networks
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 
transport layer
transport layertransport layer
transport layer
 
Congetion Control.pptx
Congetion Control.pptxCongetion Control.pptx
Congetion Control.pptx
 
Icmp
IcmpIcmp
Icmp
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Physical Layer Numericals - Data Communication & Networking
Physical Layer  Numericals - Data Communication & NetworkingPhysical Layer  Numericals - Data Communication & Networking
Physical Layer Numericals - Data Communication & Networking
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
 
Fisheye State Routing (FSR) - Protocol Overview
Fisheye State Routing (FSR) - Protocol OverviewFisheye State Routing (FSR) - Protocol Overview
Fisheye State Routing (FSR) - Protocol Overview
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
RFC and internet standards presentation
RFC and internet standards presentationRFC and internet standards presentation
RFC and internet standards presentation
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
 
Circuit Switching
Circuit SwitchingCircuit Switching
Circuit Switching
 
CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II CS8591 Computer Networks - Unit II
CS8591 Computer Networks - Unit II
 
Gsm radio-interface
Gsm radio-interfaceGsm radio-interface
Gsm radio-interface
 
Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)
 

Similar to Stop And Wait

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
 
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)

Stop And Wait ARQ
Stop And Wait ARQStop And Wait ARQ
Stop And Wait ARQ
 
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
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

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.