Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA)

Simulation
Introduced by
Phil Karn
Year
1990
Type
random access protocol
Family
Medium Access Control

What does it do?

CSMA/CA is a random access protocol for wireless medium access control.

Devices share a channel by sensing whether it is idle before transmitting, and an optional RTS/CTS handshake reduces collisions that carrier sensing alone cannot detect. Its collision-avoidance precursor, MACA, was proposed by Phil Karn in 1990 as a channel access method for packet radio. The CSMA/CA procedure is specified in the IEEE 802.11 wireless LAN standard, on which WiFi is based, and related carrier-sense procedures are used in some low-power networks.

The intuition behind the method

In a wireless network, many devices share one channel. If they all transmit whenever they have data, their frames overlap and are lost. CSMA/CA reduces this by having each device sense the channel first: it waits until the channel has been idle for a short fixed interval, then draws a random backoff count and transmits only when that count runs out while the channel stays idle. Carrier sensing alone does not solve the hidden node problem, in which two devices cannot hear each other but both reach the same receiver and collide there. The optional RTS/CTS exchange addresses this: the sender requests the channel, the receiver answers, and devices that hear the answer hold off for the reserved time. Random backoff spreads out contending devices, so they are less likely to start transmitting in the same slot.

History

The collision-avoidance concept traces to Phil Karn's 1990 MACA proposal, a new channel access method for packet radio. The CSMA/CA procedure itself is specified in the IEEE 802.11 wireless LAN standard (IEEE, 2020), which is the reference for its exact implementation details.

When to use it

Choose CSMA/CA when several devices contend for a shared unlicensed channel, such as WiFi in the 2.4 GHz and 5 GHz bands, and when a central coordinator is not available or not wanted. It suits bursty traffic at low to moderate load, where distributed contention adds little overhead. Do not choose it where deterministic delay or bandwidth guarantees are required; scheduled access (TDMA) or higher-layer QoS mechanisms are more appropriate. Under heavy load, the contention overhead of sensing, backoff and RTS/CTS grows, so throughput-intensive applications may be better served by other designs.

Limitations and considerations

  • Efficiency falls as load rises, because sensing, backoff and RTS/CTS overhead take a growing share of channel time.
  • No guaranteed delay or throughput: backoff is random, so per-frame access delay varies and has no fixed upper bound.
  • Identical contention rules do not give equal throughput when link quality differs. Stations with weaker links need more retransmissions and can receive less service.
  • RTS/CTS adds overhead to each protected transmission, so frames sent without it remain exposed to hidden node collisions.
  • Exposed node problem: a station that hears a transmission not addressed to it may defer unnecessarily, which reduces spatial reuse.
  • Qualitative statements about load, delay and fairness assume a single shared channel, stations that behave independently under the same rules, and an ideal channel. Hidden nodes, rate adaptation and interference depart from these assumptions, so real performance can differ from the picture given here.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Distributed operation: stations contend without a central scheduler, so no coordinator is needed.
  • Identical contention rules: every station follows the same backoff procedure, so the access rules give no station priority over another. Actual throughput still depends on each station's channel conditions (see limitations).
  • Stations can join or leave without reconfiguring the procedure, because each station applies the same rules independently.
  • When enabled, the RTS/CTS reservation addresses the hidden node problem.
  • Random backoff and contention window growth after failures spread retransmissions from contending stations rather than having them all retry at once.
  • At low to moderate load, the contention overhead is small relative to the traffic carried.

Applications

  • WiFi (IEEE 802.11) access in residential, enterprise and public networks.
  • ZigBee and other IEEE 802.15.4 low-power networks, which use a carrier-sense MAC procedure of related design.
  • Sensor networks, where slotted carrier-sense variants may be used to limit energy spent on idle listening.
  • Proposed spectrum sharing schemes that study carrier-sense access for dynamic use of licensed bands. These are research proposals rather than deployed standards.

How it works

How it works

1

A device has a data frame to send and starts the CSMA/CA procedure.

2

The device senses the channel for the DIFS (Distributed Inter-Frame Space) interval. If the channel is busy at any point, it defers and waits before trying again.

3

Once the channel has been idle for DIFS, the device draws a random backoff value uniformly from [0, CW], where CW is the contention window, starting at its minimum value CWmin. It counts the backoff down only while the channel remains idle. The numerical values of DIFS, slot time, CWmin and CWmax depend on the physical layer and are set in the IEEE 802.11 standard.

4

Where RTS/CTS protection is enabled, the device sends an RTS (Request-to-Send) frame when its backoff expires on an idle channel, and the receiver replies with a CTS (Clear-to-Send) frame. Other devices that hear the CTS set their NAV (Network Allocation Vector) and defer until the reserved exchange ends.

5

After the exchange, the device sends the data frame and the receiver returns an ACK. If no ACK arrives, the device treats the transmission as failed. A failure is usually a collision, but a lost ACK or a frame corrupted by channel error produces the same outcome. The device then doubles CW, up to CWmax, and retries. After a successful transmission, CW returns to CWmin. Missing-ACK counts therefore measure failed transmissions rather than collisions alone. Separating collisions from channel loss requires further measurement, such as comparing RTS/CTS-protected and unprotected transmissions or measuring per-link error rates.

Common pitfalls

  • Disabling RTS/CTS to save overhead without considering hidden node collisions, which are more likely when stations are far apart but share a receiver.
  • Using default contention window settings without checking whether they suit the expected traffic load, since CW affects both collision rate and backoff delay.
  • Treating CSMA/CA as collision-free: collisions still occur, and ACK-based retransmission is what recovers lost frames.
  • Expecting QoS from the basic access procedure: all stations follow the same rules regardless of their traffic priority, so differentiated service needs separate mechanisms.
  • Assuming the access point and stations are symmetric: the access point typically carries downlink traffic for many stations and can become a bottleneck that the symmetric contention description does not show.

Frequently asked questions

What is the hidden node problem and how does RTS/CTS solve it?

Node A transmits to C. Node B cannot hear A but also transmits to C, so the frames collide at C. With RTS/CTS, A sends an RTS to C and C answers with a CTS. B is within range of C, hears the CTS and defers, so the reserved exchange can proceed without interference from B.

Why does CSMA/CA efficiency degrade at high load?

At high load, many devices want to transmit at the same time. CSMA/CA requires waiting for idle channel periods, backoff countdowns and, where enabled, RTS/CTS exchanges. These overheads take a growing share of channel time. Scheduled protocols such as TDMA allocate fixed slots and avoid contention, at the cost of flexibility.

How does exponential backoff prevent channel saturation?

After each failed attempt the contention window grows, so the average wait before retrying increases. This spreads retries over a wider interval and reduces the chance that several stations transmit in the same slot. Under very high load the waits become long and channel use can fall, so the mechanism keeps contention stable but does not maximise throughput.

Can CSMA/CA guarantee low latency?

No. Access delay is random: a station may defer and back off several times before it transmits, and the delay tends to grow as more stations contend. Latency-sensitive traffic therefore needs scheduled access or a priority mechanism.

Related methods

Sources

  1. Karn, P. (1990). MACA—a new channel access method for packet radio. In Proceedings of the ARRL/CRRL Amateur Radio 9th Computer Networking Conference, 134-140.

    Open publication reference
  2. IEEE 802.11 Working Group. (2020). IEEE Standard for Information Technology—Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. IEEE.

    Open publication reference