tags: The internet

It seems that it is necessary to increase the cost, there is no free lunch, no wonder the name is "redundant"



is that the sender first puts n zeros in the position of the redundant code, and then takes the entire data (k+n) bits as a number and divides it by (Modulo 2 division is used, which is very important! ! Not conventional division) A pre-prepared divisor p (n+1 digits), the divided remainder R is n bits, and this n-bit remainder is used as the sender's CRC cyclic redundancy code.
When it arrives at the recipient, divide the received number by the same divisor P (probably the P specified in the agreement), and the remainder of 0 means no error
Check every frame
It is not 100% that the detection is correct, and there is a probability that the result of the detection is incorrect. The larger the number of redundant codes, the more accurate the result will be and the lower the probability of detecting errors.



This blog wakes me up
I have never understood the calculation process of the CRC redundancy code. It took more than an hour to study. I thought that the above description was about decimal division. My own examples and ppt examples are not feasible. , I read a lot of webpages, thought it was binary division, and found that the essence of binary division is the same as decimal division, and the result is the same. . .
I finally understood that the division mentioned in the CRC calculation is not a decimal or binary division at all, but a modulo 2 division. This is a special division. It is basically only used in the calculation of CRC redundant codes. Not used.
The key point of modulo 2 division is (as long as you have mastered these points, you can get through the meridians of modulo 2 division, and you are no longer in doubt):
Why is the first digit of the remainder 1 and the quotient is 0?
because in fact the quotient isXOR of the first digit of the remainder and the first digit of the divisor, But the divisor is always the same and its first digit must be 1, so naturally the first digit of the remainder is 1, and the quotient is 0.
You can see how important XOR is in the IT field


can be seen:
After the recipient receives the data:

The remainder is 0, so no error, receive.
First, CRC definition CRC (CYCLIC Redundancy Check), that is, cyclic redundancy check code, can also be called loop code, with error-in error and error correction.Unlike the Hallup checksum par...
This article is actually the handling of the teaching video of station B:Link click Article Directory Definition of cyclic redundancy check code Features of cyclic redundancy check code What is modulo...
In order to make a topic, I searched a bunch of information about modulo 2 division on the Internet, but I don’t think it is practical. Let me talk about my personal understanding. The relevant ...
Programming with matlab for the first time. After looking up the crc cyclic redundancy data, I followed the idea of crc to find the remainder. Crc method: Use the 12-bit polynomial as the divisor, a...
Output result...
CRC: Cyclic Redundancy Code Check Detailed calculation of station B IP subnetting Binary calculation, decimal means the result The subnet mask is a placeholder. The subnet mask always appears in pairs...
In the basic algorithms, what we learn is basically the modulus two arithmetic. What is a modulus two arithmetic, here is a brief introduction. Modulo 2 operation It is a binary algorithm, the core pa...
Here we record the after-class questions of two computer network textbooks: 1. The data to be sent is 1101011011. The generated polynomial using CRC is P(X)=X^4+X+1. Try to find the remainder that sho...
Moduling 2 division and binary division The binary addition and subtraction and division and decoration and the decimal, "Mod 2 and", "Mod 2 Decrease", name, algorithm, although th...
CRC check Fundamental The principle of CRC check is actually to add a r-bit binary check code (sequence) after a p-bit binary data sequence to form a binary sequence with a total length of n=p+r bits;...