Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Methods of Error Detection

The need to check for errors

  • Errors can occur during data transmission due to:
    • interference
    • problems during packet switching
    • skewing of data
  • There are various ways data can be checked for errors following transmission:
    • parity checks
    • checksum
    • echo check

Parity checks, checksum, echo checks

Parity checks

  • A parity check is a method used to check if data has been transferred correctly; it makes use of even parity (an even number of 1-bits) or odd parity (an odd number of 1-bits).
    • The most significant/left-most bit is reserved for a parity bit; a bit added to a byte in the most significant bit position, ensuring that the byte follows the correct even/odd parity protocol.
  • A parity block is a horizontal and vertical parity check on a block of data being transmitted.

Checksum

  • A checksum is a verification method used to check if data transferred has been altered or corrupted; calculated from the block of data being sent; the checksum value is sent after each data block.
  • The process is as follows:
    • when a block of data is about to be transmitted, the checksum is calculated from the block of data
    • the calculation is done using an agreed algorithm
    • the checksum is then transmitted with the block of data
    • at the receiving end, the checksum is recalculated by the computer using the block of data (the agreed algorithm is used to find the checksum)
    • the re-calculated checksum is then compared to the sent checksum
    • if they are the same, no errors have occurred; otherwise, a request is made to re-send the block of data.

Echo check

  • An echo check is a method used to check if data has been transferred correctly; data is sent to a receiver and then immediately sent back to the sender; the sender then checks if the received data matches the sent data.
    • If the two sets of data are different, then an error occurred at some stage during the data transmission.

Check digits

  • A check digit is an additional digit appended to a number to check if the entered number is error-free; check digit is a data entry check and not a data transmission check.
  • They are used for barcodes on products, such as the International Standard Book Numbers (ISBN) and Vehicle Identification Numbers (VIN).

Automatic Repeat Requests (ARQs)

  • An Automatic Repeat Request (ARQ) is a method of checking transmitted data for errors; it makes use of acknowledgement and timeout to automatically request resending of data if the time interval before positive acknowledgement is too long.

Procedure

  • ARQ uses positive and negative acknowledgements; messages sent to the receive indicating that the data has/has not been received correctly.
  • The receiving device receives an error detection code as part of the data transmission, usually a cyclic redundancy check, to detect if there are transmission errors.
  • If no error, a positive acknowledgement is sent back to the sender.
  • If error is detected, the receiver now sends a negative acknowledgement to the sender and requests re-transmission of the data.
  • A timeout is used by the sending device by waiting a pre-determined amount of time.
    • If no acknowledgement of any time has been received by the sending device within this time limit, it automatically re-sends the data until a positive acknowledgement is received.
      • Alternatively, until a pre-determined number of re-transmissions has taken place.