如果远程设备同时执行 ping 操作(在 LAN 上),则 ping 速度较慢,但​​速度很快

如果远程设备同时执行 ping 操作(在 LAN 上),则 ping 速度较慢,但​​速度很快

我遇到一个奇怪的问题。

我有两个设备:

  • A)Ubuntu 14.04,x64 计算机 - 192.168.1.42
  • )带有 Ubuntu 14.04 (Odroid XU4) 的嵌入式 ARM 计算机 - 192.168.1.60

测试:

  • A和B通过同一路由器上的WiFi连接
  • 从 B 到 A 的 Ping 速度很快(< 10ms)
  • 从 A 到 B 的 Ping 速度很慢(> 100 毫秒)
  • 如果 B 同时 ping A(< 10 毫秒),则从 A 到 B 的 ping 很快;如果 B 停止 ping A(约 5 秒后),则从 A 到 B 的 ping 会再次上升

我该如何调试它?我怎样才能获得较低的 ping 值?

alexis@alexis:~/$ ping 192.168.1.60
PING 192.168.1.60 (192.168.1.60) 56(84) bytes of data.
64 bytes from 192.168.1.60: icmp_seq=1 ttl=64 time=128 ms
64 bytes from 192.168.1.60: icmp_seq=2 ttl=64 time=151 ms
64 bytes from 192.168.1.60: icmp_seq=3 ttl=64 time=181 ms
64 bytes from 192.168.1.60: icmp_seq=4 ttl=64 time=199 ms
64 bytes from 192.168.1.60: icmp_seq=5 ttl=64 time=123 ms
64 bytes from 192.168.1.60: icmp_seq=6 ttl=64 time=151 ms
64 bytes from 192.168.1.60: icmp_seq=7 ttl=64 time=186 ms
64 bytes from 192.168.1.60: icmp_seq=8 ttl=64 time=195 ms
64 bytes from 192.168.1.60: icmp_seq=9 ttl=64 time=117 ms <-- Start pinging from B to A
64 bytes from 192.168.1.60: icmp_seq=10 ttl=64 time=6.12 ms
64 bytes from 192.168.1.60: icmp_seq=11 ttl=64 time=5.76 ms
64 bytes from 192.168.1.60: icmp_seq=12 ttl=64 time=6.20 ms
64 bytes from 192.168.1.60: icmp_seq=13 ttl=64 time=10.8 ms
64 bytes from 192.168.1.60: icmp_seq=14 ttl=64 time=5.72 ms
64 bytes from 192.168.1.60: icmp_seq=15 ttl=64 time=9.90 ms
64 bytes from 192.168.1.60: icmp_seq=16 ttl=64 time=7.54 ms <-- Stop pinging from B to A
64 bytes from 192.168.1.60: icmp_seq=17 ttl=64 time=5.96 ms
64 bytes from 192.168.1.60: icmp_seq=18 ttl=64 time=5.80 ms
64 bytes from 192.168.1.60: icmp_seq=19 ttl=64 time=13.6 ms
64 bytes from 192.168.1.60: icmp_seq=20 ttl=64 time=158 ms
64 bytes from 192.168.1.60: icmp_seq=21 ttl=64 time=281 ms
64 bytes from 192.168.1.60: icmp_seq=22 ttl=64 time=202 ms
64 bytes from 192.168.1.60: icmp_seq=23 ttl=64 time=124 ms
64 bytes from 192.168.1.60: icmp_seq=24 ttl=64 time=147 ms
64 bytes from 192.168.1.60: icmp_seq=25 ttl=64 time=171 ms
--- 192.168.1.60 ping statistics ---
25 packets transmitted, 25 received, 0% packet loss, time 24020ms
rtt min/avg/max/mdev = 5.726/103.973/281.720/84.831 ms

相关内容