CSMA/CD Explained: Carrier Sense Multiple Access with Collision Detection
Learn how CSMA/CD manages shared half-duplex Ethernet, including collisions, jam signals, binary exponential backoff, slot time, errors, and duplex troubleshooting.
CSMA/CD stands for Carrier Sense Multiple Access with Collision Detection. It is the Ethernet media-access method used on shared, half-duplex segments. Its purpose is to coordinate access to one common transmission medium when several stations may try to send at the same time.
CSMA/CD does not prevent every simultaneous transmission in advance. Instead, stations listen before transmitting, detect collisions while transmitting, stop when a collision occurs, and retry after waiting for a randomized interval.
Prerequisites and Core Terms
You should be familiar with basic Ethernet frames and MAC addresses, the Physical and Data Link layers of the OSI reference model, network media, hubs, bridges, switches, duplex, and auto-negotiation.
| Term | Meaning |
|---|---|
| Shared medium | A common network path used by multiple stations. |
| Carrier sense | Listening to the medium before sending. |
| Multiple access | Multiple stations are permitted to use the same medium. |
| Collision detection | Recognizing interference caused by simultaneous transmissions while transmitting. |
| Half duplex | Communication in one direction at a time. CSMA/CD applies to shared half-duplex Ethernet. |
| Full duplex | Simultaneous transmission and reception using separate paths. CSMA/CD is unnecessary. |
| Collision domain | A network segment where frame transmissions can collide. |
| Broadcast domain | The group of devices that receive a Layer 2 broadcast. A broadcast domain is not the same as a collision domain. |
Shared-Media Ethernet
In legacy Ethernet, multiple devices used one physical medium. Examples include coaxial bus Ethernet and Ethernet devices connected through a hub. A hub is a Layer 1 device: it repeats incoming electrical signals out other ports instead of making forwarding decisions.
All stations attached to a hub share one collision domain. Only one station can successfully transmit at a time on the shared half-duplex medium. If two stations transmit during overlapping signal intervals, their signals interfere and the frames are corrupted.
A switch works differently. A switch normally gives each port its own collision domain and can support full-duplex communication between an endpoint and the switch. A switch can still participate in a half-duplex link if configured or negotiated that way, but a normal modern switch-to-endpoint link is full duplex.
How CSMA/CD Works
| Stage | Station action | Purpose | Outcome when the medium is busy or a collision occurs |
|---|---|---|---|
| Carrier sense | Listen to determine whether the medium is idle. | Avoid transmitting over an existing signal. | If busy, wait before transmitting. |
| Multiple access | Any connected station may compete for the shared medium. | Allow several stations to use one communication path. | Several stations may choose to transmit near the same time. |
| Transmission | Send when the medium appears idle. | Place an Ethernet frame on the medium. | Another station may make the same decision before the first signal arrives. |
| Collision detection | Monitor the medium while transmitting. | Identify interference from simultaneous transmissions. | Affected stations recognize that their frames cannot be used. |
| Collision response | Stop normal transmission and send a jam signal. | Ensure stations recognize the collision. | The collided frames are discarded. |
| Retransmission | Choose a random backoff interval, then try again. | Reduce the probability of another simultaneous retry. | Repeated collisions expand the possible waiting range. |
Why Two Stations Can Collide
Imagine two hosts connected to a hub. Both listen and hear what appears to be an idle medium. They begin transmitting almost simultaneously. This is possible because a signal takes time to propagate along the medium. Each host may start before it can detect the other host's signal.
The signals meet and interfere, corrupting both frames. Each transmitting station detects a mismatch between the signal it expects and the activity on the medium. The stations stop sending their normal frames and transmit jam signals so other stations also recognize the collision.
Collisions are expected behavior on a shared half-duplex Ethernet design. A small number of collisions is not automatically a fault. High collision rates, late collisions, or degraded throughput can indicate excessive contention, an incorrect duplex setting, or a physical design problem.
Jam Signals and Collision Handling
A jam signal is a deliberate signal sent after collision detection. Its purpose is to make the collision condition long and obvious enough that all stations sharing the medium recognize it. The original collided frames are not repaired; they are discarded.
Each sender involved in the collision performs its own backoff calculation. The stations do not all wait for one fixed delay. Independent random choices reduce the chance that the same stations will immediately collide again.
Binary Exponential Backoff
Binary exponential backoff is Ethernet's randomized retry method. After a collision, a station selects a random number of slot times to wait before retrying. After consecutive collisions, the range from which that random number is selected expands, which lowers the chance of repeated collisions during heavy contention.
Conceptually, after collision number n, the station chooses a value from an increasingly large range of slot counts, subject to Ethernet's defined limits. The exact implementation details depend on the Ethernet standard, but the principle is consistent: more collisions produce a wider possible delay.
Ethernet limits the number of transmission attempts for a frame. The standard maximum is 16 attempts. If the frame still cannot be transmitted after the allowed attempts, the frame is dropped and the failure is reported as an excessive-collisions condition.
Example Backoff
- Two hosts collide while sending.
- Each sends a jam signal and stops.
- Each independently selects a random number of slot times.
- The host with the shorter delay retries first.
- If both happen to select the same delay and collide again, the possible range expands for the next retry.
Ethernet Timing Concepts
Slot Time
A slot time is an Ethernet timing interval used for collision detection and backoff calculations. The classic Ethernet slot time is 512 bit times. It represents the time needed for a transmitting station to send the minimum frame-related detection interval while allowing a worst-case collision to propagate back to the sender.
The sender must still be transmitting when a collision from the farthest permitted point in the network returns. If the sender finished too quickly, it could incorrectly conclude that the frame was sent successfully before learning about the collision.
Minimum Frame Size
Classic Ethernet specifies a minimum frame size of 64 bytes, including the Ethernet header and FCS. If a payload is too small to produce a frame of the required size, Ethernet adds padding. This minimum keeps the transmitter active long enough to support collision detection within the network's permitted diameter and timing limits.
Network diameter is the maximum physical extent of the shared network, including the propagation time through the medium and permitted intermediary devices. Larger propagation delays require careful timing rules. Ethernet design limits, slot time, and minimum frame size work together to make collision detection reliable.
Interframe Gap
The interframe gap is the required idle period between Ethernet frame transmissions. It gives devices time to prepare for the next frame and prevents frames from being transmitted back-to-back without the defined separation.
| Parameter | Value or rule | Why it matters |
|---|---|---|
| Classic slot time | 512 bit times | Supports collision detection timing and provides the unit used by backoff. |
| Minimum Ethernet frame size | 64 bytes | Keeps the sender transmitting long enough for a worst-case collision to return. |
| Small payload handling | Padding is added when needed. | Maintains the minimum frame size. |
| Interframe gap | A required idle interval between frames. | Separates consecutive Ethernet transmissions. |
| Transmission attempt limit | 16 attempts maximum | Prevents an indefinitely failing frame from retrying forever. |
Collision Classifications and Ethernet Errors
| Condition | Meaning | Common causes | Typical corrective action |
|---|---|---|---|
| Normal collision | A collision detected within the valid slot-time window. | Expected contention on shared half-duplex Ethernet. | Assess whether the collision rate is affecting performance; migrate to switched full duplex where possible. |
| Late collision | A collision detected after the normal collision-detection window. | Duplex mismatch, excessive cable length, or a legacy Ethernet topology that violates design rules. | Check duplex and speed at both ends; inspect the physical path and topology. |
| Excessive collisions | A frame failed after the permitted retry attempts. | Persistent contention, physical faults, or incorrect duplex configuration. | Check interface counters, configuration, cabling, and shared-media load. |
| CRC/FCS error | The received frame failed an integrity check. | Electrical noise, damaged cabling, faulty hardware, or duplex mismatch. | Inspect both endpoints, the cable, transceivers, and duplex settings. |
Collision counters and CRC/FCS counters represent different symptoms. A collision is an access event caused by overlapping transmissions on a shared half-duplex medium. A CRC or FCS error means the received frame failed its integrity check. Physical-layer problems can cause FCS errors, and a duplex mismatch can produce errors on one side while producing collision-related symptoms on the other.
Half Duplex Versus Full Duplex
| Characteristic | Half-duplex shared media | Full-duplex switched Ethernet |
|---|---|---|
| Transmission direction | One direction at a time. | Send and receive can occur simultaneously. |
| Medium | A shared transmission path. | Separate transmit and receive paths. |
| Collision possibility | Collisions are possible. | Collisions are not expected on a correctly operating link. |
| CSMA/CD | Required. | Disabled and unnecessary. |
| Collision domain | Multiple stations may share one domain. | Each switch port normally forms a separate collision domain. |
| Typical device | Hub or legacy shared segment. | Switch connected directly to an endpoint. |
A hub extends one shared collision domain because it repeats signals among all attached ports. A switch separates collision domains by port. A broadcast can still be forwarded across multiple switch ports within the same VLAN, so separating collision domains does not automatically separate broadcast domains.
Modern Relevance
Modern Ethernet networks normally use switches and full-duplex links. A host and its switch port can transmit at the same time without competing for one shared path. Therefore, CSMA/CD does not run on a correctly negotiated full-duplex switched link.
CSMA/CD remains relevant in CCNA fundamentals and in troubleshooting situations involving hubs, legacy half-duplex links, unusual shared-media environments, or duplex mismatches. Do not describe CSMA/CD as the access method used by ordinary modern full-duplex switch links.
Practical Scenarios
Two Hosts Connected Through a Hub
- Both hosts listen and find the shared medium idle.
- Both transmit nearly simultaneously.
- Their signals interfere, causing a collision.
- Both hosts detect the collision, send jam signals, and stop normal transmission.
- Each chooses a random backoff interval.
- One host retries first and completes its frame; the other waits and retries later.
One Endpoint per Switch Port
Each endpoint has a separate collision domain toward the switch. The host and switch can transmit simultaneously because the link is full duplex. No CSMA/CD collision handling is required.
Busy Legacy Hub Segment
As more hosts become active, more stations compete for the same medium. Contention, collisions, and retransmissions increase, reducing useful throughput. Replacing the hub with a switch and using full-duplex links removes the shared collision domain.
Duplex Mismatch
A duplex mismatch occurs when two connected interfaces use incompatible duplex modes. For example, one side may operate full duplex while the other operates half duplex.
The half-duplex side believes it must use CSMA/CD. It may report collisions or late collisions when the full-duplex side transmits without following shared-medium rules. The full-duplex side does not perform CSMA/CD, but it may receive damaged or overlapping frames and report CRC/FCS, alignment, or runt-related symptoms.
This asymmetric symptom pattern is an important troubleshooting clue: collision-related counters on one side and frame-integrity errors on the other often point to a duplex mismatch.
CCNA Troubleshooting Workflow
- Confirm the topology. Determine whether the interface connects to a hub, a shared legacy segment, or a switch. Verify whether the link should be half or full duplex.
- Inspect speed and duplex negotiation. Check the operational values at both ends. Auto-negotiation is generally preferred when both devices support it.
- Review interface counters. Compare collisions, late collisions, excessive collisions, CRC/FCS errors, alignment errors, runts, and utilization.
- Inspect the physical path. Check cable length, connectors, transceivers, intermediary equipment, and legacy design-rule violations.
- Correct the configuration. Make both ends use compatible speed and duplex settings. Do not assume that setting one endpoint to full duplex makes a hub-based shared segment full duplex.
- Retest. Clear or record counters as appropriate, generate controlled traffic, and verify that the relevant error counters stop increasing.
Cisco IOS Commands
Use these commands to inspect interface state, counters, speed, and duplex:
show interfaces <interface>
show interfaces <interface> status
show interfaces counters errorsWhere manual configuration is necessary and supported, matching settings can be applied on both ends. Prefer auto-negotiation on both ends when supported:
configure terminal
interface <interface>
speed auto
duplex autoIf manual settings are required, configure the same compatible speed and duplex mode at both ends. Configuration syntax and supported values vary by interface. A full-duplex setting on an endpoint does not convert a hub or shared medium into a full-duplex network.
Interpreting Common Symptoms
| Symptom | Likely interpretation | Next steps |
|---|---|---|
| High collision counter on an interface connected to a hub | Normal shared half-duplex contention, too many active devices, or a legacy topology issue. | Confirm the hub, review utilization and collision rates, and migrate to switched full duplex where possible. |
| Late collisions on a switched link | Often a duplex mismatch; may also indicate an unsupported cable distance or topology. | Check both interfaces and inspect the physical path. |
| Excessive collisions and failed transmission | Persistent contention, physical-layer faults, or incorrect duplex configuration. | Check duplex mode, collision and error counters, cabling, and transceiver condition. |
Key Exam Points
- CSMA/CD expands to Carrier Sense Multiple Access with Collision Detection.
- It applies to shared, half-duplex Ethernet.
- Carrier sense means listening before transmitting.
- Multiple access means several stations share one medium.
- Stations monitor the medium while transmitting to detect collisions.
- After a collision, stations send a jam signal, discard the collided frames, and use randomized backoff.
- Binary exponential backoff expands the retry range after repeated collisions.
- The classic slot time is 512 bit times.
- The classic minimum Ethernet frame size is 64 bytes; padding is used when necessary.
- Ethernet permits a maximum of 16 transmission attempts before reporting excessive collisions.
- A normal collision occurs within the slot-time window; a late collision occurs after it.
- Full-duplex switched Ethernet does not use CSMA/CD.
- Collision counters are distinct from CRC/FCS errors.
- A duplex mismatch can produce late collisions on the half-duplex side and CRC/FCS or related errors on the full-duplex side.