Collision Detection in CSMA - CD - GeeksforGeeks
Collision Detection in CSMA - CD - GeeksforGeeks
Collision Detection in CSMA - CD - GeeksforGeeks
30% Discount
Courses TutorialsJobsPracticeContests
Consider a scenario where there are ‘n’ stations on a link and all are waiting
to transfer data through that channel. In this case, all ‘n’ stations would
want to access the link/channel to transfer their own data. The problem
arises when more than one station transmits the data at the moment. In this
case, there will be collisions in the data from different stations.
CSMA/CD is one such technique where different stations that follow this
protocol agree on some terms and collision detection measures for effective
transmission. This protocol decides which station will transmit when so that
data reaches the destination without corruption.
https://www.geeksforgeeks.org/collision-detection-csmacd/ 1/8
30/05/2024, 00:55 Collision Detection in CSMA/CD - GeeksforGeeks
After the collision occurs, a collision signal is generated and sent to both A &
B to inform the stations about the collision. Since the collision happened
midway, the collision signal also takes 30 minutes to reach A & B.
This collision signal is received by all the stations on that link. Then,
But, above is a loose bound. We have not taken the time taken by the
collision signal to travel back to us. For this consider the worst-case
scenario.
This collision occurs just before the data reaches B. Now the collision signal
takes 59:59 minutes again to reach A. Hence, A receives the collision
information approximately after 2 hours, that is, after 2 * Tp.
This is the maximum collision time that a system can take to detect if the
collision was of its own data.
Padding helps in cases where we do not have such long packets. We can
pad extra characters to the end of our data to satisfy the above condition.
https://www.geeksforgeeks.org/collision-detection-csmacd/ 3/8
30/05/2024, 00:55 Collision Detection in CSMA/CD - GeeksforGeeks
Advantages of CSMA/CD:
Disadvantages of CSMA/CD:
https://www.geeksforgeeks.org/collision-detection-csmacd/ 4/8