100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

What is a Collision Domain?

Learn what a collision domain is, how hubs vs switches affect it, and CSMA/CD — with networking interview questions answered.

mediumQ118 of 224 in Computer Networks Est. time: 5 minsLast updated:
Open Code Lab

Expected Interview Answer

A collision domain is the set of network devices whose transmissions can collide with each other because they share the same physical medium at the same time, meaning only one device on that shared segment can successfully send data at once.

Collisions were a defining problem of shared-medium Ethernet using hubs or coaxial cable, where every device connected to the same segment received every transmission and had to use CSMA/CD (Carrier Sense Multiple Access with Collision Detection) to detect and recover from overlapping signals. A hub does not inspect frames at all — it repeats every incoming signal out every other port, so all devices attached to it, and to any hub chained off it, form one single collision domain. Switches solved this problem by learning MAC addresses and forwarding frames only out the specific port where the destination lives, which means each switch port is its own collision domain; a full-duplex switched connection effectively eliminates collisions entirely, since a device can send and receive simultaneously without contention. Modern wired networks built on switches have made collision domains largely a historical concern, though the concept still matters for understanding legacy topologies and how switching improved on hubs.

  • Explains why shared-medium hubs caused performance-limiting collisions
  • Clarifies why each switch port is its own collision domain
  • Distinguishes collision domains from broadcast domains
  • Underpins why full-duplex switching effectively removes collisions

AI Mentor Explanation

A collision domain is like a single shared practice net where only one bowler can deliver a ball at a time — if two bowlers release simultaneously, the balls collide mid-air and both deliveries are ruined. Splitting the facility into separate individual nets means each bowler has their own space and can never collide with another, which mirrors how a switch gives every device its own collision-free port. A hub is like one giant shared net with no dividers, forcing everyone to take turns or risk a mid-air collision. This is exactly why replacing shared nets (hubs) with individual nets (switch ports) eliminates collisions.

Step-by-Step Explanation

  1. Step 1

    Shared medium

    Devices connected to the same physical segment (e.g., via a hub) all transmit onto the same wire.

  2. Step 2

    Collision occurs

    If two devices transmit at the same instant, their signals overlap and corrupt each other.

  3. Step 3

    CSMA/CD recovery

    Devices detect the collision, stop transmitting, wait a random backoff period, and retry.

  4. Step 4

    Switching removes it

    A switch forwards frames only to the destination port, giving each connected device its own collision-free segment.

What Interviewer Expects

  • Correct definition: devices whose transmissions can collide on a shared medium
  • Explains the role of hubs versus switches in creating/eliminating collision domains
  • Mentions CSMA/CD as the legacy recovery mechanism
  • Distinguishes a collision domain from a broadcast domain

Common Mistakes

  • Confusing collision domains with broadcast domains
  • Thinking modern switched networks still suffer frequent collisions
  • Not knowing a hub creates one collision domain across all its ports
  • Forgetting full-duplex links effectively eliminate collisions entirely

Best Answer (HR Friendly)

A collision domain is the group of devices that could interfere with each other if they tried to send data on the network at exactly the same time — like everyone trying to talk on one shared phone line at once. Old-style hubs put every connected device into one big collision domain, but modern switches give each device its own private connection, so collisions are basically a thing of the past on wired networks today.

Code Example

Inspecting duplex mode and collision counters
# Show interface duplex/speed settings (Linux)
ethtool eth0 | grep -i duplex

# Show interface error/collision statistics
ip -s link show eth0
# RX errors dropped overrun mcast
# TX errors dropped carrier collsns

Follow-up Questions

  • How does a switch differ from a hub in terms of collision domains?
  • What is CSMA/CD and how does it handle a detected collision?
  • How is a collision domain different from a broadcast domain?
  • Why do full-duplex links effectively eliminate collisions?

MCQ Practice

1. Which device puts all connected hosts into a single collision domain?

A hub repeats every signal to all ports without inspection, so all connected devices share one collision domain.

2. How many collision domains does a fully switched network with N devices typically have?

Each switch port is its own collision domain since the switch forwards frames only to the intended destination port.

3. What legacy mechanism did shared-medium Ethernet use to handle collisions?

CSMA/CD detects collisions on a shared medium and triggers a backoff-and-retry procedure.

Flash Cards

What is a collision domain?A set of devices whose transmissions can collide because they share the same physical medium.

Hub vs switch collision domains?A hub creates one shared collision domain; a switch gives each port its own collision domain.

What handles collisions on shared Ethernet?CSMA/CD — detects collisions and triggers a random backoff before retrying.

Do full-duplex switch links have collisions?Effectively no — simultaneous send/receive without contention removes the collision risk.

1 / 4

Continue Learning