The ping command seems to be inscrutable. It seems to be a command that the master of the computer can do. In fact, this is not the case. Xiaobian today takes everyone to reveal the ping command.
ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [ ,null,null,3],-j computer-list] │ [-k computer-list] [-w timeout] destination-list
Options:
-t Ping the specified host until stopped.To see statistics and continue - type Control-Break;To stop - type Control-C.
Never ping the local host until you press Control-C.
There are no special tricks for this feature, but it can be used with other parameters and will be mentioned below.
-a Resolve addresses to hostnames.
Analyze the name of the computer NetBios.
Example: C:\\>ping -a 192.168.1.21
Pinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data:
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Reply from 192.168.1.21: bytes=32 time< ;10ms TTL=254
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Ping statistics for 192.168.1.21:
Packets: Sent = 4 , Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
From above The computer NetBios that knows the IP address of 192.168.1.21 is called iceblood.yofor.com.
-n count Number of echo requests to send.
Send the number of Echo packets specified by count.
By default, only four packets are sent. This command can be used to define the number of packets sent. It is useful for measuring network speed. For example, I want to test the return of sending 50 packets. What is the average time, the fastest time, and the slowest time can be known by:
C:\\>ping -n 50 202.103.96.68
Pinging 202.103. 96.68 with 32 bytes of data:
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241< Br>
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Request timed out.
………………
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Ping statistics for 202.103 .96.68:
Packets: Sent = 50, Received = 48, Lost = 2 (4% loss), Approximate round trip in milli-seconds:< Br>
Minimum = 40ms, Maximum = 51ms, Average = 46ms
From the above I can know that in the process of sending 50 packets to 202.103.96.68, 48 are returned, two of which For the unknown reason, the return speed of these 48 packets is 40ms, the slowest is 51ms, and the average speed is 46ms.
-l size Send buffer size.
Defines the echo packet size.
In the default case, the size of the packet sent by Windows ping is 32byt. We can also define its own size, but there is a size limit, which is only 65500byt. Maybe someone will ask why. To limit to 65500byt, because the Windows series of systems have a security hole (and perhaps other systems) is that when the packet sent to the other party is greater than or equal to 65532, the other party is very likely to block the machine, so Microsoft to solve This security vulnerability then limits the size of the ping packet. Although Microsoft has made this limitation, this parameter is still very powerful with other parameters. For example, we can implement an aggressive command by matching the -t parameter: (The following is dangerous, only use For testing, do not apply it to other people's machines, otherwise you will be at your own risk.)
C:\\>ping -l 65500 -t 192.168.1.21
Pinging 192.168.1.21 with 65500 bytes of Data:
Reply from 192.168.1.21: bytes=65500 time<10ms TTL=254
Reply from 192.168.1.21: bytes=65500 time<10ms TTL=254
………………
The win2008 system is the only one that is comparable to the security and stability of the 2003 syst
Recently, many users are reporting that in the process of using the computer, the black screen autom
Recently, many users have reported that the 0xc000000f error code always appears every time the comp
How does the computer boot prompt exit pxe rom? I believe that everyone has encountered a situation
DOS commands are used in large Microsoft systems to master
Windows netstat view port, process occupancy
Windows script setting multiple IP
Windows system Your account has been disabled. Please consult the system administrator
The reason why the system suddenly encounters a restart during work
Windows operating system underlying dos instructions
Configuring tornado in windows environment
How to open the Telnet service
How to close the red dot of WeChat friends circle?
List the ten major considerations of Vista firewall
[Figure] Win10 preview version 10061 get started experience map tour
Win7 how to modify the network data buffer to improve the speed of the Internet
Let Win7 sleep recovery when the network
How does Win10 make the taskbar appear on the left side of the screen
Using the batch to quickly delete the folder
Win 2003 under the master to improve the permissions of the
What should I do if Win7/Win8.1 fails to upgrade Win10? Upgrade Win10 installation failure solution
How to view the computer's graphics card configuration parameters in Win8
Three ways to resolve IIS 6 directory check security vulnerabilities