Error detection · 错误检测
| English | 中文 | Pinyin · 拼音 |
|---|---|---|
| interference/ˌɪntəˈfɪərəns/ | 干扰 | gān rǎo |
| check digit/tʃek ˈdɪdʒɪt/ | 校验码 | jiào yàn mǎ |
| parity check/ˈpærɪti tʃek/ | 奇偶校验 | jī ǒu jiào yàn |
| parity bit/ˈpærɪti bɪt/ | 奇偶校验位 | jī ǒu jiào yàn wèi |
| checksum/ˈtʃeksəm/ | 校验和 | jiào yàn hé |
| echo check/ˈekəʊ tʃek/ | 回送校验 | huí sòng jiào yàn |
| acknowledgement/əkˈnɒlɪdʒmənt/ | 确认 | què rèn |
| timeout/ˈtaɪmaʊt/ | 超时 | chāo shí |
| transposition/trænspəˈzɪʃn/ | 换位 | huàn wèi |
Checking for errors
- While data travels, interference 干扰 can change it — bits lost, gained or flipped.
- So the receiver checks the data arrived correctly.
- Several methods do this, plus a check digit 校验码 for typed-in numbers.
检查错误
- 当数据传播时,干扰(interference)能改变它——位丢失、增加或翻转。
- 所以接收方检查数据正确到达。
- 几种方法做这个,加上一个用于键入数字的校验数字(check digit)。
Computing concept lab · 计算概念实验
Classify concrete examples by the computing idea they demonstrate. · 根据它们所演示的计算概念对具体示例进行分类。
Parity check 奇偶校验
- A parity check adds one parity bit 奇偶校验位 to each byte.
- Even parity: the total number of 1s must be even; odd parity: it must be odd.
- The receiver counts the 1s; if the parity is wrong, an error occurred.
- It can't catch every error — if two bits flip, the count may still look correct.
A few of the USB connector shapes. All use the same USB standard, so devices are detected automatically.
奇偶校验
- 一个奇偶校验(parity check)给每个字节加一个校验位(parity bit)。
- 偶校验(even parity):1 的总数必须是偶数;奇校验(odd parity):它必须是奇数。
- 接收方数 1 的个数;如果奇偶性错了,就发生了一个错误。
- 它不能捕捉每个错误——如果两个位翻转,计数可能仍然看起来正确。

一些 USB 连接器形状。全都使用同样的 USB 标准,所以设备被自动检测。
In an even-parity system, the parity bit is set so that: · 在偶校验系统中,校验位被设置为使得:
Even parity makes the count of 1s even; the receiver re-counts to detect a single-bit error. · 偶校验使1的计数变为偶数;接收方重新计数以检测单比特错误。
A parity check catches a single flipped bit, but if TWO bits flip the 1-count's parity can still look correct, hiding the error. · 奇偶校验能捕获单个翻转的比特,但如果两个比特同时翻转,1计数的奇偶性可能仍看似正确,从而隐藏错误。
That blind spot is why stronger checks (checksums, CRC) are used when reliability really matters. · 这就是为什么在可靠性要求极高时会使用更强的检查机制(如校验和、CRC)。
Checksum 校验和, echo check 回送校验 and ARQ
- Checksum — a value calculated from the data before sending; the receiver recalculates it and compares. A mismatch → resend.
- Echo check — the receiver sends the data back; the sender compares it with the original (slow — data sent twice).
- ARQ (Automatic Repeat reQuest) — the receiver sends a positive/negative acknowledgement 确认; if no positive one arrives before a timeout 超时, the sender resends.
Serial sends one bit at a time down one wire; parallel sends several bits at once down several wires.
校验和、回声校验和 ARQ
- 校验和(checksum)——发送前从数据计算出的一个值;接收方重新计算它并比较。不匹配 → 重发。
- 回声校验(echo check)——接收方把数据发回去;发送方把它与原件比较(慢——数据发送两次)。
- ARQ(自动重传请求,Automatic Repeat reQuest)——接收方发送一个肯定/否定的确认(acknowledgement);如果在一个超时(timeout)之前没有肯定的到达,发送方重发。

串行沿一根线一次发送一位;并行沿几根线一次发送几位。
A checksum detects errors by: · 校验和通过以下方式检测错误:
The receiver recomputes the checksum; if it differs from the sent one, the data is resent. · 接收方重新计算校验和;如果与发送的不一致,则重传数据。
In ARQ, the sender resends a packet when: · 在ARQ协议中,当出现以下情况时发送方会重传数据包:
ARQ uses acknowledgements and a timeout timer; no positive ack in time → resend. · ARQ使用确认和超时定时器;若未在时限内收到肯定确认→重传。
Check digit
- A check digit is an extra digit at the end of a number, worked out from the others — used for numbers that are typed in (barcodes, ISBNs).
- When entered, it is recalculated and compared.
- It catches an incorrect digit, a transposition 换位 (two digits swapped, 21→12), a missing/extra digit, and phonetic errors.
A parity bit is added to make the number of 1s even (or odd)
校验数字
- 一个校验数字(check digit)是一个数末尾的额外数字,从其他数字算出——用于键入的数字(条形码、ISBN)。
- 当被输入时,它被重新计算并比较。
- 它捕捉一个错误的数字、一个易位(transposition,两个数字交换,21→12)、一个缺失/多余的数字,以及读音错误。
Match each error-detection method to how it works. · 将每种错误检测方法与其工作原理匹配。
Parity and checksums detect errors in transit; a check digit guards typed-in numbers; ARQ triggers the resend. · 校验位和校验和在传输过程中检测错误;校验码保护手输数字;ARQ触发重传。
You've got it
- parity check = even/odd count of 1s via a parity bit; misses some 2-bit errors
- checksum = recalculate and compare; echo check = send the data back
- ARQ = acknowledgements + timeout resend
- a check digit catches typing mistakes (incorrect digit, transposition) in barcodes/ISBNs
你掌握了
- 奇偶校验 = 通过一个校验位偶/奇数 1 的计数;漏掉一些 2 位错误
- 校验和 = 重新计算并比较;回声校验 = 把数据发回去
- ARQ = 确认 + 超时重发
- 一个校验数字捕捉条形码/ISBN 中的键入错误(错误的数字、易位)