Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) is a network protocol for carrier transmission that operates at the MAC.
Compared to wired networks, wireless systems cannot be monitored as securely. The node beyond the first station's range may cause collisions since it cannot detect the other's attempts to send data packets over the network. CSMA/CA helps lower the probability of such collisions. Each station in a decentralized network must abide by a set of rules and manage communication among themselves.
The "Listen Before Talk" (LBT) principle is the foundation of CSMA/CA. Before the station can begin transmitting, the line must check to verify if it is free. However, this is only the first action. Collisions are effectively prevented with the help of additional functions that are part of the procedure.
The following illustration shows the workflow of CSMA/CA in detail.
The steps above are followed by wireless networks that adopt CSMA/CA. These are explained in more detail below.
First, the stations sense the transmission medium. This implies that the carrier sense keeps a close eye on the radio channel and determines whether other stations are transmitting at the same time.
If the transmission medium is already in use, a random backoff is initiated, during which the station waits until a new check begins for a determined period. The same happens at all other stations that are not actively broadcasting or receiving. It only occurs if the station is unaware that the medium is already occupied (which is set by the wireless listening stations to tell a station how long it must wait before accessing the wireless medium).
If the network is available, the station initiates, which regulates how long a station waits before commencing a media transmission. Before
All other stations are alerted that the network is in use. As a result, they raise their network allocation vector again and delay making another attempt to verify if the channel is free.
The station then begins the transmission. The receiver confirms that the data packet has been successfully received after waiting for the
Host A reserves the transmission channel to deliver a data frame to host B. Host C pauses its backoff timer when it senses that the channel is busy and only resumes it when the transmission media gets free.
Free Resources