What Is 4B/5B Block Encoding?
How Does 4B/5B Encoding Improve Reliable High-Speed Data Transmission?
4B/5B block encoding is a line coding technique that converts every four-bit group of data into a corresponding five-bit code group before transmission. The additional bit does not carry extra user information but is selected so that the transmitted signal contains sufficient transitions for reliable clock recovery while avoiding long sequences of identical bits.
The basic principle is straightforward. Every possible four-bit input value is mapped to one of sixteen carefully selected five-bit code words. These code words are chosen so that they never contain excessive runs of consecutive zeros, ensuring that the transmitted signal changes state frequently enough for the receiver to maintain synchronisation. Several unused five-bit combinations are reserved for control symbols or for detecting invalid transmissions.
A useful analogy is rewriting a sentence using carefully chosen words so that every line contains enough punctuation to make it easy to read aloud. Although the rewritten sentence is slightly longer, it is much easier for the reader to follow. Similarly, 4B/5B encoding slightly increases the amount of transmitted data but greatly improves the receiver's ability to recover the timing information.
One consequence of 4B/5B encoding is that the transmitted bit rate increases by 25%. Every four information bits become five transmitted bits, increasing the signalling rate while preserving the original user data rate. This overhead is generally considered an acceptable trade-off because it enables reliable high-speed communication without requiring the receiver to recover timing from long sequences of identical bits.
4B/5B encoding has been widely used in 100BASE-TX Fast Ethernet, Fibre Distributed Data Interface (FDDI), and several fibre-optic communication systems. In 100BASE-TX, the encoded bit stream is subsequently transmitted using MLT-3 signalling, combining the clock recovery benefits of 4B/5B encoding with the bandwidth reduction achieved by MLT-3.
It is important to distinguish 4B/5B block encoding from Manchester encoding. Manchester encoding guarantees a transition within every bit period but approximately doubles the required transmission bandwidth. 4B/5B encoding achieves reliable clock recovery with much lower overhead by carefully selecting permissible code words. It also differs from 8B/10B encoding, which performs a similar function for higher-speed communication systems while additionally maintaining DC balance and improving error detection.
Today, 4B/5B block encoding remains an important milestone in the evolution of digital communications. Although more advanced block coding techniques such as 8B/10B, 64B/66B, and 128B/130B are used in modern high-speed communication systems, 4B/5B demonstrated how relatively simple coding techniques could significantly improve transmission reliability while making efficient use of available bandwidth.
Back to reading