📜  VRC和LRC的区别

📅  最后修改于: 2021-09-14 02:03:07             🧑  作者: Mango

1. 垂直冗余校验(VRC):
垂直冗余校验是上层用来检测数据错误的错误检测方法。 VRC 的另一个名称是奇偶校验。也称为奇偶校验位的冗余位被添加到每个数据单元。这种方法包括偶校验和奇校验。当数据中1的总数为偶数时表示有偶校验,当数据中1的总数为奇数时表示数据中存在奇校验。

2.纵向冗余检查(LRC):
纵向冗余校验(LRC)是上层用来检测数据错误的错误检测方法。 VRC 的另一个名称是二维奇偶校验。在这种方法中,用户想要发送的数据被组织成行和列的表格。为了检测错误,在将这个块发送到接收端之后,将一个冗余位添加到整个块中。接收器使用此冗余位来检测错误。如果没有错误,接收器接受数据并丢弃冗余位行。

VRC和LRC的区别:

S.No. Vertical Redundancy Check (VRC) Longitudinal Redundancy Check (LRC)
1. It stands for Vertical Redundancy Check. It stands for Longitudinal Redundancy Check.
2. In this redundant bit called parity bit is added to each data unit. In this redundant row of bits is added to the whole block.
3. VRC can detect single bit errors. LRC can detect burst errors.
4. It is also known as parity checker. It is also known as 2-D parity checker.
5. The advantage of using VRC is that it can checks all single bit errors but can check odd parity only in the case of change of odd bits. The advantage of using LRC over VRC is that it can check all the burst errors.
6. It is not capable of checking the burst error in case of change of bits is even. If two bits in data unit is damaged and also in other data unit the same bits are damaged at same position, then it is not capable of detecting such kind of error.