I. Ping Introduction Ping is a command in windows, which is also available in UNIX and Linux. Ping also belongs to a communication protocol and is part of the TCP/IP protocol. The ping command can be used to check whether the network is connected,
Said the predecessors of PING Command. PING is used when the first Chinese hacker attacked Indonesia.
Ping Command details
I believe everyone is familiar with the ping command in Windows, but there are not many people who can make the most of the
Preface
In the project, you need to determine whether the host can be pinged. Therefore, you can find the ping source code using C language on the Internet, but it is difficult to reuse it and improve it: Add timeout processing and fault tolerance
1, the basic knowledge of ping
The ping command believes that we are all familiar with but it is not a lot of people who can play the role of Ping, of course, I am not saying that I can let ping play the most functions, I just often use ping this
Windows ping command for most computer enthusiasts are not unfamiliar, through the ping IP can know whether the network is unblocked or network transmission quality, is the network technician commonly used detection network command, most friends to
Http://www.isi.edu/nsnam/ns/tutorial/
1. The following table shows the approximate ing between ns2-and TCP/IP and OSI Layer-7 network structures (this table is very helpful)
TCP
NS2.
OSI
Application Layer
Application
I. ping Command principle and working mechanism
• The ping command is generally used to detect network connectivity and network latency. The larger the value is, the slower the PING (PacketInternet Grope) and the Internet package Explorer are used
1) how to view the port opened on the local machine:
Run the netstat-An command to view details! Next, stat has some English letters. Let me briefly explain what these English letters represent ~
Listen: listens for connection requests from remote
In LINUX, prohibit the use of the ping command from entering the Linux system as root, then, edit the file icmp_echo_ignore_allvi/proc/sys/net/ipv4/icmp_echo_ignore_all and change the value to 1. then, an error is displayed when the PING value is
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.