ChinaUnix.net
相关文章推荐:

ping的实现原理

谁能详细说下ping原理? 局域网内2机器用HAB连起来,如果2机器IP不在1个网段内就ping不通,如果在1个网段就能ping通,谁能详细说下原理

by ramboran - 网络技术 - 2005-01-07 10:57:38 阅读(1776) 回复(2)

相关讨论

对于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...

by sense5 - 网络技术文档中心 - 2007-05-07 16:35:39 阅读(898) 回复(0)

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

by 剑心通明 - php文档中心 - 2008-04-18 08:30:25 阅读(773) 回复(0)

// 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

by windlike - php文档中心 - 2006-08-24 15:26:21 阅读(781) 回复(0)

[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"> pingTest onload="var endTime=new Date(); var tt = (endTime.getMilliseconds()- window.startTime.getMilliseconds()); if(tt<0...

by eye_onme - Web开发 - 2006-07-08 08:53:37 阅读(2197) 回复(0)

#!/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...

by alexnetwork - Python文档中心 - 2009-03-18 13:13:24 阅读(1796) 回复(0)

大型的ISP,网络维护的工作中一般都有一项固定任务:测算几台路由器之间时延和丢包率 本文介绍了利用snmp 实现remote ping的技术“粗节” http://security.zz.ha.cn/rpsnmp.pdf

by bs7799-2 - 网络技术 - 2005-01-28 16:55:46 阅读(1735) 回复(0)

几个月前看到某网游公司的服务端监控程序有一个功能,从服务器反ping各客户端,进而了解各客户端到服务端的ping高低,以及客户端大致的区域分布情况,于是有想法自己用PYTHON也写一个。今天网上查到一个PYTHON实现ping的源码,看了一下,很不错。 重点是发现别人写的代码格式很优美,我的相比简直太差了。哎,努力学习。 先转贴别人的源码,这几天有空后再根据这个改进,逐步达到我的设计目标。 代码我在python 2.6 elicpse wind...

by hawkli - Python文档中心 - 2009-07-23 14:52:45 阅读(2729) 回复(0)

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...

by kumwolf - Java文档中心 - 2008-11-10 21:23:10 阅读(907) 回复(0)

#!/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...

by atyu30 - BSD文档中心 - 2007-11-11 00:11:35 阅读(1176) 回复(0)

因为特殊的原因,无法直接用SHELL的方式来实现ping与TRACEROUTE。 请教大家有没有好的方法?

by amybb - C/C++ - 2004-09-13 21:07:30 阅读(1415) 回复(1)