CSMA/CD (Collision Detection)
Used traditionally in wired Ethernets, CSMA/CD upgrades CSMA by letting nodes actively monitor the channel during transmission. If a collision is detected, the transmission is aborted immediately, a jam signal is sent, and nodes wait for a dynamically calculated random duration (via Exponential Backoff) before retrying.
Learning Goals
- The limitation of basic CSMA in wired media.
- CSMA/CD Protocol: The "Listen while talking" mechanism.
- Collision window, minimum frame size restriction, and slot time calculation.
- Exponential Backoff Algorithm: Resolving repeated collisions dynamically.
- Mathematically justify why Ethernet requires a minimum frame size based on the round-trip propagation delay ($2 \cdot T_p$).
- Apply the exponential backoff algorithm to determine retransmission delay after successive collisions.
In the Data Link Layer, specifically the MAC sublayer, CSMA/CD was designed for classic shared, half-duplex Ethernet where multiple stations contend for one wired medium.2 Basic CSMA reduces collisions by listening first, but it cannot eliminate them because propagation delay means two distant stations may both sense an idle channel and begin transmitting almost simultaneously.2 CSMA/CD extends CSMA with a crucial idea: stations must keep listening while transmitting so they can detect a collision early, abort, send a jam indication, and retry later using randomized backoff.2
This mechanism is historically central to half-duplex Ethernet, hubs, and shared collision domains, though modern switched full-duplex Ethernet generally does not use collision detection in normal operation.2 Understanding CSMA/CD remains essential because it explains why Ethernet adopted a minimum frame size of 64 bytes, why slot time is 512 bit-times in 10/100 Mb/s half-duplex Ethernet, and how binary exponential backoff stabilizes repeated contention.3
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩ ↩2 ↩3 ↩4
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩ ↩2
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩ ↩2
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩ ↩2
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩
CSMA/CD and Minimum Frame Length in Ethernet
Context in Network Theory
CSMA/CD belongs to shared, half-duplex Ethernet. In switched full-duplex Ethernet, collisions are eliminated by design, but the protocol is still foundational for understanding MAC logic and classic Ethernet engineering.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
Why basic CSMA is not enough on wired media
Basic CSMA says: listen first, and if the channel is idle, transmit. The limitation is that the channel state observed at one end of a cable is always slightly outdated at another end because signals travel at finite speed.2 Suppose station A starts transmitting; before A's first bit reaches distant station B, station B may still hear silence and begin transmitting as well. The overlap on the cable creates a collision domain, so both frames are corrupted.2
This is why collision avoidance by sensing alone is insufficient on long shared wires. The key engineering improvement is collision detection during transmission itself.2 A transmitting station compares what it expects on the line with what it actually senses. If interference is detected, the sender knows another transmitter is active and invokes the collision procedure.2
A useful abstraction is the vulnerable period of length approximately , where is the one-way end-to-end propagation delay of the collision domain.2 If another station starts within this interval, a collision can still occur.
The factor of appears because a sender at one extreme must allow enough time for its signal to reach the far end and, in the worst case, for the evidence of a collision to propagate back.2
Footnotes
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩ ↩2 ↩3
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩ ↩2 ↩3
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩ ↩2 ↩3
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩ ↩2
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
How CSMA/CD Works: Listen While Talking
- 1Step 1
A station with a frame ready to send first checks whether the medium is busy or idle. If busy, it defers transmission until the medium becomes idle.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 2Step 2
When the channel appears idle, the station begins sending the frame onto the shared cable.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩
-
- 3Step 3
Unlike basic CSMA, the station continues monitoring the line while sending. This is the 'listen while talking' behavior that enables rapid collision detection.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 4Step 4
If the observed signal differs from the expected transmit behavior, the sender infers that another station transmitted at nearly the same time and that a collision occurred.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 5Step 5
The sender enforces the collision by transmitting a jam pattern long enough for all involved stations to notice the event, then it terminates the current frame attempt.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 6Step 6
The station chooses a random number of slot times from a contention window that expands after repeated collisions. This reduces the chance that the same stations retransmit together again.2
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 7Step 7
After the backoff interval, the station senses the channel again and retries. Ethernet uses truncated binary exponential backoff and stops after too many failed attempts.2
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
Important Limitation
A collision must be detected while the sender is still transmitting. If the frame ends too early, the sender may falsely assume success. This engineering constraint is the reason for Ethernet's minimum frame size rule.2
Footnotes
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩
Collision window, slot time, and the minimum frame size
In Ethernet, slot time is the time used for collision handling and retransmission scheduling.2 For classic 10 Mb/s and 100 Mb/s half-duplex Ethernet, the slot time is 512 bit-times; at 10 Mb/s, this equals .2 This value is not arbitrary: it is chosen so that a station can still be transmitting when a worst-case collision returns from the farthest point in the permitted collision domain.2
Let:
- = link bit rate in bits/s
- = one-way maximum propagation delay across the collision domain
- = minimum frame length in bits
For collision detection to work correctly, the sender's transmission time must be at least the round-trip propagation delay:
Multiplying both sides by gives the fundamental design inequality:
This is the mathematical justification for Ethernet's minimum frame size requirement.3 If a frame were shorter than bits, a far-end collision could occur and the sender could finish transmission before the collision signal returned, making detection impossible.2
For classic Ethernet, the standardized minimum frame length is 64 bytes, or:
Hence the transmission time of the smallest legal frame equals one slot time:
Examples:
| Ethernet Rate | Slot Time in Bit-Times | Slot Time in Seconds |
|---|---|---|
| Mb/s | ||
| Mb/s |
A collision detected after the first slot time is called a late collision and generally indicates a misconfigured or faulty network, such as excessive cable distance or timing problems.
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩ ↩2 ↩3
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩ ↩2 ↩3 ↩4 ↩5
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩ ↩2 ↩3
Ethernet Slot Time by Link Rate
For half-duplex Ethernet, 10 and 100 Mb/s retain a slot time of 512 bit-times; the duration shrinks as bit rate rises.
Mathematical justification of the rule
Consider two stations A and B at opposite ends of the maximum allowed collision domain.2
- A begins transmission at time .
- A's first bit reaches B after one-way propagation delay .
- In the worst case, B starts transmitting just before A's signal arrives, so B still believes the medium is idle.2
- The collision effect must then travel back toward A, taking nearly another .
- Therefore A may not detect the collision until almost after starting.2
So if A is to detect the collision before finishing transmission, the frame transmission time must satisfy:
Since :
This simple inequality connects physical distance, propagation speed, and MAC-layer frame design.2
If propagation speed is approximately , then for cable length :
Substituting into the minimum-frame inequality:
or equivalently:
Thus, fixing bits constrains the maximum collision-domain diameter for a given bit rate.2 This is why faster shared Ethernet requires tighter diameter limits or altered slot-time engineering.
Footnotes
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩ ↩2 ↩3 ↩4
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩ ↩2 ↩3 ↩4 ↩5
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩ ↩2
Key Concepts and Edge Cases
Binary exponential backoff: resolving repeated collisions
After a collision, immediate retransmission would likely cause another collision, especially if the same stations are contending.2 Ethernet therefore uses binary exponential backoff to spread retransmission attempts over time.
If a frame has experienced collisions, the station chooses a random integer from:
for early collisions, with Ethernet applying truncation so the exponent does not grow indefinitely.2 The retransmission delay is then:
where bit-times for 10/100 Mb/s half-duplex Ethernet.2
So:
- After the 1st collision:
- After the 2nd collision:
- After the 3rd collision:
The window doubles each time, reducing the probability that the same stations pick identical retry times again.2 This adaptive behavior is especially effective under bursty contention because it enlarges the contention window only when repeated collisions suggest high load.
The expected backoff after collisions, assuming uniform selection over , is:
Hence the expected retransmission delay is:
This shows mathematically why waiting grows rapidly with repeated collisions.
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩ ↩2 ↩3 ↩4
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩ ↩2 ↩3
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩
Applying the Exponential Backoff Algorithm
- 1Step 1
Let be the number of collisions already experienced by the current frame. Ethernet uses this count to size the contention window.2
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 2Step 2
Choose the random slot count from through for early retries, subject to Ethernet's truncation rules.2
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 3Step 3
Select one value uniformly from the valid range. Different stations are unlikely to choose the same value repeatedly.
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
- 4Step 4
Multiply by slot time: . At Mb/s, ; at Mb/s, .2
Footnotes
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩
-
- 5Step 5
After the selected delay, the station senses the channel again. If idle, it retransmits; otherwise it continues deferring under carrier sense rules.2
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
- 6Step 6
Ethernet specifies a finite retry limit. If too many collisions occur for the same frame, the transmission is reported as failed rather than retried forever.2
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
-
Minimum-frame condition:
Equivalent form:
Slot time:
Backoff delay after collisions:
Expected slot count:
CSMA/CD Transmission Lifecycle
Carrier Sensing
Stage 1A station listens to determine whether the shared medium is currently busy or idle."
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
Frame Transmission
Stage 2If idle, the station transmits but continues monitoring the line while sending.2"
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
Collision Detection
Stage 3A mismatch or interference on the medium indicates overlapping transmissions.2"
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
Jam and Abort
Stage 4The sender enforces the collision with a jam indication so all participants recognize the corrupted event.2"
Footnotes
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
Binary Exponential Backoff
Stage 5The station waits a random number of slot times selected from an expanding contention window.2"
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
Retransmission or Failure
Stage 6The frame is retried until success or until the retry limit is reached.2"
Footnotes
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩
Exam Strategy
When asked why Ethernet needs a minimum frame size, start from the worst-case collision path: the sender must still be transmitting after a round trip of approximately , so .2
Footnotes
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩
Practical interpretation for Network Theory
From a theoretical perspective, CSMA/CD links the physical properties of a medium to MAC-layer correctness.2 The protocol is not merely a rule set for contention; it is an example of cross-layer constraint where propagation delay, transmission rate, and frame format must be jointly engineered.2
The most important takeaways for the Data Link Layer and Medium Access Sub Layer are:
- Basic CSMA lowers collision probability but cannot prevent collisions on a finite-speed shared medium.2
- CSMA/CD solves this by requiring stations to detect collisions while transmitting.2
- The legal collision window is governed by approximately , motivating Ethernet slot time.2
- The minimum frame size follows directly from the requirement .2
- Repeated collisions are resolved dynamically by truncated binary exponential backoff.2
These ideas remain pedagogically significant even though switched full-duplex Ethernet largely removed shared-medium collisions from everyday practice.2
Footnotes
-
[PDF] CSMA/CD - Explains Ethernet slot time, minimum frame size, late collisions, and retransmission behavior. ↩ ↩2 ↩3 ↩4
-
[PDF] 4. Media Access Control - IEEE 802 - IEEE-oriented description of collision handling, jam, and truncated binary exponential backoff. ↩ ↩2 ↩3 ↩4
-
[PDF] Lecture 19: Ethernet / MAC - Alan Mislove - Summarizes Ethernet collision detection, slot time, jam signaling, and exponential backoff. ↩ ↩2 ↩3
-
Carrier-sense multiple access with collision detection - Wikipedia - Overview of CSMA/CD, jam signal, slot time, and half-duplex Ethernet behavior. ↩ ↩2 ↩3
-
[PDF] Tutorial for CSMA-CD - Provides slot-time interpretation and relation to round-trip propagation. ↩ ↩2
Knowledge Check
Why can collisions still occur in basic CSMA on a wired medium even if all stations listen before transmitting?