4B/5B Coding principle

Source: Internet
Author: User

4B/5B Coding principle

What is 4b/5b encoding?

4B/5B encoding is one of the line layer encoding types in the Gigabit Ethernet (ie Fast Ethernet) , which is the 4bit binary number represented by the 5bit binary number , as shown in the following table:

Why do I need to encode 4b/5b?

In the communication network, the receiving end needs to recover the clock information from the received data to ensure synchronization, which requires the transmission of the line in the binary stream has enough to jump , that is, there can not be too many consecutive high or low level, otherwise unable to extract clock information .

The Manchester (Manchester) code ensures that the stream in the line is fully variable, as it is electrically flat from"1" to "+1" to indicate "1" , Electric leveling from"+1" to "1" jumps to represent "0" , but the efficiency of this coding method is too low,only 50% , equivalent to the effective bandwidth of the circuit in exchange for signal jumps, 10 Gigabit Ethernet is usedManchester encoding, although the effective bandwidth of the line is only 10Mbps, but the actual bandwidth is 20Mbps.

The combination of 4B/5B encoding and MLT-3 encoding for Gigabit Ethernet, the transmission code stream is 4b/5b encoded, then MLT-3 encoded, and finally on the line transfer; Gigabit Ethernet is 8b/10b encoded with NRZ encoding combination method, Gigabit Ethernet is used for 64b/66b encoding,PCIE 3.0 is 128b/130b encoded.

What are the 4b/5b coding rules?

4b/5b coding is actually 4bit binary code. The efficiency of this encoding is 80%, than 4B/5B code has been stated earlier, which is to let the bitstream generate enough jumps. 4-bit binary total 16 combinations, 5-bit binary total 32 combinations, how to

1). each 5-bit code group does not contain more than 3 "0";

2). or a 5 bit code group contains not less than 2 "1";

How did this rule come about? This is going to be explained in terms of the characteristics of MLT-3 yards. MLT-3 yards of the characteristics of the simple saying is: every "1" jump change, every "0" does not jump change. In order to make the 4b/5b encoded in the code stream there are enough jumps in the code stream need to have as many as possible "1" and as little as possible "0".

The feature of this encoding is to send the data stream every 4bit as a group, and then follow the 4B/5B encoding rules to convert it to the corresponding 5bit code. There are 32 combinations of 5bit codes, but only 16 of them correspond to 16 of 4bit codes, the other 16 are not used or used as control codes to indicate the start and end of frames, the status of fiber optic lines (stationary, idle, pause) and so on. Three applications are similar to the concept of FDDI, 100base-tx, and 100BASE-fx8b/10b encoding and 4b/5b, for example, in the case of Gigabit Ethernet, the 8B/10B encoding method is used.

The 4B/5B encoding is an information encoding scheme used in the optical Distributed Data Interface (Fddi,fiber distributed-Interface) of the Gigabit Fast Ethernet. This encoding is characterized by the data stream to be sent every 4bit as a group, each four-bit binary code is represented by 5-bit encoding, this 5-bit encoding is called the code group, and is transmitted by NRZI mode.

The 4B/5B encoding is an information encoding scheme used in the optical Distributed Data Interface (Fddi,fiber distributed-Interface) of the Gigabit Fast Ethernet. This encoding is characterized by the data stream to be sent every 4bit as a group, each four-bit binary code is represented by 5-bit encoding, this 5-bit encoding is called the code group, and is transmitted by NRZI mode.

In the communication system, the communication speed and the modulation rate in the transmission line, the so-called modulation rate refers to the number of line state changes in unit time, in baud (baud) units. The most important advantage of practical 4b/5b code is that it can reduce the modulation rate in the transmission line and reduce the requirement of the circuit.

For example, if Manchester code is used, the data transfer rate is one-second of the baud rate if it beats two times within each modulation interval. In Fast Ethernet, the data transfer rate is 100Mbps, if the Manchester code, the baud rate will reach 200Mbps, the transmission media and equipment technical requirements will increase, increase the transmission cost. If 4B/5B encoding is used, at a transfer rate of 100Mbps, the modulation rate is: 100m÷ (4/5) =125m (baud). That is, the baud rate is 125M baud, significantly lower than the Manchester code 200M baud, which makes it possible to use unshielded twisted pair in Fast Ethernet .

The 4B/5B encoding table looks like this:

About line encoding types, such as NRZ,NRZI,HDB3,B3zs,B8zs,AMI, CMI,MLT-3, Manchester,etc.

4B/5B Coding principle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.