Shared Ethernet and collisions
Early Ethernet was a shared medium: one coaxial cable, or later a hub, which simply repeats every bit it receives out of every other port. Only one device can transmit at a time. If two devices transmit at once, their signals collide and both frames are destroyed. A collision domain is the set of devices that can collide with each other.
- 1. Two PCs transmit at once. PC A and PC C both start sending.
- 2. Collision. The hub repeats the mixed signal out of every port. Both frames are destroyed.
- 3. CSMA/CD recovers. Each sender detects the collision, sends a jam signal, waits a random time and tries again.
CSMA/CD (Carrier Sense Multiple Access with Collision Detection) was the set of rules: listen before sending (carrier sense), detect collisions while sending, then back off for a random time. It works, but the more devices share the domain, the more collisions there are and the lower the real throughput.
Switches split collision domains
A switch does not repeat signals like a hub. It reads each frame, forwards it only where needed, and buffers frames when an output port is busy. So every switch port is its own collision domain.
- 1. Two PCs send at once… …both to PC B. The switch buffers one frame briefly and sends the two frames one after the other. There is no collision.
- 2. Full duplex: PC A and PC C can even send to each other at the same time, because each link carries traffic in both directions at once.
Full duplex ends collisions
On a switch port running full duplex, the device and the switch can send and receive at the same time. There is no shared medium, so collisions can't happen and CSMA/CD is switched off. Collisions on a modern switched network are a symptom of a problem, usually a duplex mismatch.
Learn more: Ethernet FundamentalsSpeed and Duplex
Counting collision domains
| Device | Effect on collision domains |
|---|---|
| Hub / repeater | Extends one collision domain to all its ports |
| Switch / bridge | Each port is a separate collision domain |
| Router | Each interface is a separate collision domain (and broadcast domain) |
Check yourself
A 24-port switch has 20 PCs connected. How many collision domains are there on the switch?
Four PCs are connected to a hub, and the hub is connected to one switch port. How many collision domains do the hub and its PCs form?