Error Detection
The only way to do error detection and correction is to send extra data with each message.
These error detection data are added to each message by the data link layer of the sender based on some mathematical calculations performed on the message
The receiver performs the same mathematical calculations on the message it receives and matches its results against the error detection data that were transmitted with the message.
If the two match, the message is assumed to be correct
If they don’t match, an error has occurred