Compared with Windows network commands, what are the differences?

  

What are the network commands of Windows under the network? What are the functions of these? Basically, these are things users need to understand. Explain it for everyone today. The network tools under Windows use the common commands ping, ipconfig, nslookup, netstat, tracert, ftp, telnet, nbtstat, route.

Let's take a look at their usage:

Ping

The naming of Ping originates from the pulse that is emitted when the submarine sonar detects the target. The pulse will reflect back when it encounters the target. This also properly reveals the function of Ping. If you are browsing a webpage later If the response is too late, the user can test whether the host can reach by issuing a tentative IP detection packet (equivalent to a sonar pulse) to the host. At the same time, Ping returns a rich data, so that the user can understand The speed at which the local machine reaches the host's host and the IP address of the host.

Format: Ping destination address [parameter 1] [parameter 2] [parameter 3]

where destination address is The address of the detected host can be either a domain name or an IP address.

Parameters:

-t: Continue Ping until the user terminates.

-a: Parse Host address.

-n value: The number of probe packets sent. The default value is 4.

-l value: send buffer size.

-f: set the split packet flag.

-I value: packet lifetime, which determines the distance the IP packet travels on the network.

-v: Service Type.

Example: pingwww.baidu.com

Network Statistics Tool NetStat

Function: Display Protocol Statistics and Current TCP/IP network connection, users can get very detailed statistics.

Format: Netstat[Parameter 1][Parameter 2][Parameter 3]

Parameters:

-a: Display all network connections and listening ports.

-e: Display Ethernet statistics.

-n: Display addresses and ports in numeric format.

-p: Display The specified TCP or UDP protocol connection.

-r: Display the routing table.

-s: Display the statistics of each protocol. The protocol can be TCP, UDP, IP.

interval: Display statistics repeatedly according to the specified interval.

Example: As an exercise, you can enter the command: Netstat-r

Traceroute tool TraceRT(Trace Route)

Function: View The route from the local host to the target host. This is a good tool for understanding the network principle and working process. By showing each host address and the round trip time from the local host to the target host, you can understand how a packet is. The network is transmitted to the target host through the loop, and it can analyze which part of the network the blocking occurs.

There is a field in the IP packet (TTL To Live) that determines the packet can be uploaded on the network. The distance sent, when the data packet is sent, the initial value is usually preset. When the packet encounters a host (after a route), the value of the field is decremented by one, and then sent to the next adjacent host until its value is Zero will stop transmission. If it reaches the destination within the range of TTL value, the transmission will succeed. Otherwise, it must be retransmitted. This can prevent a packet from being transmitted on the network without restriction, causing network congestion. The TraceRT tool sends the probe packet. Get the address and round trip time of each host that passes through.

Copyright © Windows knowledge All Rights Reserved