ArticleslgStudy

science

6b/8b encoding

6b/8b encoding is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand 6b/8b encoding rather than just read about it. In short: In telecommunications, 6b/8b is a line code that expands 6-bit codes to 8-bit symbols for the purposes of maintaining DC-balance in a communications system. The 6b/8b encoding is a balanced code -- each 8-bit output symbol contains 4 zero bits and 4 one bits.

Key takeaways

  • 6b/8b encoding belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect 6b/8b encoding to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of 6b/8b encoding from memory before moving on to harder problems.

Reference excerpt

In telecommunications, 6b/8b is a line code that expands 6-bit codes to 8-bit symbols for the purposes of maintaining DC-balance in a communications system. The 6b/8b encoding is a balanced code -- each 8-bit output symbol contains 4 zero bits and 4 one bits. So the code can, like a parity bit, detect all single-bit errors. The number of 8-bit patterns with 4 bits set is the binomial coefficient (84) = 70. Further excluding the patterns 11110000 and 00001111, this allows 68 coded patterns: 64 data codes, plus 4 additional control codes.

Coding rules The 64 possible 6-bit input codes can be classified according to their disparity, the number of 1 bits minus the number of 0 bits:

The 6-bit input codes are mapped to 8-bit output symbols as follows:

The 20 6-bit codes with disparity 0 are prefixed with 10Example: 000111 → 10000111Example: 101010 → 10101010 The 15 6-bit codes with disparity +2, other than 001111, are prefixed with 00Example: 010111 → 00010111 The 15 6-bit codes with disparity −2, other than 110000, are prefixed with 11Example: 101000 → 11101000 The remaining 20 codes: 12 with disparity ±4, 2 with disparity ±6, 001111, 110000, and the 4 control codes, are assigned to codes beginning with 01 as follows:

No data symbol contains more than four consecutive matching bits, and because the patterns 11110000 and 00001111 are excluded, no data symbol begins or ends with more than three identical bits. Thus, the longest run of identical bits that will be produced is 6. (I.e. this is a (0,5) RLL code, with a worst-case running disparity of +3 to −3.) Any occurrence of 6 consecutive identical bits constitutes a comma sequence or sync mark or syncword; it identifies the symbol boundaries precisely. Those 6 bits straddle the inter-symbol boundary with exactly 3 of those identical bits at the end of one symbol, and 3 of those identical bits at the start of the following next symbol.

See also 8b/10b encoding, another fixed-table system with a higher code rate but less error detection. 64b/66b encoding, linear feedback register.

References

External links Freepatents online, United States patent 6,876,315: DC-balanced 6B/8B transmission code with local parity.

Worked examples

Example 1 — a first encounter with 6b/8b encoding

Start with the simplest possible case. Write down what 6b/8b encoding claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to 6b/8b encoding before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about 6b/8b encoding ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of 6b/8b encoding

In research
6b/8b encoding appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses 6b/8b encoding in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
6b/8b encoding is common in secondary-school and first-year university syllabi. It links to neighbouring topics Electronics stubs, Line codes, so understanding it makes those chapters shorter.
In everyday life
Look for 6b/8b encoding outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “6b/8b encoding” →

How to study 6b/8b encoding in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what 6b/8b encoding means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain 6b/8b encoding out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is 6b/8b encoding in simple terms?

In telecommunications, 6b/8b is a line code that expands 6-bit codes to 8-bit symbols for the purposes of maintaining DC-balance in a communications system. The 6b/8b encoding is a balanced code -- each 8-bit output symbol contains 4 zero bits and 4 one bits.

Why does 6b/8b encoding matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study 6b/8b encoding?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on 6b/8b encoding.

Tags

  • Electronics stubs
  • Line codes

Keep exploring