Skip to content

GATE CS 2015 Set 3 Q28 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI
Consider a network connecting two systems located 80008000 Km\text{Km} apart. The bandwidth of the network is 500×106500 \times 10^6 bits\text{bits} per second. The propagation speed of the media is 4×1064 \times 10^6 meters\text{meters} per second. It needs to design a Go-Back-NN sliding window protocol for this network. The average packet size is 10710^7 bits\text{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 ______.
View worked solution

Answer: 8

To utilize the network to its full capacity, the sender must transmit continuously without waiting for acknowledgments. This requires a sender window size (WsW_s) that can cover the entire round-trip time.

Step 1: Calculate Propagation Delay (TpT_p)
Distance (d)=8000 Km=8×106 m\text{Distance } (d) = 8000 \text{ Km} = 8 \times 10^6 \text{ m}
Propagation Speed (v)=4×106 m/s\text{Propagation Speed } (v) = 4 \times 10^6 \text{ m/s}
Tp=dv=8×1064×106=2 secondsT_p = \frac{d}{v} = \frac{8 \times 10^6}{4 \times 10^6} = 2 \text{ seconds}

Step 2: Calculate Transmission Delay (TtT_t)
Packet Size (L)=107 bits\text{Packet Size } (L) = 10^7 \text{ bits}
Bandwidth (B)=500×106 bps\text{Bandwidth } (B) = 500 \times 10^6 \text{ bps}
Tt=LB=107500×106=0.02 secondsT_t = \frac{L}{B} = \frac{10^7}{500 \times 10^6} = 0.02 \text{ seconds}

Step 3: Calculate Sender Window Size (WsW_s)
For 100%100\% efficiency in Go-Back-NN (GBN):
Ws≥1+2a=1+2TpTtW_s \ge 1 + 2a = 1 + \frac{2 T_p}{T_t}
Ws≥1+2×20.02=1+200=201W_s \ge 1 + \frac{2 \times 2}{0.02} = 1 + 200 = 201

Step 4: Calculate Minimum Sequence Numbers and Bits
In Go-Back-NN, the total number of sequence numbers required is:
Nseq≥Ws+1=201+1=202N_{\text{seq}} \ge W_s + 1 = 201 + 1 = 202
Let kk be the number of bits in the sequence number field:
2k≥202  ⟹  k=⌈log⁡2(202)⌉=8 bits2^k \ge 202 \implies k = \lceil \log_2(202) \rceil = 8 \text{ bits}

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets questions