CSMA is a Media Access Control (MAC) protocol in which a node verifies the absence of other traffic before transmitting on a shared transmission medium. A sender first listens to the channel; only if it finds the channel idle does it proceed to transmit.
The 1-persistent variant transmits with probability 1 once the channel is sensed idle — the simplest approach but prone to collisions when multiple stations wait for a busy channel to clear.
CSMA/CD extends CSMA by adding the ability to detect collisions during transmission. When a collision is detected, a jamming signal is sent, transmission is aborted, and each station waits a random backoff time before retrying.
The binary exponential backoff algorithm doubles the contention window after each collision (K = 0..15), dramatically reducing repeat collisions. Maximum retries Kmax = 15; beyond that, the frame is aborted.
CSMA/CA is designed for wireless networks where collision detection is impractical. Instead of detecting collisions, it actively avoids them by waiting an Inter-Frame Space (IFS) and a random backoff window before transmitting.
After transmission the sender awaits an ACK from the receiver. No ACK means the frame was lost (possibly via collision), triggering a retry with an incremented attempt counter K, up to Kmax = 15.