4B5B
In telecommunications, 4B5B is a form of data communications line code.[src] 4B5B maps groups of 4 bits of data onto groups of 5 bits for transmission.[src] These 5-bit words are predetermined in a dictionary and they are chosen to ensure that there will be sufficient transitions in the line state to produce a self-clocking signal.[src] A collateral effect of the code is that 25% more bits are needed to send the same information.[src] An alternative to using 4B5B coding is to use a scrambler.[src] Some systems use scramblers in conjunction with 4B5B coding to assure DC balance and improve electromagnetic compatibility.[src] Depending on the standard or specification of interest, there may be several 5-bit output codes left unused.[src] The presence of any of the unused codes in the data stream can be used as an indication that there is a fault somewhere in the link.[src] Therefore, the unused codes can be used to detect errors in the data stream.[src]
In telecommunications, 4B5B is a form of data communications line code.[src] 4B5B maps groups of 4 bits of data onto groups of 5 bits for transmission.[src] These 5-bit words are predetermined in a dictionary and they are chosen to ensure that there will be sufficient transitions in the line state to produce a self-clocking signal.[src] A collateral effect of the code is that 25% more bits are needed to send the same information.[src] An alternative to using 4B5B coding is to use a scrambler.[src] Some systems use scramblers in conjunction with 4B5B coding to assure DC balance and improve electromagnetic compatibility.[src] Depending on the standard or specification of interest, there may be several 5-bit output codes left unused.[src] The presence of any of the unused codes in the data stream can be used as an indication that there is a fault somewhere in the link.[src] Therefore, the unused codes can be used to detect errors in the data stream.[src] ==Applications== 4B5B was popularized by Fiber Distributed Data Interface (FDDI) in the mid-1980s.[src] It was adopted for digital audio transmission by MADI in 1989.[src] and by Fast Ethernet in 1995.[src] The name 4B5B is generally taken to mean the FDDI version.[src] Other 4-to-5-bit codes have been used for magnetic recording and are known as group coded recording (GCR), but those are (0,2) run-length limited codes, with at most two consecutive zeros.[src] 4B5B allows up to three consecutive zeros (a (0,3) RLL code), providing a greater variety of control codes.[src] On optical fiber, the 4B5B output is NRZI-encoded.[src] FDDI over copper (CDDI) uses MLT-3 encoding instead, as does 100BASE-TX Fast Ethernet.[src] The 4B5B encoding is also used for USB Power Delivery (USB-PD) communication, where it is sent over the USB-C CC pin (further encoded using biphase mark code) or the USB-A/B power lines (further encoded using frequency-shift keying).[src] ==Clocking== 4B5B codes are designed to produce at least two transitions per 5 bits of output code regardless of input data.[src] The transitions provide necessary transitions for the receiver to perform clock recovery.[src] For example, a run of 4 bits such as 0000 using NRZI encoding contains no transitions and that may cause clocking problems for the receiver.[src] 4B5B solves this problem by assigning the 4-bit block a 5-bit code, in this case, 11110 .[src] There are eight 5-bit codes that have 3 consecutive 0s: 00000, 00001, 00010, 01000, 10000, 00011, 10001, 11000.[src] This leaves 24 codes available.[src] ==Encoding table== | | |} Three consecutive zero bits only appear in normal data when a code ending with two 0 bits (2, E) is followed by a code beginning with a 0 bit (1, 4, 5, 6, 7), so will always appear separated by multiples of the 5-bit encoded symbol length (and never separated by a single symbol).[src] Violations of this property are used for special synchronization codes.[src] ==Command characters== The following codes are sometimes referred to as command characters.[src] They are commonly used in pairs, although USB-PD uses 4-symbol sequences to begin its packets.[src] ==References==[src]
38 sentences · 38 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"4B5B." encyclopegia.org, 2024, https://encyclopegia.org/wiki/4b5b. Accessed 27 November 2026.
Chicago
"4B5B." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/4b5b.
APA
encyclopegia.org. (2024). 4B5B. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/4b5b
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON