CSMA/CD and CSMA/CA Explained
Carrier Sense Multiple Access with Collision Detection (CSMA/CD) and Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) are Layer 2 media access methods. They define how devices share a communication medium and decide when to transmit.
Legacy half-duplex Ethernet uses CSMA/CD. IEEE 802.11 wireless local area networks (Wi-Fi) use CSMA/CA as the foundation for contention-based access. The core difference is simple: CSMA/CD detects a collision during transmission and triggers recovery, while CSMA/CA reduces the chance of a collision before transmitting and relies on acknowledgments to confirm delivery.
In this tutorial, I will walk you through how both methods operate, why modern switched Ethernet no longer relies on CSMA/CD, and how to read collision counters when troubleshooting network devices.
What Is Carrier Sense Multiple Access (CSMA)?
When multiple devices share one medium, the Media Access Control (MAC) sublayer of the OSI Data Link layer (Layer 2) enforces the rules of access. Both CSMA/CD and CSMA/CA rely on two core principles:
- Carrier sense: A device listens to the medium to check if it is busy before transmitting.
- Multiple access: Multiple devices share the same medium and compete for a turn to send data.
Sharing a channel does not mean two devices can transmit simultaneously without trouble. If two interfaces both sense an idle medium and begin transmitting at nearly the same time, their signals can overlap and cause a collision.
In traditional Ethernet, a collision domain is any network segment where frames can collide—such as all ports on a legacy repeater hub. In Wi-Fi, stations sharing a radio channel contend for airtime, but radio coverage dictates which stations can actually hear one another. A wireless contention environment does not behave like a wired collision domain.
How CSMA/CD Works
CSMA/CD belongs to the IEEE 802.3 Ethernet standard and operates only on half-duplex links. A half-duplex interface cannot transmit and receive ordinary data frames at the same time; only one device can successfully transmit on the shared segment while others listen.
Carrier Sense and Collision Detection
Before sending a frame, a network interface card (NIC) checks the physical layer (PHY) for activity. If the medium is busy, the NIC defers. Once the medium goes idle and the required interframe gap passes, the NIC begins transmitting.
Because electrical and optical signals take time to travel across a wire, two stations can sense an idle medium and start sending before the other station's signal arrives. Picture four PCs wired to a legacy Ethernet hub. PC-1 and PC-2 both send frames to PC-3 at almost the exact same moment. Because a hub is a Layer 1 repeater, it floods both signals across one shared collision domain, corrupting both frames.

Collision Recovery and Binary Exponential Backoff
When a transmitting NIC detects a normal collision, it runs a strict four-step recovery sequence:
- It transmits a 32-bit jam sequence so every device on the segment reliably recognizes the collision.
- It aborts the damaged frame.
- It calculates a random delay using truncated binary exponential backoff.
- Once the timer expires, it listens to the medium again and attempts to retransmit after the interframe gap.
Only the colliding stations run the backoff timer; other listening stations simply defer while the wire is busy. For collision count n (from 1 through 15), the NIC picks a random integer of Ethernet slot times from 0 through 2min(n,10) − 1, inclusive.
| Collisions for the Same Frame | Possible Backoff Delay (Slot Times) |
|---|---|
| 1 | 0 or 1 |
| 2 | 0 to 3 |
| 3 | 0 to 7 |
| 4 | 0 to 15 |
| 10 to 15 | 0 to 1023 |
| 16 | Transmission attempt abandoned |
After 16 consecutive collisions involving the same frame, the MAC discards the frame and reports a transmission failure. Higher-layer protocols such as TCP may recover the lost data through retransmission.
For classic 10 Mbps and 100 Mbps half-duplex Ethernet, one slot time equals 512 bit times—51.2 microseconds at 10 Mbps and 5.12 microseconds at 100 Mbps. This timing accommodates the maximum round-trip propagation delay and collision enforcement requirements of a valid Ethernet collision domain. It is directly related to the 64-byte minimum Ethernet MAC frame size (excluding the preamble and Start Frame Delimiter, or SFD). Historical half-duplex Gigabit Ethernet uses a 4096-bit slot time with carrier extension.
Why Modern Ethernet Rarely Uses CSMA/CD
You will rarely encounter active CSMA/CD in modern production networks. Today's Ethernet networks rely on Layer 2 switches and full-duplex point-to-point links.
Unlike a hub, a switch isolates each port into its own collision domain and forwards frames using its MAC address table. On a properly configured full-duplex link, both endpoints can transmit and receive simultaneously. Normal collisions cannot occur, and CSMA/CD is disabled.
Remember that duplex mode—not copper versus fiber—determines whether CSMA/CD runs. A switch port forced into half-duplex still uses CSMA/CD, while a full-duplex copper link does not.
Troubleshooting Ethernet Collisions
On a Cisco IOS or IOS XE switch, you can inspect duplex settings and error counters using the following command (substituting your interface ID):
show interfaces fastethernet 0/1

