Home > Common Problem > body text

What is the ping port command?

藏色散人
Release: 2020-03-11 09:21:32
Original
30311 people have browsed it

What is the ping port command?

What is the ping port command?

The ping command cannot test the port. Ping only tests the network connection status and packet sending and receiving status.

Format: ping IP address or host name [-t] [-a] [-n count] [-l size]

Parameter meaning:

-tNo Continuously send data to the target host;

-a displays the network address of the target host in IP address format;

-n count specifies how many times to ping, the specific number is specified by count;

-l size Specifies the size of the packet sent to the target host.

Example: ping 192.168.0.1 -t to test 192.168.0.1 non-stop, press ctrl c to stop the test port, use telnet IP address or host name port, use tcp protocol, for example, telnet 192.168.0.1 80 to test 192.168. 0.1 port 80.

Related introduction:

PING (Packet Internet Groper), Internet packet explorer, a program used to test network connection volume. Ping is a service command that works at the application layer in the TCP/IP network architecture. It mainly sends ICMP (Internet Control Message Protocol) Echo request messages to a specific destination host to test whether the destination station is reachable and Learn about its status.

Ping is used to determine whether the local host can successfully exchange (send and receive) data packets with another host. Based on the returned information, you can infer whether the TCP/IP parameters are set correctly and whether the operation is normal. , whether the network is smooth, etc. The Ping command can do the following:

① Verify connections to one or more remote computers by sending ICMP (Internet Control Message Protocol) echo packets to the computer and listening for echo reply packets .

②Wait up to one second for each data packet sent.

③Print the number of transmitted and received data packets.

It should be noted that successful Ping does not necessarily mean that the TCP/IP configuration is correct. It may be necessary to perform a large number of data packet exchanges between the local host and the remote host to ensure the correctness of the TCP/IP configuration. . If the ping is successful but the network is still unavailable, the problem is likely to lie in the software configuration of the network system. A successful ping only ensures that there is a connected physical path between the current host and the destination host.

The above is the detailed content of What is the ping port command?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template