2-CN - Error Control - V2
2-CN - Error Control - V2
Topics
• Types of Errors
• Redundancy
• Detection Versus Correction
• Forward Error Correction Versus Retransmission
• Coding
• Modular Arithmetic
Errors
Note
Note
Note
Note
Note
The receiver adds the five numbers and compares the result with
the sum. If the two are the same, the receiver assumes no error,
accepts the five numbers, and discards the sum. Otherwise,
there is an error somewhere and the data are not accepted.
Checksum
We can make the job of the receiver easier if we send the
negative (complement) of the sum, called the checksum. In this
case, we send (7, 11, 12, 0, 6, −36).
The receiver can add all the numbers received (including the
checksum). If the result is 0, it assumes no error; otherwise,
there is an error.
Checksum
Checksum
Let us redo Exercise using one’s complement arithmetic. Its
shows the process at the sender and at the receiver. The sender
initializes the checksum to 0 and adds all data items and the
checksum (the checksum is considered as one data item and is
shown in color).
The extra two bits are wrapped and added with the sum to create
the wrapped sum value 6.
The sender now sends six data items to the receiver including the
checksum 9.
Checksum
The receiver follows the same procedure as the sender. It adds
all data items (including the checksum); the result is 45.
45=101101; (1101+10=1111=15)
The receiver drops the checksum and keeps the other data
items. If the checksum is not zero, the entire packet is dropped.
Checksum
Checksum
Note
Sender site:
1.The message is divided into 16-bit words.
2.The value of the checksum word is set to 0.
3.All words including the checksum are added using
one’s complement addition.
4.The sum is complemented and becomes the
checksum.
5.The checksum is sent with the data.
Checksum
Note
Receiver site:
1.The message (including checksum) is divided into
16-bit words.
2.All words are added using one’s complement
addition.
3.The sum is complemented and becomes the new
checksum.
4.If the value of checksum is 0, the message is
accepted; otherwise, it is rejected.
Summary
• CRC can detect all burst errors that affect an odd
number of bits.
The receiver adds the five numbers and compares the result with
the sum. If the two are the same, the receiver assumes no error,
accepts the five numbers, and discards the sum. Otherwise,
there is an error somewhere and the data are not accepted.
Checksum
We can make the job of the receiver easier if we send the
negative (complement) of the sum, called the checksum. In this
case, we send (7, 11, 12, 0, 6, −36).
The receiver can add all the numbers received (including the
checksum). If the result is 0, it assumes no error; otherwise,
there is an error.
Checksum
Checksum
Let us redo Exercise using one’s complement arithmetic. Its
shows the process at the sender and at the receiver. The sender
initializes the checksum to 0 and adds all data items and the
checksum (the checksum is considered as one data item and is
shown in color).
The extra two bits are wrapped and added with the sum to create
the wrapped sum value 6.
The sender now sends six data items to the receiver including the
checksum 9.
Checksum
The receiver follows the same procedure as the sender. It adds
all data items (including the checksum); the result is 45.
45=101101; (1101+10=1111=15)
The receiver drops the checksum and keeps the other data
items. If the checksum is not zero, the entire packet is dropped.
Checksum
Checksum
Note
Sender site:
1.The message is divided into 16-bit words.
2.The value of the checksum word is set to 0.
3.All words including the checksum are added using
one’s complement addition.
4.The sum is complemented and becomes the
checksum.
5.The checksum is sent with the data.
Checksum
Note
Receiver site:
1.The message (including checksum) is divided into
16-bit words.
2.All words are added using one’s complement
addition.
3.The sum is complemented and becomes the new
checksum.
4.If the value of checksum is 0, the message is
accepted; otherwise, it is rejected.
Further Inquiries
Thank
ThankYou
You