ping(PacketInternetGroper)是一种因特网包探索器,用于测试网络连接量的程序。
Ping是工作在TCP/IP网络体系结构中应用层的一个服务命令,主要是向特定的目的主机发送ICMP(InternetControlMessageProtocol因特网报文控制协议)Echo请求报文,测试目的站是否可达及了解其有关状态
w后面单位为秒。
-w deadline
Specify a timeout, in seconds, before ping exits regardless of how many packets have been sent or received. In this case ping does not stop after count packet
are sent, it waits either for deadline expire or until count probes are answered or for some error notification from network.
-W timeout
Time to wait for a response, in seconds. The option affects only timeout in absence of any responses, otherwise ping waits for two RTTs.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)