In this example, FastEthernet0/1 is operating at 100 Mbps in full-duplex mode. The output shows zero collisions, zero late collisions, and zero CRC errors.
Quick CLI Verification Checklist:
- Verify speed and duplex: Confirm both link partners match and run in full-duplex mode.
- Check normal vs. late collisions: A full-duplex port should show zero normal collisions. On 10/100 Mbps half-duplex Ethernet, late collisions are collisions detected after the first 512 bit times. Rising late collision counters may indicate a duplex mismatch or an Ethernet segment that exceeds its permitted length.
- Inspect runts and CRC errors: Collision fragments may appear as runts (undersized Ethernet frames). The exact counter behavior depends on the switch platform. Rising CRC errors alongside late collisions strongly suggest a duplex mismatch, though damaged cabling or failing hardware can also trigger CRCs.
How CSMA/CA Works in Wi-Fi
Wi-Fi radios cannot reliably listen for overlapping transmissions on the same channel while transmitting their own signal. Wireless stations also face coverage gaps where they cannot hear other stations talking to the same access point (AP). Because collision detection is impractical over RF, IEEE 802.11 uses CSMA/CA.
Physical and Virtual Carrier Sensing
Before transmitting, a Wi-Fi station checks channel availability using two mechanisms:
- Physical carrier sensing: Clear Channel Assessment (CCA) listens for radio energy and valid Wi-Fi preambles on the channel.
- Virtual carrier sensing: Stations read the Duration field in overheard frames and set an internal countdown timer called the Network Allocation Vector (NAV) to track how long the channel is reserved.
If either CCA or the NAV indicates the channel is busy, the station defers.
Interframe Spaces and Random Backoff
In traditional Wi-Fi contention, the Distributed Coordination Function (DCF) uses the following simplified sequence when stations must contend for access to the channel:
- Wait until the channel is idle for a Distributed Interframe Space (DIFS).
- Count down a random backoff timer (measured in idle slot times) drawn from the station's contention window (CW).
- If another station starts transmitting, freeze the backoff counter. Resume counting down once the channel is idle for DIFS again.
- Transmit the DATA frame when the counter hits zero.
- Receive an Acknowledgment (ACK) from the destination after a Short Interframe Space (SIFS).
Because SIFS is shorter than DIFS, immediate control responses like ACKs always beat stations waiting to start a new contention cycle.
Suppose Stations A and B both have a frame ready and can hear each other. Station A rolls a backoff of 2 slots, and Station B rolls 3. After DIFS and 2 idle slots, A hits zero and transmits while B freezes its counter at 1. Once A's DATA and ACK exchange completes and the channel stays idle for DIFS, B counts down its remaining slot and transmits.

Note: This simplified DCF diagram shows one queued frame per station and omits the sender's post-transmission backoff for clarity.
RTS and CTS: Reducing the Hidden Node Problem
In a wireless network, Stations A and B might both reach the AP while sitting out of range of each other. Because neither can sense the other's transmissions, both may transmit simultaneously and collide at the AP. This is the hidden node problem.
IEEE 802.11 offers an optional Request to Send (RTS) and Clear to Send (CTS) handshake to reserve the medium:
- RTS: Station A wins contention and sends an RTS frame to the AP.
- CTS: After SIFS, the AP replies with a CTS frame. Even though Station B missed A's RTS, B hears the AP's CTS, updates its NAV from the Duration field, and defers.
- DATA: After SIFS, Station A sends its data frame.
- ACK: After SIFS, the AP confirms delivery with an ACK.

Keep two rules straight: the receiver (AP) sends the CTS before the data frame, and RTS/CTS is optional. Because it adds control-frame overhead, RTS/CTS is often used selectively based on frame size, hidden-node conditions, protection requirements, or device configuration. RTS frames themselves can still collide.
Does Modern Wi-Fi Still Use CSMA/CA?
Yes. Modern Wi-Fi still relies on contention-based access at its core, though newer standards layer smarter scheduling on top of it:
- EDCA (Enhanced Distributed Channel Access): Used by Wi-Fi Multimedia (WMM), EDCA assigns shorter interframe spaces and smaller contention windows to high-priority traffic like voice. This gives statistical priority, not guaranteed immediate airtime.
- OFDMA (Wi-Fi 6 / 802.11ax): Allows an AP to schedule simultaneous multiuser transmissions across separate subcarrier groups within a single channel.
Even with OFDMA, standard Wi-Fi channels remain fundamentally half-duplex at the RF level, and legacy clients still contend for shared airtime using CSMA/CA.
CSMA/CD vs. CSMA/CA: Key Differences
| Feature | CSMA/CD | CSMA/CA |
|---|---|---|
| Full Name | Carrier Sense Multiple Access with Collision Detection | Carrier Sense Multiple Access with Collision Avoidance |
| Typical Use | Legacy half-duplex IEEE 802.3 Ethernet | IEEE 802.11 Wi-Fi contention-based access |
| Collision Handling | Detect during transmission, send jam, and retry | Reduce collision likelihood before transmitting |
| Random Backoff | Runs after a collision occurs | Runs during contention; freezes if channel gets busy |
| Delivery Feedback | No standard Ethernet MAC-layer ACK | Per-frame ACK (or Block ACK) for unicast frames |
| RTS/CTS | Not used | Optional hidden-node protection |
| Can Collisions Occur? | Yes, on half-duplex links | Yes, despite avoidance mechanisms |
Key Takeaways
- CSMA/CD is legacy Ethernet only: Modern full-duplex switched Ethernet links isolate collision domains and disable CSMA/CD completely.
- Jam and backoff recover wired collisions: Colliding half-duplex NICs send a 32-bit jam sequence, halt transmission, and run binary exponential backoff, abandoning the frame after 16 collisions.
- CSMA/CA combines sensing, timers, and ACKs: Wi-Fi pairs physical (CCA) and virtual (NAV) carrier sensing with DIFS/SIFS timing, random backoff, and unicast acknowledgments to manage shared airtime.
- RTS/CTS and modern enhancements: Optional RTS/CTS mitigates hidden nodes via NAV reservations, while EDCA and Wi-Fi 6 OFDMA add QoS priority and multiuser scheduling on top of contention.
- Troubleshoot by duplex and counters: Increasing collision counters on a full-duplex switch port warrant investigation. Rising late collisions, runts, and CRC errors may indicate a duplex mismatch, cabling fault, or another physical-layer problem. Keep auto-negotiation enabled on both ends.
Author Laxmi Goswami Updated on 2026-11-30