Computer Network
Error Detection�and Correction
Single-bit error
Burst error
Question: If the Bandwidth of the channel is 1GBPS the for how much duration the error should Last?
Answer:
1Gbps = 109bits--------------🡪 1 secs
1 bit ------------------------------🡪 ?
-> 1/109= 1 ns
Question: If an error occurred up to 1/1000 sec duration in above questions then how many bits corrupted?
Answer:
1/1000 * 109= 106bits are corrupted
Error detection
Error detection means to decide whether the received data is correct or not without having a copy of the original message.
Error detection uses the concept of redundancy, which means adding extra bits for detecting errors at the destination.
Redundancy
Four types of redundancy checks are used
in data communications
Vertical Redundancy Check
VRC/ Parity Check
VRC: 1; if odd number of 1’s
VRC: 0; if even number of 1’s
Vertical Redundancy Check
VRC/ Parity Check
Transmitted Received Detected ?
11100001 🡪 1 1100001
11100001 🡪 1 1101001
11100001 🡪 1 1000011
Performance
Longitudinal Redundancy Check
LRC
Longitudinal Redundancy Check
LRC
Longitudinal Redundancy Check
LRC
Longitudinal Redundancy Check
LRC
Performance
VRC and LRC
Four types of redundancy checks are used
in data communications
Checksum
Checksum: (Sum, Wrapped Sum, Checksum)
Checksum
1 0 0 0 0 1 0 0
0 0 1 0 0 1 0 0
1 1 1 0 0 0 1 0
1 0 0 1 1 0 0 1
1 1 0 1 1 0 1 0 Checksum
Checksum
1 0 0 0 0 1 0 0
0 0 1 0 0 1 0 0
1 1 1 0 0 0 1 0
1 0 0 1 1 0 0 1
1 1 0 1 1 0 1 0
0 0 0 0 0 0 0 0 Checksum
Checksum at Sender’s Side
Checksum at Receiver’s Side
Checksum
1 0 0 0 0 1 0 0
0 0 1 0 0 1 0 0
1 1 1 0 0 0 1 0
1 0 0 1 1 0 0 1
Checksum on Hex data
Checksum on Hex data
Checksum on Hex data
Reference Table
Cyclic Redundancy Check
CRC
Cyclic Redundancy Check
CRC
Cyclic Redundancy Check
Data : 1 1 0 0 1 0 0 1
Divisor: 1 0 0 1
1 1 0 0 1 0 0 1
1 0 0 1
0 0 0
Sender side (Generate redundancy)
Cyclic Redundancy Check
Sender side
Codeword : 1 1 0 0 1 0 0 1 0 1 1
Cyclic Redundancy Check
Codeword : 1 1 0 0 1 0 0 1 0 1 1
Divisor: 1 0 0 1
1 1 0 0 1 0 0 1
1 0 0 1
0 1 1
Receiver side (check redundancy)
Cyclic Redundancy Check
Codeword : 1 1 0 0 1 1 0 1 0 1 1
Divisor: 1 0 0 1
1 1 0 0 1 1 0 1
1 0 0 1
0 1 1
Receiver side (check redundancy) detect error
Cyclic Redundancy Check
Receiver side (check redundancy) detect error
Cyclic Redundancy Check
CRC
Binary Division
Polynomial
Polynomial and Divisor
Figure Division in CRC encoder
Figure Division in the CRC decoder for two cases
Figure Division in the CRC decoder for two cases
CRC at sender side and generated codeword
Single-bit error correction
To correct an error, the receiver reverses the value of the altered bit. To do so, it must know which bit is in error.
Number of redundancy bits needed
∴Total message sent = m+r
The value of r must satisfy the following relation:
2r ≥ m+r+1
Error Correction
Hamming Code
Single-bit error correction
To correct an error, the receiver reverses the value of the altered bit. To do so, it must know which bit is in error.
Number of redundancy bits needed
∴Total message sent = m+r
The value of r must satisfy the following relation:
2r ≥ m+r+1
Hamming Code
Data : 1 0 0 1 1 0 1 ( 7-bit )
The value of r must satisfy the following relation:
2r ≥ m+r+1
Hamming Code
Hamming Code
Hamming Code
Hamming Code
Hamming Code
Corrected
Error
Detection
Error Correction (1-bit correction)
Summarization
Error Correction
Hamming Code
Hamming Code
Hamming Code
Example of Hamming Code
Single-bit error
Error
Detection
Checking for error:
Receiver does the step 3 operation stated above on codeword C. After this operation, the bit combination represents a binary number which corresponding to a decimal number. If the decimal number is 0 then there is no error. Otherwise, if the decimal number is n then it is concluded that the n-th bit is error-bit.
Computer Network
IP Address/Class ???
Q-What is the broadcast address of the network 172.31.180.128/25?
Q-What valid host range is the IP address 10.254.201.56/20 a part of?
Q-How many subnets and hosts per subnet can you get from the network 172.28.0.0/23?
Q-What is the last valid host on the subnetwork 172.19.156.0/23?
Q-What valid host range is the IP address 192.168.206.28
255.255.255.248 a part Of?
IP Address/Class ???
Q-What is the broadcast address of the network 172.31.180.128/25?
ANS: 172.31.180.255
Q-What valid host range is the IP address 10.254.201.56/20 a part of?
ANS: 10.254.192.1 to 10.254.207.254
Q-How many subnets and hosts per subnet can you get from the network 172.28.0.0/23?
ANS: 128 subnets and 510 hosts
Q-What is the last valid host on the subnetwork 172.19.156.0/23?
ANS: 172.19.157.254
Q-What valid host range is the IP address 192.168.206.28 255.255.255.248 a part Of?
ANS: 192.168.206.25 through to 192.168.206.30