ping
the ping ( Packet Internet Groper ), Internet package Explorer, used to test the amount of network connection procedure . Ping is working in the TCP / IP network architecture in a service order application layer, mainly sent to a particular destination host ICMP ( Internet Control the Message Protocol Internet Message Control Protocol) Echo request packet, whether the purpose of the test stand up and Learn about its status .
Command format:
ping [ parameters ] [ host name or IP address ]
parameter:
-d use Socket 's SO_DEBUG function.
-f limit of detection. And quickly send a large number of network packets to a machine, and check the response.
-n output value only.
-q does not display any information transmitted packets, only the last result.
-r ignore Common the Routing the Table , data packets directly to the remote host. Check whether the network interface is usually the machine in question.
-R recording routing process.
-v detailed display during execution of instructions.
-c number: stops after a specified number of packets transmitted.
-i seconds: setting intervals of seconds to a network packet sent to a machine, to send a default value is one second.
-I network interfaces: network interface sends the specified data packet.
-l Front Loading: setting data packets before sending request information sent first.
-p template style: style template is provided to fill the data packet.
-s Bytes: number of data bytes, specified preset value sent is 56 , plus 8 bytes of ICMP header, a total 64ICMP data bytes.
-t survival value: Set the survival value of TTL size.
use:
Means for determining the network state and the respective external host;
Tracking and isolating hardware and software problems;
Test, evaluate and manage the network.
If the host is running and connected to a network, it responds to the echo signal.
Each echo request contains an Internet Protocol ( the IP ) and ICMP header, followed by a tim structure, and to fill the packet enough bytes.
The default is sent continuously until it receives the return signal to the interrupt request signal ( the Ctrl-C ).
ping command sends a second data packet and for each line of print in response to the received output.
ping command calculates round-trip time and signal ( information ) statistics packet loss, and displays a brief summary after completion.
ping command is received or when a timeout SIGINT end signal.
Host parameter is either a valid host name or Internet address.