Unit 3
Unit 3
• Checksum Checker
1. The block unit is divided into k sections and each of n bits.
2. All the k sections are added together by using one's complement algorithm to get the sum.
3. The sum is complemented.
4. If the result of the sum is zero, then the data is accepted otherwise the data is discarded.
Cyclic Redundancy Check(CRC)
Polynomial
• A pattern of 0’s and 1’s can be represented as a polynomial with
coefficients of 0 and 1. The power of each term shows the position of
the bit; the coefficient shows the value of the bit. Below figure shows
a binary pattern and its polynomial representation.
Data word to be sent - 100100
Key - 1101 [ Or generator polynomial x3 + x2 + 1]
Error correction Code
• The techniques that we have discussed so far can only detect errors, but
cannot correct them.
• Error correction can be handled in two ways
1. one is when an error is discovered, the receiver can ask the sender to
transmit the entire data unit. this is known as backward error correction
2. in the second method receiver can use an error correcting cod, which
automatically correct certain errors. this is called forward error correction.
Example: Hamming code
• Error correcting codes are more sophisticated than error detecting codes
and require more redundant bits. The number of bits required to correct
multiple bit or burst error is so high that in most of the cases it is inefficient
to do so. for this reason most error correction is limited to one,two 2 or at
the most three bit errors.
Hamming Code
• Hamming codes are error correction course that are widely used in
reliable communications. The code is named after its inventor R.
Hamming. The code uses yah number off parity bits located at certain
position in the codeword.
• Redundant bits – Redundant bits are extra binary bits that are
generated and added to the information-carrying bits of data transfer
to ensure that no bits were lost during the data transfer.
• Calculating the Hamming Code
1. All the positions in the code word that are powers of 2 (i.e., positions 1,
2, 4, 8….) Are for parity bits P1, P2, P3, P4
2. The rest of the positions (i.e., positions 3, 5, 7, 9….) are for messages bits
M1, M2, M3, and M4.
3. Construct bit location table as shown below.
Bit
D7 D6 D5 P4 D3 D2 D1
Designation
Bit Location 7 6 5 4 3 2 1
Binary
Location 111 110 101 100 011 010 001
Number
Assignment of P1:
• The binary location number of Parity bit P1 has a 1 for its right most digit.
• Therefore parity bit P1 checks bit locations 1,3,5,and 7 and assigns value 0 or 1
according to even or odd parity.
Assignment of P2:
• The binary location number of Parity bit P2 has a 1 for its middle bit digit.
• Therefore parity bit P2 checks bit locations 2, 3, 6, and 7 and assigns value 0 or 1
according to even or odd parity. Assignment of P4:
• The binary location number of Parity bit P4 has a 1 for its left most digit.
• Therefore parity bit P4 checks bit locations 4, 5, 6,and 7 and assigns value 0 or 1
according to even or odd parity.
• Correcting Error:
• Once hamming code is constructed for the given information bits, it is
sent to the receiver.
• At the receiver side , each parity bit , along with its corresponding
group of bits is checked for proper parity.
• The correct parity of individual parity check is marked as „0‟ whereas
wrong result is marked as „1‟.
• This word gives bit locations where error has occurred.
• If word has all bits „0‟ then there is no error in the hamming code.
• Ex: REFER CLASS NOTES
Multiplexing
• Multiplexing is the set of techniques that allows the simultaneous transmission of
multiple signals across a single data link.
• The lines on the left direct their transmission streams to a multiplexer (MUX), which
combines them into a single stream (many-to-one).
• At the receiving end, that stream is fed into a de-multiplexer (DEMUX), which separates
the stream back into its component transmissions (one-to-many) and directs them to
their corresponding lines.
Multiplexing techniques
There are three basic multiplexing techniques:
• frequency-division multiplexing
• wavelength-division multiplexing
• Time-division multiplexing.
The first two are techniques designed for analog signals, the third, for digital signals.
Multiplexing Techniques