Sliding Window Questions in GATE CSE: Efficiency and Window Size
Sliding window questions look like many different questions and are actually one question. A link is described, a frame size is given, and you are asked for an efficiency, a throughput, a window size or a number of sequence bits. Every one of those answers falls out of a single ratio. Once you compute that ratio, the rest is substitution. This guide gives away the whole method.
In this guide
- Key takeaways
- Where these questions sit in the paper
- What the 2027 syllabus puts in scope
- The one ratio that drives every answer
- A worked example, arithmetic shown
- Sequence-number bits, and why selective repeat is stricter
- Bandwidth-delay product is the same idea
- The unit traps that actually cost the marks
- Build one template and never deviate
Key takeaways
- Compute three things in order and never deviate: transmission time , propagation time , then .
- Stop-and-wait efficiency is . Sliding window efficiency is , capped at 1.
- Minimum window for full utilisation is , rounded up to the next integer.
- Go-back-N allows a window up to for sequence bits. Selective repeat allows only , which is the stricter bound.
- Bandwidth-delay product is the data in flight. Most of these questions are the same product asked in a different costume.
- Units decide the mark: bits versus bytes, versus , one-way versus round trip.
Where these questions sit in the paper
Third-party analyst compilations place Computer Networks at 6 to 11 marks per paper from 2009 to 2026. The per-paper series is 10, 8, 6, 9, 7, 9, 8, 8, 10, 7, 10, 6, 7, 11, 8, 9, 8, 6, which averages about 8.2. The first nine papers average 8.3 and the last nine average 8.0, so the direction is flat rather than falling. 2022 was the recent high at 11 marks. One analyst's count for the 2026 shift-2 paper put Computer Networks at 6 questions. These numbers are approximate and unofficial: sources disagree by 2 to 3 marks because a sliding-window item may be filed under performance metrics by one analyst and under the data link layer by another.
Inside that band, sliding-window arithmetic is the most repeated calculation the subject has. The full subject ranking is in the guide to Computer Networks important topics.
What the 2027 syllabus puts in scope
The official GATE 2027 CS syllabus names performance metrics explicitly under the switching clause, which covers transmission and propagation delay, round-trip time, throughput, utilisation and bandwidth-delay product. It keeps TCP flow control and congestion control, which carries the window-over-RTT throughput bound and sequence-number sizing. The data link layer clause is now error detection, medium access control and Ethernet.
So the window arithmetic stays, arriving through two doors instead of one. The clause-by-clause comparison is in the note on the 2027 Computer Networks syllabus changes. Syllabus wording can be revised between cycles, so check the current notification and the official syllabus PDF before you finalise a study list.
The one ratio that drives every answer
Two delays matter on a point-to-point link.
Transmission time is how long the sender takes to push the frame onto the wire:
Propagation time is how long the first bit takes to travel: . On satellite questions the propagation time is usually given directly.
Then . That is the whole exam. A link with a large is a long thin pipe where the sender finishes transmitting and then waits, which is why stop-and-wait collapses on satellite links. A link with a small is short and fat, where a window of one is already close to enough.
The sender's cycle in stop-and-wait is and delivers one frame, so the efficiency is
With a window of frames the sender delivers frames per cycle, so the efficiency multiplies by and caps at 1, because a link cannot be more than fully used.
| Protocol | Sender window | Receiver window | Efficiency | Max window with sequence bits |
|---|---|---|---|---|
| Stop-and-wait | 1 | 1 | 1 | |
| Go-Back-N | 1 | |||
| Selective Repeat |
The efficiency column is identical for go-back-N and selective repeat. The protocols differ in retransmission behaviour and in buffering, not in the best case the formula describes. A question that asks for efficiency on an error-free link is not testing which protocol you were given.
A worked example, arithmetic shown
Take a 1 Mbps link with a one-way propagation delay of 20 ms, carrying 1000-byte frames. Acknowledgements are small enough to ignore.
Stop-and-wait efficiency is , about 16.67 percent, and throughput is .
With a window of 4 frames the efficiency is , about 66.67 percent, and throughput is about 666.7 kbps.
The minimum window for full utilisation is exactly, so . If the arithmetic had given 5.2 you would round up to 6, never down to 5, because a window of 5 leaves the sender idle.
Now suppose acknowledgements are 100 bits on the same 1 Mbps link. Their transmission time is 0.1 ms, the cycle becomes , and stop-and-wait efficiency drops slightly to , about 16.63 percent. Include that term only when the question hands you an acknowledgement size.
Sequence-number bits, and why selective repeat is stricter
A window needs sequence numbers, and the number of bits bounds how large the window may be.
Go-back-N keeps a receiver window of one, so it can safely use a sender window of up to . The one number held back is what stops a delayed duplicate from being mistaken for a fresh frame.
Selective repeat gives the receiver a window of the same size as the sender's, and the two windows must never overlap in the sequence space. That halves the budget: the window may be at most .
Continue the example above, where the required window is 6.
For go-back-N you need , so and . Three bits allow a window of 7, which is comfortably above 6.
For selective repeat you need , so and . Four bits allow a window of 8.
Same link, same window, one extra bit. That gap is the question. When a paper says selective repeat and you quietly use the go-back-N bound, you land on 3 and lose the mark. Watch the inequality too: the bound is greater than or equal to the required window, not strictly greater.
Bandwidth-delay product is the same idea
Bandwidth-delay product is bandwidth multiplied by delay, and it measures the data in flight on the link. On the example link, using the full cycle, , which is exactly 6 frames of 8000 bits. That is the same 6 the efficiency formula produced, because the minimum window for full utilisation is just the pipe capacity measured in frames.
Using round-trip time alone, , or 5000 bytes. Read the question to see which delay it wants before multiplying.
The transport-layer version is the throughput bound: throughput is at most . A 64 KB receive window over a 100 ms round trip gives , no matter how fast the underlying link is. That single line explains why the TCP window scale option exists, and it is a favourite one-mark item.
The unit traps that actually cost the marks
- Bits versus bytes. Frame sizes arrive in bytes, link rates in bits per second. Multiply by 8 before dividing, and write the 8 on paper rather than in your head.
- Kilo means 1000 for link rates and for buffer and window sizes. A 1 Mbps link is bits per second; a 64 KB window is 65,536 bytes. Mixing the conventions moves the answer by a couple of percent, which is enough to fall outside a numerical-answer tolerance band.
- One-way versus round trip. The formula uses . If a question gives you RTT directly, do not double it again.
- Acknowledgement transmission time counted or not. Include it only when an acknowledgement size or rate is given.
- Rounding. Window sizes and sequence bits round up. Efficiencies do not round at all until the final answer.
- The go-back-N bound is , not . The selective repeat bound is , not .
More traps of this shape across subjects are collected in the guide to common mistakes in GATE CSE, and the compact versions of these formulas sit in the GATE CSE formula sheet.
Build one template and never deviate
Write this four-line template on a rough sheet and use it for every question in this family, including the ones that look unfamiliar.
- .
- , or read it from the question.
- , and .
- Substitute: efficiency , window rounded up, bits from the protocol bound, .
Under exam pressure the failure is never the formula. It is skipping step 1 because the frame size was in bytes, or starting at step 4 because the question mentioned selective repeat and you reached for a remembered answer. Doing the steps in order costs about thirty seconds and removes almost every way to go wrong.
For practice, take any previous-year link question and re-ask it three times with the same numbers: solve for efficiency, then for the minimum window, then for the sequence bits under both protocols. One set of numbers gives you four drills, and the bandwidth-delay product behind all of them starts to show. The Computer Networks chapter of the GATE CSE 2027 book carries the full worked bank for this family, including the acknowledgement-time variants the article keeps short.
Frequently asked questions
What is the formula for the efficiency of a sliding window protocol?
Efficiency is , capped at 1, where is the window size and is the ratio of propagation delay to transmission delay. Stop-and-wait is the special case , giving . Multiply the efficiency by the link rate to get throughput.
How do you find the minimum window size for full link utilisation?
Set and solve, so the minimum window is rounded up to the next integer. Compute transmission time as frame size divided by link rate, propagation time as distance divided by signal speed, then as propagation over transmission. Round up, never down.
Why does selective repeat need more sequence number bits than go-back-N?
Go-back-N uses a receiver window of one, so the sender window may be as large as for sequence bits. Selective repeat gives the receiver a window of the same size as the sender, and the two must not overlap in the sequence space, so the window is limited to half of it. Half of is the stricter bound, and it often costs one extra bit.
Is the sliding window topic still in the GATE 2027 Computer Networks syllabus?
Yes, though not under that name. The 2027 CS syllabus lists performance metrics explicitly under switching, and keeps TCP flow control and congestion control. Utilisation, throughput, window size and bandwidth-delay-product arithmetic sit inside those clauses. The data link layer clause now reads error detection, medium access control and Ethernet. Check the official syllabus PDF for the exact wording.
Should acknowledgement transmission time be included in the efficiency calculation?
Only if the question gives you an acknowledgement size or an acknowledgement rate. The standard formula assumes the acknowledgement is tiny and ignores it, so the cycle is transmission time plus twice propagation. If the paper states that acknowledgements are 100 bits on a stated link, add that transmission time to the denominator and say so in your working.
How many marks does Computer Networks carry in GATE CSE?
Analyst compilations put Computer Networks at 6 to 11 marks per paper from 2009 to 2026, averaging about 8.2, with 11 in 2022 as the recent high. These counts are unofficial, and different analysts differ by 2 to 3 marks because borderline questions get classified differently. Sliding-window arithmetic is among the most repeated items inside that band.
Sources
- GATE 2027 official website (IIT Madras)
- GATE 2027 CS syllabus (official PDF)
- GATE 2027 question paper pattern (official)
- GATE Overflow previous year questions
- ExamSIDE chapter-wise GATE CSE previous year questions
Dates, fees and the syllabus are set by the GATE 2027 organising institute and can change. Always confirm at gate2027.iitm.ac.in.