开发者社区> 问答> 正文

美西服务器的寻址问题

想咨询一下美西服务器的寻址问题,直接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

展开
收起
人生不如梦 2016-09-12 13:27:24 2951 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    您好,

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

    2019-07-17 20:09:18
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
如何运维千台以上游戏云服务器 立即下载
网站/服务器取证 实践与挑战 立即下载
ECS快储存加密技术 立即下载