3.4 Controlled Access & Channelization: Token Ring, FDMA, TDMA, CDMA
💡 Core Intuition: The International Conference Analogy
🍳 The Everyday Analogy: Three Ways to Run a Meeting
Imagine 20 foreign delegates in a conference room who all need to communicate:
- Random Access (ALOHA / CSMA): An unruly crowd with no rules. People try to speak when they feel like it; whenever two people speak at once, their voices collide, forcing both to stop and retry. Under heavy debate, the room devolves into chaos.
- Controlled Access (Token Passing / Polling): A chairperson holds a physical brass gavel or microphone (The Token). Only the delegate holding the gavel is permitted to speak. When finished, they pass the gavel clockwise to the next delegate. Even if all 20 delegates want to speak simultaneously, zero collisions ever occur, but delegates must wait patiently for their turn.
- Channelization (CDMA): All delegates speak at the exact same time across the entire room. How? Pair speaks fluent Japanese, Pair speaks fluent French, and Pair speaks fluent German. To an English listener, the French and German conversations sound like background white noise. The French listener mathematically filters out everything except the specific grammatical structure of French (Orthogonal Codes), extracting clean speech without interference!
💻 Bridging to Computer Science
Random access protocols excel under light, bursty network traffic because stations transmit with zero delay. However, when traffic becomes heavy, collisions increase exponentially, causing throughput to collapse.
To provide guaranteed throughput, deterministic latency, and zero collisions, computer networks deploy Controlled Access (Reservation, Polling, Token Ring) and Channelization (FDMA, TDMA, CDMA).
📑Table of Contents
- 🗺️ The MAC Protocol Landscape (Contention vs Controlled vs Sliced)
- 🗳️ Controlled Access: Reservation & Polling Architectures
- 🪙 Token Passing & IEEE 802.5 Token Ring Internals
- 📊 Channelization Foundations: FDMA vs TDMA
- 🧮 CDMA: Mathematical Foundations & Orthogonal Walsh Codes
- 📡 CDMA Step-by-Step Encoding & Signal Recovery
- 🏭 Real-World Production Context: How GPS & 3G Cellular Harness Orthogonal Codes
- 📐 Numerical Applications & Worked Examples
- 🎯 Exam & Interview Pitfall Check
🗺️ The MAC Protocol Landscape (Contention vs Controlled vs Sliced)
The Medium Access Control (MAC) sublayer divides into three fundamental philosophies:
Contrasting collision behavior, traffic suitability, and channel coordination
Random Access (Contention)
- •Stations contend freely for the channel without central coordination.
- •Zero setup delay: perfect for bursty, sporadic computer data traffic.
- •Collisions can occur; requires retransmissions and backoff timers.
- •Throughput degrades under high traffic loads as collisions dominate.
Controlled Access & Channelization
- •Stations take explicit turns (Controlled) or share sliced spectrum (Channelized).
- •Deterministic latency: guarantees bounded delay and fixed bandwidth.
- •Zero collisions: mathematical guarantee of collision-free operation.
- •Overhead: polling frames, token circulation delay, or hardware code complexity.
🗳️ Controlled Access: Reservation & Polling Architectures
In controlled access, stations consult one another or a master controller to determine who holds transmission rights. A station cannot transmit unless authorized.
1. The Reservation Method
On a shared link with stations, time is divided into intervals consisting of a Reservation Frame followed by Data Frames:
Frame Format Anatomy
N-slot reservation bitmask announces transmission intent, followed by collision-free sequential data frames
Station 1 flags bit = 1 to reserve transmission rights in the upcoming cycle.
- The reservation frame contains exactly mini-slots (one bit per station).
- If Station has a frame ready to transmit, it sets its corresponding mini-slot bit to
1. If idle, it leaves it0. - After the reservation frame finishes, all stations inspect the reservation vector. Every station that reserved a slot transmits its data frame sequentially in predetermined numerical order.
- Because transmission order is established during the reservation phase, collisions are physically impossible.
2. The Polling Method (Primary-Secondary Architecture)
Polling is designed for asymmetric master-slave topologies (such as industrial SCADA sensors, USB hosts, or mainframes connected to dumb terminals). One node is designated as the Primary Station (Master), and all other nodes are Secondary Stations (Slaves):
Central master polls each secondary slave sequentially over a shared multi-drop cable
Primary Station
Controls the entire bus; initiates all Select (downlink) and Poll (uplink) control frames.
Secondary Node 1
No data queued: returns a NAK frame to Master, yielding channel rights immediately.
Secondary Node 2
Data ready: transmits buffered data frame to Primary; awaits ACK confirmation.
Secondary Node 3
Next in round-robin queue; interrogated in order on subsequent polling round.
All communication flows through the Primary station. Two operational functions exist:
A. The Select Function (Primary Transmitting to Secondary)
When the Primary has data to send to a Secondary:
- The Primary issues a short Select (SEL) Frame containing the target Secondary's address: "Device 2, are you ready to receive?"
- The Secondary checks its buffer and replies with an ACK (ready) or NAK (busy).
- Upon receiving ACK, the Primary transmits the data frame.
B. The Poll Function (Primary Receiving from Secondary)
When the Primary is ready to receive data, it queries each secondary sequentially:
- Primary sends a Poll Frame to Secondary 1: "Do you have data to send?"
- If Secondary 1 has data, it transmits its data frame; Primary responds with an ACK.
- If Secondary 1 has no data, it returns a NAK Frame.
- The Primary immediately advances to Secondary 2, repeating the round-robin cycle.
The Polling Latency Tradeoff: If a broadcast channel has 100 nodes and only 1 node has data, the Primary must query 99 idle nodes and receive 99 NAKs before reaching the active node. This round-trip interrogation time is called Polling Overhead.
🪙 Token Passing & IEEE 802.5 Token Ring Internals
Standardized as IEEE 802.5 (and optical FDDI), Token Passing eliminates the single-point-of-failure master station by organizing nodes into a decentralized logical ring:
4-Station logical ring passing 3-byte token frame clockwise to grant collision-free transmission rights
The Ring Architecture & The Token
-
Every station has a defined Predecessor and Successor in the ring.
-
A small, unique 3-byte control frame called The Token circulates perpetually around the ring in one direction:
-
Transmission Rule:
- If a station receives the token and has no data to transmit, it regenerates the token and forwards it immediately to its successor.
- If a station has data to transmit, it captures the token (changes a single bit in the Access Control byte from
TokentoStart-of-Frame), converting it into a data frame, appends its payload, and dispatches it onto the ring.
-
Circulation & Acknowledgment:
- The frame travels station-by-station around the ring. Each node inspects the Destination MAC address.
- When the intended recipient receives the frame, it copies the data into its local RAM buffer and sets the Frame Copied (C) and Address Recognized (A) bits in the frame trailer.
- The frame continues around the ring until it returns to the original sender.
-
Token Release:
- The sender inspects the returned frame to confirm the recipient copied it, strips its own data frame off the ring, and generates a brand-new free token, passing channel rights to its successor.
Token Management & Fault Tolerance
What happens if a workstation holding the token experiences a sudden power loss? The token disappears, and the entire ring halts!
To guarantee stability, Token Ring implements Active Monitor management:
- One station is elected as the Active Monitor.
- The Active Monitor runs a Token Watchdog Timer. If no token passes the monitor within the maximum possible ring circulation time, the monitor clears the ring and injects a fresh token.
- If a frame circulates indefinitely (because the sender crashed before stripping it), the Active Monitor detects its own
Monitor Bitset to1on a second pass, purges the orphan frame, and releases a new token.
📊 Channelization Foundations: FDMA vs TDMA
Channelization divides the physical channel capacity into dedicated orthogonal subchannels so multiple stations can transmit concurrently without interference:
Contrasting frequency division against time division multiplexing
FDMA (Frequency-Division Multiple Access)
- •The total bandwidth is divided into narrow frequency sub-bands.
- •Each station is permanently assigned a dedicated frequency band.
- •Stations transmit continuously in time over their allocated sub-band.
- •Requires Guard Bands between adjacent frequencies to prevent crosstalk.
- •Inefficient for bursty data: assigned frequency sits idle if station is silent.
TDMA (Time-Division Multiple Access)
- •All stations share the entire wideband frequency spectrum.
- •Time is divided into periodic frames composed of synchronized time slots.
- •Each station transmits at full line rate strictly during its assigned slot.
- •Requires Guard Times and synchronization preambles between slots.
- •High spectral efficiency: eliminates analog frequency filtering hardware.
🧮 CDMA: Mathematical Foundations & Orthogonal Walsh Codes
Code-Division Multiple Access (CDMA) represents one of the most elegant mathematical breakthroughs in telecommunications (forming the foundation of 3G cellular, GPS, and spread-spectrum Wi-Fi).
The Core Principle
- In FDMA, stations use different frequencies.
- In TDMA, stations use different time slots.
- In CDMA, all stations transmit simultaneously in time over the exact same frequency band!
Interference is prevented using Orthogonal Code Theory (Spread Spectrum). Each station is assigned a unique, fixed chip sequence (code vector) .
Mathematical Rules of Chip Sequences
Let represent an -element vector of s and s assigned to Station :
The vector operations satisfy two fundamental linear algebraic properties:
1. Normalized Self Inner Product (Autocorrelation)
The dot product of any chip sequence with itself, divided by code length , equals :
2. Orthogonal Cross Product (Cross-Correlation)
The dot product of two distinct station sequences and () is identically zero:
Generating Orthogonal Sequences: Walsh Matrices
Walsh-Hadamard matrices recursively construct sets of mutually orthogonal vectors:
For a 4-station network ():
Expanding this recursion yields the four mutually orthogonal chip sequences:
| Station | Matrix Vector | Assigned Chip Sequence () | Physical Voltage Representation |
|---|---|---|---|
| Station 1 | Row 1 of | ||
| Station 2 | Row 2 of | ||
| Station 3 | Row 3 of | ||
| Station 4 | Row 4 of |
📡 CDMA Step-by-Step Encoding & Signal Recovery
Data Bit Encoding Rules
When Station wants to send a bit :
- If , it transmits vector:
- If , it transmits vector:
- If Station is silent (idle), it transmits vector:
Channel Superposition
All stations transmit into the same shared physical medium simultaneously. The signals combine additively on the wire:
Receiver Demultiplexing (Decoding)
To extract the data bit sent by Station , the receiver takes the composite signal received from the wire and computes the inner dot product with Station 's known chip sequence , divided by :
Expanding the inner product:
Because all codes are orthogonal ( for all ), the entire summation over other stations vanishes into zero:
- If result is Station sent bit 1.
- If result is Station sent bit 0.
- If result is Station was silent.
🏭 Real-World Production Context: How GPS & 3G Cellular Harness Orthogonal Codes
CDMA's spread-spectrum mathematics is one of the most commercially impactful inventions in modern physics:
1. Global Positioning System (GPS Satellites on a Single Carrier)
There are 31 active GPS satellites orbiting Earth at an altitude of .
- The Engineering Marvel: Every single GPS satellite broadcasts continuously on the exact same carrier frequency (, known as L1).
- How Smartphones Demultiplex 31 Satellites: Each satellite is assigned a unique 1023-bit Gold Code sequence (a pseudorandom orthogonal code). The received radio signal at your smartphone's antenna is actually weaker than background thermal noise (below the noise floor)!
- By correlating the antenna noise with known satellite Gold Codes, your phone extracts individual satellite signals with mathematical precision, measures signal transit time down to nanoseconds, and triangulates your geographic location within meters.
2. 3G Mobile Networks (Qualcomm CDMA2000 & UMTS)
In 2G GSM networks, adjacent cell towers had to use completely different radio frequency channels to avoid inter-cell interference (Frequency Reuse Factor of or ).
- Universal Frequency Reuse: In 3G CDMA, every single cell tower in an entire city uses the identical 1.25 MHz / 5 MHz frequency band (Frequency Reuse Factor = 1).
- Soft Handoff: When a mobile phone drives from Cell Tower A to Cell Tower B, it doesn't drop the connection ("hard break"). Instead, it receives data from both towers simultaneously using two orthogonal code channels, seamlessly switching to Tower B when its signal strength exceeds Tower A.
📐 Numerical Applications & Worked Examples
Example 1: CDMA Encoding & Decoding Vector Walkthrough
Problem Statement: A CDMA system has 4 stations with the following orthogonal chip sequences:
Suppose Station 1 wants to transmit bit 1, Station 2 is silent, Station 3 wants to transmit bit 0, and Station 4 wants to transmit bit 1.
- Calculate the composite signal vector on the channel.
- Demonstrate how a receiver extracts the data bit sent by Station 3.
- Demonstrate how a receiver verifies that Station 2 was silent.
Step-by-Step Solution:
Step 1: Compute Transmitted Vectors
- Station 1 sends bit 1
- Station 2 is silent
- Station 3 sends bit 0
- Station 4 sends bit 1
Step 2: Sum to Find Composite Signal
Sum the components index by index:
- Component 1:
- Component 2:
- Component 3:
- Component 4:
Step 3: Decode for Station 3
Compute :
Step 4: Decode for Station 2
Compute :
Example 2: Polling Channel Maximum Throughput
Problem Statement: A broadcast network has 10 nodes sharing a channel using a centralized polling scheme. After a node finishes transmitting its data, the primary station incurs a polling delay of to poll and synchronize with the next node. Each time a node is polled, it is permitted to transmit a maximum data payload of . Calculate the maximum effective throughput of the channel.
Step-by-Step Solution:
- Calculate Transmission Time per Polled Node ():
- Calculate Total Time Dedicated to Each Node Cycle:
- Calculate Maximum Throughput: In each interval, of actual data are successfully transmitted:
Example 3: TDMA Station Count Optimization
Problem Statement: In a TDMA medium access bus LAN, each station is allocated exactly one time slot per round-robin cycle. The duration of each time slot is defined as the time required to transmit plus the end-to-end propagation delay of the cable. The LAN is long, operates at a bandwidth of , and has a propagation speed of . Determine the maximum number of stations () that can be accommodated on the LAN such that each station achieves an effective throughput of at least .
Step-by-Step Solution:
- Calculate Propagation Delay ():
- Calculate Transmission Time per Slot ():
- Determine Duration of One Time Slot ():
- Determine Full Round Duration with Stations: If there are stations, one complete round takes .
- Relate Individual Station Throughput to Round Time: Each station transmits once every round:
- Solve for Given Required Throughput :
🎯 Exam & Interview Pitfall Check
- Why can multiple CDMA transmitters share the same frequency spectrum without collision? Because their chip sequences are mathematically orthogonal ( for all ). When the receiver correlates the composite wire signal with the desired station's code, all other stations' transmissions cross-multiply to zero, behaving as negligible background Gaussian noise.
- What is the primary difference between a Token Ring and an Ethernet Bus under heavy load? Under heavy traffic, Ethernet suffers frequent collisions, causing stations to back off exponentially and dropping channel throughput below 40%. In contrast, Token Ring has zero collisions: the token circulates smoothly, achieving near-100% channel utilization under full load.
- Trap: Forgetting that a silent station in CDMA contributes vector [0, 0, 0, 0]. When computing the composite signal in CDMA problems, students often accidentally substitute or for an idle node. A silent station transmits zero voltage ().
- Trap: Confusing Bit 0 encoding in CDMA. In binary logic, bit 0 is often associated with zero voltage. In CDMA Walsh coding, bit 1 maps to , bit 0 maps to , and idle/silence maps to .