Ping Command Work Principle Detailed Analysis

xiaoxiao2021-03-06  53

The principle of ping is to build channels, then send the package, the other party receives the information, which includes at least the following, when sending, the contents of the package include the other party's IP address and its own address, and the number of sequences, when returned Including the address of the two parties, there is time, etc., mainly the acceptor is doing well in the operating system kernel, always listens,

The code of a C program, I hope to be useful to everyone.