为什么为什么我测那个PING的时
ping 时出现request time out 和destination is unreachable
request time out 是指icmp包发出后,长时间没有回应,所以会产生request time out。 一般是ping 了一台网络中不存在的主机。
一般是收到了目标主机或中间路由器回应的端口或目标主机不可达icmp包。
N&D ar!G6a*o如你ping一台用iptables封了icmp包的主机且用了-j REJECT 就会出现destination port unreachable 的信息,这是目标主机给的回应。 两者主要的区别是看目标主机或中间路由器是不是...全部
ping 时出现request time out 和destination is unreachable
request time out 是指icmp包发出后,长时间没有回应,所以会产生request time out。
一般是ping 了一台网络中不存在的主机。
一般是收到了目标主机或中间路由器回应的端口或目标主机不可达icmp包。
N&D ar!G6a*o如你ping一台用iptables封了icmp包的主机且用了-j REJECT 就会出现destination port unreachable 的信息,这是目标主机给的回应。
两者主要的区别是看目标主机或中间路由器是不是给了icmp不可达的回应
[quote:60883028f9="eagerlinuxer"]request time out 是指icmp包发出后,长时间没有回应,所以会产生request time out。
一般是ping 了一台网络中不存在的主机。TestAge 中国软件测试
destination is unreachable 或 destination port
request time out是因为丢包,(说明最后一跳是可以送达的(但是不一定正确)所以不会返回不可达消息)是因为对方主机不存在(因为最后一跳无法送达,所以返回不可达消息)TestAge 中国软件测试时代CV(Th9q2sV
network is unreachable是因为路径中的某一跳因为缺乏路由项而无法执行。
request time out是因为丢包,(说明最后一跳是可以送达的(但是不一定正确)所以不会返回不可达消息)destination is unreachable是因为对方主机不存在(因为最后一跳无法送达,所以返回不可达消息为什么都要说是最后一跳呢?其实都差不多的。
我觉得request time out 就是包已经发出去了,但是没收到确认包TestAge 中国软件测试时代)
distination is unreachable 就是你根本不能把包发出去还有一个network is unreachable 可能是你本地的网络设备有问题,比如ping 和localhost 都不通,你可以试一下,ping一台不存在的主机,看看是不是显示request time out,也就是ping发出的icmp(echo request)包没有得到任何的icmp(echo reply或destination unreachable)回应而超时。
&|0G|SS8x)h而ping时显示destination unreachable则说明源主机收到了中间路由器或目标主机反回的icmp(destination unreachable)包。
查了一下“TCP/IP详解“一书,icmp类型3(destination unreachable)下还有0~15个代码,0--网络不可达 1--主机不可达 2--协议不可达 3--端口不可达
request time out 有很多原因,主?C不存在是其一。
若 icmp ?渭?被 ignore 或 drop 掉而非 reject ,也有可能得到 request time out 。。。
文章来源于软件测试时代
。收起