- 论坛徽章:
- 1
|
本帖最后由 hover_sky 于 2010-12-07 11:52 编辑
环境:
3个在不同机房的装有debian系统的服务器。
服务器A: 121.*.*.*
服务器B: 61.*.*.*
服务器C:和A在同一网段
测试:
在B上
执行tcpdump host 121.*.*.* and icmp
在A上
执行ping -c 30 61.*.*.*
在C上
执行ping -c 30 61.*.*.*
显示的结果:
在B上:
ICMP echo request, id 32372, seq 1, length 64
ICMP echo reply, id 32372, seq 1, length 64
。。。。
ICMP echo reply, id 32372, seq 30, length 64
ICMP echo request, id 49686, seq 0, length 37
也就是说,B已经收到了所有来自A的ping请求,并且做了返回。
在C上:
一切正常,没有丢包。(ping过程和在A上几乎同时间)
在A上:
- # ping -c 30 61.*.*.*
- PING 61.*.*.* (61.*.*.*) 56(84) bytes of data.
- 64 bytes from 61.*.*.*: icmp_seq=3 ttl=56 time=22.0 ms
- 64 bytes from 61.*.*.*: icmp_seq=4 ttl=56 time=21.8 ms
- 64 bytes from 61.*.*.*: icmp_seq=6 ttl=56 time=21.8 ms
- 64 bytes from 61.*.*.*: icmp_seq=8 ttl=56 time=21.9 ms
- 64 bytes from 61.*.*.*: icmp_seq=9 ttl=56 time=21.9 ms
- 64 bytes from 61.*.*.*: icmp_seq=10 ttl=56 time=21.9 ms
- 64 bytes from 61.*.*.*: icmp_seq=11 ttl=56 time=22.0 ms
- 64 bytes from 61.*.*.*: icmp_seq=12 ttl=56 time=21.9 ms
- 64 bytes from 61.*.*.*: icmp_seq=13 ttl=56 time=21.8 ms
- 64 bytes from 61.*.*.*: icmp_seq=17 ttl=56 time=21.9 ms
- 64 bytes from 61.*.*.*: icmp_seq=18 ttl=56 time=22.0 ms
- 64 bytes from 61.*.*.*: icmp_seq=24 ttl=56 time=21.8 ms
- 64 bytes from 61.*.*.*: icmp_seq=27 ttl=56 time=21.8 ms
- 64 bytes from 61.*.*.*: icmp_seq=30 ttl=56 time=22.0 ms
- --- 61.130.97.36 ping statistics ---
- 30 packets transmitted, 14 received, 53% packet loss, time 29012ms
- rtt min/avg/max/mdev = 21.858/21.952/22.092/0.205 ms
复制代码 出现这种情况的可能性分析:1,A收到了数据,但没有成功显示? 2,A没有收到B发出的返回数据。
请问:
请问如何继续排查是什么原因导致在A进行ping出现丢包,而同一网段的C却没有丢包。谢谢!
经过多次测试,发现即使在同一网段的其他主机ping B出现丢包,在A ping B的丢包率总是比其他主机的大很多。
另外,有时候A ping B 是没有丢包的,很难捉摸 |
|