What is CRC and how does it works?

本文介绍了CRC(循环冗余校验)的基本概念及其工作原理。CRC是一种用于检测数据传输错误的算法,通过添加少量冗余位来提高错误检测的概率。文章还提到了CRC-32在千字节级别数据包中对于常见比特错误的强大保护能力,并推荐了一本书籍《Computer Networks-Asystems approach》以供读者深入了解。

What is CRC and how does it works?

 

CRC errors refer to Layer 1 or 2 issues.

Two things you should check :

1. Both the ends of the interfaces have some speed and duplex settings.

2. Check the physical cabling or copper line.

 

I nput  I nput  I nput :  (total) :  92698557257 packets, 66876615402218 bytes  92698122077 uni casts, 1528 broadcasts, 433652 multi casts,  (normal) :  92698557257 packets,  — bytes  92698122077 uni casts, 1528 broadcasts, 433652 multi casts,  0 input errors, 0 runts, 0 giants, 0 throttles  O CRC, O frame,  overruns, 0 aborts  — ignored,  parity errors  0 pauses  0 pauses

 

 

CRC (Cyclic Redundancy Check) is apolynomial function  on the frame which returns a 4B number in Ethernet Frames.

Figure 4-2 Ethernet and IEEE 802.3 Frame Formats  Ethernet  F-SE Ength,  in  FSH Ength,  in  7  7  o  2  O  O  F  add  6  add regs  Scuræ  addres  IEEE .3  2  SQJræ Length  addres  40-15m  46-150  BCC .2 hæder  and data  4  FCS  4  FCS  SOF = Startof-frame delimiter  FCS = Frame chæk Awenæ

 

It will catch all single bit errors and a good percentage of double bit errors. It is thus meant to ensure that the frame was not corrupted in transit.

 

The CRC is an error detectionalgorithms and is designed to maximize the probability of detecting errors using only a small number of redundant bits. The CRC-32 gives strong protection against common bit errors in messages that are thousands of bytes long. If you want to know more about how does it works, I recommend a book called <Computer Networks - A systems approach>. The CRC algorithm is discussed around page 92 through 102.

 





转载于:https://www.cnblogs.com/roni/p/5999994.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值