Loading content...
Before a single word travels across a circuit-switched network, an elaborate dance must occur. This dance—connection establishment—is the process of creating the dedicated path we examined in the previous page. It involves signaling between endpoints and the network, negotiation of resources, path selection through potentially complex network topologies, and coordination among multiple switches.
Connection establishment is what distinguishes circuit switching from other paradigms. In packet switching, data can flow immediately—each packet carries its own addressing and routing information. In circuit switching, the network must first prepare itself to carry your communication: allocating resources, configuring switches, and verifying end-to-end connectivity.
This page examines connection establishment in meticulous detail, from the moment you lift a telephone handset to the instant you hear the other party say 'Hello.'
By the end of this page, you will understand the complete lifecycle of connection establishment: the three-phase model (setup, data transfer, teardown), in-band vs. out-of-band signaling, the role of signaling protocols like SS7, how routing decisions are made, and what happens when connections fail. This knowledge applies not only to traditional telephony but to any connection-oriented communication system.
Every circuit-switched communication follows a three-phase lifecycle. Understanding these phases is fundamental to grasping how circuit switching operates and where its overhead costs arise.
Phase 1: Circuit Establishment (Call Setup)
Before any user data can flow, the circuit must be established. This phase involves:
Phase 2: Data Transfer
Once the circuit is established, the dedicated path becomes available for communication:
Phase 3: Circuit Disconnect (Teardown)
When communication ends, resources must be released:
Circuit establishment isn't instant. In traditional telephone networks, setup can take 3-10 seconds—dial tone, digit collection, routing, ringing. For short communications (like a brief data query), this setup delay might exceed the actual data transfer time. This overhead is a fundamental limitation of circuit switching for bursty, short-lived communications.
Signaling is the mechanism by which endpoints and the network exchange control information to establish, manage, and terminate circuits. It's the 'control plane' that orchestrates the 'data plane' (the actual voice or data transmission).
Types of signaling:
| Signaling Type | Purpose | Direction | Examples |
|---|---|---|---|
| Supervisory | Line state (on-hook, off-hook, ringing) | User ↔ Network | Loop current detection, hook flash |
| Address | Called party identification | User → Network | Dialed digits (DTMF, pulse dialing) |
| Informational | Call progress feedback | Network → User | Dial tone, busy tone, ringback |
| Inter-switch | Coordination between switches | Switch ↔ Switch | SS7 ISUP messages, trunk signaling |
In-band vs. Out-of-band signaling:
A critical architectural decision in signaling design is whether control information shares the same channel as user data (in-band) or uses a separate channel (out-of-band).
In-band signaling:
Historically, telephone networks used in-band signaling, where control tones traveled over the same voice circuit:
Advantages:
Disadvantages:
In the 1960s-1970s, 'phone phreakers' discovered that generating specific 2600 Hz tones could control trunk signaling, enabling free long-distance calls. This security flaw in in-band signaling drove the development of out-of-band signaling systems like SS7.
Out-of-band signaling:
Modern networks use out-of-band signaling, where control messages travel on separate channels:
Advantages:
Disadvantages:
Signaling System 7 (SS7) is the global standard protocol suite that orchestrates circuit-switched telecommunications. Understanding SS7 reveals how connection establishment actually works in telephone networks at a technical level.
SS7 architecture:
SS7 creates a separate packet-switched network dedicated to carrying signaling messages. This network is distinct from the circuit-switched voice network:
SS7 protocol layers:
SS7 is organized into layers similar to the OSI model:
Physical Layer: MTP Level 1
Data Link Layer: MTP Level 2
Network Layer: MTP Level 3
User Part Layer: ISUP (ISDN User Part)
| Message | Direction | Purpose |
|---|---|---|
| IAM (Initial Address Message) | Forward | Initiates call setup, carries called number, circuit ID |
| ACM (Address Complete) | Backward | Called party found, ringing applied, alerting caller |
| ANM (Answer Message) | Backward | Called party answered, start billing, enable talk path |
| REL (Release) | Either | Request to release circuit, call ending |
| RLC (Release Complete) | Either | Confirm circuit released, resources freed |
| CPG (Call Progress) | Backward | In-call status updates (alerting, forwarding, etc.) |
SS7's architecture—a separate, reliable packet network for control plane messaging—influenced the design of modern systems. SIP for VoIP, OpenFlow for SDN, and Diameter for mobile networks all reflect the insight that control and data planes benefit from separation.
Let's trace through a complete call setup, examining what happens at each stage from the moment you lift the handset to when you hear 'Hello' on the other end.
Stage 1: Off-Hook Detection
When you lift the telephone handset, you close a switch that allows current to flow through the local loop (the copper pair connecting your phone to the telephone exchange). The exchange detects this current flow within milliseconds.
Technical detail: The local loop typically carries 20-50 mA of DC current when off-hook (phone in use) versus near-zero when on-hook (phone idle). Line cards at the exchange monitor this current continuously.
Time budget for call setup:
Each stage consumes time:
| Stage | Typical Duration |
|---|---|
| Off-hook detection | 10-50 ms |
| Dial tone delivery | 100-500 ms |
| Digit collection (7 digits) | 2-4 seconds |
| Routing and SS7 signaling | 500-1500 ms |
| Ringing (until answer) | Variable (seconds) |
Post-Dialing Delay (PDD):
The time from completing dialing to hearing ringback is called Post-Dialing Delay. International calls historically had PDD of 5-15 seconds; modern networks target under 3 seconds.
Optimizations:
Circuit setup isn't instantaneous because it involves real resource allocation at multiple switches. Each switch must verify trunk availability, cross-connect internal paths, and update its call state tables. This is fundamentally different from packet switching, where routers make independent, per-packet decisions with no advance coordination.
In complex networks with multiple paths between any two points, how does the network choose which route a circuit should take? Path selection in circuit-switched networks differs fundamentally from packet routing.
Hierarchical routing in PSTN:
Traditional telephone networks used a hierarchical structure with multiple levels of switches:
Class 5: Local Exchange (End Office)
Class 4: Toll Center / Tandem
Class 3/2/1: Primary/Sectional/Regional Centers
Routing strategies:
1. Final Route (Hierarchical):
Every switch has a guaranteed 'final route' following the hierarchy. A call always has a path by climbing up the hierarchy and descending to the destination. This ensures universal connectivity but may use more trunks than necessary.
2. High-Usage Routes:
For common traffic patterns, direct trunks ('high-usage routes') connect switches that frequently exchange calls, bypassing the hierarchy:
3. Dynamic Routing:
Modern networks use dynamic algorithms that consider real-time network conditions:
Trunk hunting sequences:
When selecting an outgoing trunk, switches use hunting sequences that define the order to try trunk groups:
1. Try high-usage route to destination tandem (if available)
2. If blocked, try high-usage route to alternate tandem
3. If blocked, use final route up the hierarchy
4. If all routes blocked, return busy signal
This provides efficiency (use direct routes when available) while ensuring reliability (always have fallback paths).
In circuit switching, the dialed number determines the destination, but the actual path may vary based on network conditions and available routes. A call to the same number might take a different physical route on different days or even at different hours. This is analogous to how IP addresses determine destination but routing protocols determine the path.
A fundamental characteristic of circuit switching is that it can block new connection requests. If all resources along any necessary path are in use, the network cannot establish a new circuit—even if there's capacity elsewhere in the network.
Why blocking occurs:
Circuit switching guarantees resources once a circuit is established. This means resources cannot be over-subscribed or borrowed from active calls. When demand exceeds capacity, new requests must be refused.
Blocking probability:
Network engineers design circuit-switched networks to achieve target blocking probabilities:
The Erlang B Formula:
Traffic engineering for circuit-switched networks relies on the Erlang B formula, which calculates blocking probability given traffic load and number of circuits:
$$B = \frac{\frac{A^N}{N!}}{\sum_{k=0}^{N}\frac{A^k}{k!}}$$
Where:
Traffic measurement: Erlangs
The Erlang is the fundamental unit of telephone traffic, representing one hour of usage per hour:
Example calculation:
If a trunk group carries 10 Erlangs of traffic (e.g., 120 calls/hour averaging 5 minutes each), and you want P(blocking) < 1%:
| Trunks | Blocking Probability |
|---|---|
| 15 | 8.01% |
| 16 | 5.26% |
| 17 | 3.31% |
| 18 | 2.00% |
| 19 | 1.15% |
| 20 | 0.65% |
You need 20 trunks to achieve <1% blocking with 10 Erlangs of traffic.
Erlang traffic engineering is probabilistic—it assumes random call arrivals and durations following specific patterns. This is accurate for large populations of independent callers (central limit theorem applies). However, events that correlate calling behavior (disasters, holidays) can dramatically increase blocking beyond predictions.
Call Admission Control (CAC):
Modern circuit-switching-like systems implement explicit Call Admission Control to manage blocking:
1. Pre-admission checking:
2. Congestion throttling:
3. Priority reservations:
4. Alternate routing with fallback:
These mechanisms ensure that when blocking occurs, it's handled gracefully and recovery is rapid when capacity becomes available.
Connection establishment can fail for many reasons beyond simple blocking. Understanding failure modes and recovery mechanisms is essential for appreciating the robustness engineered into circuit-switched networks.
Types of connection failures:
| Failure Type | Cause | Detection Method | Response |
|---|---|---|---|
| Blocking | No available trunks on needed route | Trunk busy during selection | Try alternate route or return busy |
| Address incomplete | Too few or invalid digits | Number analysis failure | Return reorder/error tone |
| Called party busy | Destination line in use | Line status query | Return busy tone to caller |
| No answer | Called party doesn't pick up | Timeout (60-120 seconds) | Return silence or no-answer tone |
| Network congestion | Too many call attempts | Signaling overload detected | Return fast busy or recording |
| Equipment failure | Switch/trunk malfunction | Signaling timeout or error | Retry via alternate route |
| Signaling failure | SS7 network problems | Message timeout or NAK | Retry or failover to backup |
Failure detection timing:
The speed of failure detection directly impacts user experience. Circuit-switched networks implement multiple timeout levels:
Short timeouts (100-500ms):
Medium timeouts (3-10 seconds):
Long timeouts (30-120 seconds):
Recovery mechanisms:
1. Automatic Alternate Routing (AAR): When a route fails, automatically attempt pre-configured alternate routes:
Primary: Direct trunk to destination — FAIL
Alternate 1: Via regional tandem — FAIL
Alternate 2: Via interexchange carrier — SUCCESS
2. Retry with backoff: For transient failures, retry the same route after a delay:
3. Glare resolution: Glare occurs when both ends of a trunk try to seize it simultaneously for different calls. Resolution:
When major network elements fail, traffic that would normally use those elements floods onto alternate routes. This can cause blocking to spread (cascade) across the network. Robust networks implement traffic management controls to prevent cascade failures—shedding excess load at the source rather than overloading alternate paths.
Just as circuits must be established before use, they must be formally released afterward. Circuit teardown is the final phase of the circuit-switching lifecycle, freeing resources for reuse.
Teardown initiation:
Teardown can be initiated by:
The teardown message sequence:
Release message (REL) contents:
The REL message carries important information:
Cause Code — Why the circuit is being released
Circuit Identification Code (CIC) — Identifies which trunk to release
Release initiator — Indicates whether forward or backward REL
Resource deallocation sequence:
At each switch in the path:
Abnormal teardown:
When components fail during a call:
Link failure:
Switch failure:
Orphaned circuits:
If teardown signaling is lost, circuits can become 'orphaned'—reserved but unused. Switches implement periodic audits:
From off-hook to on-hook, a circuit-switched call involves hundreds of messages, state transitions, and resource operations. The elegance of this system—refined over a century—enables billions of calls to complete reliably every day. Understanding this lifecycle reveals why circuit switching achieved such remarkable reliability.
We have comprehensively examined how circuits are established in circuit-switched networks. Let's consolidate the essential insights:
What's next:
Now that we understand how dedicated paths are established, we'll examine Resource Reservation—the mechanisms that actually allocate bandwidth, switch capacity, and transmission resources along the circuit. You'll learn about different reservation granularities, overbooking strategies, and how modern networks apply reservation concepts.
You now possess expert-level understanding of connection establishment in circuit-switched networks. This knowledge extends beyond legacy telephony—the concepts of signaling separation, admission control, and graceful failure handling inform modern system design across networking and distributed systems.