- CSMA/CD (Carrier Sense Multiple Access/Collision Detection) is the protocol used in Ethernet networks to ensure that only one network node is transmitting on the network wire at any one time.
- CSMA/CD is a type of contention protocol.
- CSMA/CD is a set of rules determining how network devices respond when two devices attempt to use a data channel simultaneously (called a collision). Standard Ethernet networks use CSMS/CD to physically monitor the traffic on the line at participating stations. If no transmission is taking place at the time, the particular station can transmit. If two stations attempt to transmit simultaneously, this causes a collision, which is detected by all participating stations. After a random time interval, the stations that collided attempt to transmit again. If another collision occurs, the time intervals from which the random waiting time is selected are increased step by step. This is known as exponential back off.
Carrier Sense à means that every Ethernet device listens to the Ethernet wire before it attempts to transmit. If the Ethernet device senses that another device is transmitting, it will wait to transmit.
Multiple Access à means that more than one Ethernet device can be sensing (listening and waiting to transmit) at a time.
Collision Detection à means that when multiple Ethernet devices accidentally transmit at the same time, they are able to detect this error.
How collisions occur under CSMA/CD
Imagine a very simple Ethernet network with only two nodes. Each node, independently, decides to send an Ethernet frame to the other node. Both nodes listen to the Ethernet wire and sense that no carrier is present. Both nodes transmit simultaneously, causing a collision. Both nodes detect the collision and each node waits a random amount of time before transmitting again. Collisions are normal on an Ethernet network. A small amount of collisions are expected in the protocol design. If too many nodes are transmitting on an Ethernet network the number of collisions can rise to an unacceptable level. This can reduce the amount of available bandwidth on an Ethernet network because so much bandwidth is lost in retransmission. Ethernet switches greatly reduce the already minor difficulties experienced with the CSMA/CD protocol.