Sub topic 6
Circuit Switching: Setup, Dedicated Path, Teardown
This chapter assumes you know what a network link is, can convert between bits, bytes, and rates in bits per second, and have seen the idea of multiplexing (FDM and TDM) from the previous chapter. It covers how circuit switching works, how to compute its total delay, and the mistakes GATE questions tend to exploit.
What circuit switching is
Circuit switching reserves a path of resources between two endpoints before any data moves. The reservation lasts for the whole conversation. The classic example is the traditional telephone network: you dial, the network builds a path to the callee, you talk, and you hang up.
A circuit switching connection has three phases:
- Setup. A signalling message travels from the source toward the destination. Each switch on the way checks that it has spare capacity, reserves a slice of each link, and records the mapping in its switching table. The destination accepts, and an acknowledgement returns to the source.
- Data transfer. Data flows over the reserved path. The path is dedicated, so the data is not buffered, reordered, or delayed by other users' traffic.
- Teardown. One endpoint sends a release message. Each switch frees the reserved slice so that other connections can use it.
What "dedicated" means
The reservation belongs to the connection whether or not it sends anything. If you stay silent during a phone call, the capacity you hold stays idle and nobody else can use it. This is the central trade-off of circuit switching.
Reservations are made with the multiplexing methods from the previous chapter:
- FDM. Each connection gets its own frequency band on every link of the path. The band is held for the whole call.
- TDM. Each connection gets a fixed time slot in a repeating frame on every link. If a link carries frames with n slots, each connection gets 1/n of the link rate.
In both cases, a link of rate R shared among n circuits gives each circuit a rate of R/n.
Worked example: rate per circuit
A link has a rate of 1.536 Mbps. It uses TDM with 24 slots per frame. Each circuit gets
1.536 Mbps / 24 = 64 kbps.
A circuit stays at 64 kbps even when its owner has nothing to send. The 25th request on this link is blocked, because all 24 slots are taken.
Blocking
A circuit switched network can refuse a new connection. If any link on the chosen path has no free circuit, setup fails. The caller hears a busy signal. This is called blocking. Existing connections are unaffected, which is the other side of the dedicated-path guarantee.
A packet-switched network behaves differently under overload. It accepts every packet, and queues grow and packets may be dropped. Circuit switching degrades by refusing new calls, and packet switching degrades by delaying or dropping packets.
The delay formula
The total time from the moment the source starts setup to the moment the destination has received all the data is
total time = setup time + transmission time + propagation delay + teardown time (if teardown is counted)
The parts are:
- Setup time. The signalling message crosses the path and the acceptance returns, so it takes about one round trip. In many textbook problems it is given directly, for example "setup takes 0.2 s".
- Transmission time. Message size L divided by the circuit rate r: L / r. This is paid once, because the data is not stored and forwarded at each switch.
- Propagation delay. Total path length divided by signal speed, paid once for the first bit to reach the destination.
Teardown usually overlaps with nothing that matters for the receiver, so many problems omit it. Read the question to see whether it asks for the time until the last bit arrives or the time until the circuit is released.
Worked example: file transfer over a circuit
A host sends a 640,000-bit file across a circuit-switched network. The link rate is 1.536 Mbps, TDM has 24 slots, and the circuit setup takes 500 ms. Propagation delay end to end is 20 ms.
- Circuit rate: 1,536,000 / 24 = 64,000 bps.
- Transmission time: 640,000 / 64,000 = 10 s.
- Total: 0.5 + 10 + 0.02 = 10.52 s.
The same calculation in code:
def circuit_switched_time(message_bits, link_rate_bps, circuits, setup_s, propagation_s):
"""Time until the last bit arrives over a TDM/FDM circuit.
Switch processing and teardown are ignored."""
circuit_rate = link_rate_bps / circuits # each circuit gets an equal share
transmission = message_bits / circuit_rate
return setup_s + transmission + propagation_s
print(circuit_switched_time(640_000, 1_536_000, 24, 0.5, 0.02)) # 10.52Circuit switching versus packet switching for a single transfer
The dedicated rate is fixed, and that fixed share matters for comparisons. Compare the same 640,000-bit message sent over a packet-switched path with the whole 1.536 Mbps link available to it:
- Transmission time on one link: 640,000 / 1,536,000 ≈ 0.417 s.
Packet switching finishes much sooner for a lone user because it is not limited to a 1/24 slice. The circuit is slower for a single bursty transfer because most of the link's capacity sits in slots the user cannot touch. The circuit wins when the user sends a steady stream, needs a guaranteed rate, or cannot tolerate variable delay.
| Property | Circuit switching | Packet switching |
|---|---|---|
| Resource reservation | Yes, before data moves | No |
| Setup phase | Required | Not for datagrams; required for virtual circuits |
| Per-switch buffering of data | None | Store-and-forward |
| Queuing delay | None once connected | Present |
| Idle capacity | Wasted, cannot be shared | Used by other flows |
| Overload behaviour | New calls blocked | Delay and loss |
| Delay for data | Constant | Variable |
How many users can a link support?
Circuit switching limits users by the number of circuits. A link of 1 Mbps with circuits of 100 kbps supports exactly 10 simultaneous users, however little each one sends.
Packet switching limits users statistically. Suppose each user is active only 10% of the time while sending at 100 kbps. With 35 users, the chance that more than 10 are active at once is tiny, so a 1 Mbps link can serve all 35 with rare, short queues. Circuit switching would serve only 10. This gain is called statistical multiplexing, and it is why bursty data traffic favours packets.
Where circuit switching still appears
- The traditional telephone network (PSTN) and the digital trunks inside it.
- Optical wavelength circuits in backbone networks, where a whole wavelength is reserved between two points.
- Leased lines and some synchronous digital links between sites.
Virtual-circuit packet networks borrow the setup and teardown phases but not the dedicated capacity. That difference is treated in the chapter on datagram and virtual-circuit forwarding.
Common errors
- Adding transmission time at every link. Store-and-forward has that per-link cost. A circuit does not, because the bits flow through switches without waiting for the whole message. Count transmission once.
- Using the full link rate. With TDM or FDM the rate is the link rate divided by the number of circuits, not the link rate.
- Forgetting the setup time. For short messages, setup can dominate the total. A 1 KB message on a circuit with a 0.5 s setup is mostly setup.
- Treating propagation as per-switch. Propagation depends on total distance. Switch processing is usually ignored in this model unless the question gives it.
- Assuming silence frees capacity. A quiet circuit still holds its slot.
Choosing between them
Prefer circuit switching when:
- the traffic is continuous and steady, such as voice;
- delay must be constant and small;
- a guaranteed rate matters more than efficiency.
Prefer packet switching when:
- traffic is bursty;
- many users share the links;
- the network must degrade gradually rather than refuse connections.
Exercise
A link of 2.4 Mbps uses TDM with 30 slots per frame. A host sends a 960,000-bit file over one circuit. Circuit setup takes 0.3 s, and total propagation delay is 10 ms. Ignore switch processing and teardown. How long until the last bit arrives?
Show answer
Circuit rate = 2,400,000 / 30 = 80,000 bps. Transmission time = 960,000 / 80,000 = 12 s. Total = 0.3 + 12 + 0.01 = 12.31 s.
Exercise
A 1 Mbps link is shared using circuits of 50 kbps each. How many users can be connected at once? If each user is active only 5% of the time and sends at 50 kbps, why can packet switching support far more users on the same link?
Show answer
Circuit switching supports 1,000,000 / 50,000 = 20 users, and the 21st is blocked. Under packet switching, the average load per user is 0.05 × 50 kbps = 2.5 kbps, so the link could carry about 400 users on average. In practice, fewer are admitted so the chance of many being active together stays small. Idle users take no capacity, while circuits hold their slots even when idle.
Exercise
Explain why transmission time is counted once in a circuit-switched transfer but once per link in a store-and-forward packet network.
Show answer
A circuit is a reserved end-to-end path, and the switches pass bits through without waiting for the whole message, so the message is pushed onto the path only once. A store-and-forward switch must receive a whole packet before it retransmits it, so each link repeats the transmission.