Sub topic 6
Circuit Switching: Setup, Dedicated Path, and Teardown
Assume you know basic network terminology, bits and bytes, and simple rate calculations. Circuit switching is a communication method in which the network reserves a complete path and fixed resources for two endpoints before data transmission begins.
The Three Phases
A circuit-switched connection has three phases:
- Setup: The network finds a path from sender to receiver and reserves resources on every link.
- Data transfer: The endpoints use the reserved circuit. The data usually travels at a predictable rate.
- Teardown: The connection ends, and the network releases the reserved resources.
During setup, each intermediate device selects an outgoing link and reserves part of its capacity. If any required link lacks an available channel, setup fails or must wait. A successful setup creates a circuit that remains associated with the two endpoints until teardown.
Dedicated Resources
The reserved resource can be separated by frequency-division multiplexing (FDM) or time-division multiplexing (TDM).
- In FDM, a connection receives a frequency band.
- In TDM, a connection receives recurring time slots.
Suppose a 10 Mbps link uses TDM to support 10 equal circuits. Each circuit receives one fixed share:
\[ \text{circuit rate}=\frac{10\text{ Mbps}}{10}=1\text{ Mbps} \]
This rate is available whether or not the sender has data. That predictability is useful for voice, video, and other traffic that needs steady timing.
| Property | Circuit switching |
|---|---|
| Resource allocation | Reserved before data transfer |
| Delay after setup | Usually predictable |
| Idle connection | Can waste reserved capacity |
| Initial cost | Setup delay and signaling |
| Path failure | Circuit must be repaired or established again |
A circuit does not mean that the physical cable is used only by one connection. Other connections can share the cable through FDM or TDM. The circuit is the connection's reserved portion of that shared capacity.
Strengths and Failure Modes
Circuit switching avoids competition for capacity after setup. A connection therefore has low and stable queuing delay. This makes it suitable for continuous streams.
Its main weakness is inefficient use for bursty data. Web requests and short messages often alternate between activity and silence. Reserving capacity for the entire session can leave much of the allocation unused.
The setup phase also adds delay before the first data bit can be sent. If a link or switch fails during the session, the dedicated path is broken. The endpoints must establish another circuit, if one is available.
Packet switching makes a different trade-off. It sends packets when data exists and lets many users share link capacity statistically. This improves utilization for bursty traffic, but packets may wait in queues and may experience different delays. Circuit switching offers stronger predictability; packet switching usually offers better sharing efficiency.
A GATE-Style Calculation
A circuit uses three links. Each link contributes a setup delay of 4 ms, and the circuit carries data for 2 seconds. The total setup delay is:
\[ 3 \times 4\text{ ms}=12\text{ ms} \]
The data-transfer time is still 2 seconds because the circuit is already established. If teardown takes 2 ms per link, the complete connection lifetime is:
\[ 12\text{ ms}+2\text{ s}+6\text{ ms}=2.018\text{ s} \]
Do not multiply the data-transfer time by the number of links. Once the circuit is established, the data flows through the links as a continuous connection.
Exercise
A circuit-switched path has four links. Setup takes 3 ms on each link, data transfer takes 500 ms, and teardown takes 2 ms on each link. What is the total connection time?
Show answer
Setup is 4 × 3 = 12 ms and teardown is 4 × 2 = 8 ms. The total is 12 + 500 + 8 = 520 ms.