为什么 ping 到 `1.1.1.1` 只需 3ms,而 ping 到 `8.8.8.8` 却要 26ms?

为什么 ping 到 `1.1.1.1` 只需 3ms,而 ping 到 `8.8.8.8` 却要 26ms?

为什么 ping to1.1.1.1只有 3ms 而 ping to8.8.8.8是 26ms?

PS C:\Users\0x90> ping 1.1.1.1

Pinging 1.1.1.1 with 32 bytes of data:
Reply from 1.1.1.1: bytes=32 time=3ms TTL=64
Reply from 1.1.1.1: bytes=32 time=4ms TTL=64
Reply from 1.1.1.1: bytes=32 time=3ms TTL=64

Ping statistics for 1.1.1.1:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 4ms, Average = 3ms
Control-C
PS C:\Users\0x90> ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=27ms TTL=55
Reply from 8.8.8.8: bytes=32 time=26ms TTL=55
Reply from 8.8.8.8: bytes=32 time=26ms TTL=55

Ping statistics for 8.8.8.8:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 26ms, Maximum = 27ms, Average = 26ms
Control-C

答案1

执行跟踪路由来确定您的计算机如何到达每个系统将大有裨益。不过这样做确实有道理 - 多个 DNS 服务器的整个想法就是为了冗余,因此将它们都放置在同一个位置(您期望获得相同的延迟)会降低它们的可靠性。

8.8.8.8 是 Google 的名称服务器之一,因此它距离您最近的距离,Googel 认为这是可行的 - 26ms 并不算远。

1.1.1.1 离您很近。此 IP 地址的“合法”所有者是 Cloudflare,他们还可能在同一城市(靠近或位于您的 ISP 内)连接良好的对等交换中部署了您可以访问的 DNS 服务器。

相关内容