Methods Of Error Detection
Learn it by playing
Answer these questions to earn energy, then fish and explore. No account needed.
Notes
Why Errors Occur
- Errors occur due to **interference** in wired or wireless transmission (e.g., wire degradation, electrical fields, weather, physical barriers).
- Results of interference: **data loss**, **data gain**, or **data change** (bits flipped).
- Computers expect data in specific **formats**; unexpected data causes errors or corruption.
Parity Check
- A **parity bit** is added to each byte; sender and receiver agree on **odd** or **even** parity.
- For **even parity**, total number of 1s (including parity bit) must be even; for **odd parity**, total must be odd.
- If parity doesn't match, an error is detected, but the location is unknown.
- Limitation: parity check fails if an **even number of bits** are flipped or bits are transposed.
Parity Block & Parity Byte
- A **parity block** uses horizontal (per byte) and vertical (per column) parity calculations.
- The **parity byte** contains vertical parity bits for each column.
- Cross-referencing horizontal and vertical parity **pinpoints the exact error location**.
- The error can be corrected automatically or a retransmission requested.
Checksum
- A **checksum** is a value calculated from data using an algorithm and sent with the data.
- Receiver recalculates the checksum and compares it to the transmitted value.
- If they **do not match**, an error is assumed; checksum does not indicate error location.
Echo Check
- The receiver **echoes** (sends back) the received data to the sender.
- Sender compares echoed data to original; if different, an error occurred and data is retransmitted.
- Limitation: an error could occur during the echo transmission itself.
Check Digits
- A **check digit** is the last digit in a numeric code (e.g., ISBN, barcode) used to detect entry errors.
- Detects: incorrect digits, omitted/extra digits, phonetic errors.
- Calculated using a standard algorithm; if the result is a whole number, the code is valid.
Automatic Repeat Query (ARQ)
- ARQ is a protocol using **acknowledgements** and **timeout** to ensure error-free transmission.
- Receiver sends **positive acknowledgement** (ACK) if data is correct, or **negative acknowledgement** (NAK) if corrupted.
- If no acknowledgement is received within a **timeout** period, the sender automatically retransmits the data.
- Process repeats until data is received correctly or a limit is reached.
Even parity check: parity bit ensures total number of 1s is even.
Automatic Repeat Query (ARQ) process.
Practice questions
Free preview — 8 of 40 questions. Sign up to see them all.
1.Which of the following is a result of interference during data transmission?
Easy- AData loss
- BData encryption
- CData compression
- DData indexing
2.What is the purpose of a parity bit in data transmission?
Easy- ATo detect errors in the transmitted data
- BTo correct errors in the transmitted data
- CTo encrypt the transmitted data
- DTo compress the transmitted data
3.A byte is transmitted with even parity. The byte received is 10110010. Does this byte contain an error?
Medium- AYes, because there are four 1s
- BNo, because there are four 1s
- CYes, because there are five 1s
- DNo, because there are five 1s
4.Why might a parity check fail to detect an error?
Medium- AIf an even number of bits are flipped
- BIf an odd number of bits are flipped
- CIf the parity bit itself is corrupted
- DIf the data is encrypted
5.In a parity block check using odd parity, the parity byte is calculated as 01111111. If the received parity byte is 01111110, what does this indicate?
Hard- AAn error has occurred in bit column 8
- BAn error has occurred in bit column 7
- CAn error has occurred in byte row 8
- DNo error has occurred
6.What is a checksum used for?
Easy- ATo determine if data has been corrupted
- BTo encrypt data
- CTo compress data
- DTo convert data to a different format
7.In an echo check, the receiver sends the received data back to the sender. Why is this method not fully reliable?
Medium- AAn error could occur when the receiver transmits the data back
- BThe sender cannot detect errors
- CThe receiver cannot detect errors
- DIt requires too much bandwidth
8.What is a check digit?
Easy- AThe last digit in a code used to detect errors in numeric data entry
- BThe first digit in a code used to identify the data type
- CA digit used to encrypt the data
- DA digit used to compress the data
Unlock all 40 questions, slides & more
Create a free account to see every question, the slides, flashcards and revision notes for this topic.
Past papers
Past-paper practice for this topic is coming soon.