对于ping,发送的是一个echo request包,类型为 8 0,当被ping者接到相关icmp包的时候,根据实际情况,逻辑是,就发回 reply 0 0,逻辑否,则根据具体情况发出一些其他的信息,总结起来的说,是看目的是否能及时的把icmp reply包送回到源,一当路径上的某个节点把reply包给deny掉了,就肯定ping不通了,比如会是time out, 下面是对ping的一些debug 输出,debug ip pa de 100,access-list 100 permit icmp any any, 1、这个是ping...
pinging "; $to_ping = "dtheatre.com"; $count = 3; $psize = 65; echo " Please be patient, this can take a few moments...\n "; flush(); while (1) { ?> 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_547881.html
// created by joe lumbroso // see some other good php3 scripts // goto http://www.dtheatre.com/scripts echo "pinging "; $to_ping = "google.com"; $count = 3; $psize = 65; echo " Please be patient, this can take a few moments...\n "; flush(); while (1) { ?> 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1222/showart_159990.html
[code]
ping落伍者'); window.startTime=new Date(); var imgSrc='http://www.im286.com/images/im286/logo.gif'+'?eye_onme='+Math.random(); document.getElementById('mypingTest').src=imgSrc">
#!/usr/bin/env python """ping.py ping.py uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. Copyright (C) 2004 - Lars Strand ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at you...
大型的ISP,网络维护的工作中一般都有一项固定任务:测算几台路由器之间时延和丢包率 本文介绍了利用snmp 实现remote ping的技术“粗节” http://security.zz.ha.cn/rpsnmp.pdf
几个月前看到某网游公司的服务端监控程序有一个功能,从服务器反ping各客户端,进而了解各客户端到服务端的ping高低,以及客户端大致的区域分布情况,于是有想法自己用PYTHON也写一个。今天网上查到一个PYTHON实现ping的源码,看了一下,很不错。 重点是发现别人写的代码格式很优美,我的相比简直太差了。哎,努力学习。 先转贴别人的源码,这几天有空后再根据这个改进,逐步达到我的设计目标。 代码我在python 2.6 elicpse wind...
import java.io.*; import java.net.*; import java.nio.channels.*; import java.util.*; import java.util.regex.*; public class ping { static int DAYTIME_PORT = 13; static int port = DAYTIME_PORT; static class Target { InetSocketAddress address; SocketChannel channel; Exception failure; long connectStart; long connectFinish = 0; boolean shown...
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- """ping.py ping.py uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. Copyright (C) 2004 - Lars Strand This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...