Ping Command to test the network speed

Source: Internet
Author: User


Using the ping command to test the network speed is the basis of this method. Let's first take a look at: network speed test-Ping Command help instructions www.2cto.com C: \ Documents and Settings \ Administrator> ping /? Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-I TTL] [-v TOS] [-r count] [- s count] [[-j host-list] | [-k host-list] [-w timeout] [-R] [-S srcaddr] [-4] [- 6] target_name Options: -tPing the specified host until stopped. to see statistics and continue-type Control-Break; To stop-type Control-C. -aResolve addresses to hostnames. -n count Number of echo requests to send. -l sizeSend buffer s Ize. -fSet Don't Fragment flag in packet (IPv4-only ). -I TTLTime To Live. -v TOSType Of Service (IPv4-only ). -r count Record route for count hops (IPv4-only ). -s count Timestamp for count hops (IPv4-only ). -j host-list Loose source route along host-list (IPv4-only ). -k host-list Strict source route along host-list (IPv4-only ). -w timeout Timeout in milliseconds to wait for each reply. -RTrace roun D-trip path (IPv6-only ). -S srcaddr Source address to use (IPv6-only ). -4 Force using limit 4.-6 Force using limit 6. network speed test-Ping command details use ping to test the computer name and computer ip address, verify the connection with the remote computer, verify the connection to one or more remote computers by sending icmp echo data packets to the computer and listening for echo response data packets. This command can only be used after the TCP/IP protocol is installed. Open your ms-dos(open the Startup Program ms-dos.pdf, and use win2000's example to open cmd.exe (this is ms-dos in win2000, start → program → attachment → "command prompt" or start → search for files or folders → "fill in cmd.exe ", find it and double-click it to run it .) Let's take a look at his command: ping [-t] [-a] [-n count] [-l length] [-f] [-I ttl] [-v tos] [-r count] [- s count] [[-j computer-list] | [-k computer-list] [-w timeout] destination-list parameter-t ping the specified computer until it is interrupted. Ctrl + c stop-a resolve the address to the computer name. Example: c :\> ping-a 127.0.0.1 pinging china-hacker [127.0.0.1] with 32 bytes of data :( china-hacker is his computer name) reply from 127.0.0.1: bytes = 32 time <10 ms ttl = 128 reply from 127.0.0.1: bytes = 32 time <10 ms ttl = 128 reply from 127.0.0.1: bytes = 32 time <10 ms ttl = 128 reply from 127.0.0.1: bytes = 32 time <10 ms ttl = 128 ping statistics for 127.0.0.1: packets: sent = 4, received = 4, lost = 0 (0% loss), approximate round trip t Imes in milli-seconds: minimum = 0 ms, maximum = 0 ms, average = 0 ms-n count the number of echo data packets specified by count. The default value is 4. -L length sends the echo data packet containing the data volume specified by length. The default value is 32 bytes. The maximum value is 65,527. -F sends the "Do Not segment" flag in the data packet. Packets are not segmented by the gateway on the route. -I ttl: Set the ttl field to the value specified by ttl. -V tos: Set the "service type" field to the value specified by tos. -R count records the routes of outgoing and returned packets in the "Record Route" field. Count can specify at least one computer and a maximum of nine computers. -S count specifies the timestamp of the number of hops specified by count. -J computer-list uses the computer list specified by computer-list to route data packets. The maximum number of consecutive computers that can be separated by the Intermediate Gateway (routing sparse source) ip addresses is 9. -K computer-list uses the computer list specified by computer-list to route data packets. The maximum number of ip addresses allowed by consecutive computers to be separated by intermediate gateways (strictly source routes) is 9. -W timeout specifies the timeout interval, in milliseconds. Destination-list specifies the remote computer to be pinged. C: \> ping ds.internic.net pinging ds.internic.net [192.20.239.132] with 32 bytes of data: (192.20.239.132 his IP address) reply from 192.20.239.132: bytes = 32 time = 101 ms ttl = 243 reply from 192.20.239.132: bytes = 32 time = 100 ms ttl = 243 reply from 192.20.239.132: bytes = 32 time = 120 ms ttl = 243 reply from 192.20.239.132: bytes = 32 time = 120 ms ttl = 243 speed test -- Ping Command Format ping IP address-l number of bytes note: in the above command, l is the letter l, not the number 1, and the network speed is equal to ≈ (number of bytes sent/returned Between [millisecond]) K bytes, the above calculation result speed is byte, not what we usually call bit (bps), such as: C: \ Documents and Settings \ Administrator> ping 202.101.224.68-l 1000 Pinging failed with 1000 bytes of data: Reply from 202.101.224.68: bytes = 1000 time = 38 ms TTL = 251 Reply from 202.101.224.68: bytes = 1000 time = 38 ms TTL = 251 Reply from 202.101.224.68: bytes = 1000 time = 38 ms TTL = 251 Reply from 202.101.224.68: bytes = 1000 time = 38 ms TTL = 251 Ping statistic S for 202.101.224.68: Packets: Sent = 4, stored ED = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 38 ms, maximum = 38 ms, Average = 38 ms based on the above sending and return information, you can simply obtain the network speed to address 202.101.224.68: The network speed is equal to ≈ (number of bytes sent/return time [millisecond]) there are many methods to test the network speed of K-byte ≈ 1000/38 K-byte ≈ 26.32K. Using the ping command is a typical and practical skill. I hope you can learn and master it, test your network speed quickly.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.