- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a Sliding Window Protocol in Computer Network?
A sliding window is also known as windowing. A sliding window is a method for controlling sending data packets between two network devices where dependable and sequential delivery of data packets is needed, such as using the Data Link Layer (OSI model) or Transmission Control Protocol (TCP).
In the sliding window technique, each data packet (for most data link layers) and byte (in TCP) includes a unique consecutive sequence number used by the receiving computer to place data in the correct order. The objective of the sliding window technique is to use the sequence numbers to avoid duplicate data and to request missing data.
Following are the two types of Sliding Window Protocol −
Go Back-n Protocol
Go-Back-N Automatic Repeat Query (ARQ) protocol is also referred to as Go-Back-N Automatic Repeat Request. It is a data link layer protocol that helps a sliding window method. In this, if any frame is manipulated or lost, all subsequent frames have to be sent again.
For example, in GO- Back –N, the N is the sender’s window size; if it is GO-Back-5, the sender will send frame 1 to 5 before receiving the knowledge of frame 1.
All the frames are numbers to deal with the most and duplicate frames. If the sender does not receive the receiver’s acknowledgement, then all the frames available in the current window will be retransmitted.
The design of the Go-Back-N protocol is shown below −
Selective Repetitive ARQ
Selective Repeat ARQ is also referred to as the Selective Repeat Automatic Repeat Request. It is a data link layer protocol that facilitates a sliding window method. The Goback-N ARQ protocol operates well if it has fewer errors.
In this protocol, the sender window size is always similar to the size of the receiver window. The size of the sliding window is continually greater than 1.
If the receiver obtains a corrupt frame, it does not directly remove it. It sends a negative acknowledgement to the sender. The sender sends that frame again immediately, receiving a negative acknowledgement. There is no waiting for any time-out to share that frame.
The structure of the Selective Repeat ARQ protocol is demonstrated below −
- Sliding Window Protocol
- What is three-bit sliding window protocol?
- A One-Bit Sliding Window Protocol
- Sliding Window Protocol (Selective Repeat)
- What is a SPI Protocol in the Computer Network?
- What is the POP Protocol in Computer Network?
- What is the I2C Protocol in Computer Network?
- What is the MQTT protocol in Computer Network ?
- What is the IPv6 Protocol in Computer Network?
- What is the TCP Protocol in Computer Network?
- Difference between Stop and Wait protocol and Sliding Window protocol
- What is Transmission Control Protocol (TCP) in Computer Network?
- What is an IMAP Protocol in the Computer Network?
- What is Border Gateway Protocol(BGP) in Computer Network?
- What is Link State Routing protocol in computer network?