Longitudinal Redundancy Check (LRC)

Definition - What does Longitudinal Redundancy Check (LRC) mean?

a longitudinal redundancy check (LRC) is an error-detection method for determining the correctness of transmitted and stored data.

LRC verifies the accuracy of stored and transmitted data using parity bits. It is a redundancy check applied to a parallel group of bit streams. The data to be transmitted is divided into transmission blocks into which additional check data is inserted.

This term is also known as a horizontal redundancy check.

Techopedia explains Longitudinal Redundancy Check (LRC)

LRC generally applies to a single parity bit per bit stream. Although simple longitudinal parities only detects errors, a combination with additional error control coding, such as a transverse redundancy check, are capable of correcting errors.

LRC fields consist of one byte containing an eight bit binary value. LRC values are calculated by transmitting devices, which append LRC to messages. The device at the receiving end recalculates the LRC on receipt of the message and compares the calculated value to the actual value received in the LRC field. If the values are equal, the transmission was successful; if the values are not equal, this indicates an error.

LRC is generated through the following steps:

  1. Add all bytes in messages excluding the starting colon and the ending the carriage return line feed
  2. Add this to the eight-bit field and discard the carries
  3. Subtract the final field value from FF hex, producing one’s complement
  4. Add one, producing two’s complement

In a system environment where a data stream is accepted from a host during host-initiated operations, LRC calculations are performed and appended to every received data block. The resulting blocks are stored by the subsystems. As data passes through the subsystem, LRC calculations are performed. If the host requests data later, a data block is sought along with the previously calculated LRC. The same LRC exclusive or calculations are performed and compared with stored LRC values as data is transferred to the host. If the stored value matches the newly calculated values, the data is considered to be valid.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.