Communication Network IA
Communication Network IA
Mari Perumal
How many invalid (unused) code sequences can we have in 5B/6B encoding?
How many in 3B/4B encoding?
Importance of Encoding:
5B/6B Encoding:
In 5B/6B encoding, 5-bit data is encoded into 6-bit code words. There are
25=3225=32 possible 5-bit data sequences. However, not all of them are used for
data encoding. Some are reserved for control characters, and some are used for
ensuring sufficient transitions. The number of unused or invalid sequences can be
calculated as follows:
3B/4B Encoding:
In 3B/4B encoding, 3-bit data is encoded into 4-bit code words. Similar to the
previous case, not all 4-bit sequences are used for valid data. Some are reserved for
special purposes. The number of unused or invalid sequences can be calculated as
follows:
This is because there are 24=1624=16 possible 4-bit sequences, but 2323 of them are
used for valid data.
In summary:
= 8 data
sequences and 2^4 = 16 code sequences. The number of unused code sequences is
16 − 8 = 8.
Applications:
Mithun Varshan
The input stream to a 4B/5B block encoder is 0100 0000 0000 0000 0000 0001
Answer the following questions:
a. What is the output stream?
b. What is the length of the longest consecutive sequence of 0s in the input?
c. What is the length of the longest consecutive sequence of 0s in the output?
Key Concepts:
1. Data Transformation:
In block encoding, a set of bits, typically organized into fixed-size
blocks, undergoes a systematic transformation.
The transformation is designed to meet specific requirements for
reliable data transmission.
2. Transition Density:
One of the primary goals of block encoding is to maintain a
sufficient number of signal transitions (0 to 1 or 1 to 0) within the
encoded sequences.
Adequate transition density assists in clock recovery at the receiver
end.
3. Error Detection:
Block encoding often incorporates mechanisms to detect errors in
the transmitted data.
By encoding data in a structured manner, certain error patterns
become recognizable.
4. Control Characters:
Some block encoding schemes reserve specific codes for control
characters or signaling purposes.
Control characters help convey information about the start and end
of data frames, among other functions.
0100→111100100→11110 0000→111000000→11100
0000→111000000→11100 0000→111000000→11100
0001→000010001→00001
Applications:
Conclusion:
Mani Kandan
A Manchester signal has a data rate of 100 Kbps. Using Figure 4.8, calculate the value of the
normalized energy