Jump to content

4B5B: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Yanglifu90 (talk | contribs)
Yanglifu90 (talk | contribs)
Line 13: Line 13:
On optical fiber, the 4B5B output is [[NRZI]]-encoded. FDDI over copper (CDDI) uses [[MLT-3 encoding]] instead, as does 100BASE-TX.
On optical fiber, the 4B5B output is [[NRZI]]-encoded. FDDI over copper (CDDI) uses [[MLT-3 encoding]] instead, as does 100BASE-TX.


{|class="wikitable" style="text-align:right"
==The dictionary==
{|class="wikitable"
|-----
|-----
!Hex !!0 !! 1 !! 2 !! 3 !! 4 !! 5 !! 6 !! 7 !! 8 !! 9 !! A !! B !! C !! D !! E !! F
!number
!4-bit
!5-bit
|-----
|-----
|4-bit || 0000 || 0001 || 0010 || 0011 || 0100 || 0101 || 0110 || 0111 || 1000 || 1001 || 1010 || 1011 || 1100 || 1101 || 1110 || 1111
|0|| 0000|| 11110
|-----
|-----
|5-bit ||11110 || 01001 || 10100 || 10101 || 01010 || 01011 || 01110 || 01111 || 10010 || 10011 || 10110 || 10111 || 11010 || 11011 || 11100 || 11101
|1|| 0001|| 01001
|-----
|2|| 0010|| 10100
|-----
|3|| 0011|| 10101
|-----
|4|| 0100|| 01010
|-----
|5|| 0101|| 01011
|-----
|6|| 0110|| 01110
|-----
|7|| 0111|| 01111
|-----
|8|| 1000|| 10010
|-----
|9|| 1001|| 10011
|-----
|A|| 1010|| 10110
|-----
|B|| 1011|| 10111
|-----
|C|| 1100|| 11010
|-----
|D|| 1101|| 11011
|-----
|E|| 1110|| 11100
|-----
|F|| 1111|| 11101
|}
|}



Revision as of 19:40, 8 July 2013

In telecommunication, 4B5B is a form of data communications Block Coding. 4B5B maps groups of four bits onto groups of 5 bits, with a minimum density of 1 bits in the output. When NRZI-encoded, the 1 bits provide necessary clock transitions for the receiver. For example, a run of 4 bits such as 0000 contains no transitions and that causes clocking problems for the receiver. 4B/5B solves this problem by assigning each block of 4 consecutive bits an equivalent word of 5 bits. These 5 bit words are pre-determined in a dictionary and they are chosen to ensure that there will be at least two transitions per block of bits.

A collateral effect of the code is that more bits are needed to send the same information than with 4 bits. An alternate to using 4B5B coding is to use a scrambler. Depending on the standard or specification of interest, there may be several 4b5b characters left unused. The presence of any of the "unused" characters in the data stream can be used as an indication that there is a fault somewhere in the link. Therefore, the unused characters can actually be used to detect errors in the data stream.

4B5B was popularized by Fiber distributed data interface (FDDI) in the mid-1980s, and was later adopted by

  • 100BASE-TX standard defined by IEEE 802.3u in 1995 and
  • AES10-2003 MADI [1] (Multichannel Audio Digital Interface).

The name "4B5B" is generally taken to mean the FDDI version. Other 4-to-5-bit codes have been used for magnetic recording are known as group code recording (GCR).

On optical fiber, the 4B5B output is NRZI-encoded. FDDI over copper (CDDI) uses MLT-3 encoding instead, as does 100BASE-TX.

Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F
4-bit 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
5-bit 11110 01001 10100 10101 01010 01011 01110 01111 10010 10011 10110 10111 11010 11011 11100 11101

Command Characters

The following character sets are sometimes referred to as command characters.

Control Character 5b symbols Purpose
JK 11000 10001 Sync, Start delimiter
II 11111 11111 Not Used
TT 01101 01101 FDDI end delimiter
TS 01101 11001 Not Used
IH 11111 00100 SAL
TR 01101 00111 100BASE-TX end delimiter
SR 11001 00111 Not Used
SS 11001 11001 Not Used
HH 00100 00100 HDLC0
HI 00100 11111 HDLC1
HQ 00100 00000 HDLC2
RR 00111 00111 HDLC3
RS 00111 11001 HDLC4
QH 00000 00100 HDLC5
QI 00000 11111 HDLC6
QQ 00000 00000 HDLC7

(HDLC = High-Level Data Link Control)

References