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
| Given | Value |
|---|---|
| M | 12000 bits |
| h | 3 |
| k | 6 |
| R | 1,000,000 bits/s |
| τ | 0.002 s/link |
| Circuit setup | 0.01 s |
To find
Time until the final data bit reaches the destination in each method.
Formula and why
T_m=hM/R+h\tauT_p=(h+k-1)L/R+h\tauT_c=T_{\mathrm{setup}}+M/R+h\tauMessage 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.