When a single, shared physical medium is utilized by multiple independent nodes for transmission, coordinating access to the channel becomes a fundamental challenge. Multiple access protocols reside within the Medium Access Control (MAC) sublayer of the data link layer to manage channel allocation, minimize collisions, and maximize channel utilization.
+-----------------------------------------+
| Data Link Layer |
+-----------------------------------------+
|
+------------------+------------------+
| |
+---------------------------------+ +---------------------------------+
| Logical Link Control (LLC) | | Medium Access Control (MAC) |
| - Framing, flow/error control | | - Addressing, Multiple Access |
+---------------------------------+ +---------------------------------+Multiple access strategies are broadly categorized into three distinct paradigms, each offering different tradeoffs between overhead, delay, and determinism.
Multiple Access
Protocols
|
+---------------------------+---------------------------+
| | |
Random Access Controlled Access Channelization
(Contention-Based) (Collision-Free) (Static Partition)
| | |
+-- Pure ALOHA +-- Reservation +-- FDMA
+-- Slotted ALOHA +-- Polling +-- TDMA
+-- CSMA +-- Token Passing +-- CDMA
+-- CSMA/CD
+-- CSMA/CAIn random access methods, any station with data to send can attempt to transmit at will. If multiple stations transmit concurrently, their signals overlap, resulting in a collision that corrupts the frames.
Developed at the University of Hawaii, Pure ALOHA is the simplest random access protocol. Stations transmit frames immediately when they are generated.
Station 1: +---------+
| Frame 1 |
+---------+
Station 2: +---------+
| Frame 2 | <--- Collision Region
+---------+
Station 3: +---------+
| Frame 3 |
+---------+
Time: ------------[====================]------------------------->If a frame is corrupted (due to lack of acknowledgment), the station waits a random amount of time (backoff time) and retransmits. The backoff time is typically calculated using binary exponential backoff:
Where is a random integer drawn from (where is the collision count) and is the frame transmission time.
The vulnerable time is the window of time during which an arriving frame can collide with another frame. Let be the frame transmission time. If our frame starts transmission at time , any other transmission starting between and will cause a collision.
t - T_fr t t + T_fr
|---------------|---------------|
<------------------------------->
Vulnerable Time = 2 * T_fr
Assuming the frame arrival process is a Poisson process with parameter (where is the average number of frames requested per frame transmission time ), the throughput (the average number of successful transmissions per interval ) is:
Slotted ALOHA was designed to double the throughput of Pure ALOHA. It divides the shared channel's time into discrete slots of duration equal to . Stations are only allowed to transmit at the beginning of a time slot.
Slot Boundaries: | Slot 1 | Slot 2 |
Station 1: +--------------------+
| Frame 1 |
+--------------------+
Station 2: +--------------------+
| Frame 2 | <--- Collision occurs
+--------------------+ strictly in Slot 1
Time: -------------[--------------------[--------------------[---->If a frame generator becomes active mid-slot, it must buffer the frame and wait until the next slot boundary.
Since frames can only be initiated at slot boundaries, a collision can only occur if two or more stations attempt to transmit at the exact same slot boundary. Thus, the vulnerable time is reduced to:
The probability of a successful transmission in a slot is the probability that exactly one frame is generated during the preceding slot interval:
To minimize collisions, CSMA implements a "Listen Before Talk" (LBT) rule. A station senses the energy level on the physical medium before attempting transmission.
+-----------------------+
| Station wants to |
| transmit |
+-----------------------+
|
v
+-----------------------+
| Sense the channel | <--------+
+-----------------------+ |
| |
+--------------+--------------+ |
| | |
[ Channel Idle ] [ Channel Busy ]
| |
v v
Transmit Frame Apply Persistence
StrategyWhen a station senses a busy channel, it behaves according to one of three persistence strategies:
The vulnerable time in CSMA is the time (propagation delay) required for a signal to travel from one end of the medium to the other. If a station transmits at , other stations will not detect the carrier until . If another station senses the channel and transmits during this window, a collision occurs.
Used in wired Ethernet (IEEE 802.3), CSMA/CD augments CSMA by adding a "Listen While Talk" capability. If two stations transmit simultaneously, they detect the resulting signal distortion, immediately abort their transmission, and send a high-frequency jam signal to notify all other nodes.
Station A Station B
| |
|--- Frame Transmit ---------->| (Collision occurs at mid-point)
| |
|<-- Collision Signal Detected |
|=== Jam Signal Transmitted ===|
| |For a station to reliably detect a collision, it must not finish transmitting its frame before the collision signal returns. In the worst-case scenario, the two farthest nodes are separated by a propagation delay .
To guarantee A is still transmitting when the collision indicator arrives:
If the data rate is bits/sec, the minimum frame size (in bits) is:
In wireless networks, CSMA/CD is impractical because the transmitter's own high-power output overwhelms its receiver circuits (the self-interference problem), making collision detection impossible. Wireless networks (IEEE 802.11) instead use CSMA/CA to actively avoid collisions.
CSMA/CA employs three primary mechanisms:
Source Destination Other Stations
| | |
|--- RTS (Request to Send) ------>| |
| |--- CTS (Clear to Send) ---->| (Deferred state)
| | |
|========= Data Frame ===========>| |
| | |
|<-------- ACK Frame -------------| |In controlled access, stations coordinate with one another so that only one station has the right to transmit at any given instant. This design completely eliminates collisions.
Stations must reserve the channel before transmitting. Time is structured into intervals containing a reservation frame followed by data frames.
+---------------------------------------+---------------------+
| Reservation Interval | Data Intervals |
| [Slot 1] [Slot 2] [Slot 3] [Slot 4] | [Frame 1] [Frame 3]|
+---------------------------------------+---------------------+
(Station 1 & 3 set their mini-slots) (Only 1 & 3 transmit)If there are stations, the reservation interval has mini-slots. Each station owns one mini-slot. A station sets its mini-slot bit to to reserve a data slot.
Polling operates in topologies with a primary (master) controller and multiple secondary (slave) nodes.
Poll Cycle:
Primary Station Secondary Node 1 Secondary Node 2
| | |
|--- Poll Node 1 ---------------->| |
|<-- No Data (NAK) ---------------| |
| |
|--- Poll Node 2 --------------------------------------------->|
|<-- Data Frame -----------------------------------------------|
|--- ACK ----------------------------------------------------->|Stations are organized in a logical ring. A special small frame called the token is circulated around the ring.
+-------> [ Station 1 ] ------->+
| |
| v
[ Station 4 ] [ Station 2 ]
^ |
| v
+-------< [ Station 3 ] <-------+Channelization partitions the available bandwidth of the link in frequency, time, or code spaces, allowing multiple stations to communicate simultaneously without collisions.
Frequency Division (FDMA) Time Division (TDMA)
+-----------------------+ +-----------------------+
Ch3 | Station 3 | | Slot 1 | Slot 2 | Slot 3|
+-----------------------+ +-----------------------+
Ch2 | Station 2 | | S1 | S2 | S3 |
+-----------------------+ +-----------------------+
Ch1 | Station 1 | | S1 | S2 | S3 |
+-----------------------+ +-----------------------+
0------------------- Time 0------------------- TimeIn CDMA, each station is assigned a unique -bit chip sequence (or vector) . These sequences are chosen to be orthogonal, meaning their inner product is zero:
To achieve this, bit values are represented as:
Walsh matrices, which provide orthogonal chip codes, are defined recursively using the following rules:
For :
For :
Each row in represents an orthogonal chip sequence of length 4.
Let us trace a scenario with 2 active stations using Walsh codes of length derived from :
Let's verify orthogonality:
C1 . C2 = (+1)(+1) + (+1)(-1) + (-1)(-1) + (-1)(+1)
= 1 - 1 + 1 - 1 = 0 (Orthogonal!)Suppose:
Each station multiplies its data bit by its chip sequence:
The signals combine on the shared medium as vector addition:
To recover the data bit of Station 1, the receiver takes the dot product of the combined signal and Station 1's unique chip sequence , then divides by :
To recover the data bit of Station 2:
The signals are successfully separated and recovered with zero inter-channel interference.
Contention-based methods where no station has priority or control over another; stations transmit based on protocol-defined decision processes.
The time interval during which a transmitted frame is susceptible to collisions from transmissions initiated by other stations.
The minimum frame transmission time must be at least twice the maximum propagation delay ($2 \cdot T_p$) to ensure a transmitting station detects any collision.
Deterministic sharing mechanisms (reservation, polling, and token passing) where stations must be authorized before they can transmit data.
A channelization method where stations share the entire bandwidth simultaneously by multiplying data with unique, orthogonal chip sequences.
Test your understanding with 5 questions
In a pure ALOHA network, what is the vulnerable time ($T_v$) for a frame with transmission time $T_{fr}$?
If the propagation delay between the two farthest stations in a CSMA/CD network is $T_p$, what is the minimum frame transmission time $T_{fr}$ required to guarantee collision detection?
A slotted ALOHA network operates under a total offered channel load of $G = 1$ (average of 1 frame transmission attempt per slot). What is the resulting throughput $S$?
Which persistence strategy in CSMA involves a station sensing the channel, transmitting immediately if idle, or waiting a random amount of time if busy?
Why is CSMA/CD structurally unsuited for wireless local area networks (WLANs)?
6 Modules
6 Modules