GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Compute stop-and-wait cycle efficiency

6 questions solved the same way, newest first. Back to Computer Networks

How these are solved

Sum data serialization, two propagation delays, ACK serialization and stated processing; divide useful transmission time by cycle time or solve the inverse equation. Preserve one-way delay and payload-versus-overhead distinctions;

2 marks · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 36, GATE 2025: Stop-and-wait sends 3000-bit frames on a 2000-bit/s channel. One-way propagation delay is 100 ms. Ignore processing time and ACK transmission time. Which offered percentage best approximates channel utilization?
Options: A. 88.23; B. 93.75; C. 85.44; D. 66.67.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (4 steps)

Frame transmission takes T_tx=3000/2000=1.5 seconds. Once the last data bit leaves the sender it still needs 0.1 seconds to reach the receiver. The negligibly short ACK then needs another 0.1 seconds to propagate back. Therefore the interval from starting one frame until being allowed to start the next is T_cycle=1.5+0.1+0.1=1.7 seconds.

The sender uses the channel to transmit data for 1.5 seconds of each 1.7-second cycle, so utilization is U=1.5/1.7=15/17≈0.88235294, or 88.235294 percent. Equivalently U=1/(1+2a), where a=T_prop/T_tx.

A is the nearest listed choice. The displayed 88.23 is a truncated/approximate option; conventional rounding of the calculated percentage to two decimal places gives 88.24. Ignoring the return propagation would overestimate utilization, while treating the 100 ms as a round trip would change the supplied assumption. Answer: A.

Original paper, page 27 · Answer key

1 mark · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 17, GATE 2023: Two hosts use stop-and-wait on a point-to-point link. For the same frame size, which combination gives lowest utilization? A longer link/lower bit rate; B longer link/higher bit rate; C shorter link/lower bit rate; D shorter link/higher bit rate.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Ignoring a negligible ACK, stop-and-wait utilization is T_tx/(T_tx+2T_prop)=1/(1+2T_prop R/L) for fixed frame size L. A longer link raises propagation time, and a higher transmission rate R shortens transmission time relative to the wait. Both decrease utilization, so the lowest is B.

Teaching detail. Let L be frame bits, R link bits/second, and d one-way propagation time. The sender spends L/R seconds transmitting, then approximately 2d waiting for propagation and acknowledgment before the next frame. Thus the useful busy fraction is (L/R)/(L/R+2d). Faster transmission can improve absolute throughput while lowering this fraction, because a short burst is followed by the same propagation wait. This distinction between utilization and raw link speed is the main trap in the options.

Original paper, page 14 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 45, GATE 2017: Stop-and-wait ARQ: bit rate 1 Mbps; one-way propagation 0.75 ms; frame processing time 0.25 ms; information-frame length 1980 bytes; ACK length 20 bytes; information-frame overhead 20 bytes. No errors. Find useful-data transmission efficiency as a percentage to two decimals.
Tap to enlarge
Answer & solution

Official answer: 86.5 to 89.5

Our answer: 87.11 under stated whole-frame convention

1. Interpret 1980 bytes as total information-frame length including its 20 overhead bytes. Useful payload=1960 bytes, so useful transmission time is 1960×8/106 s=15.68 ms.

2. A full stop-and-wait cycle includes information transmission 1980×8/10^6=15.84 ms; outward and return propagation 2×0.75=1.50 ms; ACK transmission 20×8/10^6=0.16 ms; and two received-frame processing times 2×0.25=0.50 ms. Total=18.00 ms.

3. Efficiency=useful payload time/cycle time=15.68/18=0.871111..., or 87.11%. If “1980” instead denotes payload before overhead, use 15.84/18.16, giving 87.22%.

Original paper, page 20 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 55, GATE 2016: A sender uses stop-and-wait ARQ with 1000-byte frames at 80 Kbps. ACKs have 100 bytes and the receiver sends them at 8 Kbps. One-way propagation is 100 ms;1 Kbps=1000 bits/s. Assuming no loss and no processing delay, find sender throughput in bytes/s.
Tap to enlarge
Answer & solution

Official answer: 2500.0 : 2500.0

Our answer: 2500

Step through it (5 steps)

Data serialization takes 8000/80000=0.1s. ACK serialization takes 800/8000=0.1s, and round-trip propagation contributes 0.2s. With no specified processing delay, each stop-and-wait cycle is 0.4s and carries 1000 bytes. Throughput=1000/0.4=2500 bytes/s.

A stop-and-wait cycle includes four serial intervals: data transmission 0.1s, forward propagation 0.1s, ACK transmission 0.1s and return propagation 0.1s. The next frame cannot begin until the ACK finishes arriving. Only 1000 data bytes are useful sender throughput per cycle; adding ACK bytes to the numerator would measure a different quantity. Convert bits to bytes consistently: the data frame is 8000 bits and the ACK is 800 bits, so their unequal link rates nevertheless produce equal serialization times.

Original paper, page 20 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 36, GATE 2015: Stop-and-wait uses a 64-kilobit/s link with “20 milliseconds propagation delay.” ACK transmission and node processing are negligible. Find the minimum frame size in bytes for at least 50% utilization.
Tap to enlarge
Answer & solution

Official answer: 160

Our answer: 320 bytes for one-way 20ms; official 160

For frame transmission time T and one-way propagation d, a cycle lasts T+2d: the last data bit travels outward and the ACK returns. Requiring T/(T+2d)≥1/2 gives T≥2d. At d=0.020 s this requires 0.040 s of data transmission, or 64000×0.040/8=320 bytes. The official 160 gives only 1/3 utilization under that model, but gives 1/2 if the stated 20 ms is RTT. Retain both interpretation and official scoring explicitly.

Solution: Ignoring ACK serialization, stop-and-wait utilization is T/(T+2Tp). At50%, T=2Tp. With the stated propagation delay Tp=20ms, T=40ms and frame size 64000·0.040=2560 bits=320 bytes. The official 160 bytes instead treats 20ms as the entire round-trip delay. The one-way versus round-trip interpretation changes the answer and is explicitly unresolved.

Original paper, page 14 · Answer key

1 mark · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 34, GATE 2015: Stop-and-wait link rate 10^6 bits/s, 1000-byte data packets, negligible ACK transmission/processing, and equal forward/back propagation. Efficiency 25%. Find one-way propagation delay in ms.
Tap to enlarge
Answer & solution

Official answer: 12

Step through it (3 steps)

Transmission time is 8000/106=8 ms. Efficiency 8/(8+2Tp)=1/4 gives 8+2Tp=32, hence Tp=12 ms.

Data transmission time is 1000×8/106=.008 seconds=8 ms. One complete stop-and-wait cycle is 8+2t_pms when ACK transmission and processing are negligible. Efficiency is useful transmission time divided by cycle time, so 8/(8+2t_p)=.25. Multiply through to get 8+2t_p=32 and tp=12 ms. The two propagation traversals explain why the leftover 24 msmust be halved.

Original paper, page 37 · Answer key