Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
CSMA/CD with the Binary Exponential Backoff
Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is a network protocol for carrier transmission that operates in the Medium Access Control (MAC) layer. It senses or listens whether the shared channel for transmission is busy or not, and defers transmissions until the channel is free.
When more than one station sends their frames simultaneously, collision occurs. Binary Exponential Backoff is a collision resolution mechanism which is commonly used to schedule retransmissions after collisions in Ethernet. The waiting time that a station waits before attempting retransmission of the frame is called backoff time.
How CSMA/CD Works
CSMA/CD Algorithm
-
Channel Sensing − When a frame is ready, the transmitting station checks whether the channel is idle or busy.
-
Wait if Busy − If the channel is busy, the station waits until the channel becomes idle.
-
Transmit and Monitor − If the channel is idle, the station starts transmitting and continually monitors the channel to detect collision.
-
Collision Detection − If a collision is detected, the station starts the binary exponential backoff algorithm.
-
Completion − The station resets the retransmission counters and completes frame transmission.
Binary Exponential Backoff Algorithm
-
Jam Signal − The station continues transmission of the current frame for a specified time along with a jam signal, to ensure that all other stations detect collision.
-
Increment Counter − The station increments the retransmission counter,
c, that denotes the number of collisions. -
Random Selection − The station selects a random number of slot times in the range 0 and 2c − 1.
-
Calculate Backoff Time − If the station selects a number
kin the range 0 and 2c − 1, then:Backoff_time = k × Time_slot
where a time slot is equal to round trip time (RTT).
-
Retry Transmission − At the end of the backoff time, the station attempts retransmission by continuing with the CSMA/CD algorithm.
-
Abort if Maximum Reached − If the maximum number of retransmission attempts is reached, the station aborts transmission.
Backoff Examples
| Collision Number (c) | Backoff Range | Possible Wait Times |
|---|---|---|
| 1 | 0 to 21 − 1 = 0 to 1 | 0 or 1 slot times |
| 2 | 0 to 22 − 1 = 0 to 3 | 0, 1, 2, or 3 slot times |
| 3 | 0 to 23 − 1 = 0 to 7 | 0, 1, 2, ..., 7 slot times |
Key Features
-
Exponential Growth − The backoff window doubles with each collision, reducing the probability of repeated collisions.
-
Random Selection − Stations choose random wait times within the backoff window to avoid synchronized retransmissions.
-
Fairness − All stations have equal probability of accessing the channel after the backoff period.
Conclusion
CSMA/CD with Binary Exponential Backoff effectively manages collisions in Ethernet networks by exponentially increasing the backoff window with each collision. This mechanism ensures fair channel access while reducing the probability of repeated collisions through randomized retry intervals.
