






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Before you go through this article, make sure that you have gone through the previous article on Access Control. We have discussed- Access Control is a mechanism that controls the access of stations to the transmission link. Broadcast links require the access control mechanism. There are various access control methods-
CSMA / CD stands for Carrier Sense Multiple Access / Collision Detection. This access control method works as follows-
Any station willing to transmit the data senses the carrier. If it finds the carrier free, it starts transmitting its data packet otherwise not.
Each station can sense the carrier only at its point of contact with the carrier. It is not possible for any station to sense the entire carrier. Thus, there is a huge possibility that a station might sense the carrier free even when it is actually not.
Consider the following scenario- At the current instance, If station A senses the carrier at its point of contact, then it will find the carrier free. But the carrier is actually not free because station D is already transmitting its data. If station A starts transmitting its data now, then it might lead to a collision with the data transmitted by station D.
Let the propagation delay be 1 hour. (We are considering station D for the worst case) Let us consider the scenario at time 10:59:59:59 when the packet is about to reach the station D. At this time, station D senses the carrier. It finds the carrier free and starts transmitting its data packet. Now, as soon as station D starts transmitting its data packet, a collision occurs with the data packet of station A at time 11:00 am. After collision occurs, the collided signal starts travelling in the backward direction. The collided signal takes 1 hour to reach the station A after the collision has occurred. For station A to detect the collided signal, it must be still transmitting the data. So, transmission delay of station A must be >= 1 hour + 1 hour >= 2 hours to detect the collision. That is why, for detecting the collision, condition is Tt >= 2Tp. Two cases are possible-
If no collided signal comes back during the transmission, It indicates that no collision has occurred. The data packet is transmitted successfully.
If the collided signal comes back during the transmission, It indicates that the collision has occurred. The data packet is not transmitted successfully. Step-03 is followed.
Jam signal is a 48 bit signal. It is released by the transmitting stations as soon as they detect a collision. It alerts the other stations not to transmit their data immediately after the collision. Otherwise, there is a possibility of collision again with the same data packet. Ethernet sends the jam signal at a frequency other than the frequency of data signals. This ensures that jam signal does not collide with the data signals undergone collision.
After the collision, the transmitting station waits for some random amount of time called as back off time. After back off time, it tries transmitting the data packet again. If again the collision occurs, then station again waits for some random back off time and then tries again. The station keeps trying until the back off time reaches its limit. After the limit is reached, station aborts the transmission. Back off time is calculated using Back Off Algorithm.
The following CSMA / CD flowchart represents the CSMA / CD procedure-
Efficiency (η) = Useful Time / Total Time Before a successful transmission, There may occur many number of collisions. 2 x Tp time is wasted during each collision. Thus, Useful time = Transmission delay of data packet = Tt Useless time = Time wasted during collisions + Propagation delay of data packet = c x 2 x Tp + Tp Here, c = Number of contention slots / collision slots. Thus, Here, c is a variable. This is because number of collisions that might occur before a successful transmission are variable. Probabilistic Analysis shows- Average number of collisions before a successful transmission = e Substituting c = e in the above relation, we get-
Let us perform the probabilistic analysis to find the average number of collisions before a successful transmission. Consider- Number of stations connected to a CSMA / CD network = n Probability of each station to transmit the data = p
Number of times a station must try before successfully transmitting the data packet = 1 / Pmax (Using Poisson’s distribution) = 1 / (1/e) = e From here, we conclude- Average number of collisions that might occur before a successful transmission = e
CSMA / CD is used in wired LANs. CSMA / CD is standardized in IEEE 802.
CSMA / CD only minimizes the recovery time. It does not take any steps to prevent the collision until it has taken place.
Condition to detect collision: Transmission delay >= 2 x Propagation delay Minimum length of data packets in CSMA / CD = 2 x Bandwidth x Distance / Speed Efficiency of CSMA / CD = 1 / (1 + 6.44 x a) where a = Tp / Tt Probability of successful transmission = nC 1 x p x (1-p)n-
Average number of collisions before a successful transmission = e To gain better understanding about CSMA / CD,