Before looking at the computer network related books, every time you see the IP or UDP header checksum, are at a glance, thought quite simple, is not the sum of 16bit data. Recently in the study of "TCP/IP Detailed Volume 1: Protocol" This book, see
Consistency checking of master-slave data is a headache, and occasionally it is frustrating to be inconsistent with the master-slave data from a business complaint, or a few inconsistencies between the data from the library. Usually we only have one
1. Summary TCP Header verification and calculation: TCP Header + TCP Data + TCP pseudo header.
The TCP checksum overwrites the TCP header and TCP data, while the checksum in the IP header only overwrites the IP header and does not overwrite any data
IP checksum Definition
The IP checksum is the 16 bit one's complement of the one's complement sum of all 16 bit words in the header.
One question completion people may ask is "what is the 1's complement sum? ". This is because all computers utilize
Pt-table-checksum check and pt-table-sync repair data, checksum Check Tool1. Download the ToolkitLog on to the website and download the corresponding toolkit https://www.percona.com/downloads/percona-toolkit/LATEST/2. Installation(1) yum
At first, the private thought that the checksum is just a simple summation of the results, and later in TCP and UDP see the use of the checksum method is a bit strange-binary anti-code (cyclic carry) summation . The cognitive process of human
Check is divided into client checksum server checksum. The client relies primarily on JavaScript code to complete, and server-side verification is done through programming in the program. The client can only prevent normal misoperation to reduce the
Python checksum Calculation
The Checksum is frequently used. Here, we simply list a code snippet for the sum calculated by byte. In fact, this sum calculation translates bytes into unsigned integers and signed integers, and the results are the same.
I. There are a large number of view pages in a Web system project that require users to enter a lot of data themselves. There are many types of these data. In order to prevent some customers from malicious input and malicious damage to Web projects,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.