Computer Networks · TEE · practice

Compare completion times · example 1

Switching techniques · optional practice

Optional extension · no matching calculation in the two supplied papers

Optional worked extension. This calculation format was not found in the supplied December 2025 final or February 2026 re-exam. The numbers and practice marks are authored. Study the core concept and actual-paper questions first; this is extra explanation, not a TEE prediction.

Practice question. A 12,000-bit message crosses 3 links, each 1 Mbps with 2 ms propagation delay. Compare whole-message switching, packet switching using 6 equal packets without headers, and a circuit with 10 ms setup. Ignore processing and queueing. [3 practice marks]

Answer

Given

GivenValue
M12000 bits
h3
k6
R1,000,000 bits/s
τ0.002 s/link
Circuit setup0.01 s

To find

Time until the final data bit reaches the destination in each method.

Formula and why

T_m=hM/R+h\tauLaTeX: T_m=hM/R+h\tau
T_p=(h+k-1)L/R+h\tauLaTeX: T_p=(h+k-1)L/R+h\tau
T_c=T_{\mathrm{setup}}+M/R+h\tauLaTeX: T_c=T_{\mathrm{setup}}+M/R+h\tau

Message switching repeats whole-message serialization at every hop. Packet switching pipelines equal packets. A circuit streams bits through the established equal-rate path.

Step-by-step solution

Step 1. Find packet size

L=M/k=12000/6=2000 bits.

Step 2. Whole-message completion

3×12000/1,000,000 + 3×0.002 = 0.042000 s = 42 ms.

Step 3. One packet transmission time

L/R=2000/1,000,000=0.002 s.

Step 4. Pipelined packet completion

(3+6−1)×0.002+3×0.002=0.022000 s = 22 ms.

Step 5. Circuit completion

0.01+12000/1,000,000+3×0.002=0.028000 s = 28 ms.

Final answer: Message=42 ms; packets=22 ms; circuit=28 ms.