

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are a set of Lecture Slides on the subject of Data Communication and Computer Networks at Univeristy of Delhi by Dr. Sonam Zinta. It includes: Error, Detection, Correction, Single-Bit, Burst, Interference, Packet, Redundancy, Block, Coding
Typology: Slides
1 / 25
This page cannot be seen from the preview
Don't miss anything!


















Whenever bits flow from one point to another, they are subject to be unpredictable changes due to Interference. Interference can cause the shape of the signal to change. Types of ERRORS
1. Single-Bit Error means that only 1 bit of a given data unit (byte, character or packet) is changed from 1 to 0 or from 0 to 1. 2. Burst Error means that 2 or more bits in the data unit have changed.
Forward Error Correction
is the process in which the receiver tires to guess the message using redundant bits. Possible only if the number of bits are small.
Correction by Retransmission
is a technique in which the detects the occurrence of an error and asks the sender to resend the message. Resending is repeated until a message arrives that the receiver believes is error-free.
Coding
Redundancy is achieved through various coding schemes.
The sender adds redundant bits through a process that creates relationship between the redundant bits and the actual data bits.
Message is divided into blocks, each k bits called datagram.
We add r redundant bits to each block to make the length n=k+r.
The resulting n-bit block are called code words.
The block coding is one-to-one ; the same dataword is always encoded as the same codeword.
Example
The 4B/5B block coding is a good example of this type of coding. In this coding scheme, k = 4 and n = 5. As we saw, we have 2k= 16 datawords and 2n^ = 32 codewords.
As we see that 16 out of 32 codewords are used for message transfer and the rest are either used for other purposes or unused.
Example
Let us assume that k = 2 and n = 3. Table shows the list of datawords and codewords. Later, we will see how to derive a codeword from a dataword.
Example
If the receiver can correct an error without knowing what was actually sent. We add 3 redundant bits to the 2-bit dataword to make 5-bit codewords. Table shows the datawords and codewords. Assume the dataword is 01. The sender creates the codeword 01011. The codeword is corrupted during transmission, and 01001 is received. First, the receiver finds that the received codeword is not in the table. This means an error has occurred. The receiver, assuming that there is only 1 bit corrupted, uses the following strategy to guess the correct dataword.
Hamming Distance and Error
Hamming distance between the received codeword and the sending codeword is the number of bits that are corrupted during transmission.
For Example
If the codeword 00000 is sent and 01101 is received, 3bits are in error and the Hamming distance between the two is d(00000,01101)=3.
Note
The detection of up to s errors in all cases, the minimum Hamming distance in a block code must be dmin=s+1.
In a linear block code, the XOR of any two valid codewords creates another valid codeword.
Linear Block Codes
Simple Parity Check Code A simple parity-check code is a single bit error detecting code in which n=k+1 with dmin=2.
Generator takes a copy of a 4-bit dataword(a0,a1,a2 and a3) and generates a parity bit r0.
The dataword bits and the parity bit creates the 5-bit codeword.
All the 4 bits of the dataword (modulo-2); the result is the parity bit.
r0=a3+a2+a1+a0 (modulo-2).
The result is 0; if no of 1’s is even, if the number of 1s is odd, the result is 1.
In both cases the number of 1’s in the codeword is even.
Cyclic Redundancy Check