Question Details

Sliding window protocol: L = 1000 bits, R = 100 Kbps, Tp = 100 ms, Tpm = 0. Find optimal window size?

Options

A

10

B

11

C

20

D

21

Show Answer

Correct Answer :

Option D

21

Solution :

The correct answer is 21.

To find the optimal window size for the sliding window protocol, we must calculate the window size that allows the sender to transmit continuously without waiting for acknowledgments (ACKs), thereby achieving 100% link utilization. Let's break down the solution step-by-step:

1. Identify the given parameters:
- Packet size (L) = 1000 bits
- Transmission rate (R) = 100 Kbps = 100,000 bits per second (bps)
- Propagation delay (Tp) = 100 ms = 0.1 seconds
- Acknowledgment transmission/processing delay (Tpm) = 0 ms

2. Calculate the Transmission Delay (Tt):
Transmission delay is the time required to push all of the packet's bits onto the link:

Tt=LR

Substituting the values:

Tt=1000100000=0.01 seconds=10 ms

3. Calculate the total Cycle Time (Tcycle):
The total cycle time is the time elapsed from the start of packet transmission until the acknowledgment for that packet is received back at the sender. It includes transmission delay, round-trip propagation delay, and acknowledgment processing time:

Tcycle=Tt+2·Tp+Tpm

Substituting the values:

Tcycle=10 ms+2·100 ms+0=210 ms

4. Calculate the Optimal Window Size (W):
The optimal window size is the number of packets the sender needs to transmit during one full cycle time to keep the channel fully busy:

W=TcycleTt

Substituting the calculated times:

W=210 ms10 ms=21

Therefore, the optimal window size is 21.

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...