由于配置问题或设备故障导致数据包丢失?

由于配置问题或设备故障导致数据包丢失?

更换 ISP 后,我开始遇到数据包丢失问题,不幸的是,这影响了我的日常浏览和工作活动。典型的 ping 会话到谷歌如下所示:(如您所见,有很多超时,总体上大约为 10-20%)

Reply from 209.85.153.104: bytes=32 time=23ms TTL=56
Reply from 209.85.153.104: bytes=32 time=35ms TTL=56
Reply from 209.85.153.104: bytes=32 time=64ms TTL=56
Reply from 209.85.153.104: bytes=32 time=21ms TTL=56
Reply from 209.85.153.104: bytes=32 time=19ms TTL=56
Reply from 209.85.153.104: bytes=32 time=19ms TTL=56
Reply from 209.85.153.104: bytes=32 time=17ms TTL=56
Request timed out.
Reply from 209.85.153.104: bytes=32 time=28ms TTL=56
Request timed out.
Reply from 209.85.153.104: bytes=32 time=31ms TTL=56
Reply from 209.85.153.104: bytes=32 time=23ms TTL=56
Reply from 209.85.153.104: bytes=32 time=41ms TTL=56
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Reply from 209.85.153.104: bytes=32 time=27ms TTL=56
Reply from 209.85.153.104: bytes=32 time=80ms TTL=56
Reply from 209.85.153.104: bytes=32 time=18ms TTL=56
Reply from 209.85.153.104: bytes=32 time=22ms TTL=56
Reply from 209.85.153.104: bytes=32 time=81ms TTL=56
Reply from 209.85.153.104: bytes=32 time=31ms TTL=56
Reply from 209.85.153.104: bytes=32 time=22ms TTL=56
Reply from 209.85.153.104: bytes=32 time=55ms TTL=56
Request timed out.
Request timed out.
Reply from 209.85.153.104: bytes=32 time=81ms TTL=56
Reply from 209.85.153.104: bytes=32 time=45ms TTL=56
Reply from 209.85.153.104: bytes=32 time=76ms TTL=56
Reply from 209.85.153.104: bytes=32 time=47ms TTL=56
Reply from 209.85.153.104: bytes=32 time=22ms TTL=56
Reply from 209.85.153.104: bytes=32 time=27ms TTL=56
Reply from 209.85.153.104: bytes=32 time=73ms TTL=56
Request timed out.
Reply from 209.85.153.104: bytes=32 time=24ms TTL=56
Reply from 209.85.153.104: bytes=32 time=33ms TTL=56
Request timed out.
Reply from 209.85.153.104: bytes=32 time=38ms TTL=56
Reply from 209.85.153.104: bytes=32 time=22ms TTL=56
Reply from 209.85.153.104: bytes=32 time=16ms TTL=56
Request timed out.
Reply from 209.85.153.104: bytes=32 time=82ms TTL=56
Reply from 209.85.153.104: bytes=32 time=31ms TTL=56
Reply from 209.85.153.104: bytes=32 time=26ms TTL=56
Request timed out.

我运行的设置是:无线路由器位于建筑物顶部,它发出一条以太网电缆连接到我的机器。对于连接,我使用 WAN Miniport (PPPOE)。

我的问题是:这些丢失是因为我这边的以太网卡配置错误造成的,还是 ISP 设置/硬件的问题?任何能帮助我确定问题的工具/建议都将不胜感激。

TIA,佐助

答案1

检查所有接口的速度和双工。尽可能手动设置。咨询您的 ISP 以获取他们的建议。设置自动/自动会导致此类问题。更改为固定速度和双工解决了该问题。

答案2

为了缩小范围,您可以对某个地方进行跟踪路由,并获取路由器的 IP 和路由器之后的第一个跳转。然后 ping 这两个 IP,看看您与路由器的连接是否比路由器与下一个跳转的连接更可靠。如果是这样,您可以向 ISP 投诉。

NAT 环境中的示例:

$ /usr/sbin/tracepath 8.8.8.8
 1:  google-public-dns-a.google.com                        0.081ms pmtu 1500
 1:  10.x.x.x                                              1.369ms 
 1:  10.x.x.x                                              1.189ms 
 2:  192.168.1.1                                           4.319ms  <- Router in my house
 3:  188.xxx.80.1                                          7.047ms  <- Router at the ISP
 4:  82.xxx.192.5                                          7.815ms

相关内容