Collision Detection in Ethernet
Minimum Frame Size (64 Bytes)
Read aloud is unavailable in this browser.
The 64-Byte Mystery
Every Ethernet frame must be at least 64 bytes long. If your data is smaller—say, a 1-byte acknowledgment—the frame is padded with zeros until it reaches this minimum. This might seem like wasteful overhead, but it's actually an elegant engineering constraint that makes collision detection possible.
The question is: Why exactly 64 bytes? Not 32. Not 128. Precisely 64. The answer reveals the beautiful interplay between physics, engineering constraints, and protocol design that defines Ethernet.
By the end of this page, you will be able to derive the 64-byte minimum frame size from first principles using propagation delay, cable length limits, and transmission speed. You'll understand why this constraint exists, how it's calculated, and what happens when it's violated. This knowledge is essential for understanding Ethernet design parameters and solving network timing problems.
The Collision Detection Problem
For CSMA/CD to work, a transmitting station must be able to detect any collision before it finishes sending its frame. If the frame transmission completes before collision evidence returns to the sender, the station will incorrectly assume successful transmission—when in fact the frame was corrupted.
In CSMA/CD, a station that finishes transmitting without detecting a collision assumes the transmission succeeded. If a collision actually occurred but the station had already finished, the corrupted frame is lost without any recovery attempt. This is a silent failure—the worst kind of network error.
The Worst-Case Scenario:
Consider two stations, A and B, at opposite ends of the maximum-length Ethernet segment:
- Time T₀: Station A begins transmitting
- Time T₀ + τ - ε: Just before A's signal reaches B (τ is the propagation delay), B checks the medium, senses it idle, and begins transmitting
- Time T₀ + τ: A's signal arrives at B, but B has already started—collision begins at B's end
- Time T₀ + 2τ - ε: The collision evidence (B's corrupted signal) reaches A
The total time for A to learn about a collision is nearly 2τ (twice the propagation delay—one trip for A's signal to reach B, and another for the collision to propagate back to A).
This means: A must still be transmitting when the collision evidence arrives. If A's frame is too short, it will finish before 2τ, and the collision goes undetected.
The Critical Constraint:
$$t_{transmission} \geq 2 \times t_{propagation}$$
This inequality is the foundation of the minimum frame size calculation. The frame must be long enough (in time) that its transmission outlasts the worst-case collision detection window.
Rearranging in terms of frame size:
$$\frac{\text{Frame Size (bits)}}{\text{Bandwidth (bps)}} \geq 2 \times \frac{\text{Maximum Distance}}{\text{Propagation Speed}}$$
Therefore:
$$\text{Minimum Frame Size} \geq 2 \times \text{Bandwidth} \times \frac{\text{Maximum Distance}}{\text{Propagation Speed}}$$
Understanding Propagation Delay
Propagation delay is the time it takes for a signal to travel from one end of the network to the other. This is determined by the physical properties of the transmission medium and the total path length.
Signal Speed in Different Media:
Electrical and optical signals travel at speeds related to the speed of light in vacuum (c = 3 × 10⁸ m/s), but the actual speed depends on the medium:
- Vacuum/Air: c = 3 × 10⁸ m/s
- Coaxial Cable: ~0.77c = 2.31 × 10⁸ m/s (velocity factor ~0.77)
- Twisted Pair Cable: ~0.59c = 1.77 × 10⁸ m/s (velocity factor ~0.59)
- Fiber Optic: ~0.67c = 2.0 × 10⁸ m/s (velocity factor ~0.67)
The velocity factor accounts for the dielectric properties of the medium. Signals travel slower in denser materials.
| Medium | Velocity Factor | Speed (m/μs) | 500m Delay |
|---|---|---|---|
| Thick Coax (10BASE5) | 0.77 | 231 m/μs | 2.16 μs |
| Thin Coax (10BASE2) | 0.65 | 195 m/μs | 2.56 μs |
| Cat5 UTP | 0.64 | 192 m/μs | 2.60 μs |
| Single-Mode Fiber | 0.67 | 200 m/μs | 2.50 μs |
Total Path Propagation Delay:
In an Ethernet network, the maximum propagation delay isn't just wire delay. It includes:
- Cable Propagation: Time through all cable segments
- Repeater Delay: Each repeater (or hub) adds processing latency
- Transceiver Delay: Interface electronics add small delays
- Collision Detection Delay: Time for hardware to recognize collision
For 10BASE5 Ethernet, the standard specifies a maximum of:
- 4 repeaters between any two stations
- 5 cable segments (500 meters each, max)
- 2500 meters total cable length
- 512 bit times (51.2 μs) maximum round-trip delay budget
Classic Ethernet follows the 5-4-3 rule: maximum 5 segments, 4 repeaters, and only 3 segments may be populated with stations (the other 2 are inter-repeater links). This rule ensures propagation delay stays within bounds for collision detection to work.
Deriving the 64-Byte Minimum
Now let's perform the actual calculation that yields the famous 64-byte minimum. We'll use the original 10 Mbps Ethernet parameters.
Given Parameters for 10BASE5:
- Bandwidth (B): 10 Mbps = 10 × 10⁶ bits/second
- Maximum Network Diameter: ~2500 meters (5 segments × 500m)
- Signal Speed in Coax: ~2 × 10⁸ m/s (velocity factor ~0.67, including repeater delays)
- Round-Trip Time Budget: 512 bit times (with safety margin)
Step-by-Step Derivation:
Step 1: Calculate One-Way Propagation Delay
$$t_{prop} = \frac{\text{Distance}}{\text{Speed}} = \frac{2500\text{ m}}{2 \times 10^8\text{ m/s}} = 12.5\text{ μs}$$
Step 2: Calculate Round-Trip Delay
$$t_{RTT} = 2 \times t_{prop} = 2 \times 12.5\text{ μs} = 25\text{ μs}$$
But this doesn't include repeater delays and safety margins. The IEEE 802.3 standard allocates 51.2 μs for the slot time (which is the round-trip delay including all overheads).
Slot time is defined as the worst-case round-trip propagation delay plus the time to detect a collision and send a jam signal. For 10 Mbps Ethernet, slot time = 512 bit times = 51.2 μs. This is the fundamental timing unit for CSMA/CD operation.
Step 3: Convert to Bit Times
At 10 Mbps, one bit time = 1/(10 × 10⁶) = 0.1 μs = 100 ns
Slot time = 51.2 μs = 512 × 0.1 μs = 512 bit times
Step 4: Determine Minimum Frame Size in Bits
The minimum frame must be at least as long as the slot time:
$$\text{Minimum Frame Size} = 512\text{ bits}$$
Step 5: Convert to Bytes
$$\text{Minimum Frame Size} = \frac{512\text{ bits}}{8\text{ bits/byte}} = \textbf{64 bytes}$$
This is the origin of the 64-byte minimum frame size!
| Parameter | Value | Calculation |
|---|---|---|
| Bandwidth | 10 Mbps | Given |
| Max Network Diameter | 2500 m | 5 segments × 500m |
| Slot Time | 51.2 μs | Round-trip + overhead budget |
| Slot Time (bits) | 512 bits | 51.2 μs × 10 Mbps |
| Minimum Frame Size | 64 bytes | 512 bits ÷ 8 bits/byte |
Frame Structure and the 64-Byte Rule
The 64-byte minimum applies to the complete Ethernet frame from destination MAC address through FCS. Let's examine how this requirement affects the frame structure.
| Field | Size (bytes) | Notes |
|---|---|---|
| Preamble | 7 | Not counted in frame size (Layer 1) |
| Start Frame Delimiter | 1 | Not counted in frame size (Layer 1) |
| Destination MAC | 6 | Required |
| Source MAC | 6 | Required |
| Type/Length | 2 | Required |
| Data + Padding | 46-1500 | Minimum 46 bytes required |
| Frame Check Sequence | 4 | Required |
| Total Frame | 64-1518 | Minimum 64 bytes |
The Minimum Data Payload: 46 Bytes
Looking at the required fields:
- Header overhead: 6 (Dest) + 6 (Src) + 2 (Type) = 14 bytes
- Trailer overhead: 4 (FCS) = 4 bytes
- Total overhead: 14 + 4 = 18 bytes
With a 64-byte minimum frame:
- Minimum data payload = 64 - 18 = 46 bytes
If your actual data is smaller than 46 bytes, the frame is padded with zeros to reach the minimum. For example, if you're sending a 10-byte message:
- Actual data: 10 bytes
- Padding: 46 - 10 = 36 bytes of zeros
- Total payload field: 46 bytes
The receiving station uses the Length field (or higher-layer protocol) to determine where valid data ends and padding begins.
Padding is always added at the end of the data field, before the FCS. The FCS is calculated over the entire frame including the padding, so the receiver cannot remove padding before verifying frame integrity. Higher-layer protocols (like IP) include their own length fields to identify the actual data boundary.
Why Not Include Preamble and SFD?
The preamble (7 bytes) and Start Frame Delimiter (1 byte) are technically part of what's transmitted, but they're not counted in the minimum frame size because:
- Layer Separation: Preamble/SFD are physical layer functions for clock synchronization, not data-link layer content
- Not Covered by FCS: The FCS doesn't protect the preamble—it's consumed by the receiver's clock recovery circuit
- Variable in Practice: Some transceivers may shorten the preamble slightly; this is acceptable as long as synchronization occurs
When engineers say "64-byte minimum," they mean the data-link layer frame from destination address through FCS.
What Happens with Short Frames (Runts)
Frames shorter than 64 bytes are called runt frames (or simply "runts"). They should never occur on a properly functioning network, and their presence indicates problems that require investigation.
- •Late Collisions: Collisions detected after the first 64 bytes have been transmitted, causing premature frame termination. Usually indicates cable length violations or faulty network hardware.
- •Hardware Malfunction: Failing network interface cards may truncate frames during transmission or reception.
- •Electrical Interference: Severe noise on the cable can corrupt frame contents, causing receivers to misinterpret frame boundaries.
- •Software Bugs: Faulty drivers or network stack implementations might create improperly formatted frames.
- •Collision Fragments: Normal collisions produce fragments (<64 bytes) that are correctly discarded. High rates indicate congestion issues.
A 'late collision' occurs when a collision is detected after 512 bit times (64 bytes) into transmission. This should be impossible if the network is properly designed. Late collisions indicate a violation of network timing rules—usually cables that are too long or too many repeaters. Unlike normal collisions, late collisions cause data loss because the sender has already assumed success.
Receiver Handling of Runts:
Ethernet receivers are designed to:
- Silently Discard: Runt frames are dropped without generating errors to higher layers
- Update Statistics: The interface counts runts for diagnostic purposes
- No Acknowledgment: Since Ethernet is connectionless at Layer 2, there's no NAK mechanism
- Higher Layer Recovery: Lost data is detected and recovered by upper-layer protocols (TCP retransmission, etc.)
Network Monitoring:
Network administrators should monitor runt frame counters. Occasional runts from collisions are normal on half-duplex networks, but:
- Persistent runts suggest hardware problems
- Increasing runt rates may indicate degrading cables or connectors
- Runts on full-duplex links are always problematic (no collisions should occur)
| Category | Size Range | Cause | Action |
|---|---|---|---|
| Collision Fragment | < 64 bytes, bad FCS | Normal collision | Discard silently |
| Runt Frame | < 64 bytes, good FCS | Hardware/software error | Investigate |
| Valid Frame | 64-1518 bytes | Normal operation | Process normally |
| Baby Giant | 1519-1522 bytes | VLAN tagging (802.1Q) | Usually acceptable |
| Giant/Jumbo | 1518 bytes | Configuration or error | Depends on network |
Scaling to Higher Speeds
When Ethernet evolved from 10 Mbps to 100 Mbps and beyond, engineers faced a challenge: the same physics that dictated the 64-byte minimum at 10 Mbps would require larger minimum frames at higher speeds—unless other parameters changed.
The Problem at 100 Mbps:
At 10 Mbps:
- 64 bytes = 512 bits
- Transmission time = 512 bits / 10 Mbps = 51.2 μs
- This matches the slot time
At 100 Mbps with the same slot time:
- Transmission time = 512 bits / 100 Mbps = 5.12 μs
- But the round-trip propagation delay is still ~25 μs (physics doesn't speed up!)
With a 5.12 μs frame transmission and 25 μs round-trip delay, collisions would go undetected!
Solutions Implemented:
| Speed | Strategy | Min Frame | Max Cable Length |
|---|---|---|---|
| 10 Mbps | Original design | 64 bytes | 2500m (with repeaters) |
| 100 Mbps | Reduce cable lengths | 64 bytes | 205m (hub to hub) |
| 1 Gbps (half-duplex) | Carrier extension | 512 bytes* | 200m |
| 1 Gbps (full-duplex) | No CSMA/CD needed | 64 bytes | 5000m (fiber) |
| 10 Gbps+ | Full-duplex only | 64 bytes | N/A (no collisions) |
Fast Ethernet (100 Mbps) Solution:
Fast Ethernet kept the 64-byte minimum but drastically reduced maximum cable lengths:
- Slot time reduced to 5.12 μs (still 512 bit times, but bits are 10× faster)
- Maximum hub-to-hub distance: ~200 meters
- Maximum station-to-hub distance: ~100 meters
This worked because most networks were already building-centric with shorter cable runs.
Gigabit Ethernet Half-Duplex: Carrier Extension
For Gigabit Ethernet in half-duplex mode (rare, but specified), a more creative solution was needed:
- Carrier Extension: After transmitting a short frame, the station continues transmitting a special "extension" to pad the transmission to 512 bytes
- Frame Bursting: Multiple small frames can be concatenated to amortize the extension overhead
The frame itself is still minimum 64 bytes, but the transmission on the wire is extended to 512 bytes (4096 bit times) to allow collision detection.
In practice, Gigabit Ethernet almost universally operates in full-duplex mode with switches, making CSMA/CD and carrier extension unnecessary.
Modern Ethernet networks (Gigabit and above) operate almost exclusively in full-duplex mode with dedicated switch ports. In this mode, there are no collisions, no CSMA/CD, and no minimum frame size requirement for timing purposes. The 64-byte minimum is retained for compatibility and to ensure FCS has enough data for reliable error detection.
Practical Implications and Calculations
Understanding minimum frame size has practical implications for network design, performance analysis, and troubleshooting. Let's explore some real-world applications.
Example 1: Overhead Calculation for Small Packets
Consider Voice over IP (VoIP), which typically sends small payloads:
- G.711 codec: 160 bytes of voice data every 20 ms
- IP header: 20 bytes
- UDP header: 8 bytes
- RTP header: 12 bytes
- Total Layer 3 payload: 160 + 20 + 8 + 12 = 200 bytes
This is above the 46-byte minimum, so no padding is needed. But for codecs with smaller payloads (e.g., G.729 at 20 bytes per frame):
- Total L3 payload: 20 + 20 + 8 + 12 = 60 bytes
- Ethernet header: 14 bytes
- FCS: 4 bytes
- Total frame: 60 + 14 + 4 = 78 bytes (still > 64, no padding needed)
But if we sent just a tiny 10-byte payload:
- L3 payload: 10 + 20 + 8 + 12 = 50 bytes
- Ethernet overhead: 18 bytes
- Total frame: 68 bytes (just above 64, no padding)
And for a 1-byte TCP ACK with no data:
- Payload: 0 bytes
- TCP header: 20 bytes (minimum)
- IP header: 20 bytes
- Total L3 data: 40 bytes
- Ethernet overhead: 18 bytes
- Total frame: 58 bytes—needs 6 bytes of padding to reach 64!
For a TCP ACK with no data (common in web browsing), the efficiency is: 0 useful bytes / 64 total bytes = 0%. The entire frame is overhead! This is why protocols try to piggyback ACKs on data packets when possible.
Example 2: Maximum Packet Rate
At 10 Mbps, what's the maximum frame rate with minimum-sized frames?
- Frame time: 64 bytes × 8 bits/byte = 512 bits
- Transmission time: 512 bits / 10 Mbps = 51.2 μs
- Interframe gap: 96 bits / 10 Mbps = 9.6 μs
- Total per-frame time: 51.2 + 9.6 = 60.8 μs
- Maximum frame rate: 1,000,000 / 60.8 ≈ 16,447 frames/second
At 1 Gbps:
- Frame time: 512 ns (51.2 μs / 100)
- IFG: 96 ns
- Total: 608 ns
- Maximum frame rate: 1,000,000,000 / 608 ≈ 1,644,737 frames/second
These theoretical maximums assume continuous minimum-sized frames—useful for stress testing but not typical of real traffic.
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.