Question
Consider a network connecting two systems located 8000 kilometers apart. The bandwidth of the network is bits per second. The propagation speed of the media is meters per second. It is needed to design a Go-Back-N sliding window protocol for this network. The average packet size is bits. The network is to be used to its full capacity. Assume that processing delays at nodes are negligible. Then, the minimum size in bits of the sequence number field has to be _____.
Official answer and solution
- Official answer
- 8
- From
- Official GATE 2015 answer key
Solution
Calculate propagation delay and transmission delay to find the sender window size for 100% link utilization, then determine sequence number bits.
Given network parameters:
- Distance
- Propagation speed
- Bandwidth
- Packet size
Compute delays:
- Transmission time per packet:
- One-way propagation delay:
For 100% link capacity utilization in a sliding window protocol, the window size must cover the round-trip propagation time:
Thus, the minimum sender window size is .
In the Go-Back-N protocol, the sequence number space must be strictly greater than the sender window size to avoid ambiguity between successive window cycles:
With sequence number bits, .
Since and , the minimum sequence number field size is 8 bits.
8
Using 2^k >= W without adding 1, though in this specific case 2^7 = 128 < 201, so both require 8 bits.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 3
- Question
- 38 of 65, printed as CS Q.28
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.