Washington | 19°C (clear sky)
Understanding Longitudinal Redundancy Check (LRC) – the 2‑D Parity Method

Longitudinal Redundancy Check (LRC) Explained: How 2‑D Parity Detects Errors in Block‑Based Transmission

A friendly, step‑by‑step guide to LRC (2‑D parity), showing how column‑wise parity bits help spot burst and multiple‑bit errors in network data.

When you hear the term “Longitudinal Redundancy Check,” or LRC for short, you might picture some dry, textbook‑like algorithm. In reality, it’s a pretty neat, almost visual way of spotting errors, especially when you arrange your bits into a grid of rows and columns.

Think of a block of data – say 32 bits – and split it into four rows, each holding eight bits. Once you have that little matrix, you calculate a parity bit for each column. Those extra bits get tacked on as an additional row at the bottom; that row is the LRC. Because you’re dealing with both rows (the original data) and columns (the parity), many textbooks call it a “2‑D parity check.” The idea is simple: if any column’s parity doesn’t match what the receiver expects, something went wrong.

Here’s a quick illustration. Suppose the original 32‑bit payload looks like this (just a random example):

``` 10110010 01101101 11001011 00011100 ```

We then compute the parity for each of the eight columns – using either even or odd parity, whichever you prefer – and write those bits as the fifth row. The sender now transmits 40 bits total: the original 32 plus the eight LRC bits.

When the packet arrives, the receiver builds the same matrix, recomputes the column parity, and compares it with the received LRC row. If they line up, the data is assumed clean. If not, the receiver knows there’s an error and usually discards the block (or asks for a retransmission).

Why LRC is handy:

  • Burst‑error detection. Because a burst of corrupted bits tends to flip several bits in the same column, the column parity is likely to change, flagging the problem.
  • Multiple‑bit error spotting. Even if errors are scattered across different rows, as long as they affect the same column, the LRC will catch them.
  • Simplicity. The math is just XOR’ing bits together – no heavy computation required.

For example, imagine a five‑bit burst striking the transmitted block. The LRC row that reaches the destination won’t match the freshly computed parity, so the error is instantly apparent.

But it’s not a silver bullet.

  • Some error patterns slip through. If the exact same bit position gets flipped in two different rows, the column parity remains unchanged – the LRC can’t see the mistake.
  • It adds overhead. Every extra parity row means more bits on the wire, which can be a concern for low‑bandwidth links.
  • LRC is a detector, not a corrector. It tells you something is wrong, but it won’t pinpoint which bits to flip back.

Take a tiny case: two 12‑bit units, 110011010101 and 010010110100. If the first and sixth bits of each unit flip simultaneously, the column parity ends up looking perfectly normal, and the error goes unnoticed.

All in all, LRC (or 2‑D parity) is a classic error‑detection trick that still shows up in many data‑link layer protocols. It balances ease of implementation with decent burst‑error coverage, making it a solid choice when you need a lightweight safety net.

Comments 0
Please login to post a comment. Login
No approved comments yet.

Editorial note: Nishadil may use AI assistance for news drafting and formatting. Readers can report issues from this page, and material corrections are reviewed under our editorial standards.