Collision and Broadcast Domains
Device Impact on Domains
Read aloud is unavailable in this browser.
Network Devices and Domain Segmentation
Network interconnection devices are the architectural building blocks that define network topology, performance characteristics, and segmentation boundaries. Each device type—from simple repeaters to sophisticated routers—interacts differently with collision and broadcast domains based on its layer of operation and functional design.
Understanding these interactions is not merely academic. It directly informs design decisions: Should I use a hub or a switch? How many broadcast domains will this design create? Why is performance degrading after adding that network segment? The answers lie in understanding how devices shape domain boundaries.
A fundamental principle governs device behavior: the higher the OSI layer a device operates at, the more segmentation it provides. Layer 1 devices provide no segmentation. Layer 2 devices segment collision domains only. Layer 3+ devices segment both collision and broadcast domains. This principle will guide our entire analysis.
Repeaters: Physical Layer Signal Regeneration
A repeater is the simplest network interconnection device. Operating entirely at the Physical Layer (Layer 1), a repeater receives electrical signals on one port, amplifies and regenerates them, and retransmits them on another port. The repeater has no awareness of frames, addresses, or any higher-layer concepts—it deals purely with signal waveforms.
Physical Layer Operation
When a signal arrives at a repeater:
- Signal Reception: The analog waveform is received by the input circuitry
- Signal Conditioning: Noise is filtered, timing is recovered from transitions
- Signal Regeneration: A clean copy of each bit is generated
- Signal Transmission: The regenerated signal is transmitted on the output port(s)
This process happens at wire speed with minimal latency (typically < 1 microsecond).
Why Repeaters Are Needed
Signals attenuate (weaken) and distort as they travel along cables:
- Attenuation: Signal amplitude decreases with distance due to cable resistance
- Dispersion: Signal edges become less sharp, causing timing errors
- Noise: Electromagnetic interference accumulates along the cable
Without repeaters, the maximum cable length would be severely limited. Repeaters extend reach by regenerating the signal before it degrades beyond recognition.
| Characteristic | Description | Impact |
|---|---|---|
| OSI Layer | Layer 1 (Physical) | No awareness of frames or addresses |
| Collision Domain | Extends the collision domain | All connected segments become one collision domain |
| Broadcast Domain | Extends the broadcast domain | Broadcasts propagate through the repeater |
| Latency | Minimal (< 1 µs typical) | Negligible delay added |
| Collision Handling | Propagates collisions | Collision detected on one side affects both sides |
| Segmentation | None | Does not reduce contention or isolate traffic |
Domain Impact Analysis
When you connect two network segments with a repeater:
[Segment A] ----[Repeater]---- [Segment B]
- Segments A and B become one collision domain
- Segments A and B become one broadcast domain
- Any transmission on A is regenerated and appears on B
- A collision on either segment propagates to both segments
- All hosts across both segments contend for the same shared bandwidth
The 5-4-3 Rule
Traditional Ethernet specifications limited repeater use to prevent excessive latency (which would break CSMA/CD timing):
- 5: Maximum of 5 network segments
- 4: Connected by 4 repeaters maximum
- 3: Only 3 segments can have active hosts (2 segments are link-only)
This rule ensured the round-trip delay remained within the slot time budget.
Modern networks rarely use standalone repeaters. Their function has been absorbed by hubs (multiport repeaters) and made largely irrelevant by switches. You're most likely to encounter repeater concepts in legacy networks, certification exams, or specialized applications like long-distance fiber links with optical repeaters.
Hubs: Multiport Repeaters
A hub is essentially a multiport repeater. It operates at the Physical Layer and connects multiple devices to a shared collision domain. Any signal received on one port is regenerated and transmitted out all other ports—the hub makes no decisions about where to send traffic.
Hub Architecture
Internally, a hub consists of:
- Multiple Port Transceivers: Each port has receive and transmit circuitry
- Signal Bus: A shared internal bus that connects all ports
- Timing Recovery: Synchronizes all ports to a common clock
- Collision Detection Circuitry: Detects simultaneous transmissions and generates jam signals
When any port receives a signal:
- The signal is placed on the internal bus
- All other ports repeat the signal to their connected segments
- If two ports receive signals simultaneously, a collision is detected
- The hub transmits a jam signal on all ports
- •Low cost — Simplest possible design; minimal electronics
- •Low latency — No processing delay; wire-speed operation
- •Protocol agnostic — Works with any Layer 2 protocol
- •Easy installation — No configuration required
- •Debugging aid — All traffic visible on all ports (useful for packet capture)
- •Shared bandwidth — All ports share the hub's rated speed
- •Collision scaling — More ports = more collisions
- •Half-duplex only — Cannot support full-duplex operation
- •No traffic isolation — All frames visible on all ports (security concern)
- •Limited scalability — Practical limit of ~30 active hosts
Domain Impact Analysis
A hub creates a single collision domain containing all connected devices and a single broadcast domain encompassing the same devices.
Example: An 8-port hub with 8 connected workstations:
- 1 Collision Domain: All 8 workstations contend for the same bandwidth
- 1 Broadcast Domain: Broadcasts from any workstation reach all 7 others
- Effective Bandwidth: With 8 contending devices, practical throughput per device is ~1/8 of rated speed (or less due to collisions)
Cascaded Hubs
Connecting hubs together extends the collision domain:
[Hub A]----[Hub B]----[Hub C]
| | |
PCs PCs PCs
- All PCs on all three hubs share one collision domain
- Total bandwidth is still the hub's rated speed, shared by all devices
- The 5-4-3 rule limits cascading depth
- Latency accumulates with each hub traversed
In modern networks, there are very few valid reasons to use a hub: (1) Network diagnostics where you need to capture all traffic without installing port mirroring, (2) Extremely cost-sensitive applications with low traffic and few nodes, (3) Legacy equipment compatibility. In virtually all other cases, switches are superior and often cheaper.
Bridges: Layer 2 Segmentation
A bridge is a Layer 2 device that segments collision domains while maintaining a single broadcast domain. Bridges revolutionized network design by providing intelligent traffic forwarding based on MAC addresses—a fundamental advancement over the dumb signal repetition of hubs and repeaters.
Bridge Operation
Bridges employ a store-and-forward methodology:
- Frame Reception: The bridge receives and buffers entire frames
- Source Learning: The source MAC address is recorded with the receiving port in a MAC address table
- Destination Lookup: The destination MAC address is looked up in the table
- Forwarding Decision:
- If destination is on a different port → forward the frame
- If destination is on the same port → filter (discard) the frame
- If destination is unknown → flood to all ports except source
- If destination is broadcast → flood to all ports except source
Learning and Aging
The MAC address table (also called CAM table, SAT, or forwarding database) is built dynamically:
- When a frame arrives, the source MAC and port are recorded
- Entries are timestamped and aged out after a period of inactivity (default ~5 minutes)
- The table size is finite; overflow may cause aged entries to be evicted
| Characteristic | Description | Impact |
|---|---|---|
| OSI Layer | Layer 2 (Data Link) | Understands MAC addresses; makes forwarding decisions |
| Collision Domain | Separates collision domains | Each port is an independent collision domain |
| Broadcast Domain | Extends the broadcast domain | Broadcasts are flooded to all ports |
| Processing | Store-and-forward | Adds latency (time to receive full frame) |
| Intelligence | MAC learning + filtering | Reduces unnecessary traffic on each segment |
| Typical Port Count | 2-4 ports | Limited scalability; switches are preferred |
Domain Impact Analysis
Consider a 2-port bridge connecting two hub-based network segments:
[Hub A (5 PCs)]----[Bridge]----[Hub B (5 PCs)]
Before the bridge (if hubs were directly connected):
- 1 Collision Domain (10 PCs contending)
- 1 Broadcast Domain
- High collision rate; poor performance
After adding the bridge:
- 2 Collision Domains: PC collisions on Hub A don't affect Hub B, and vice versa
- 1 Broadcast Domain: Broadcasts still reach all 10 PCs
- Reduced collisions: Each segment only has 5 contending stations
- Better throughput: Each segment has full rated speed for local traffic
Traffic Filtering Example
If PC1 on Hub A sends to PC2 (also on Hub A):
- Bridge receives the frame
- Bridge learns PC1 is on Port 1
- Bridge looks up PC2 → if known on Port 1, filters the frame (does not forward)
- Hub B segment is unaffected; no bandwidth consumed
This filtering is a major performance improvement over hubs—traffic that doesn't need to cross the bridge is contained to its local segment.
Early bridges were software-based, processing frames in a CPU. This limited their throughput and port count. The term 'switch' emerged when hardware-based (ASIC) bridging became possible, enabling wire-speed forwarding and higher port densities. Technically, a switch is a multiport bridge with hardware acceleration. The terms are often used interchangeably today.
Switches: Microsegmentation and Full-Duplex
A switch is a multiport bridge implemented in hardware for wire-speed operation. Switches fundamentally transformed Ethernet by providing microsegmentation—each port becomes its own collision domain. Combined with full-duplex support, switches effectively eliminated the collision-related throughput ceiling that limited shared Ethernet.
Switch Architecture
Modern switches use specialized hardware for high-performance forwarding:
- ASIC-Based Forwarding: Application-Specific Integrated Circuits (ASICs) perform MAC table lookups and forwarding in hardware
- Switching Fabric: An internal bus or crossbar that allows multiple simultaneous port-to-port connections
- Per-Port Buffers: Input and output queues for each port handle speed mismatches and traffic bursts
- CAM/TCAM Tables: Content-Addressable Memory for high-speed MAC address lookup
Forwarding Methods
Switches may use different forwarding strategies:
| Method | Operation | Latency | Error Handling |
|---|---|---|---|
| Store-and-Forward | Receive entire frame, validate FCS, then forward | Highest (full frame time) | Drops corrupted frames |
| Cut-Through | Start forwarding after reading destination MAC | Lowest (~6 bytes delay) | May forward corrupted frames |
| Fragment-Free | Forward after receiving first 64 bytes | Medium (~64 bytes delay) | Catches runt frames (collision fragments) |
| Adaptive | Cut-through normally; falls back to store-and-forward if error rate rises | Variable | Best of both worlds |
Domain Impact: Microsegmentation
A switch provides one collision domain per port. This microsegmentation has profound implications:
Example: 24-port switch with 24 connected workstations:
- 24 Collision Domains: Each workstation has dedicated medium access
- 1 Broadcast Domain: All ports remain in the same broadcast domain (without VLANs)
- Per-Port Bandwidth: Each workstation gets full rated speed (e.g., full 100 Mbps or 1 Gbps)
Full-Duplex Operation
When a switch port connects to a single device (not a hub), full-duplex operation becomes possible:
- Separate Pairs: Transmit and receive use different wire pairs simultaneously
- No Collision Domain: There's no shared medium; CSMA/CD is disabled
- Doubled Throughput: A 100 Mbps full-duplex link provides 100 Mbps in each direction simultaneously
- No Slot Time Constraint: Without CSMA/CD, there's no minimum frame size requirement for timing purposes
Switch vs. Hub Performance Comparison
Consider 10 hosts generating 50 Mbps of traffic each (100 Mbps network):
| Metric | 10-Port Hub | 10-Port Switch (Full-Duplex) |
|---|---|---|
| Collision Domains | 1 | 10 |
| Total Bandwidth | 100 Mbps shared | 1,000 Mbps aggregate (100 Mbps × 10) |
| Per-Host Bandwidth | ~10 Mbps average | 100 Mbps dedicated |
| Collisions | Frequent (high contention) | None (full-duplex) |
| Latency | Variable (collision backoff) | Consistent (< 10 µs typical) |
| Security | Poor (all traffic visible) | Better (unicast only to destination port) |
Without VLANs, all switch ports share one broadcast domain. VLANs add Layer 2 segmentation: each VLAN is a separate broadcast domain. A 24-port switch could have ports 1-8 in VLAN 10, ports 9-16 in VLAN 20, and ports 17-24 in VLAN 30—creating three broadcast domains on a single physical switch. Inter-VLAN communication requires a router or Layer 3 switch.
Routers: Layer 3 Domain Separation
A router operates at the Network Layer (Layer 3), making forwarding decisions based on IP addresses rather than MAC addresses. Each router interface connects to a separate network and—critically—a separate broadcast domain. Routers provide the strongest domain separation and are essential for building scalable, hierarchical network architectures.
Router Operation
When a packet arrives at a router:
- Frame Decapsulation: The Layer 2 header is stripped; the Layer 3 packet is extracted
- Routing Decision: The destination IP address is compared against the routing table
- Next-Hop Determination: The best route determines the exit interface and next-hop IP
- Frame Encapsulation: A new Layer 2 header is created with appropriate MAC addresses
- TTL Decrement: The IP header's TTL is decremented; packet is dropped if TTL reaches 0
- Checksum Recalculation: IP header checksum is recalculated after TTL change
- Transmission: The new frame is sent on the exit interface
Why Routers Stop Broadcasts
Routers do not forward broadcast frames for fundamental design reasons:
- •Layer 3 Addressing: Routers forward based on IP addresses. A broadcast frame (MAC FF:FF:FF:FF:FF:FF) has no routable destination IP—it's addressed to 'everyone on this segment.'
- •Separate Networks: Each router interface represents a different IP network. Broadcasts are inherently local to one network; forwarding them to another would violate the network boundary.
- •Scalability Protection: If routers forwarded broadcasts, every broadcast would propagate throughout the entire internetwork, creating catastrophic traffic amplification.
- •Security Boundaries: Router interfaces provide natural security boundaries. Not forwarding broadcasts contains reconnaissance attempts and local network artifacts.
- •Protocol Design: Broadcast-based protocols (ARP, DHCP) are designed to work within a single segment. Their responses are also local and wouldn't work across router boundaries without special handling.
Domain Impact Analysis
Consider a router with 3 interfaces:
[Network A: 10.0.1.0/24]----[Router]----[Network B: 10.0.2.0/24]
|
[Network C: 10.0.3.0/24]
Domain Boundaries:
- 3 Broadcast Domains: Networks A, B, and C each have their own broadcast domain
- 3+ Collision Domains: Depends on what's connected (hub = 1, switch = multiple per network)
- Traffic Isolation: A broadcast on Network A never reaches hosts on B or C
- Routing Required: Hosts on Network A must route through the router to reach hosts on B or C
Directed Broadcast Handling
A directed broadcast (e.g., 10.0.2.255 targeting Network B) could theoretically be converted to a Layer 2 broadcast on the destination network. However:
- Modern Default: Disabled on most routers (RFC 2644)
- Security Concern: Directed broadcasts enabled Smurf DDoS attacks
- Configuration Option: Can be enabled per-interface if needed (rare)
DHCP and Broadcast Boundaries
When broadcasts can't cross routers, protocols that depend on broadcasts need special handling:
- DHCP Relay (Helper Address): Router intercepts DHCP broadcasts and forwards as unicast to a DHCP server
- BOOTP Relay: Similar mechanism for older bootstrap protocols
- Local DHCP Servers: Place DHCP servers in each broadcast domain (less common today)
Layer 3 switches combine switching and routing in a single device. They switch traffic within a VLAN at wire speed (Layer 2) and route between VLANs using hardware-accelerated routing (Layer 3). This makes them the preferred choice for enterprise networks: VLAN switching performance with router-like broadcast domain separation.
Comprehensive Device Comparison
Let's consolidate all device behaviors into a comprehensive comparison that can serve as a reference for network design and troubleshooting.
| Device | OSI Layer | Collision Domain Effect | Broadcast Domain Effect | Forwarding Basis |
|---|---|---|---|---|
| Repeater | Layer 1 | Extends ↔ | Extends ↔ | Electrical signals (all) |
| Hub | Layer 1 | Extends ↔ | Extends ↔ | Electrical signals (all) |
| Bridge | Layer 2 | Terminates ✓ | Extends ↔ | MAC addresses |
| Switch (no VLANs) | Layer 2 | Terminates ✓ | Extends ↔ | MAC addresses |
| Switch (with VLANs) | Layer 2 | Terminates ✓ | Terminates ✓ (per VLAN) | MAC + VLAN tag |
| Router | Layer 3 | Terminates ✓ | Terminates ✓ | IP addresses |
| Layer 3 Switch | Layer 2/3 | Terminates ✓ | Terminates ✓ (per VLAN) | MAC or IP (context) |
| Firewall | Layer 3+ | Terminates ✓ | Terminates ✓ | IP + policy rules |
Quick Reference Rules
Counting Collision Domains:
Collision Domains = (Switch Ports) + (Router Interfaces) + (Bridge Ports)
Note: A hub-connected segment counts as 1 collision domain, regardless of hosts.
Counting Broadcast Domains:
Broadcast Domains = (Router Interfaces) + (Number of VLANs)
Note: Each VLAN or router-separated network is one broadcast domain.
Example Network Analysis:
- 2 routers (3 interfaces each)
- 4 switches (24 ports each, all used)
- 2 hubs (8 ports each)
- No VLANs configured
Collision Domains: (4 × 24 switch ports) + (2 × 3 router interfaces) + 2 (one per hub) = 96 + 6 + 2 = 104
Broadcast Domains: 6 router interfaces = 6 (or fewer if some interfaces connect to same segment)
Modern network design favors Layer 2 switches with VLANs for access/distribution layers (provides microsegmentation and broadcast control) and Layer 3 switches/routers for core/distribution layers (provides routing and definitive broadcast domain separation). Hubs are essentially obsolete, and standalone bridges are rare outside specialized applications.
Summary: Device Impact on Domains
We have systematically analyzed how each major network interconnection device affects collision and broadcast domain boundaries. This knowledge forms the foundation for network design and troubleshooting.
- •Layer Determines Boundaries — Higher OSI layer devices create more domain boundaries. L1 extends both; L2 terminates collision; L3 terminates both.
- •Hubs and Repeaters — Extend both collision and broadcast domains. Rarely used in modern networks due to performance limitations.
- •Bridges and Switches — Terminate collision domains (one per port). Extend broadcast domains unless VLANs are used.
- •VLANs — Transform switches into broadcast domain boundaries. One VLAN = one broadcast domain.
- •Routers — Terminate both collision and broadcast domains. Essential for scalable, hierarchical network design.
- •Analysis Method — Count switch/router ports for collision domains; count router interfaces and VLANs for broadcast domains.
With a thorough understanding of how devices impact domains, you're prepared to learn about domain sizing strategies. The next page examines how to determine optimal broadcast domain sizes for different network scenarios, balancing performance, scalability, and administrative concerns.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.