Data Link Layer Error Detection - Correction Part B
Data Link Layer Error Detection - Correction Part B
LECTURE 4:
DATA LINK LAYER
NET 221D : COMPUTER NETWORKS
FUNDAMENTALS
3. Error control
How to make sure all frames are eventually delivered to
the network layer at the destination and in the proper
order.
Assume for the moment that the receiver can tell whether a
frame that it receives contains correct or faulty
information (using error detection and correction
techniques).
The usual way to ensure reliable delivery is to provide the
sender with some feedback about what is happening at the
other end of the line.
2
Typically, the protocol calls for the receiver to send
back special control frames bearing positive or
negative acknowledgements about the incoming
frames.
10.4
Error detection and correction
• The correction of errors is more difficult than the detection. In
error detection, we are looking only to see if any error has
occurred. The answer is a simple yes or no.
10.6
Note
10.7
Figure 10.1 Single-bit error
10.8
Note
10.9
Figure 10.2 Burst error of length 8
10.10
Note
10.11
Figure 10.3 The structure of encoder and decoder
10.12
Figure 10.4 XORing of two single bits or two words
10.15
Example 10.4
10.
Example 10.5
10.
Example 10.6
Solution
We first find all the Hamming distances.
The dmin in this case is 3.
10.
PARITY CHECK
10.
Table 10.3 Simple parity-check code C(5, 4)
10.
Figure 10.10 Encoder and decoder for simple parity-check code
10.
Example 10.12
10.
Simple parity check can detect all single-bit errors. It
can detect burst errors only if the total number of
errors in each data unit is odd.
10.
TWO-DIMENSIONAL PARITY
CHECK
10.
Figure 10.11 Two-dimensional parity-check code
10.
2. Cyclic Redundancy Check (CRC)
10.33
The Process of CRC
Find the CRC of Data block 1001 with the divisor 1011
At the Sender:
Find The length of Divisor “L” 1011 (4 bits here) predefined and agreed
upon.
Append “L-1=3 bits” to the original Message 1001 (000)
1001 becomes 1001000
Perform Binary Operation
The Remainder of the division is= CRC
Table 10.4 Hamming code C(7, 4) - n=7, k = 4
10.
The Process of CRC
At the Receiver: