4.3.7 · D3Computer Networks

Worked examples — Switching — circuit, packet, virtual circuit

2,623 words12 min readBack to topic

This page is the drill floor for Switching — circuit, packet, virtual circuit. We take the three delay formulas and push them into every corner: single packet vs many, zero hops, huge setup, the pipelining limit, a real-world word problem, and an exam twist that mixes queueing in. Each example tells you which cell of the scenario matrix it hits, so you can be sure nothing is left uncovered.

Before we start, let us re-anchor the symbols so this page stands on its own — never trust that you remember them.

Recall Which term ignores message size entirely?

Propagation ::: it depends only on distance (hops), not on how many bits you send.


The scenario matrix

Every switching problem lands in one of these cells. The worked examples below each carry a tag like [Cell A2] so you can check coverage.

Circuit Datagram Virtual Circuit
Normal message A1 · one , add setup A2 · single packet, A3 · setup + cheap forward
Chopped into packets — (streamed, not chopped) B2 · pipelining formula B3 · same pipeline, label swap
Degenerate: (one hop) C1 C2 · datagram = circuit here
Limiting: D2 · transmission
Zero setup / zero propagation E1 · or E2 ·
Real-world word problem F2 · file transfer race
Exam twist: add queueing G2 · per-hop queue delay

We now walk cells A1, A2, A3, B2, C2, D2, E1, F2, G2 — that touches every row and every column at least once.



Figure — Switching — circuit, packet, virtual circuit








Recall In one line: why does packet switching win the real-world race?

Pipelining drives the store-and-forward penalty down toward , and there is no setup cost — so datagram beats circuit for bursty file transfer (Examples 4, 8). ::: This is why the Internet is packet-switched.


See also: Routing Algorithms (how datagram switches pick the outgoing link), MPLS and ATM (real virtual-circuit systems using label swapping), Computer Networks (the parent subject).