A collision domain is a network segment where data packets can collide with each other when being transmitted. Understanding collision domains is fundamental to network design and explains why switches are superior to hubs.
What is a Collision Domain?
When two devices transmit simultaneously on the same network segment, their signals collide, causing both transmissions to fail. The devices must then wait and retransmit using CSMA/CD (Carrier Sense Multiple Access with Collision Detection).
Key Concept: Each collision increases network latency and reduces throughput.
Hub vs Switch Behavior
Hub (Legacy Device)
Characteristics:
- Operates at Layer 1 (Physical)
- Creates ONE large collision domain
- Broadcasts all traffic to all ports
- Half-duplex operation only
Example Topology:
PC1 ----\
PC2 -----[HUB]---- PC4
PC3 ----/
Result: All 4 PCs share ONE collision domain. If PC1 and PC2 transmit simultaneously, collision occurs.
Performance Impact:
- Maximum efficiency: ~40-60% bandwidth utilization
- Frequent collisions with more devices
- Network degradation as hosts increase
Switch (Modern Device)
Characteristics:
- Operates at Layer 2 (Data Link)
- Each port = separate collision domain
- Forwards frames only to destination port
- Supports full-duplex operation
Example Topology:
PC1 ----\
PC2 -----[SWITCH]---- PC4
PC3 ----/
Result: 4 separate collision domains (one per port). PC1 and PC2 can transmit simultaneously without collision.
Practical Configuration Example
Verifying Switch Port Status
Switch# show interfaces status
Port Name Status Vlan Duplex Speed Type
Gi0/1 PC1 connected 1 a-full a-1000 10/100/1000BaseTX
Gi0/2 PC2 connected 1 a-full a-1000 10/100/1000BaseTX
Gi0/3 PC3 connected 1 a-half a-100 10/100/1000BaseTX
Gi0/4 PC4 connected 1 a-full a-1000 10/100/1000BaseTX
Analysis:
- Gi0/1, Gi0/2, Gi0/4: Full-duplex = NO collision domain (simultaneous send/receive)
- Gi0/3: Half-duplex = collision domain exists (cannot send and receive simultaneously)
Configuring Duplex Settings
Switch(config)# interface GigabitEthernet0/3
Switch(config-if)# duplex full
Switch(config-if)# speed 1000
Switch(config-if)# exit
Verification:
Switch# show interfaces GigabitEthernet0/3
GigabitEthernet0/3 is up, line protocol is up
Hardware is Gigabit Ethernet, address is 0023.5678.9abc
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec
Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
Switch# show interfaces GigabitEthernet0/3 | include collision
0 collisions, 0 interface resets
Checking for Collisions
Switch# show interfaces GigabitEthernet0/3 counters errors
Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize OutDiscards
Gi0/3 0 0 0 0 0 0
Port Single-Col Multi-Col Late-Col Excess-Col Carri-Sen Runts
Gi0/3 0 0 0 0 0 0
Collision Counters:
- Single-Col: Frame collided once before successful transmission
- Multi-Col: Frame collided multiple times
- Late-Col: Collision after 64 bytes transmitted (duplex mismatch indicator)
- Excess-Col: Frame dropped after 16 collision attempts
Duplex Mismatch Detection
Common Problem: One side configured full-duplex, other side half-duplex.
Switch# show interfaces GigabitEthernet0/3 | include duplex
Full-duplex, 1000Mb/s
Switch# show interfaces GigabitEthernet0/3 | include collision|error
5234 late collisions, 0 deferred
125 input errors, 98 CRC, 0 frame
Symptoms:
- High late collision count
- Poor performance
- Packet loss
Fix:
Switch(config)# interface GigabitEthernet0/3
Switch(config-if)# duplex auto
Switch(config-if)# speed auto
Modern Network Reality
Full-Duplex Advantage:
- No collisions possible
- Simultaneous send/receive
- 100% bandwidth utilization
- No CSMA/CD needed
Best Practices:
- Use auto-negotiation for most connections
- Manually configure critical uplinks for consistency
- Always use full-duplex when possible
- Monitor collision counters regularly
- Replace hubs with switches immediately
Summary Table
| Device | Collision Domains | Broadcast Domains | Performance |
|---|---|---|---|
| Hub | 1 (all ports) | 1 | Poor |
| Switch (half-duplex) | 1 per port | 1 per VLAN | Good |
| Switch (full-duplex) | 0 (no collisions) | 1 per VLAN | Excellent |
Modern Cisco switches effectively eliminate collision domains through microsegmentation and full-duplex operation, dramatically improving network performance compared to legacy hub-based networks.
No comments:
Post a Comment