Collision Detection in Ethernet
Collision Domain
Read aloud is unavailable in this browser.
The Scope of Contention
When two Ethernet stations transmit simultaneously and their signals collide, which other stations are affected? In a small network with a single hub, everyone. In a larger network with multiple segments, perhaps only a subset of stations. The collision domain is the set of all devices that will experience the collision—the arena within which contention for the shared medium occurs.
Understanding collision domains was critical for early network design and remains essential for understanding why modern switched networks perform so much better than their hub-based predecessors.
By the end of this page, you will understand how collision domains are defined, bounded, and segmented. You'll learn how different network devices affect collision domain scope, how to calculate the number of collision domains in a network, and why reducing collision domain size dramatically improves network performance.
Defining Collision Domain
A collision domain is a network segment where packet collisions can occur. More precisely, it's the set of all network devices that share the same medium and whose simultaneous transmissions would result in a collision that both (or all) parties would detect.
Think of it like an open office space with a single announcement system. If two people try to make announcements simultaneously, everyone hears the garbled result. The entire office is a single "announcement domain." Adding soundproof conference rooms creates separate domains where announcements don't interfere.
- •Shared Bandwidth: All devices in a collision domain compete for the same total bandwidth. If the domain operates at 100 Mbps, that capacity is shared among all active transmitters.
- •Mutual Interference: Any transmission from any device is received (or could interfere with transmissions from) every other device in the domain.
- •CSMA/CD Scope: Carrier sensing and collision detection operate within the collision domain. Stations only defer to transmissions they can hear.
- •Propagation Constraints: The slot time calculation (determining minimum frame size) must account for worst-case propagation within the entire collision domain.
- •Single Active Transmitter: At any instant, only one device in the collision domain can successfully transmit. All others must wait.
Collision domains exist only in half-duplex environments where devices share a transmission medium. Full-duplex point-to-point links (like modern switch-to-device connections) have no collision domain because each direction has its own dedicated channel.
Collision Domain Boundaries
Different network devices create different effects on collision domain boundaries. Understanding which devices extend versus terminate collision domains is fundamental to network design.
| Device | OSI Layer | Collision Domain Effect | Bandwidth Sharing |
|---|---|---|---|
| Coaxial Cable Segment | Layer 1 | All connected devices in same domain | Shared 10 Mbps |
| Repeater | Layer 1 | Extends/joins collision domains | Shared bandwidth |
| Hub | Layer 1 | All ports in same collision domain | Shared bandwidth |
| Bridge | Layer 2 | Separates collision domains | Dedicated per segment |
| Switch | Layer 2 | Each port is separate domain* | Dedicated per port |
| Router | Layer 3 | Separates collision domains | Dedicated per interface |
Layer 1 Devices: Repeaters and Hubs
Repeaters and hubs operate at the physical layer. They receive electrical signals on one port, regenerate them, and transmit them out all other ports. This is pure signal amplification with no interpretation of frame contents.
- Repeater: Connects two cable segments, extending the collision domain across both
- Hub (Multiport Repeater): Connects multiple devices, creating one large collision domain encompassing all ports
From a collision perspective, devices connected through repeaters or hubs behave as if they're all on the same physical cable. A transmission on any port is repeated to all ports, and a collision anywhere is experienced everywhere.
Layer 2 Devices: Bridges and Switches
Bridges and switches operate at the data link layer. They examine the destination MAC address in each frame and make forwarding decisions:
- If the destination is on the same port as the source: Don't forward (filter)
- If the destination is on a different port: Forward to that port only
- If the destination is unknown: Flood to all ports except source (still learns)
This intelligent forwarding terminates collision domains. Frames from one port don't automatically propagate to other ports unless necessary, preventing collisions from spanning across the entire network.
In a modern switched network with full-duplex links, each switch port effectively has its own collision domain with exactly one device. Since that single device uses full duplex, collisions can't occur at all. This is why switch-based networks have no practical collision concerns.
Impact of Collision Domain Size
The size of a collision domain—measured both in number of devices and physical extent—has profound effects on network performance. Larger collision domains suffer from multiple compounding problems.
Problem 1: Increased Collision Probability
With more devices sharing the medium, the probability that two or more will attempt simultaneous transmission increases. For n devices, each with load λ, the collision probability grows approximately as:
$$P_{collision} \propto n^2 \times \lambda^2$$
Doubling the number of devices approximately quadruples the collision rate (all else being equal).
Problem 2: Reduced Per-Device Bandwidth
All devices share fixed total bandwidth. A 10 Mbps hub with 20 devices provides an average of 500 Kbps per device—and that's before accounting for collision overhead.
Effective bandwidth per device:
$$BW_{effective} = \frac{BW_{total} \times Efficiency}{n}$$
As n increases and efficiency decreases (more collisions), effective per-device bandwidth plummets.
| Stations | Collision Probability* | Utilization Cap** | Effective BW/Device*** |
|---|---|---|---|
| 2 | ~1% | ~90% | ~4.5 Mbps |
| 10 | ~10% | ~70% | ~700 Kbps |
| 25 | ~25% | ~50% | ~200 Kbps |
| 50 | ~40% | ~35% | ~70 Kbps |
| 100 | ~50% | ~20% | ~20 Kbps |
- At moderate load (~50% attempted utilization). ** Maximum practical utilization before collapse. *** On 10 Mbps shared Ethernet. These are approximations; actual values depend on traffic patterns.
Problem 3: Longer Propagation Delays
Larger collision domains typically span greater physical distances. This increases propagation delay, which:
- Increases vulnerability to late collisions
- Forces more conservative timing parameters
- May require larger minimum frame sizes (or carrier extension)
Problem 4: Cascade Collisions
When many stations back off from a collision, they often choose similar backoff intervals (especially in early retransmission attempts with small backoff windows). This leads to cascade collisions where the same stations collide repeatedly.
In large collision domains with many waiting stations, the network can enter a state of collision collapse where almost all transmission attempts result in collisions, and throughput drops to near zero despite high demand.
The Solution: Segmentation
The cure for large collision domain problems is segmentation: dividing one large domain into multiple smaller ones using bridges, switches, or routers. Each smaller domain has fewer devices, shorter propagation delays, and independent bandwidth.
Calculating Collision Domains
A common exam and interview question asks: "How many collision domains are in this network?" Let's develop a systematic approach to answering this question.
- •Start with switches/routers: Each interface/port on a switch or router is a separate collision domain (assuming half-duplex connections or counting the point-to-point link).
- •Add hub/repeater networks: All devices connected through hubs/repeaters (without switches in between) form ONE collision domain.
- •Count independent segments: Any standalone cable segment or wireless cell is a collision domain.
- •Ignore full-duplex complications: For counting purposes, each full-duplex port is usually counted as a collision domain of size 1 (potential collision domain, even if collisions can't actually occur).
Example Network Analysis:
Consider a network with:
- 1 Router with 3 Ethernet interfaces
- 1 Switch with 24 ports
- 2 Hubs, each with 8 ports
- The router connects to the switch (1 interface)
- The switch connects to both hubs (2 ports used)
- 20 PCs connect to switch ports directly
- 15 PCs connect via the two hubs (8 on one, 7 on the other)
Collision Domain Count:
-
Router interfaces: 3 collision domains (including the switch connection and 2 other networks)
-
Switch direct connections: Each of the 20 PCs directly connected to the switch has its own collision domain = 20 collision domains
-
Switch to router: Counted as part of router's domain (1 domain but already counted)
-
Switch to Hub 1: All 8 PCs through Hub 1 share 1 collision domain
-
Switch to Hub 2: All 7 PCs through Hub 2 share 1 collision domain
Total: 3 (router) + 20 (direct switch) + 1 (hub 1 segment) + 1 (hub 2 segment) = 25 collision domains
Note: The switch ports connecting to hubs become part of those hubs' collision domains, so we don't count them separately.
Don't count the number of devices—count the domains! A hub with 100 devices is still just 1 collision domain. A switch with 100 devices is 100 collision domains (one per port, assuming one device per port).
Collision Domains vs Broadcast Domains
Students often confuse collision domains with broadcast domains. While related, they represent different network properties and are bounded by different devices.
- •Layer 1/2 concept (physical/data link)
- •Bounded by bridges, switches, routers
- •Extended by repeaters, hubs
- •Affects half-duplex transmission only
- •Determines bandwidth sharing
- •Not applicable in full-duplex
- •Layer 2/3 concept (data link/network)
- •Bounded by routers, Layer 3 switches
- •Extended by bridges, switches, hubs
- •Affects all broadcast traffic
- •Determines broadcast storm scope
- •Always relevant in Ethernet networks
Key Relationship:
- A broadcast domain can contain multiple collision domains (but not vice versa)
- In switch-based networks: Many collision domains, fewer broadcast domains
- Only routers (or Layer 3 switches) separate broadcast domains
- Switches separate collision domains but NOT broadcast domains
Example:
A network with:
- 1 router with 2 interfaces
- 2 switches (one on each router interface)
- 48 PCs (24 on each switch)
Collision domains: 2 (router interfaces) + 24 + 24 = 50 (each switch port plus router interfaces)
Broadcast domains: 2 (one per router interface/subnet)
All 24 PCs behind a switch share a broadcast domain—a broadcast from any of them reaches all 23 others (and the router). But each PC has its own collision domain through the switch—transmissions from one don't collide with transmissions from others.
| Device | Collision Domains | Broadcast Domains |
|---|---|---|
| Hub | Extends (single domain) | Extends (single domain) |
| Bridge | Separates | Extends |
| Switch | Separates (per port) | Extends |
| Router | Separates | Separates |
| Layer 3 Switch | Separates (per port) | Separates (per VLAN) |
Physical Extent and the 5-4-3 Rule
In classic shared Ethernet, the collision domain's physical extent was strictly limited to ensure CSMA/CD timing requirements were met. These limits were codified in the famous 5-4-3 rule.
The 5-4-3 Rule for 10BASE5 and 10BASE2:
Within a single collision domain:
- 5: Maximum of 5 cable segments
- 4: Maximum of 4 repeaters connecting those segments
- 3: Maximum of 3 segments can have stations attached (the other 2 are inter-repeater links only)
This rule ensures that the worst-case propagation delay stays within the 512 bit-time slot time, enabling reliable collision detection.
Why This Configuration?
Each component adds delay:
- Coaxial cable: ~5 ns/meter (velocity factor ~0.65)
- Repeater: ~5-10 μs processing delay
- Transceiver: ~1-2 μs delay
With maximum segments (500m × 5 = 2500m) and 4 repeaters:
- Cable delay: 2500m × 5 ns/m = 12.5 μs one-way
- Repeater delay: 4 × 7.5 μs = 30 μs
- Transceiver delay: minimal
- Total one-way: ~25 μs
- Round-trip: ~50 μs
- Plus jam signal and safety margin: 51.2 μs = 512 bit times ✓
The 5-4-3 rule is historically important but irrelevant to modern networks. Today's switched networks don't share collision domains across segments, so the timing constraints don't apply. However, similar calculations still matter for full-duplex link distance limits based on signal attenuation and link timing.
| Standard | Max Segment | Max Segments | Max Diameter | Max Repeaters |
|---|---|---|---|---|
| 10BASE5 | 500 m | 5 | 2500 m | 4 |
| 10BASE2 | 185 m | 5 | 925 m | 4 |
| 10BASE-T | 100 m | Depends on hubs | ~500 m | 4 (Class I) or 2 (Class II) |
| 100BASE-TX | 100 m | Limited | ~200 m | 1 (Class I) or 2 (Class II) |
Segmentation Strategies
When collision domain size becomes a performance problem, network designers employ segmentation strategies to divide the domain and improve throughput.
- •Bridging: Early solution. A bridge connects two LAN segments and learns which MAC addresses are on which side. Traffic only crosses the bridge when necessary. Each side becomes a separate collision domain.
- •Switching: Modern solution. A switch is essentially a multi-port bridge. Each port can be its own collision domain. With one device per port, collision domains are eliminated as a concern.
- •Full-Duplex Conversion: With switches, devices can use full-duplex mode—transmitting and receiving simultaneously. No more shared medium, no more collisions, no more CSMA/CD.
- •VLAN Segmentation: Layer 2 VLANs don't affect collision domains (each port is still separate), but they do segment broadcast domains, improving overall network performance.
The Switch Revolution:
The transition from hubs to switches was one of the most significant upgrades in network history:
Before (Hub-based):
- 24-port hub = 1 collision domain
- 10 Mbps shared among 24 devices
- ~400 Kbps effective per device
- Collisions common at moderate load
After (Switch-based):
- 24-port switch = 24 collision domains
- 10 Mbps dedicated per device
- 10 Mbps effective per device
- Zero collisions with full duplex
This is a 25× improvement in per-device bandwidth with no change to the wiring or end devices—just replacing the hub with a switch.
When Full Duplex?
Full-duplex operation requires:
- Point-to-point link (switch to single device)
- Both ends support full duplex
- Auto-negotiation correctly configures both ends
In full duplex, collision domains don't exist because there's no shared medium. The "collision domain" concept is simply not applicable.
A common configuration error is duplex mismatch—one end in full duplex, the other in half duplex. The full-duplex end transmits whenever it wants (it doesn't sense carriers or detect collisions). The half-duplex end sees constant collisions and backs off repeatedly. This causes severe performance degradation and is a common troubleshooting target.
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.