AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Mediumnetworksswitching

~90s

Collision and broadcast domains

A single 24-port Ethernet switch has one host on each port and no VLANs configured. How many collision domains and broadcast domains exist?

Show the answer and the worked solution

Correct answer: C.

24 collision domains and 1 broadcast domain

Worked solution

  1. A switch gives every port its own segment, so a collision on one port cannot affect another: 24 ports mean 24 collision domains.
  2. A switch floods a broadcast frame out of every other port, so all 24 hosts hear one another's broadcasts and form one broadcast domain.
  3. So there are 24 collision domains and 1 broadcast domain; splitting the broadcast domain would need VLANs or a router.

Answer: 24 collision domains and 1 broadcast domain.

The idea

A switch breaks collision domains, a router breaks broadcast domains, and a hub breaks neither. Those three sentences answer every question in this family.

Shortcut. A switch gives each port its own collision domain (24) and floods broadcasts everywhere, so only a router or VLAN would split the single broadcast domain.

Common trap. "1 collision domain and 1 broadcast domain" is the answer for a hub, which shares one medium among all its ports.

Collision and broadcast domains — Aptitude Question

Collision and broadcast domains: A single 24-port Ethernet switch has one host on each port and no VLANs configured. Answer and worked solution on CodeKairo.

Question

A single 24-port Ethernet switch has one host on each port and no VLANs configured. How many collision domains and broadcast domains exist?

Options

  1. 1 collision domain and 1 broadcast domain
  2. 1 collision domain and 24 broadcast domains
  3. 24 collision domains and 1 broadcast domain
  4. 24 collision domains and 24 broadcast domains
Show the answer and the worked solution

Correct answer: C. 24 collision domains and 1 broadcast domain

Worked solution

  1. A switch gives every port its own segment, so a collision on one port cannot affect another: 24 ports mean 24 collision domains.
  2. A switch floods a broadcast frame out of every other port, so all 24 hosts hear one another's broadcasts and form one broadcast domain.
  3. So there are 24 collision domains and 1 broadcast domain; splitting the broadcast domain would need VLANs or a router.

Answer: 24 collision domains and 1 broadcast domain.

The idea

A switch breaks collision domains, a router breaks broadcast domains, and a hub breaks neither. Those three sentences answer every question in this family.

Shortcut. A switch gives each port its own collision domain (24) and floods broadcasts everywhere, so only a router or VLAN would split the single broadcast domain.

Common trap. "1 collision domain and 1 broadcast domain" is the answer for a hub, which shares one medium among all its ports.

All OS, DBMS & Networks questions · placement mock tests