开发者社区> 问答> 正文

美西服务器的寻址问题

人生不如梦 2016-09-12 13:27:24 1456

想咨询一下美西服务器的寻址问题,直接ping谷歌的地址,要149ms,通过aws服务器寻址的ip 172.217.3.164,只需要20ms。想问一下,为什么阿里云服务器寻找的服务器效率如此低?怎么能提升这方面的效率?是不是/etc/resolv.conf中预设的域名服务器,无法分配最近的ip?需要把这两个域名更换掉吗?

阿里云的一台美西服务器:
[root@iZu1h3v1q2lZ etc]# ping www.google.com
PING www.google.com (216.58.197.100) 56(84) bytes of data.
64 bytes from hkg12s01-in-f100.1e100.net (216.58.197.100): icmp_seq=1 ttl=46 time=149 ms
64 bytes from hkg12s01-in-f4.1e100.net (216.58.197.100): icmp_seq=2 ttl=46 time=149 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 149.807/149.834/149.862/0.388 ms
[root@iZu1h3v1q2lZ etc]# ping 172.217.3.164
PING 172.217.3.164 (172.217.3.164) 56(84) bytes of data.
64 bytes from 172.217.3.164: icmp_seq=1 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=2 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=3 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=4 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=5 ttl=52 time=19.7 ms

[root@iZu1h3v1q2lZ etc]# cat /etc/resolv.conf
options timeout:1 attempts:1 rotate
nameserver 10.143.22.118
nameserver 10.143.22.116

aws的一台服务器:
[ec2-user@ip-172-31-33-129 ~]$ ping www.google.com
PING www.google.com (172.217.3.164) 56(84) bytes of data.
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=1 ttl=47 time=8.48 ms
64 bytes from sea15s11-in-f4.1e100.net (172.217.3.164): icmp_seq=2 ttl=47 time=8.51 ms
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=3 ttl=47 time=8.57 ms
64 bytes from sea15s11-in-f4.1e100.net (172.217.3.164): icmp_seq=4 ttl=47 time=8.54 ms
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=5 ttl=47 time=8.52 ms
64 bytes from sea15s11-in-f4.1e100.net (172.217.3.164): icmp_seq=6 ttl=47 time=8.54 ms
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=7 ttl=47 time=8.67 ms

分享到
取消 提交回答
全部回答(1)
  • dongshan8
    2019-07-17 20:09:18

    您好,

    建议使用mtr的软件来诊断一下数据库包的传输过程。

    0 0
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章