GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Calculate a store-and-forward packet pipeline

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

How these are solved

Calculate one-packet traversal and then packet-spacing at the bottleneck; total is startup plus remaining packets, retaining stated headers, propagation and forwarding delays. Optimal-packet-size optimization is excluded.

2 marks · MCQ
Report issue

Pipeline packet serialization over two links

Physical Layer & Transmission

Question 36, GATE 2024: A file of 10⁶ bytes travels P→Q→R in consecutive 10³-byte chunks. Each link is 10⁶ bits/s. Chunk headers, propagation, processing and queueing are negligible; chunks are below the MTU. Router Q forwards each complete received packet and can receive one while transmitting another. P starts at t=0. When does R finish receiving? A 8.000 s; B 8.008 s; C 15.992 s; D 16.000 s.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Approach: Separate the time to fill the two-link pipeline from the steady interval between completed packets.
1. The file has 10⁶/10³=1,000 chunks. Each chunk contains 1,000×8=8,000 bits, so one link serializes it in τ=8,000/10⁶=0.008 s.
2. Q receives the first complete chunk at t=τ and transmits it on the second link during the next interval. R therefore finishes the first chunk at 2τ.
3. While Q transmits chunk 1, it receives chunk 2. Both links have the same rate, so each later chunk finishes at R exactly τ after its predecessor. Chunk k finishes at (k+1)τ.
4. The last chunk therefore finishes at 1,001×0.008=8.008 s.
Answer: B. Multiplying the whole-file time by two ignores pipelining; using only 8.000 s ignores the final second-link serialization. Negligible propagation does not mean zero transmission time.

Original paper, page 22 · Answer key

2 marks · NAT
Report issue

Physical Layer & Transmission

Question 56, GATE 2015: Two hosts are connected through one packet switch by two links, each of rate 10⁷ bits/s and propagation delay 20 microseconds. The switch starts forwarding a packet 35 microseconds after receiving that packet. A total of 10000 bits is transmitted as two 5000-bit packets. Under the standard store-and-forward, back-to-back transmission model, how many microseconds elapse between transmission of the first data bit at the source and reception of the last data bit at the destination?
Tap to enlarge
Answer & solution

Official answer: 1575

1. Each5000-bit packet takes 500microseconds to serialize at 107 bits/s.

2. Packet1 fully reaches the switch at 520, begins forwarding at 555, and finishes arriving at the destination at 1075. Packet2 reaches the switch at 1020 and becomes ready at 1055, exactly when the first packet finishes using the outgoing link. It transmits 1055–1555 and its last bit arrives at 1575. This assumes store-and-forward receipt of a complete packet, independent links and processing that can overlap forwarding, as in the standard switch model.

Original paper, page 75 · Answer key

2 marks · MCQ
Report issue

Physical Layer & Transmission

Question 26, GATE 2014: A store-and-forward path A→R1→R2→B has three links, each 10^6 bytes/s. A sends a 10^3-byte file as: one packet (time T1), 10 equal payload packets (T2), or 20 equal payload packets (T3). Each packet adds a 100-byte header. Ignore propagation, processing, queuing, errors. Which holds? A T1<T2<T3; B T1>T2>T3; C T2=T3<T1; D T1=T3>T2.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. Set up the reasoning. For p equal packets, one packet takes (1000/p+100)/106 seconds per link. Store-and-forward needs three such intervals for the first packet, then one additional interval for each remaining packet.

2. Derive the result. With p equal-sized packets over 3 store-and-forward links, the pipelined time is(p+2) times one packet’s transmission time. T1=3·1100/10⁶=.0033s; T2=12·200/10⁶=.0024s; T3=22·150/10⁶=.0033s. Thus T1=T3>T2, D.

3. Check the interpretation. The pipeline therefore occupies p+2 packet-transmission intervals, not 3p intervals. More packets improve pipelining but increase header overhead; this trade-off explains why twenty packets are not automatically faster than ten.

Original paper, page 35 · Answer key

2 marks · MCQ
Report issue

Packet pipeline across three equal links

Physical Layer & Transmission

Question 44, GATE 2012: A source S sends a 10^6-bit file to D through two store-and-forward routers R1,R2 and three links S→R1→R2→D. Every link is 100 km long, has bandwidth 1 Mbps, and signal speed 10^8 m/s. The file is split into 1000 packets of 1000 bits each. Find the elapsed transmission-plus-propagation delay for the whole file, without additional processing or queuing delay.
(A) 1005 ms (B) 1010 ms (C) 3000 ms (D) 3003 ms.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A packet takes 1000/10⁶ s=1 ms to transmit on each link. Each link propagation delay is 100, 000/10⁸ s=1 ms. With store-and-forward routers and no extra processing/queueing delays, the first packet reaches D after 3×(1+1)=6 ms. Subsequent packets emerge from the equal-rate pipeline 1 ms apart, so the final packet arrives at 6+999=1005 ms, A. Equivalently, total elapsed completion time is (1000+3−1)×1+3×1 ms. Summing the service time separately over all packets is not the elapsed file-transfer time asked for.

Check: For a single packet, store-and-forward requires all three serial transmissions plus all three propagations. For many packets, transmissions overlap on different links; only 999 additional packet times follow the first packet, rather than 999 complete end-to-end delays.

Original paper, page 11 · Answer key