免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2483 | 回复: 5
打印 上一主题 下一主题

ping 时出现request time out 和destination is unreachable [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-26 07:55 |只看该作者 |倒序浏览
ping 时出现request time out 和destination is unreachable有什么区别马?

论坛徽章:
0
2 [报告]
发表于 2003-12-26 08:46 |只看该作者

ping 时出现request time out 和destination is unreachable

request time out  是指icmp包发出后,长时间没有回应,所以会产生request time out。一般是ping 了一台网络中不存在的主机。

destination is unreachable 或 destination port unreachable 一般是收到了目标主机或中间路由器回应的端口或目标主机不可达icmp包。
如你ping一台用iptables封了icmp包的主机且用了-j REJECT 就会出现destination port unreachable 的信息,这是目标主机给的回应。

两者主要的区别是看目标主机或中间路由器是不是给了icmp不可达的回应。

论坛徽章:
0
3 [报告]
发表于 2003-12-26 11:23 |只看该作者

ping 时出现request time out 和destination is unreachable

MIRROR又是做什么的呢?请指教!

论坛徽章:
0
4 [报告]
发表于 2003-12-26 13:10 |只看该作者

ping 时出现request time out 和destination is unreachable

原帖由 "eagerlinuxer" 发表:
request time out  是指icmp包发出后,长时间没有回应,所以会产生request time out。一般是ping 了一台网络中不存在的主机。

destination is unreachable 或 destination port unreachable 一般是收到了目标主机..........


说反了吧.
request time out是因为丢包,(说明最后一跳是可以送达的(但是不一定正确)所以不会返回不可达消息)
destination is unreachable是因为对方主机不存在(因为最后一跳无法送达,所以返回不可达消息)
network is unreachable是因为路径中的某一跳因为缺乏路由项而无法执行.

论坛徽章:
0
5 [报告]
发表于 2003-12-29 00:48 |只看该作者

ping 时出现request time out 和destination is unreachable

原帖由 "JohnBull" 发表:


说反了吧.
request time out是因为丢包,(说明最后一跳是可以送达的(但是不一定正确)所以不会返回不可达消息)
destination is unreachable是因为对方主机不存在(因为最后一跳无法送达,所以返回不可达消息)
n..........


没有说反,你可以试一下,ping一台不存在的主机,看看是不是显示request time out,也就是ping发出的icmp(echo request)包没有得到任何的icmp(echo reply或destination unreachable)回应而超时。

而ping时显示destination unreachable则说明源主机收到了中间路由器或目标主机反回的icmp(destination unreachable)包。

查了一下“TCP/IP详解“一书,icmp类型3(destination unreachable)下还有0~15个代码,0--网络不可达  1--主机不可达  2--协议不可达  3--端口不可达  等等,我就不一个个写了:)

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
6 [报告]
发表于 2003-12-29 07:28 |只看该作者

ping 时出现request time out 和destination is unreachable

request time out 有很多原因,主機不存在是其一。
若 icmp 單純被 ignore 或 drop 掉而非 reject ,也有可能得到 request time out ...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP