Network connection test time tracert and other common commands

Source: Internet
Author: User

Network connection test time tracert and other common commands Background: The project is about to be launched, and the customer's test environment is always said to be slow (13 s response ). However, the local release is less than ms, so the project is released to another server for testing. The response time of the test result is less than S. Therefore, I began to wonder if the server performance problem was solved for the test environment, so I logged on to the test server to test the problem. Open a browser on the test server and check that the response time is less than Ms. In this way, you can confirm that the server executes the program normally. The hypothetical problem occurs when the customer connects to the server. So I thought of the Tracert command to test the time required to connect to the server. Sort out some information from others' blogs for learning. By the way, the ping command can be used to test the computer name and the ip address of the computer to 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. 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. For example, ping-a 112.64.16.22: Ping 112.64.16.22 with 32 bytes of data: reply from 112.64.16.22: byte = 32 time = 3 ms TTL = 52 reply from 112.64.16.22: byte = 32 time = 4 ms TTL = 52 reply from 112.64.16.22: byte = 32 time = 3 ms TTL = 52 reply from 112.64.16.22: byte = 32 time = 2 ms TTL = 52 112.64.16.22 Ping statistics: Packet: Sent = 4, received = 4, lost = 0 (0% lost ), estimated round-trip time (in milliseconds): Minimum = 2 ms, maximum = 4 ms, average = 3 ms-n count sends count specified echo packets. The default value is 4. For example, ping-n 5 112.64.16.22 can also directly enter ping and press enter on the doscommand line to view help. Tracert explains how to use the Tracert command to display the path through which data packets arrive at the target host and the time when data packets arrive at each node. The command function is similar to the Ping command, but the information obtained is much more detailed than the Ping command. It displays all the paths of data packets, the IP addresses of nodes, and the time spent. This command is applicable to large networks. Command Format: tracert IP address or host name [-d] [-h maximumhops] [-j host_list] [-w timeout] parameter meaning:-d does not parse the name of the target host; -h maximum_hops: specifies the maximum number of hops to search for the target address.-j host_list releases the source route according to the address in the host list.-w timeout specifies the timeout interval, the default time unit of the program is milliseconds. For example, if you want to know the detailed transfer path information between your computer and the target host www.cce.com.cn, you can enter tracertwww.ccidnet.com in MS-DOS mode. If we add some parameters after the Tracert command, we can also detect other more detailed information. For example, we can use the-d parameter to specify the path information of the host when the program tracks the host, the domain name of the target host is also resolved. The Netstat command helps the network administrator understand the overall network usage. It displays the details of the currently active network connection, such as network connection, route table, and network interface information. It can calculate which network connections are currently running. Using command parameters, the command can display the usage status of all protocols, including TCP, UDP, and IP. In addition, you can select a specific protocol and view its specific information, the port numbers of all hosts and Detailed Routing Information of the current host are displayed. Command Format: netstat [-r] [-s] [-n] [-a] parameter meaning:-r displays the content of the local route table; -s displays the usage status of each Protocol (including TCP, UDP, and IP);-n displays the address and port in a digital table;-a displays the port numbers of all hosts. Ipconfig is a common command for debugging computer networks. Generally, you can use Ipconfig to display the IP addresses, subnet masks, and default gateways of network adapters in your computer. In fact, this is only the use of Ipconfig without parameters, and its use with parameters is quite good in network applications. 1. parameter description 1./all displays the complete TCP/IP configuration information for all network adapters (NIC, dial-up connections, etc. Compared with the usage without parameters, it provides more information, such as whether the IP address is dynamically allocated and the physical address of the NIC is displayed. 2. The/batch file name writes the information displayed in Ipconfig to the specified file in text format. This parameter can be used to back up the network configuration of the local machine. 3./release_all and/release N release the dynamic IP addresses allocated by DHCP for all (or specified) adapters. This parameter is applicable to non-static Nic IP addresses. It is usually used in combination with the following renew parameter. 4. ipconfig/renew_all or ipconfig/renew N re-allocates IP addresses for all (or specified) adapters. This parameter is also applicable only to non-static Nic IP addresses. It is usually used in combination with the preceding release parameter.

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.