Course contents

Unit 4: Ethernet and CablingLesson 4.11 (11 of 11 in this unit)40 of 104 in the Network Fundamentals course

Collision domains

Why hubs shared one collision domain, how switches split them, and why full duplex ended collisions.

Beginner · 6 min read

Covers CSMA/CD, Hubs vs. switches and Half vs. full duplex.

Technical definition

Collision domain is a network segment in which frames from two devices can collide if both transmit at the same time, as on a shared hub or coaxial cable running half duplex. Each switch port is a separate collision domain, and a full-duplex link has no collisions at all.

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.

Diagram
A collision on a hub
A collision on a hub
Hubrepeats signalsPC APC BPC C

Device key: PC A, PC B, PC C (computer)

Lines show the example’s network connections. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type.

  1. 1. Two PCs transmit at once. PC A and PC C both start sending.
  2. 2. Collision. The hub repeats the mixed signal out of every port. Both frames are destroyed.
  3. 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.

Diagram
No collisions on a full-duplex switch
No collisions on a full-duplex switch
SwitchPC APC BPC C

Device key: PC A, PC B, PC C (computer)

Lines show the example’s network connections. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type.

  1. 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. 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.

In practice, if a switch port's error counters show late collisions, check the duplex setting at both ends of that link before replacing any cable.

Learn more: Ethernet FundamentalsSpeed and Duplex

Hubs, switches and routers compared

Diagram
Hubs, switches and routers compared
Hubs, switches and routers compared
DeviceEffect on collision domains
Hub / repeaterExtends one collision domain to all its ports
Switch / bridgeEach port is a separate collision domain
RouterEach interface is a separate collision domain (and broadcast domain)
Each item on the left, with what it means on the right.

Count the collision domains

Predict · scenario 1

A 24-port switch has 20 PCs connected. Counting only the ports in use, how many collision domains are there?

Predict · scenario 2

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?