CIE AS & A Level Computer Science, section 2.1 (Networks including the internet)
Ethernet
Ethernet is the most widely used standard for wired LANs. Data is sent in frames, and each device has a unique MAC address.
On a shared medium (such as a bus or a hub), only one device can transmit at a time. If two transmit at the same moment, their signals overlap and the data is corrupted. This is a collision.
CSMA/CD
Carrier Sense Multiple Access with Collision Detection is the method Ethernet uses on a shared medium.
- Listen: the device senses the carrier (checks whether the medium is in use).
- If idle, it begins transmitting; if busy, it waits.
- While sending, it keeps listening for a collision (it detects unexpected voltage levels).
- If a collision is detected, it sends a jam signal so all devices know.
- Each device waits for a random time (back-off), then tries again.
The random wait means two devices are unlikely to collide a second time.
Avoiding collisions
- Use a switch in a star network. It sends each frame only to the destination port, so devices rarely share the medium.
- Full-duplex links (send and receive on separate wires) avoid collisions entirely.
Wireless
Wi-Fi cannot detect collisions while transmitting, so it uses a related method, CSMA/CA (collision avoidance).
Common mistake: saying CSMA/CD "stops collisions from ever happening". It detects collisions after they occur and recovers from them. Also, remember the random waiting time, which is why the devices do not collide again.
Exam tip: describe the steps in order (listen, transmit, detect collision, jam signal, wait a random time, retransmit). Mention that a switch reduces collisions.
Check yourself
What is a collision on an Ethernet network?
Two devices transmit at the same time and the signals interfere, corrupting the data.
Why do devices wait a random time after a collision?
So they do not retransmit at the same moment and collide again.
Give one way to reduce collisions.
Use a switch instead of a shared bus or hub.