Digital Communications

8B10B

8b/10b is a highly foundational, mission-critical line-coding algorithm utilized across almost all high-speed digital telecommunications, including Gigabit Ethernet, PCIe, and Fiber Channel. Invented by IBM, the 8b/10b mathematical algorithm explicitly takes 8 bits of raw user data and intentionally inflates it by adding 2 redundant bits, transmitting a 10-bit symbol. While this introduces a strict 20% overhead penalty, the mathematical inflation guarantees perfect DC balance (ensuring an equal number of 1s and 0s) and forces frequent electrical state transitions, allowing the receiver's hardware clock to remain flawlessly synchronized during multi-gigabit transmissions over massive distances.
Category: Digital Communications

Understanding 8b/10b Encoding

When you stream a movie over a Gigabit Ethernet cable or a fiber-optic link, the computer doesn't just send raw 1s and 0s. If it sent a long string of a thousand 0s, the receiver's hardware clock would fall out of sync, the voltage would drop (DC drift), and the connection would violently crash.

To prevent this, the silicon chip uses the 8b/10b Line Code.

The 20% Mathematical Tax

8b/10b encoding is essentially a mathematical safety tax on the network.

  • The transmitter takes exactly 8 bits (1 Byte) of your movie data.
  • It feeds those 8 bits into a highly complex, hard-coded lookup table.
  • The table outputs a 10-bit symbol.

By adding 2 extra redundant bits to every Byte, the network takes a massive 20% performance hit. For example, to achieve an actual throughput of 1 Gigabit per second, a Gigabit Ethernet cable must physically transmit data at 1.25 Gigabits per second to account for the 8b/10b overhead.

Why We Pay the Tax: DC Balance and Clock Recovery

The 8b/10b algorithm mathematically guarantees two laws of physics:

  1. Clock Recovery: The algorithm mathematically ensures that there are never more than five consecutive 1s or 0s in a row. It forces the electrical signal to constantly jump back and forth. This constant jumping allows the receiving computer to perfectly calibrate its internal clock to the incoming data stream.
  2. DC Balance: The algorithm guarantees that over time, the exact number of 1s perfectly equals the exact number of 0s. This ensures the electrical voltage running down the copper wire stays perfectly balanced at zero volts, preventing the massive voltage spikes that would instantly destroy the microscopic silicon chips inside the router.

Key Equations

8B10B:
8b/10b is a highly foundational, mission-critical line-coding algorithm utilized across almost all high-speed digital telecommunications, including Gigabit Ethernet, PCIe, and Fiber Channel. Invented by IBM,...

Key specifications:
8 bits | 20 % | 1 Byte

Power: P(dBm) = 10log(PmW), 0dBm = 1mW

Comparison

Aspect8B10B SpecTypical RangeImpactDesign Note
Primary function8b/10b is a highly foundational, mission...Application-dep.CriticalVerify in sim
Operating rangeInvented by IBM, the 8b/10b mathematical...Application-dep.CriticalVerify in sim
PerformanceUnderstanding 8b/10b Encoding When you s...Application-dep.CriticalVerify in sim
IntegrationIf it sent a long string of a thousand 0...Application-dep.CriticalVerify in sim
Trade-offTo prevent this, the silicon chip uses t...Application-dep.CriticalVerify in sim
Common Questions

Frequently Asked Questions

Do modern networks still use 8b/10b?

For slower connections (like 1 Gigabit Ethernet or USB 3.0), yes. However, for extreme multi-gigabit connections (like 10 Gigabit Ethernet, 100GbE, or PCIe Gen 3+), the 20% overhead tax of 8b/10b became mathematically unacceptable. Modern extreme-speed networks moved to the vastly more efficient 64b/66b encoding scheme, which drops the overhead tax to a microscopic 3%.

What is a Disparity Error?

It is a catastrophic mathematical failure. To maintain perfect DC balance, the 8b/10b algorithm constantly tracks the 'Running Disparity' (the ratio of 1s to 0s). If the receiver detects a 10-bit symbol that mathematically violates the Running Disparity rules, it instantly knows the data was corrupted while traveling down the cable, and it violently drops the packet.

What are K-Characters?

Because the 8b/10b math creates 10-bit symbols, there are 1,024 possible combinations, but we only need 256 combinations to represent standard 8-bit computer data. The algorithm intentionally uses the 'leftover' math combinations to create special Control Characters (K-Characters). These invisible characters are used by the hardware to signify the exact start and end of a packet, completely separated from the actual user data.

RF Engineering Resources

Explore the Full Glossary

Browse thousands of RF engineering definitions, from fundamental concepts to advanced techniques.

View RF Glossary