SlideShare ist ein Scribd-Unternehmen logo
1 von 22
STOP AND WAIT ARQ STOP WAIT AND
Team members DNAA Krazzy4 Nishita Ananya Archana Dhanusha ,[object Object]
Aayush
HimanshuAwesum4sum ,[object Object],Lisha Anita Prabha Caroline
Noiseless and Noisy Channels
Noisy Channel         – Error free channels Noiseless Channel   – Error creating channels PROTOCOLS FOR NOISY CHANNELS FOR NOISELESS CHANNELS SIMPLEST STOP AND WAIT ARQ STOP AND WAIT GO BACK N ARQ SELECTIVE REPEAT ARQ
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
Need for  Sequence number
(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
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)
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]

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Framing in data link layer
Framing in data link layerFraming in data link layer
Framing in data link layer
 
Basics of Network Traffic Management
Basics of Network Traffic ManagementBasics of Network Traffic Management
Basics of Network Traffic Management
 
Error control
Error controlError control
Error control
 
Congestion control
Congestion controlCongestion control
Congestion control
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy check
 
8th lec flow and error control
8th lec   flow and error control8th lec   flow and error control
8th lec flow and error control
 
Data compression techniques
Data compression techniquesData compression techniques
Data compression techniques
 
Error control
Error controlError control
Error control
 
Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing Osi , tcp/ip protocol and Addressing
Osi , tcp/ip protocol and Addressing
 
MULTIMEDIA COMMUNICATION & NETWORKS
MULTIMEDIA COMMUNICATION & NETWORKSMULTIMEDIA COMMUNICATION & NETWORKS
MULTIMEDIA COMMUNICATION & NETWORKS
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Data link control
Data link controlData link control
Data link control
 
Flow Control
Flow ControlFlow Control
Flow Control
 
Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)
 
Framming data link layer
Framming data link layerFramming data link layer
Framming data link layer
 
Computer Networks: Quality of service
Computer Networks: Quality of serviceComputer Networks: Quality of service
Computer Networks: Quality of service
 

Ähnlich wie Stop And Wait ARQ

Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010
namokar
 
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
 
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
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
Nitesh Singh
 

Ähnlich wie Stop And Wait ARQ (20)

Stop And Wait
Stop And WaitStop And Wait
Stop And Wait
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 
6 data linkcontrol
6  data linkcontrol6  data linkcontrol
6 data linkcontrol
 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrol
 
Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010Cse3213 11 flow_errorcontrol_f2010
Cse3213 11 flow_errorcontrol_f2010
 
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
 
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
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Stop and-wait protocol
Stop and-wait protocolStop and-wait protocol
Stop and-wait protocol
 
Arq protocol part 2
Arq protocol part 2Arq protocol part 2
Arq protocol part 2
 
denme
denmedenme
denme
 
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
 
Different protocols for data communication networks
Different protocols for data communication networks Different protocols for data communication networks
Different protocols for data communication networks
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
 
Frame counting: achieve accurate and real-time link estimation for low power ...
Frame counting: achieve accurate and real-time link estimation for low power ...Frame counting: achieve accurate and real-time link estimation for low power ...
Frame counting: achieve accurate and real-time link estimation for low power ...
 
Lte imp
Lte impLte imp
Lte imp
 
Data Link Control.ppt
Data Link Control.pptData Link Control.ppt
Data Link Control.ppt
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

Stop And Wait ARQ

  • 1. STOP AND WAIT ARQ STOP WAIT AND
  • 2.
  • 4.
  • 6. Noisy Channel – Error free channels Noiseless Channel – Error creating channels PROTOCOLS FOR NOISY CHANNELS FOR NOISELESS CHANNELS SIMPLEST STOP AND WAIT ARQ STOP AND WAIT GO BACK N ARQ SELECTIVE REPEAT ARQ
  • 8.
  • 9.
  • 10. Frames Packet Error Free Packet Information Frame Transmitter Receiver Control Frame Timer is set after each frame transmission
  • 11. Information Frame header Information Packet CRC Header CRC Acknowledgement Frame
  • 12. Need for Sequence number
  • 13.
  • 14. (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
  • 15. Sequence Numbers Time-out Time A Frame 0 Frame 2 Frame 0 Frame 1 ACK ACK B (c) Premature Time-out
  • 16. 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 }
  • 17. Contd Waitforevent(); if(event(arrivalnotification) { Receiveframe(ackno); If(ackno==Sn) { Stoptimer(); Purge(Sn-1); Cansend=true; } } If(event(timeout)) { Starttimer(); Resendframe(Sn-1); } }
  • 18. 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); } }
  • 19. 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)
  • 20. Advantages and disadvantages of Stop and Wait ARQ
  • 21. 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
  • 22.
  • 23. Only 1 frame is sent at a time.
  • 24.
  • 25.
  • 26. 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.